Vulcan/packages/nova-base-styles/lib/stylesheets/_posts.scss

269 lines
4.6 KiB
SCSS
Raw Normal View History

2016-03-24 16:19:46 +09:00
2016-03-30 10:06:12 +09:00
//////////////////////////////////////////////////////
// Post List //
//////////////////////////////////////////////////////
2016-03-24 18:17:35 +09:00
.post-list-header{
2016-03-30 10:06:12 +09:00
@include medium-large{
@include flex-center;
justify-content: space-between;
}
2016-03-25 10:45:28 +09:00
margin-bottom: $vmargin;
2016-03-24 18:17:35 +09:00
}
2016-03-30 10:06:12 +09:00
.post-list-categories{
@include small{
margin: 0 auto;
margin-bottom: $vmargin;
text-align: center;
}
}
2016-03-24 18:17:35 +09:00
.post-views{
2016-03-30 10:06:12 +09:00
@include small{
margin-bottom: $vmargin;
}
2016-03-24 18:17:35 +09:00
a{
2016-03-25 10:45:28 +09:00
@include border;
// @include border-radius;
2016-03-24 18:17:35 +09:00
// padding: 3px 5px;
// margin-right: 5px;
2016-03-25 11:30:01 +09:00
&.post-view-inactive{
@include activeHover;
}
2016-03-24 18:17:35 +09:00
&.post-view-active{
background: $light-blue;
}
}
2016-03-28 11:43:42 +09:00
.btn-group{
margin-right: $hmargin;
}
2016-03-24 18:17:35 +09:00
}
2016-03-30 10:06:12 +09:00
2016-03-24 16:19:46 +09:00
.post-list-content{
2016-03-25 10:45:28 +09:00
border-top: $border;
2016-03-24 16:19:46 +09:00
// padding-top: 15px;
// margin-top: 15px;
margin-bottom: $vmargin;
}
2016-03-30 10:06:12 +09:00
.post-load-more{
display: block;
text-align: center;
@include border;
@include border-radius;
font-size: $large-font;
padding: 10px 20px;
@include activeHover;
width: 100%;
background: $white;
color: $blue;
}
//////////////////////////////////////////////////////
// Post Item //
//////////////////////////////////////////////////////
2016-03-24 16:03:30 +09:00
.post-item{
2016-03-30 10:06:12 +09:00
@include medium-large{
@include flex-center;
}
2016-03-25 10:45:28 +09:00
border-bottom: $border;
2016-03-24 16:19:46 +09:00
padding: $vmargin 5px;
// margin-bottom: 15px;
&.post-sticky{
background: $light-yellow;
}
2016-03-24 16:03:30 +09:00
}
.post-vote{
2016-03-30 10:06:12 +09:00
@include small{
float: right;
}
@include medium-large{
margin-right: $hmargin;
}
2016-03-24 16:03:30 +09:00
}
.upvote-button{
2016-03-25 10:45:28 +09:00
@include border;
@include border-radius;
@include flex-center;
2016-03-24 16:03:30 +09:00
flex-direction: column;
justify-content: center;
padding: 3px 5px;
.icon{
text-align: center;
display: block;
}
.vote-count{
text-align: center;
display: block;
}
.voted &{
color: $light-text;
}
2016-03-25 11:30:01 +09:00
@include activeHover;
2016-03-24 16:03:30 +09:00
&, &:active, &:hover{
text-decoration: none;
}
}
.post-content{
flex-grow: 1;
}
.post-title{
2016-03-30 10:06:12 +09:00
@include small{
margin-right: 40px;
font-size: $large-font;
margin-bottom: $vmargin/2;
}
@include medium-large{
@include flex-center;
font-size: $larger-font;
margin-bottom: 5px;
}
2016-03-24 16:03:30 +09:00
.post-title-link{
2016-03-30 10:06:12 +09:00
@include small{
display: block;
margin-bottom: $vmargin/2;
}
2016-03-24 16:12:03 +09:00
color: $black;
2016-03-24 16:03:30 +09:00
&, &:active, &:hover{
text-decoration: none;
}
}
}
.post-categories{
2016-03-30 10:06:12 +09:00
@include medium-large{
margin-left: 5px;
}
2016-03-25 10:45:28 +09:00
@include flex-center;
2016-03-24 16:03:30 +09:00
a{
display: block;
font-size: $small-font;
2016-03-25 10:45:28 +09:00
@include border;
@include border-radius;
2016-03-24 16:03:30 +09:00
margin-right: 5px;
padding: 2px 6px;
2016-03-25 11:30:01 +09:00
@include activeHover;
2016-03-24 16:03:30 +09:00
}
}
.post-meta{
2016-03-30 10:06:12 +09:00
@include medium-large{
@include flex-center;
}
font-size: $small-font;
2016-03-25 10:45:28 +09:00
.user-avatar{
2016-03-24 16:03:30 +09:00
margin-right: 5px;
}
2016-03-25 10:45:28 +09:00
.user-name, .post-date, .post-comments, .post-stats, .post-actions{
margin-right: $hmargin;
}
2016-03-24 16:03:30 +09:00
}
2016-03-30 10:06:12 +09:00
.post-user{
@include small{
margin-bottom: $vmargin/2;
}
@include flex-center;
}
2016-03-25 10:45:28 +09:00
.post-date, .post-comments{
2016-03-30 10:06:12 +09:00
@include small{
margin-bottom: $vmargin/2;
}
2016-03-24 16:03:30 +09:00
color: $medium-text;
}
.post-stats{
2016-03-30 10:06:12 +09:00
@include small{
margin-bottom: $vmargin/2;
display: inline-block;
}
2016-03-25 10:45:28 +09:00
@include border;
@include border-radius;
font-size: $smaller-font;
2016-03-25 10:45:28 +09:00
.post-stat{
border-right: $border;
2016-03-24 16:03:30 +09:00
padding: 2px 5px;
display: inline-block;
&:last-child{
border: none;
}
}
}
.post-actions{
2016-03-25 10:45:28 +09:00
@include flex-center;
2016-03-24 16:03:30 +09:00
}
2016-03-30 10:06:12 +09:00
.post-commenters{
@include small{
display: none;
}
2016-03-25 10:45:28 +09:00
@include flex-center;
2016-03-24 16:03:30 +09:00
}
2016-03-30 10:06:12 +09:00
.post-commenters-avatars{
2016-03-24 16:03:30 +09:00
.user-avatar{
margin-right: $hmargin;
}
2016-03-24 16:12:03 +09:00
}
2016-03-30 10:06:12 +09:00
.post-thumbnail{
@include small{
float: left;
}
2016-03-24 16:12:03 +09:00
display: block;
2016-03-30 10:06:12 +09:00
margin-right: $hmargin;
img{
display: block;
height: 50px;
width: auto;
}
}
2016-03-30 10:06:12 +09:00
//////////////////////////////////////////////////////
// Post Page //
//////////////////////////////////////////////////////
.post-page{
.post-item{
@include border-radius;
border: $border;
padding: $hmargin;
margin-bottom: $vmargin;
}
}
.post-body{
font-size: $large-font;
margin-bottom: $hmargin;
2016-03-27 18:17:20 +09:00
}
2016-03-30 10:06:12 +09:00
//////////////////////////////////////////////////////
// Other Elements //
//////////////////////////////////////////////////////
2016-03-28 11:43:42 +09:00
.post-day{
margin-bottom: $vmargin;
.post-load-more{
border: none;
padding: 0;
&:hover{
background: inherit;
color: inherit;
border: inherit;
}
}
2016-03-29 10:13:35 +09:00
}
.edit-post-form-header{
@include flex-center;
justify-content: space-between;
2016-03-24 16:03:30 +09:00
}