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

304 lines
5.2 KiB
SCSS
Raw Normal View History

2016-03-24 16:19:46 +09:00
2016-03-30 10:06:12 +09:00
//////////////////////////////////////////////////////
// Post List //
//////////////////////////////////////////////////////
.posts-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
}
.posts-list-header-categories{
2016-03-30 10:06:12 +09:00
@include small{
margin: 0 auto;
margin-bottom: $vmargin;
text-align: center;
2016-04-18 12:16:07 +09:00
.btn-group{
margin-right: 0;
width: 100%;
}
.dropdown-toggle{
width: 100%;
}
2016-03-30 10:06:12 +09:00
}
}
.posts-views{
2016-03-30 10:06:12 +09:00
@include small{
margin-bottom: $vmargin;
2016-04-18 12:16:07 +09:00
.btn-group{
margin-right: 0;
width: 100%;
}
.dropdown-toggle{
width: 100%;
}
2016-03-30 10:06:12 +09:00
}
2016-04-18 12:16:07 +09:00
a.btn{
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-06-14 10:01:44 +09:00
&.posts-view-inactive{
2016-03-25 11:30:01 +09:00
@include activeHover;
}
2016-06-14 10:01:44 +09:00
&.posts-view-active{
2016-03-24 18:17:35 +09:00
background: $light-blue;
}
}
}
.posts-list-header{
@include medium-large{
.search-form, .posts-list-header-categories button, .posts-views button{
width: 160px;
}
2016-03-28 11:43:42 +09:00
}
2016-03-24 18:17:35 +09:00
}
2016-03-30 10:06:12 +09:00
.posts-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;
}
.posts-load-more, .comments-load-more{
2016-03-30 10:06:12 +09:00
display: block;
text-align: center;
@include border;
@include border-radius;
font-size: $large-font;
padding: 10px 20px;
@include activeHover;
width: 100%;
background: $white;
color: $active-color;
2016-03-30 10:06:12 +09:00
}
.posts-load-more-loading{
2016-04-07 12:43:41 +09:00
padding: 21px 0;
}
2016-03-30 10:06:12 +09:00
//////////////////////////////////////////////////////
// Post Item //
//////////////////////////////////////////////////////
.posts-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;
2016-04-26 09:12:38 +09:00
&.posts-sticky{
2016-03-24 16:19:46 +09:00
background: $light-yellow;
}
2016-03-24 16:03:30 +09:00
}
.posts-item-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;
}
}
.posts-item-content{
2016-03-24 16:03:30 +09:00
flex-grow: 1;
}
.posts-item-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;
}
.posts-item-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;
}
}
}
.posts-categories{
flex-wrap: wrap;
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
}
}
.posts-item-meta{
2016-03-30 10:06:12 +09:00
@include medium-large{
@include flex-center;
}
font-size: $small-font;
.avatar{
2016-03-24 16:03:30 +09:00
margin-right: 5px;
}
2016-04-20 09:17:19 +09:00
.users-name, .posts-item-date, .posts-item-comments, .posts-stats, .post-actions{
2016-03-25 10:45:28 +09:00
margin-right: $hmargin;
}
2016-03-24 16:03:30 +09:00
}
.posts-item-user{
2016-03-30 10:06:12 +09:00
@include small{
margin-bottom: $vmargin/2;
}
@include flex-center;
}
.posts-item-date, .posts-item-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;
}
.posts-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;
.posts-stats-item{
2016-03-25 10:45:28 +09:00
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
}
.posts-commenters{
2016-03-30 10:06:12 +09:00
@include small{
display: none;
}
2016-03-25 10:45:28 +09:00
@include flex-center;
2016-03-24 16:03:30 +09:00
}
.posts-commenters-avatars{
2016-06-10 18:35:59 +09:00
display: flex;
.avatar{
2016-03-24 16:03:30 +09:00
margin-right: $hmargin;
}
2016-03-24 16:12:03 +09:00
}
.posts-thumbnail{
2016-03-30 10:06:12 +09:00
@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 //
//////////////////////////////////////////////////////
.posts-page{
.posts-item{
@include border-radius;
border: $border;
padding: $hmargin;
margin-bottom: $vmargin;
}
}
.posts-page-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
.posts-day{
2016-04-14 16:22:57 +09:00
margin-bottom: $vmargin * 2;
.posts-load-more{
2016-03-28 11:43:42 +09:00
border: none;
padding: 0;
&:hover{
background: inherit;
color: inherit;
border: inherit;
}
}
2016-04-14 16:22:57 +09:00
.posts-no-results{
margin-top: $vmargin;
}
2016-03-29 10:13:35 +09:00
}
.posts-edit-form-header{
2016-03-29 10:13:35 +09:00
@include flex-center;
justify-content: space-between;
2016-05-20 09:33:55 +09:00
}
.posts-edit-form-admin{
@include flex-center;
justify-content: space-between;
margin-bottom: $vmargin * 2;
}