mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Center add-on icons and allow text buttons to expand in width (#2138)
* Fix text buttons not expanding in width * Adjust icon and font size of add-on buttons
This commit is contained in:
parent
8b53b2210d
commit
2971eb9660
1 changed files with 15 additions and 12 deletions
|
@ -4,24 +4,27 @@
|
||||||
@use "sass:color";
|
@use "sass:color";
|
||||||
@use "sass/button-mixins" as button;
|
@use "sass/button-mixins" as button;
|
||||||
|
|
||||||
$size: var(--buttons-size);
|
|
||||||
$padding: 2px;
|
|
||||||
|
|
||||||
.linkb {
|
.linkb {
|
||||||
|
$size: var(--buttons-size);
|
||||||
|
|
||||||
@include button.base;
|
@include button.base;
|
||||||
@include button.border-radius;
|
@include button.border-radius;
|
||||||
|
|
||||||
width: $size;
|
min-width: $size;
|
||||||
height: $size;
|
height: $size;
|
||||||
padding: $padding;
|
|
||||||
font-size: calc($size * 0.6);
|
font-size: calc($size * 0.6);
|
||||||
}
|
position: relative;
|
||||||
|
|
||||||
img.topbut {
|
img.topbut {
|
||||||
max-width: calc($size - 2 * $padding);
|
$padding: 4px;
|
||||||
max-height: calc($size - 2 * $padding);
|
$icon-size: calc(100% - 2 * $padding);
|
||||||
vertical-align: baseline;
|
|
||||||
.nightMode & {
|
position: absolute;
|
||||||
filter: invert(1);
|
height: $icon-size;
|
||||||
|
width: $icon-size;
|
||||||
|
inset: $padding;
|
||||||
|
.nightMode & {
|
||||||
|
filter: invert(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue