331 lines
6.2 KiB
SCSS
Raw Normal View History

.desktop_header{
display: none;
}
.mobile_header{
position: fixed;
z-index: 9990;
display: flex;
align-items: center;
width: 100vw;
height: 70px;
border-bottom: 1px solid $grey_super_light;
// Znotraj ankete
&.survey_edit{
color: white;
background-color: $strong_blue;
}
// Seznam anket
&.survey_list{
color: $strong_blue;
background-color: white;
}
.mobile_menu_icon{
width: 60px;
text-align: center;
&.mobile_menu_close{
display: none;
span{
font-size: 30px;
font-weight: 600;
line-height: 25px;
}
}
span{
cursor: pointer;
}
}
.mobile_settings_icon{
width: 60px;
text-align: center;
&.mobile_settings_close{
display: none;
span{
font-size: 30px;
font-weight: 600;
line-height: 25px;
}
}
span{
cursor: pointer;
&::before{
font-size: 24px;
}
}
}
.mobile_survey_title{
width: calc(100% - 120px);
text-align: center;
font-size: 14px;
font-weight: 500;
}
.mobile_logo{
width: calc(100% - 120px);
#enka_logo{
margin: 0 auto;
}
}
}
/* Mobile meni */
.mobile_menu{
position: fixed;
z-index: 9995;
display: flex;
flex-direction: column;
top: 71px;
bottom: 0;
width: 85vw;
color: $main_text;
background-color: #ffffff;
overflow: hidden;
-webkit-overflow-scrolling: touch;
overflow-y: auto;
pointer-events: none;
transform: translateX(-100%);
&:not(.no-transition),
.submenu:not(.no-transition){
transition: all 250ms;
}
&.opened{
pointer-events: auto;
transform: translateX(0px);
}
&.submenu-opened{
overflow: hidden;
}
ul {
list-style-type: none;
padding: 0;
padding-left: 0px;
margin: 0;
-webkit-overflow-scrolling: touch;
> li {
display: block;
> a {
position: relative;
display: block;
padding: 18px 20px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
transition: all 150ms;
&:hover {
background-color: $soft_blue;
border-radius: 3px;
}
.arrow_back{
display: block;
position: absolute;
right: 20px;
top: 18px;
transform: rotate(180deg);
}
}
a.active {
color: $orange;
background-color: inherit;
}
&:not(:last-child) > a {
border-bottom: 1px solid $grey_super_light;
}
}
}
.submenu{
overflow: hidden;
-webkit-overflow-scrolling: touch;
overflow-y: auto;
pointer-events: none;
z-index: 9998;
position: fixed;
bottom: 0;
top: 0;
left: 100%;
width:100%;
min-height: 100%;
background-color: #ffffff;
&.opened{
left:0;
pointer-events:auto;
}
&.opened:not(.current){
overflow:hidden;
}
}
.submenu-header {
cursor: pointer;
position: relative;
display: flex;
border-bottom: solid 1px $grey_super_light;
> a {
display: block;
font-size: 14px;
font-weight: 500;
padding: 18px 20px;
padding-left: 20px;
text-decoration: none;
}
> label {
display: block;
width: calc(100% - 110px);
margin-bottom: 8px;
margin-top: 20px;
padding-left: 0px;
font-size: 15px;
font-weight: 500;
text-align: center;
opacity: .5;
}
}
.mobile_menu_user{
li.has-submenu{
.arrow_back{
line-height: 30px;
}
a{
font-size: 13px;
color: $main_text;
.email{
font-size: 12px;
}
}
}
.submenu_user_content{
display: flex;
flex-direction: column;
padding: 20px;
> div{
padding: 5px 0 10px 0;
font-size: 14px;
font-weight: 500;
.faicon{
padding-right: 10px;
vertical-align: -1px;
}
}
}
}
}
/* Mobile meni - NASTAVITVE V UREJANJU ANKETE*/
.mobile_settings{
position: fixed;
right: 0;
z-index: 9994;
top: 71px;
bottom: 0;
width: 85vw;
color: $main_text;
background-color: #ffffff;
overflow: hidden;
-webkit-overflow-scrolling: touch;
overflow-y: auto;
/*pointer-events: none;*/
margin-right: -85vw;
.mobile_settings_content {
display: flex;
flex-direction: column;
padding: 20px;
a{
display: flex;
align-items: center;
padding: 0 0 15px 0;
font-size: 13px;
&.anketa_img_nav{
padding-bottom: 20px;
margin-bottom: 20px;
border-bottom: 1px $soft_blue solid;
}
.faicon::before{
padding-right: 10px;
font-size: 20px;
}
.setting_icon{
width: 60px;
min-width: 60px;
&.bottom{
width: 30px;
min-width: 30px;
}
}
.setting_text{
width: auto;
}
}
}
}