discourse/app/assets/stylesheets/application/lightbox.css.scss

59 lines
951 B
SCSS
Raw Normal View History

2013-06-21 12:29:40 -04:00
@import "foundation/variables";
@import "foundation/mixins";
.lightbox {
position: relative;
2013-06-25 20:44:20 -04:00
display: inline-block;
2013-06-21 12:29:40 -04:00
2013-06-25 20:44:20 -04:00
&:hover .meta {
background: rgba(0, 0, 0, .5);
2013-06-21 12:29:40 -04:00
opacity: 1;
2013-06-25 20:44:20 -04:00
@include transition(opacity .5s);
2013-06-21 12:29:40 -04:00
}
2013-06-25 20:44:20 -04:00
}
2013-06-21 12:29:40 -04:00
2013-06-25 20:44:20 -04:00
.meta {
position: absolute;
bottom: 0;
width: 100%;
color: white;
background: black;
opacity: 0;
@include transition(opacity .2s);
2013-06-21 12:29:40 -04:00
2013-06-25 20:44:20 -04:00
span {
float: left;
}
2013-06-21 12:29:40 -04:00
2013-06-25 20:44:20 -04:00
.filename {
margin: 5px;
&:before {
font-family: "FontAwesome";
content: "\F03E";
margin-right: 5px;
2013-06-21 12:29:40 -04:00
}
}
2013-06-25 20:44:20 -04:00
.informations {
margin: 6px;
padding-right: 20px;
color: $dark_gray;
font-size: 14px;
}
2013-06-21 12:29:40 -04:00
2013-06-25 20:44:20 -04:00
.expand {
position: absolute;
bottom: 4px;
right: 7px;
&:before {
font-family: "FontAwesome";
content: "\F065";
2013-06-21 12:29:40 -04:00
}
}
}
2013-06-25 20:44:20 -04:00
// this should be removed once all the posts have been rebaked with the new lightboxes overlays
.lightbox > span {
display: none;
}