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

64 lines
1.1 KiB
SCSS
Raw Normal View History

2013-09-05 15:37:07 -04:00
.lightbox {
position: relative;
display: inline-block;
&:hover .meta {
opacity: 1;
2014-12-23 06:09:17 -05:00
transition: opacity .5s;
2013-09-05 15:37:07 -04:00
}
}
.lightbox-wrapper {
display: inline-block;
2015-03-16 17:38:33 -04:00
&, * { outline: 0; }
}
2013-09-05 15:37:07 -04:00
.meta {
position: absolute;
bottom: 0;
width: 100%;
2015-08-18 17:09:20 -04:00
color: dark-light-choose($secondary, $primary);
background: dark-light-choose($primary, lighten($secondary, 10%));
2013-09-05 15:37:07 -04:00
opacity: 0;
2014-12-23 06:09:17 -05:00
transition: opacity .2s;
2013-09-05 15:37:07 -04:00
span {
float: left;
}
.filename {
margin: 5px;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
2013-09-05 15:37:07 -04:00
&:before {
font-family: "FontAwesome";
content: "\F03E";
margin-right: 5px;
}
}
.informations {
margin: 6px;
padding-right: 20px;
2017-06-11 22:20:14 -04:00
color: blend-primary-secondary(50%);
2018-01-12 17:27:38 -05:00
font-size: $font-0;
2013-09-05 15:37:07 -04: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;
}