diff options
author | 0neGal <mail@0negal.com> | 2024-02-04 00:30:46 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-02-04 15:30:14 +0100 |
commit | ceda605611c9ec2fbe858f3ae29942d56a06ac66 (patch) | |
tree | f36d3bc8edb8697fb94a2fc729557e4b28e5ff73 /src/app/css | |
parent | a12be054d2352f4a9c6613b460a8ae63bf5bfb7a (diff) | |
download | Viper-ceda605611c9ec2fbe858f3ae29942d56a06ac66.tar.gz Viper-ceda605611c9ec2fbe858f3ae29942d56a06ac66.zip |
added icons to more buttons
Diffstat (limited to 'src/app/css')
-rw-r--r-- | src/app/css/grid.css | 1 | ||||
-rw-r--r-- | src/app/css/launcher.css | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/src/app/css/grid.css b/src/app/css/grid.css index d44784b..188f32a 100644 --- a/src/app/css/grid.css +++ b/src/app/css/grid.css @@ -78,6 +78,7 @@ } .popup .misc button img { + margin: 0px; opacity: 0.6; width: var(--height); transform: scale(0.5); diff --git a/src/app/css/launcher.css b/src/app/css/launcher.css index 913e732..c43bce1 100644 --- a/src/app/css/launcher.css +++ b/src/app/css/launcher.css @@ -285,6 +285,40 @@ background: rgb(var(--red)) !important; } +button:has(img):not(img:only-child) { + top: 2px; + position: relative; + align-items: center; + display: inline-flex; + justify-content: center; +} + +button:has(img):not(img:only-child) img { + width: 1em; + height: 1em; + height: fit-content; + margin-right: calc(var(--padding) / 3) +} + +button:has(img):has(span) img { + opacity: 0.0; + transition: opacity 0.2s ease-in-out; +} + +button:has(img):has(span):hover img { + opacity: 1.0; +} + +button:has(img):has(span) span { + right: 0.8em; + position: relative; + transition: right 0.2s ease-in-out; +} + +button:has(img):has(span):hover span { + right: 0.1em; +} + button:disabled { opacity: 0.5; pointer-events: none; |