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

529 lines
8.3 KiB
SCSS
Raw Normal View History

.module{
border-radius: 3px;
}
2014-07-04 14:07:50 +09:00
// modules layout
2014-07-05 11:24:28 +09:00
.posts{
2014-12-13 17:43:52 +09:00
display: table;
2014-07-09 09:46:24 +09:00
// border-collapse: collapse;
2014-07-07 09:36:19 +09:00
width: 100%;
position: relative;
.single-post &{
margin-bottom: 10px;
.post{
border-radius: 3px;
display: block;
@extend .has-shadow;
}
}
2014-07-05 11:24:28 +09:00
}
2014-07-04 14:07:50 +09:00
.post{
2014-07-09 09:46:24 +09:00
// display: table-row;
padding: 0;
border-radius: 0px;
margin-bottom: 0px;
2014-12-13 17:43:52 +09:00
display: table-row;
position:relative;
width:100%;
background: white;
&:first-child{
border-radius: 3px 3px 0px 0px;
}
&:last-child{
border-radius: 0px 0px 3px 3px;
}
&.animate{
transition: ease-out, top, 400ms, 0ms;
}
&.inactive{
.post-content{
background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVQYV2NkIALMnDlTkpGQOpCi9PT053gVwhSBDMOpEFkRToXoirAqxKYIQyEuRSgK8SmCKySkCKyQGEUghQC5OyXvW/4BHwAAAABJRU5ErkJggg==');
}
}
.post-module{
2014-07-05 12:30:56 +09:00
display: table-cell;
2014-12-13 17:43:52 +09:00
border-bottom:1px solid $lightest-grey;
2014-07-05 12:30:56 +09:00
vertical-align: middle;
2014-12-13 17:43:52 +09:00
padding: 10px 0;
&:last-child{
padding-right: 20px;
2014-07-07 09:06:32 +09:00
}
}
2014-12-13 17:43:52 +09:00
.post-upvote{
padding-left: 10px;
padding-right: 10px;
2014-07-07 09:06:32 +09:00
}
2014-12-13 17:43:52 +09:00
.post-content{
2014-07-07 09:36:19 +09:00
width: 100%;
2014-07-07 09:06:32 +09:00
}
2014-12-13 17:43:52 +09:00
.post-content-inner{
// display: table;
// width: 100%;
display: flex;
align-items: center;
2014-07-04 14:07:50 +09:00
}
2014-12-13 17:43:52 +09:00
.post-content-inner > div{
// display: table-cell;
// vertical-align: middle;
}
.post-info{
flex-grow: 1;
}
.post-discuss, .post-share{
width: 70px;
text-align: center;
padding: 2px 10px;
2014-07-04 14:07:50 +09:00
}
2014-12-13 17:43:52 +09:00
// .modules-group{
// display: table-cell;
// vertical-align: middle;
// .inner{
// @include flex();
// @include align-items(center);
// }
// .cell{
// // display: table-cell;
// // vertical-align: middle;
// margin-right: $grid-margin*2;
// @include medium-large{
// @include flex-shrink(0);
// }
// }
// }
// .left-modules{
// .inner{
// margin-left: $grid-margin;
// }
// @include small{
// .inner{
// display: block;
// }
// margin-right: $grid-margin;
// }
// @include medium-large{
// }
// }
// .center-modules{
// width: 100%;
// @include small{
// .inner{
// display: block;
// }
// }
// .cell{
// }
// }
// .right-modules{
// @include small{
// display: none;
// background: #333;
// padding: 10px;
// &.visible{
// display: block;
// }
// .inner{
// @include justify-content(center);
// }
// .cell{
// @include flex-grow(1);
// flex: 1;
// text-align: center;
// }
// }
// @include medium-large{
// .inner{
// @include justify-content(flex-end);
// }
// }
// .cell{
// &:last-child{
// // margin-right: 0px;
// }
// }
// }
// .post-content{
// @include small{
// @include flex-grow(1);
// flex: 1;
// }
// @include medium-large{
// @include flex-shrink(1 !important);
// }
// }
2014-07-05 12:30:56 +09:00
// display: flex;
// display: -webkit-flex;
// display: -moz-flex;
// .leftmost{
// @include order(1);
// @include flex-grow(1);
// // width: 1px;
// }
// .left{
// @include order(2);
// @include flex-grow(1);
// // width: 1px;
// }
// .center{
// @include order(3);
// @include flex-grow(30);
// // width: 1px;
// }
// .right{
// @include order(4);
// @include flex-grow(1);
// // width: 1px;
// }
// .rightmost{
// @include order(5);
// @include flex-grow(1);
// // width: 1px;
// }
2014-07-04 14:07:50 +09:00
}
.post-actions{
display: none;
text-align: right;
@include flex-shrink(1);
padding-right: 5px;
@include small{
display: block;
}
a{
display: block;
width: 36px;
height: 36px;
padding: 6px;
span{
display: block;
height: 100%;
width: 100%;
border-radius: 3px;
border: 1px solid rgba($red, 0.3);
color: rgba($red, 0.8);
text-align: center;
line-height: 10px;
font-weight: bold;
font-size: 20px;
}
}
}
.post-upvote{
.upvote-link{
position: relative;
// top: 17px;
// transform: translateY(-50%);
width: 36px;
height: 36px;
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;
}
}
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;
}
}
}
}
.post-meta-item{
display: inline;
&:after{
content: ",";
}
&:last-child:after{
content: "";
}
}
.empty-notice{
text-align:center;
padding:10px 0;
}
2014-07-05 12:36:18 +09:00
.posts-wrapper{
2014-07-07 09:36:19 +09:00
@extend .has-shadow;
2014-08-27 10:23:56 +09:00
border-radius: 3px;
padding: 0;
2014-07-05 12:36:18 +09:00
}
2014-07-05 12:30:56 +09:00
.post-rank{
position: relative;
span{
2014-07-05 12:30:56 +09:00
position:absolute;
top:0px;
left:-60px;
display:block;
height:36px;
line-height:36px;
width:30px;
text-align:right;
font-size:18px;
// font-weight:bold;
color:black(0.2);
}
}
2014-12-13 17:43:52 +09:00
// .post-info{
// padding:$grid-padding - 5px 0;
// }
2012-08-25 11:20:17 +09:00
.post-content{
min-height: $grid-unit - 30px;
2012-10-02 10:54:04 +09:00
.post-sticky{
display: block;
position: absolute;
right: -40px;
top: 16px;
font-size: 24px;
2012-10-02 10:54:04 +09:00
i{
color: $light-text;
2012-10-02 10:54:04 +09:00
}
span{
display: none;
2012-10-02 10:54:04 +09:00
}
}
2014-07-04 11:32:04 +09:00
}
.post-heading{
margin-bottom: 3px;
2014-08-27 16:43:41 +09:00
line-height: 1.2;
@include small{
line-height: 1.5;
}
2014-07-04 11:32:04 +09:00
.post-title{
@include small{
font-size: 15px;
}
@include medium-large{
font-size:18px;
}
2014-07-04 11:32:04 +09:00
font-weight:normal;
&:visited{
color:$grey;
2013-02-18 12:13:27 +09:00
}
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;
@include small{
font-size: 13px;
}
@include medium-large{
font-size:14px;
}
2014-07-04 11:32:04 +09:00
font-weight:normal;
}
2014-07-05 13:32:01 +09:00
}
2014-07-07 09:06:32 +09:00
.post-categories{
text-align: right;
2014-07-07 09:06:32 +09:00
}
2014-07-05 13:32:01 +09:00
.post-category{
display:inline-block;
font-size:11px;
border-radius: 3px;
2014-07-05 13:32:01 +09:00
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-08-28 11:09:46 +09:00
a{
color:$medium-text;
&:visited, &:active{
color:$medium-text;
}
}
2014-07-04 11:32:04 +09:00
}
2014-07-04 14:07:50 +09:00
.post-share, .post-discuss{
2014-07-05 11:24:28 +09:00
position: relative;
2014-07-04 14:07:50 +09:00
>a{
2012-08-31 18:58:12 +09:00
position:relative;
display:inline-block;
2014-07-04 14:07:50 +09:00
padding:0;
height:$grid-unit;
vertical-align:baseline;
text-align:center;
color:$light-text;
2014-11-21 15:30:10 +09:00
i{
font-size: 36px;
height: 45px;
display: block;
}
2014-07-04 14:07:50 +09:00
&.edit-link{
color:$red;
}
&.share-link{
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;
2014-08-12 17:11:36 +09:00
top:14px;
2014-07-04 14:07:50 +09:00
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;
line-height:20px;
bottom:5px;
left:0px;
font-size:13px;
color:$light-text;
pointer-events:none;
// color:$red;
}
2012-08-25 11:20:17 +09:00
}
}
2014-07-05 16:29:10 +09:00
.post-body{
2014-07-07 09:36:19 +09:00
@extend .has-shadow;
2014-07-05 16:29:10 +09:00
border-radius: 3px;
margin-bottom: 10px;
background: white;
padding:20px;
2014-07-04 14:07:50 +09:00
font-size:16px;
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
}
2014-07-05 16:40:00 +09:00
2012-10-09 16:11:30 +09:00
.more-button{
2014-08-20 17:03:54 +09:00
display: block;
width:100%;
height:$grid-unit;
background:black(0.05);
text-align:center;
color:white;
line-height:$grid-unit;
font-size:18px;
border-radius: 0px 0px 3px 3px;
text-shadow: 0px 1px 1px 0px black(0.25);
padding: 0px;
&: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;
}
2014-08-27 09:25:05 +09:00
@include small {
.posts{
padding:0;
.post-rank{
display:none;
}
}
.post{
.post-content{
margin-right:50px;
margin-right:0px;
// min-height:90px;
.upvote-link{
width:30px;
}
.post-info{
2014-08-12 17:11:36 +09:00
// margin-left:30px;
padding:13px 0;
}
.post-heading{
.post-title{
display:block;
margin-bottom:4px;
}
.post-domain{
display:block;
margin-bottom:4px;
font-size:13px;
}
}
.post-meta{
font-size:11px;
.unit{
font-size:0;
&:after{
font-size:12px;
content:"pts ";
}
}
}
}
}
}