theme_nin/sass/layout/_postboard.sass

383 lines
6.2 KiB
Sass
Raw Normal View History

2015-07-31 10:58:25 +02:00
/************* TOP TEXTAREA *************/
#postboard-top
position: relative
@extend .clear-fix
margin-bottom: 10px
transition: height .3s linear
2015-08-03 16:20:22 +02:00
padding: 15px
2015-07-31 10:58:25 +02:00
background: white
overflow: hidden
background: $bloc-light-color
+transition-property( top)
+transition-duration(.1s)
+transition-timing-function(ease-out)
top: 0
2015-08-03 19:36:37 +02:00
+box-shadow(1px 2px 2px rgba(#111, 0.1))
2015-07-31 10:58:25 +02:00
z-index: 120
.profile-photo
position: absolute
top: 10px
left: 10px
width: $mini-usr-img
img
width: 100%
.post-area
overflow: hidden
@extend .clear-fix
width: 100%
padding-left: 58px
padding-right: 0
display: inline
+box-sizing(border-box)
background: none
float: right
.post-area-new
@extend .open
+box-shadow(none)
textarea
margin: 0 0 10px 0
2015-07-27 12:15:24 +02:00
2015-08-21 06:10:45 +02:00
&.onTop
position: fixed
bottom: 0
left: 0
top: auto
2015-08-31 14:57:56 +02:00
margin-bottom: 0
2015-08-21 06:10:45 +02:00
z-index: 2000
+box-shadow(0 -5px 13px rgba(#111, 0.2))
width: 320px
max-width: 100%
.profile-photo
display: none!important
.post-area
padding-left: 0
2015-07-27 12:15:24 +02:00
2015-07-31 10:58:25 +02:00
/************* POSTBOARD *************/
2015-07-27 12:15:24 +02:00
2015-07-26 21:39:11 +02:00
.postboard
2015-07-31 10:58:25 +02:00
width: $postboardWidth
float: left
h2, .postboard-news
2015-07-27 12:15:24 +02:00
display: none
2015-08-10 05:56:39 +02:00
&.large
width: $postboardLargeWidth
2015-07-31 10:58:25 +02:00
.postboard-posts
position: relative
z-index: 1
clear: both
2015-07-27 12:15:24 +02:00
.post
2015-07-31 10:58:25 +02:00
2015-07-27 12:15:24 +02:00
position: relative
margin-bottom: 1px
+transition-property(margin)
2015-07-28 10:40:52 +02:00
+transition-duration(.5s)
2015-07-31 10:58:25 +02:00
+transition-timing-function(ease-out)
2015-08-01 22:52:31 +02:00
color: $defaut-font-color
2015-07-31 10:58:25 +02:00
cursor: pointer
2015-09-15 21:33:54 +02:00
2015-07-31 10:58:25 +02:00
&:hover
color: #000
.show-more
display: inline-block
float: right
2015-08-01 22:52:31 +02:00
font-size: .8rem
2015-07-31 10:58:25 +02:00
color: lighten($dark-grey,30%)
2015-08-01 22:52:31 +02:00
2015-07-31 10:58:25 +02:00
&:hover
color: lighten($dark-grey,5%)
.post-expand
color: lighten($dark-grey,30%)
2015-08-01 22:52:31 +02:00
background: $bloc-light-color
2015-07-31 10:58:25 +02:00
cursor: pointer
2015-08-01 22:52:31 +02:00
font-size: .8rem
2015-07-31 10:58:25 +02:00
position: absolute
left: 10px
bottom: 10px
&:hover
color: lighten($dark-grey,5%)
.post-data
2015-08-03 16:20:22 +02:00
padding: 15px
2015-07-31 10:58:25 +02:00
background: $bloc-light-color
/*********** EVERYTHING SPECIFIC TO OPEN POSTS **************/
> .post
+box-shadow(1px 2px 2px rgba(#111, 0.1))
&.open
margin-top: $space
margin-bottom: $space
+box-shadow(1px 2px 2px rgba(#111, 0))
.post
color: darken($defaut-font-color, 15%)
+box-shadow(1px 2px 2px rgba(#111, 0.1))
margin-bottom: 1px
&:not(.original)
.post-expand
display: none
margin: 0
2015-07-26 21:39:11 +02:00
2015-07-27 12:15:24 +02:00
.post-photo
margin: 0
display: inline-block
float: left
vertical-align: middle
2015-07-29 06:05:10 +02:00
overflow: hidden
2015-07-29 03:28:09 +02:00
width: $mini-usr-img
2015-08-03 16:20:22 +02:00
margin: 0 15px 15px 0
2015-09-15 21:40:35 +02:00
max-height: $mini-usr-img
2015-09-15 21:33:54 +02:00
clear: both
2015-07-27 12:15:24 +02:00
img
width: 100%
2015-07-28 10:40:52 +02:00
height: auto!important
2015-07-26 21:39:11 +02:00
.post-info-name
2015-08-03 16:20:22 +02:00
font-weight: 500
2015-07-27 12:15:24 +02:00
color: inherit
text-decoration: none
display: inline-block
2015-08-03 16:20:22 +02:00
font-size: 1rem
2015-07-27 12:15:24 +02:00
float: left
2015-07-31 10:58:25 +02:00
&:hover
text-decoration: none
color: black
2015-07-26 21:39:11 +02:00
.post-info-tag
2015-08-01 22:52:31 +02:00
font-size: .8rem
2015-07-27 12:15:24 +02:00
opacity: .6
margin-top: 4px
display: inline-block
2015-07-26 21:39:11 +02:00
2015-08-03 16:20:22 +02:00
.post-info-sent
display: block
position: absolute
2015-08-21 04:28:55 +02:00
top: -10px
right: 0
2015-08-03 16:20:22 +02:00
font-size: 15px
2015-07-26 21:39:11 +02:00
.post-info-time
2015-07-27 12:15:24 +02:00
position: absolute
2015-08-01 22:52:31 +02:00
font-size: .8rem
line-height: .8rem
2015-07-27 12:15:24 +02:00
text-decoration: none
2015-08-01 22:52:31 +02:00
top: 12px
2015-08-21 04:28:55 +02:00
right: 0
2015-08-21 04:49:11 +02:00
padding-right: 11px
2015-08-21 04:28:55 +02:00
text-align: right
2015-07-27 12:15:24 +02:00
color: lighten($dark-grey,30%)
&:hover
color: lighten($dark-grey,5%)
2015-07-26 21:39:11 +02:00
.post-text
2015-08-10 10:57:58 +02:00
margin: 0 0 0 ($mini-usr-img +15)
2015-07-27 12:15:24 +02:00
word-wrap: break-word
2015-07-29 03:28:09 +02:00
min-height: $mini-usr-img - 20
2015-07-27 12:15:24 +02:00
padding: 0
2015-07-29 03:28:09 +02:00
a:hover
text-decoration: underline
2015-07-26 21:39:11 +02:00
.post-context
2015-08-01 22:52:31 +02:00
font-size: .8rem
line-height: .8rem
2015-08-21 04:28:55 +02:00
margin: 2px 0 4px 60px
2015-09-15 21:33:54 +02:00
2015-07-27 12:15:24 +02:00
color: lighten($dark-grey,30%)
2015-08-01 22:52:31 +02:00
2015-11-06 21:50:57 +05:00
.post-rt-by
margin: 0 0 1em
div
display: inline
.prep:before, .prep:after
content: ' '
.post-rt-icon
@extend .ion-shuffle
@extend .ion
&:before
display: block
float: left
color: $main-color-color
2015-08-01 22:52:31 +02:00
line-height: .8rem
font-size: .8rem
2015-07-26 21:39:11 +02:00
margin-right: .4em
2015-07-26 21:39:11 +02:00
2015-07-31 10:58:25 +02:00
// .post-interactions (reply, retransmit, fav)
2015-07-26 21:39:11 +02:00
.post-interactions
2015-07-27 12:15:24 +02:00
margin: 10px 0 3px 0
text-align: right
2015-08-01 22:52:31 +02:00
height: .8rem
line-height: .8rem
2015-07-27 12:15:24 +02:00
span
color: lighten($dark-grey,30%)
cursor: pointer
2015-08-01 22:52:31 +02:00
font-size: .8rem
line-height: .8rem
@extend .ion
2015-07-31 10:58:25 +02:00
position: relative
margin-left: 7px
display: none
2015-08-01 22:52:31 +02:00
.open .original &
display: inline-block!important
2015-07-27 12:15:24 +02:00
&:hover
color: lighten($dark-grey,5%)
2015-08-01 22:52:31 +02:00
&:before
padding: 3px
2015-07-31 10:58:25 +02:00
&.post-reply
2015-08-01 22:52:31 +02:00
@extend .ion-plus
2015-07-31 10:58:25 +02:00
&.post-propagate
2015-08-01 22:52:31 +02:00
@extend .ion-shuffle
2015-07-31 10:58:25 +02:00
&.post-favorite
2015-08-01 22:52:31 +02:00
@extend .ion-alert
2015-07-26 21:39:11 +02:00
2015-07-31 10:58:25 +02:00
.post:hover &
2015-08-03 16:20:22 +02:00
.post-reply, .post-propagate , .post-favorite
2015-07-31 10:58:25 +02:00
display: inline-block
2015-07-26 21:39:11 +02:00
2015-08-01 22:52:31 +02:00
2015-07-26 21:39:11 +02:00
.open .related
2015-07-31 10:58:25 +02:00
.post-reply,
.post-propagate,
.post-favorite
2015-07-27 12:15:24 +02:00
display: none!important
&:hover
2015-07-31 10:58:25 +02:00
.post-reply,
2015-09-12 16:20:09 +02:00
.post-propagate,
.post-favorite
2015-07-27 12:15:24 +02:00
display: inline-block!important
2015-07-26 21:39:11 +02:00
.expanded-content
2015-07-31 10:58:25 +02:00
//display: none
padding: 0
2015-07-27 12:15:24 +02:00
@extend .clear-fix
2015-07-31 10:58:25 +02:00
textarea
clear: left
2015-07-28 10:40:52 +02:00
2015-07-26 21:39:11 +02:00
.image-preview
2015-07-28 10:40:52 +02:00
max-width: 100%
width: auto
2015-07-27 12:15:24 +02:00
display: block
margin: auto
2015-07-26 21:39:11 +02:00
.preview-container
2015-07-27 12:15:24 +02:00
width: 100%
text-align: center
overflow-y: auto
background: black
2015-08-01 22:52:31 +02:00
clear: both
2015-07-26 21:39:11 +02:00
.post-stats
2015-07-27 12:15:24 +02:00
float: left
2015-09-15 21:40:35 +02:00
clear: left
2015-07-27 12:15:24 +02:00
li
display: inline-block
&.stat-count
2015-07-31 10:58:25 +02:00
font-size: 12px
2015-07-27 12:15:24 +02:00
float: left
line-height: 20px
2015-08-01 22:52:31 +02:00
@extend .ion-shuffle
@extend .ion
2015-07-31 10:58:25 +02:00
&:before
margin-right: 0
span:last-child
display: none
2015-07-27 12:15:24 +02:00
a
position: relative
text-decoration: none
display: inline-block
width: 20px
height: 20px
2015-07-31 10:58:25 +02:00
margin: 0 2px 0 0
2015-07-27 12:15:24 +02:00
img
width: 20px
height: 20px
2015-07-31 10:58:25 +02:00
+border-radius(3px)
2015-07-26 21:39:11 +02:00
2015-07-31 10:58:25 +02:00
//what appears on top of .avatar-row img on hover
.avatar-row
margin-left: 5px
a:hover
.user-name-tooltip
display: block
.user-name-tooltip
display: none
2015-07-27 12:15:24 +02:00
position: absolute
2015-07-31 10:58:25 +02:00
background: $main-color-dark
font-size: 11px
line-height: 11px
white-space: nowrap
padding: 5px
+border-radius(3px)
color: #fff
top: -32px
left: -10px
&:after
content: ""
position: absolute
width: 0
left: 13px
bottom: -5px
border-top: solid 5px $main-color-dark
border-left: solid 5px transparent
border-right: solid 5px transparent
// Posts replies get left border to show threads
2015-07-26 21:39:11 +02:00
.post-replies .sub-replies
2015-07-31 10:58:25 +02:00
border-left: solid 18px transparent
2015-07-27 12:15:24 +02:00
.post-rt-reference
2015-08-21 04:49:11 +02:00
padding: 10px
margin-top: 10px
position: relative
border: 1px solid #eee
2015-08-21 04:49:11 +02:00
+border-radius(3px)
&:hover
background-color: #FFF
cursor: pointer
.post-photo
2015-08-21 04:49:11 +02:00
display: none
.post-info-name
2015-08-21 04:28:55 +02:00
font-size: 12px
.post-text
2015-08-21 04:49:11 +02:00
margin: 5px 0 0 0
clear: both
2015-08-21 04:28:55 +02:00
font-size: 12px
line-height: 130%
.post-info-time
2015-09-12 19:26:35 +02:00
font-size: 80%
2015-08-31 14:57:56 +02:00
.post-area
2015-11-06 21:50:57 +05:00
padding-left: 0