mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 07:18:06 +08:00
UX: do not show shadow on hover images on touch devices (#8429)
This commit is contained in:
parent
d10f55c3e9
commit
7fc99f5e7b
|
@ -73,15 +73,17 @@ $meta-element-margin: 6px;
|
|||
margin: auto;
|
||||
}
|
||||
|
||||
@if is-light-color-scheme() {
|
||||
a.lightbox {
|
||||
-webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||
transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||
}
|
||||
.discourse-no-touch {
|
||||
@if is-light-color-scheme() {
|
||||
a.lightbox {
|
||||
-webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||
transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||
}
|
||||
|
||||
a.lightbox:hover {
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 2px 5px 0 rgba($primary, 0.2),
|
||||
0 2px 10px 0 rgba($primary, 0.2);
|
||||
a.lightbox:hover {
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 2px 5px 0 rgba($primary, 0.2),
|
||||
0 2px 10px 0 rgba($primary, 0.2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user