Vulcan/client/sass/partials/_mobile.scss

229 lines
3.6 KiB
SCSS
Raw Normal View History

2012-08-25 11:20:17 +09:00
.mobile{
display:none !important;
}
2012-10-17 17:25:10 +09:00
.mobile-nav{
position:fixed;
overflow:auto;
width:280px;
left:-280px;
top:0px;
bottom:0px;
background:#444;
color:white;
@include box-shadow(inset -3px 0px 7px black(0.5));
ul{
li{
border-bottom:1px white(0.1) solid;
a{
display:block;
height:50px;
padding:0 10px;
line-height:50px;
&:hover{
background:$red;
color:white;
}
}
}
}
}
.mobile-nav, .content-wrapper{
@include single-transition(ease-out, left, 300ms, 0ms);
}
.content-wrapper{
position:relative;
left:0px;
}
.mobile-nav-open{
.mobile-nav{
left:0px;
}
.outer-wrapper{
overflow:hidden;
.content-wrapper{
left:280px;
}
}
}
2012-08-25 11:20:17 +09:00
@media screen and (max-width: $break-small) {
2012-09-18 08:07:56 +09:00
.header-button{
position:relative;
display:block;
margin-top:10px;
background:$red;
color:white;
height:30px;
width:40px;
i{
position:absolute;
width:100%;
text-align:center;
line-height:30px;
height:30px;
font-size:18px;
}
}
2012-08-25 11:20:17 +09:00
.mobile{
display:block !important;
}
.desktop{
display:none !important;
}
.grid, .grid-small{
width:auto;
margin-left:0;
margin-right:0;
2012-10-17 17:25:10 +09:00
padding-left:10px;
padding-right:10px;
2012-08-31 18:58:12 +09:00
min-width:200px;
2012-08-25 11:20:17 +09:00
}
2012-09-18 08:07:56 +09:00
.posts{
margin:0 10px;
padding:0;
2012-10-17 17:25:10 +09:00
.post-rank{
display:none;
}
2012-09-18 08:07:56 +09:00
}
2012-08-25 11:20:17 +09:00
.header{
height:50px;
2012-08-31 18:58:12 +09:00
@include border-radius(0px);
2012-08-25 11:20:17 +09:00
.logo{
2012-12-05 11:05:05 +09:00
top:0px;
2012-12-13 15:36:19 +09:00
left:0px;
2012-12-05 11:05:05 +09:00
font-size:22px;
line-height:50px;
z-index:10;
2012-10-17 17:25:10 +09:00
a{
img{
height:auto !important;
max-height:40px !important;
width:auto !important;
}
}
2012-12-16 15:29:00 +01:00
&.image{
margin-top:-10px; //since the mobile header is 20px thinner than the normal one, take off 10px more
}
2012-08-25 11:20:17 +09:00
}
2012-09-18 08:07:56 +09:00
.auth-buttons{
2012-12-05 11:05:05 +09:00
z-index:100;
2012-09-18 08:07:56 +09:00
margin:0;
2012-10-18 17:47:56 +09:00
#login-buttons{
display:block !important;
}
2012-09-18 08:07:56 +09:00
.login-link-and-dropdown-list{
right:0px !important;
position:static !important;
2012-12-13 15:36:19 +09:00
#login-dropdown-list{
right:0px !important;
margin:0px !important;
}
2012-09-18 08:07:56 +09:00
.login-link-text{
@extend .header-button;
2012-10-17 17:25:10 +09:00
@include hide-text2;
2012-09-18 08:07:56 +09:00
height:30px !important;
margin:10px 0 0 0 !important;
2012-10-17 17:25:10 +09:00
display:block !important;
2012-09-18 08:07:56 +09:00
&:after{
content: "\75" !important;
font-family: 'icomoon' !important;
position:absolute;
width:100%;
text-align:center;
line-height:30px !important;
height:30px !important;
font-size:18px !important;
}
}
2012-08-25 11:20:17 +09:00
}
2012-09-18 08:07:56 +09:00
}
.mobile-button{
2012-12-05 11:05:05 +09:00
z-index:100;
2012-09-18 08:07:56 +09:00
@extend .header-button;
2012-08-25 11:20:17 +09:00
span{
display:none;
}
&.menu{
float:left;
}
&.submit{
float:right;
}
&:hover{
background:white;
i{
color:$red;
}
}
}
}
.post{
.post-content{
margin-right:50px;
2012-08-31 18:58:12 +09:00
margin-right:0px;
// min-height:90px;
2012-08-25 11:20:17 +09:00
.upvote-link{
width:30px;
}
.post-info{
margin-left:30px;
padding:6px 4px 6px 8px;
}
.post-heading{
.post-title{
2012-08-31 18:58:12 +09:00
line-height:1.2;
2012-08-25 11:20:17 +09:00
display:block;
2012-08-31 18:58:12 +09:00
margin-bottom:4px;
2012-08-25 11:20:17 +09:00
font-size:18px;
}
.post-domain{
2012-08-31 18:58:12 +09:00
line-height:1;
2012-08-25 11:20:17 +09:00
display:block;
2012-08-31 18:58:12 +09:00
margin-bottom:4px;
2012-08-25 11:20:17 +09:00
font-size:13px;
}
}
.post-meta{
2012-08-31 18:58:12 +09:00
font-size:11px;
2012-08-25 11:20:17 +09:00
.comments{
2012-08-31 18:58:12 +09:00
// display:none;
2012-08-25 11:20:17 +09:00
}
.unit{
font-size:0;
&:after{
font-size:12px;
content:"pts ";
}
}
}
}
.post-actions{
2012-08-31 18:58:12 +09:00
display:none;
2012-08-25 11:20:17 +09:00
li{
float:none;
a{
height:40px;
width:40px;
2012-08-31 18:58:12 +09:00
font-size:30px;
2012-08-25 11:20:17 +09:00
i{
display:block;
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;
2012-08-31 18:58:12 +09:00
line-height:40px;
2012-08-25 11:20:17 +09:00
text-align:center;
}
.count{
top:9px;
}
.action{
display:none;
}
}
}
}
}
}