mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 03:35:43 +08:00
A more subtle mobile lightbox hint
This commit is contained in:
parent
15f657309a
commit
7deb86ad8b
app/assets/stylesheets
@ -3,7 +3,7 @@
|
||||
display: inline-block;
|
||||
|
||||
&:hover .meta {
|
||||
opacity: 1;
|
||||
opacity: 0.9;
|
||||
transition: opacity 0.5s;
|
||||
}
|
||||
}
|
||||
@ -20,8 +20,8 @@
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
color: dark-light-choose($secondary, $primary);
|
||||
background: dark-light-choose($primary, lighten($secondary, 10%));
|
||||
color: $secondary;
|
||||
background: $primary;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s;
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
}
|
||||
|
||||
.filename {
|
||||
margin: 5px;
|
||||
margin: 6px 6px 2px 6px;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
@ -45,7 +45,7 @@
|
||||
.informations {
|
||||
margin: 6px;
|
||||
padding-right: 20px;
|
||||
color: blend-primary-secondary(50%);
|
||||
color: $secondary-high;
|
||||
font-size: $font-0;
|
||||
}
|
||||
|
||||
@ -59,8 +59,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// this should be removed once all the posts have been rebaked with the new lightboxes overlays
|
||||
.lightbox > span {
|
||||
display: none;
|
||||
}
|
||||
|
@ -1,21 +1,21 @@
|
||||
.lightbox .meta,
|
||||
.lightbox:hover .meta {
|
||||
opacity: 0.8;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: $secondary;
|
||||
color: $primary-high;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
.filename,
|
||||
.informations {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.expand {
|
||||
bottom: 1px;
|
||||
right: 6px;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user