Vulcan/packages/telescope-theme-hubble/lib/client/sass/modules/_posts.scss

298 lines
4.5 KiB
SCSS
Raw Normal View History

2014-07-04 14:07:50 +09:00
// modules layout
.post{
display: flex;
.leftmost{
order: 1;
flex-grow: 1;
}
.left{
order: 2;
flex-grow: 1;
}
.center{
order: 3;
flex-grow: 100;
}
.right{
order: 4;
flex-grow: 1;
}
.rightmost{
order: 5;
flex-grow: 1;
}
}
.empty-notice{
text-align:center;
padding:10px 0;
}
2012-09-11 16:27:26 +09:00
.posts{
2012-08-25 11:20:17 +09:00
position:relative;
2014-07-04 11:32:04 +09:00
@include box-shadow(0 1px 1px black(0.15));
border-radius: 3px;
}
.post{
position:relative;
width:100%;
@include cf;
background: white;
border-bottom:1px solid $lightest-grey;
&:first-child{
border-radius: 3px 3px 0px 0px;
}
&:last-child{
border: none;
}
&.animate{
@include single-transition(ease-out, top, 400ms, 0ms);
}
&.inactive{
.post-content{
background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVQYV2NkIALMnDlTkpGQOpCi9PT053gVwhSBDMOpEFkRToXoirAqxKYIQyEuRSgK8SmCKySkCKyQGEUghQC5OyXvW/4BHwAAAABJRU5ErkJggg==');
}
}
.single-post &{
margin-bottom: 10px;
border-radius: 3px;
@include box-shadow(0 1px 1px black(0.15));
}
}
.post-upvote{
2014-07-04 14:07:50 +09:00
padding: 0 10px 0 5px;
2014-07-04 11:32:04 +09:00
.upvote-link{
2014-07-04 14:07:50 +09:00
position: relative;
top: 17px;
// transform: translateY(-50%);
2014-07-04 11:32:04 +09:00
width: 24px;
height: 24px;
padding: 6px;
display: block;
text-align: center;
i{
display: block;
border-radius: 50%;
border: 1px solid rgba($red, 0.3);
font-size:10px;
height:100%;
width:100%;
text-align:center;
// line-height:$grid-unit;
color:rgba($red, 0.8);
text-shadow:0px 1px 0px white;
line-height: 2.2;
&.icon-check{
display:none;
}
}
2014-07-04 11:32:04 +09:00
span{
display:none;
}
&.not-voted:hover{
i{
background: rgba($red, 0.1);
color:$red;
text-shadow:none;
}
}
&.voted{
cursor:default;
i.icon-up{
display:none;
}
i.icon-check{
border: 1px solid rgba($blue, 0.6);
display: block;
color:rgba($blue, 0.8);
opacity: 0.5;
2012-12-24 16:21:56 +01:00
}
}
2012-09-11 16:27:26 +09:00
}
2012-08-25 11:20:17 +09:00
}
2014-07-04 11:32:04 +09:00
.post-info{
padding:$grid-padding - 2px 0;
2014-07-04 14:07:50 +09:00
}
.post-rank{
position:absolute;
top:0px;
left:-50px;
display:block;
height:$grid-unit;
line-height:$grid-unit;
width:30px;
text-align:right;
font-size:18px;
// font-weight:bold;
color:black(0.2);
2014-07-04 11:32:04 +09:00
}
2012-08-25 11:20:17 +09:00
.post-content{
position:relative;
padding:0;
min-height:$grid-unit - 30px;
2012-10-02 10:54:04 +09:00
.post-sticky{
display:block;
position:absolute;
right:20px;
top:16px;
font-size:24px;
i{
color:$light-text;
}
span{
display:none;
}
}
2014-07-04 11:32:04 +09:00
}
.post-heading{
margin-bottom:3px;
.post-title{
font-size:18px;
color:$text;
font-weight:normal;
line-height:1;
&:visited{
color:$grey;
2013-02-18 12:13:27 +09:00
}
2014-07-04 11:32:04 +09:00
&:hover{
color:$red;
}
2012-08-25 11:20:17 +09:00
}
2014-07-04 11:32:04 +09:00
.post-domain{
2012-08-25 11:20:17 +09:00
color:$light-text;
2014-07-04 11:32:04 +09:00
font-size:14px;
font-weight:normal;
}
.post-category{
display:inline-block;
font-size:11px;
@include border-radius(3px);
background:#eee;
padding:0px 6px;
text-transform:uppercase;
font-weight:normal;
vertical-align:middle;
&:hover{
background:$red;
color:white;
}
2012-08-25 11:20:17 +09:00
}
}
2014-07-04 11:32:04 +09:00
.post-meta{
font-size:12px;
color:$light-text;
line-height:1.5;
}
2014-07-04 14:07:50 +09:00
.post-share, .post-discuss{
position:relative;
float:left;
margin-left:$grid-margin;
>a{
2012-08-31 18:58:12 +09:00
position:relative;
2014-07-04 14:07:50 +09:00
display:block;
padding:0;
width:$grid-unit;
height:$grid-unit;
line-height:$grid-unit;
vertical-align:baseline;
text-align:center;
color:$light-text;
font-size:36px;
line-height:50px;
&.edit-link{
color:$red;
}
&.share-link{
color:$blue;
color:$yellow;
}
&.discuss-link{
color:$green;
}
&.more-link{
color:$blue;
}
&:hover{
&, .action{
color:$red;
}
2014-07-04 14:07:50 +09:00
}
&.voted{
background:$highlight-color;
color:white;
cursor: default;
2012-08-25 11:20:17 +09:00
.action{
2014-07-04 14:07:50 +09:00
color: #fff;
2012-08-25 11:20:17 +09:00
}
}
2014-07-04 14:07:50 +09:00
.count{
position:absolute;
top:12px;
display:block;
width:100%;
height:20px;
line-height:20px;
font-size:11px;
}
.points{
display:block;
font-size:30px;
line-height:50px;
}
.action{
display:block;
height:20px;
width:100%;
line-height:20px;
position:absolute;
bottom:5px;
left:0px;
font-size:13px;
color:$light-text;
pointer-events:none;
// color:$red;
}
2012-08-25 11:20:17 +09:00
}
}
.post-message{
2014-07-04 14:07:50 +09:00
padding:20px 0px;
font-size:16px;
2014-07-04 11:32:04 +09:00
border-top: 1px solid $lightest-grey;
2012-09-08 11:54:08 +09:00
.list &{
display:none;
}
2012-08-25 11:20:17 +09:00
}
2014-07-03 10:09:22 +09:00
2012-10-09 15:34:00 +09:00
.post.sticky{
2014-07-04 11:32:04 +09:00
background:$light-yellow;
2012-10-09 16:11:30 +09:00
}
.more-button{
a{
2012-10-17 17:25:10 +09:00
width:100%;
2012-10-09 16:11:30 +09:00
display:block;
height:$grid-unit;
background:black(0.075);
text-align:center;
color:white;
line-height:$grid-unit;
2014-07-04 11:32:04 +09:00
font-size:16px;
border-radius: 0px 0px 3px 3px;
&:hover{
background: black(0.15);
}
2012-10-09 16:11:30 +09:00
}
2014-07-04 14:07:50 +09:00
}
.inner-table{
display: table;
height: 100%;
}
.inner-table-cell{
display: table-cell;
vertical-align:middle;
2012-10-09 15:34:00 +09:00
}