mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00

Also: - create additional and missing widget styles and tweak existing ones - use single profile entry to set widget styles and reduce choices to Anki and Native
45 lines
797 B
SCSS
45 lines
797 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;
|
|
border: none;
|
|
background: none;
|
|
&:hover {
|
|
background: var(--button-bg);
|
|
}
|
|
font-weight: 500;
|
|
padding: 8px 10px;
|
|
margin: 0 4px;
|
|
|
|
.fancy & {
|
|
@include button.base;
|
|
border-radius: var(--border-radius-large);
|
|
@include elevation(1, $opacity-boost: -0.08);
|
|
&:hover {
|
|
@include elevation(2);
|
|
transition: box-shadow var(--transition) linear;
|
|
}
|
|
}
|
|
}
|