Media comment embedded in picture
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
.lightboxOverlay {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.lightbox {
|
||||
|
||||
@@ -302,8 +302,14 @@ $legend-color: $post-color;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
.body-box {
|
||||
position:relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.post {
|
||||
.post-item {
|
||||
margin-bottom: $block-spacing;
|
||||
background: $post-bg;
|
||||
color: $post-color;
|
||||
@@ -316,7 +322,7 @@ $legend-color: $post-color;
|
||||
}
|
||||
|
||||
.message {
|
||||
margin: 0.3em 0 0 0;
|
||||
margin: 0;
|
||||
}
|
||||
.signature {
|
||||
margin: 0.5em 0 0 0;
|
||||
@@ -324,29 +330,33 @@ $legend-color: $post-color;
|
||||
font-style: italic;
|
||||
}
|
||||
.header {
|
||||
font-style: italic;
|
||||
font-size: 0.8em;
|
||||
padding: 0.5em 1em;
|
||||
line-height: 1em;
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
cursor: default;
|
||||
font-size: 0.8em;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
|
||||
&.index {
|
||||
width: 25%;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
&.time {
|
||||
width: 75%;
|
||||
text-align: right;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
}
|
||||
.body {
|
||||
clear: both;
|
||||
padding: 0em 1em 0.5em;
|
||||
padding: 0em 1em 1em;
|
||||
}
|
||||
|
||||
&.headerless {
|
||||
.header {
|
||||
display: none;
|
||||
@@ -355,52 +365,16 @@ $legend-color: $post-color;
|
||||
padding-top: 0.5em;
|
||||
}
|
||||
}
|
||||
&.media {
|
||||
background: $media-bg;
|
||||
color: $media-color;
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
line-height: 0;
|
||||
margin: 0;
|
||||
|
||||
&.drill {
|
||||
font-size: 3em;
|
||||
|
||||
.fa-drill-picture {
|
||||
color: transparent;
|
||||
}
|
||||
.fa-drill-video {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.fa-drill-picture, .fa-drill-video {
|
||||
color: rgba($media-bg, 0.75);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
image-orientation: from-image;
|
||||
outline: none;
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
text-align: justify;
|
||||
}
|
||||
}
|
||||
|
||||
&.message {
|
||||
background: $message-bg;
|
||||
color: $message-color;
|
||||
|
||||
p {
|
||||
font-size: 0.9em;
|
||||
margin: 0.5em 0;
|
||||
margin: 0 0 .5em 0;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -408,6 +382,8 @@ $legend-color: $post-color;
|
||||
}
|
||||
|
||||
a.drill {
|
||||
line-height: 0;
|
||||
|
||||
.drill-icon {
|
||||
transform: translate(-16px, -32px);
|
||||
|
||||
@@ -435,6 +411,74 @@ $legend-color: $post-color;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
&.post {
|
||||
.body {
|
||||
padding: 0em 1em 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
&.media {
|
||||
background: $media-bg;
|
||||
color: $media-color;
|
||||
|
||||
.body {
|
||||
a {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
color: $media-color;
|
||||
position: relative;
|
||||
line-height: 0;
|
||||
|
||||
&.drill {
|
||||
&:hover {
|
||||
.drill-icon .fa-drill-picture, .drill-icon .fa-drill-video {
|
||||
color: rgba($media-bg, 0.75);
|
||||
}
|
||||
.comment {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.drill-icon {
|
||||
font-size: 3em;
|
||||
|
||||
.fa-drill-picture {
|
||||
color: transparent;
|
||||
}
|
||||
.fa-drill-video {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
image-orientation: from-image;
|
||||
outline: none;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.comment {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
line-height: normal;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
text-align: justify;
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border-radius: 0 0 3px 3px;
|
||||
transition: all 0.3s;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.loading {
|
||||
.body {
|
||||
text-align: center;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user