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

59 lines
951 B
SCSS
Raw Normal View History

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