mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 01:32:23 +08:00
174d392e5a
Run `prettier --write "app/assets/stylesheets/**/*.scss" "plugins/**/*.scss"` after making sure you installed it with `yarn` It's recommended to configure your editor to run prettier on file save.
67 lines
1.1 KiB
SCSS
67 lines
1.1 KiB
SCSS
.lightbox {
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
&:hover .meta {
|
|
opacity: 1;
|
|
transition: opacity 0.5s;
|
|
}
|
|
}
|
|
|
|
.lightbox-wrapper {
|
|
display: inline-block;
|
|
&,
|
|
* {
|
|
outline: 0;
|
|
}
|
|
}
|
|
|
|
.meta {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
color: dark-light-choose($secondary, $primary);
|
|
background: dark-light-choose($primary, lighten($secondary, 10%));
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
|
|
span {
|
|
float: left;
|
|
}
|
|
|
|
.filename {
|
|
margin: 5px;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
&:before {
|
|
font-family: "FontAwesome";
|
|
content: "\F03E";
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
.informations {
|
|
margin: 6px;
|
|
padding-right: 20px;
|
|
color: blend-primary-secondary(50%);
|
|
font-size: $font-0;
|
|
}
|
|
|
|
.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;
|
|
}
|