discourse/app/assets/stylesheets/common/base/lightbox.scss

60 lines
963 B
SCSS
Raw Normal View History

2013-09-06 03:37:07 +08:00
.lightbox {
position: relative;
display: inline-block;
&:hover .meta {
background: $primary;
2013-09-06 03:37:07 +08:00
opacity: 1;
@include transition(opacity .5s);
}
}
.lightbox-wrapper {
display: inline-block;
}
2013-09-06 03:37:07 +08:00
.meta {
position: absolute;
bottom: 0;
width: 100%;
color: $secondary;
background: $primary;
2013-09-06 03:37:07 +08:00
opacity: 0;
@include transition(opacity .2s);
span {
float: left;
}
.filename {
margin: 5px;
&:before {
font-family: "FontAwesome";
content: "\F03E";
margin-right: 5px;
}
}
.informations {
margin: 6px;
padding-right: 20px;
2014-08-10 06:21:53 +08:00
color: scale-color($primary, $lightness: 50%);
font-size: 1em;
2013-09-06 03:37:07 +08:00
}
.expand {
position: absolute;
bottom: 4px;
right: 7px;
&:before {
font-family: "FontAwesome";
content: "\F065";
}
}
}
// this should be removed once all the posts have been rebaked with the new lightboxes overlays
.lightbox > span {
display: none;
}