This commit is contained in:
parent
0aa165919c
commit
4a56cae387
3 changed files with 19 additions and 17 deletions
|
|
@ -60,27 +60,30 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* disable window animations */
|
||||
/* disable window animations
|
||||
copy pasted from "@media (prefers-reduced-motion: reduce)" in base.css */
|
||||
:root:has(#disable-animations:checked) {
|
||||
.window {
|
||||
body {
|
||||
background: var(--background) !important;
|
||||
animation: unset !important;
|
||||
transition: unset !important;
|
||||
-moz-animation: unset !important;
|
||||
-webkit-animation: unset !important;
|
||||
}
|
||||
|
||||
.window:hover {
|
||||
transition: unset !important;
|
||||
/* animations aren't important for anything so we can simply just disable them on every element then choose which ones not to disable */
|
||||
* {
|
||||
transition: none !important;
|
||||
animation: unset !important;
|
||||
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px !important;
|
||||
-moz-animation: unset !important;
|
||||
-webkit-animation: unset !important;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
transition: unset !important;
|
||||
/* fedi icon on /me should keep its animation (temp, find a better solution later) */
|
||||
.fedi-icon {
|
||||
animation: opacity-blink 4s infinite !important;
|
||||
}
|
||||
|
||||
.navbar:hover {
|
||||
transition: unset !important;
|
||||
animation: unset !important;
|
||||
background-color: color-mix(in srgb, var(--accent) 30%, transparent) !important;
|
||||
.fedi-icon-2 {
|
||||
animation: opacity-blink-reverse 4s infinite !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -159,12 +159,12 @@
|
|||
outline-color: color-mix(in srgb, var(--accent) 60%, transparent);
|
||||
padding: unset !important; /* unset the padding for the button itself so the button can take the padding to make the entire button clickable */
|
||||
|
||||
input[type="checkbox"] {
|
||||
input[type="checkbox"]#nav-settings-menu {
|
||||
left: -100vw;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
label {
|
||||
label[data-toggle="nav-settings"] {
|
||||
cursor: pointer;
|
||||
overflow: hidden !important;
|
||||
padding: .3rem .5rem !important;
|
||||
|
|
@ -178,7 +178,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
label:hover {
|
||||
label[data-toggle="nav-settings"]:hover {
|
||||
[class^="tabler--"] {
|
||||
transform: translateY(.1rem) scale(1.5) rotate(360deg);
|
||||
transition: all 1.3s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue