mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00

* Use button gradient only on hover
* Apply hover effect to main window buttons
* Apply arbitrary change to force recreation of colors.py
* Undo arbitrary change to fix props not being created
* Remember that the comments are used for regex matching
* Yet another try
* Revert "Yet another try"
This reverts commit eaef4805c1
.
* Update _root-vars.scss
38 lines
637 B
SCSS
38 lines
637 B
SCSS
@use "vars";
|
|
@use "button-mixins" as button;
|
|
@use "elevation" as *;
|
|
|
|
:root {
|
|
--focus-color: #{vars.palette-of(shadow-focus)};
|
|
|
|
.isMac {
|
|
--focus-color: rgba(0 103 244 / 0.247);
|
|
}
|
|
}
|
|
|
|
.isWin {
|
|
button {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
.isMac {
|
|
button {
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
button {
|
|
outline: none !important;
|
|
@include button.base;
|
|
border-radius: var(--border-radius-large);
|
|
padding: 8px 10px;
|
|
font-weight: 500;
|
|
margin: 0 4px;
|
|
|
|
@include elevation(1, $opacity-boost: -0.08);
|
|
&:hover {
|
|
@include elevation(2);
|
|
transition: box-shadow 0.2s linear;
|
|
}
|
|
}
|