Anki/ts/editor/legacy.scss
Henrik Giesel c9bd39c6a2
Several editor fixes (#1478)
* Declare toolbar api via modifiable property

* Fix addon buttons

* Assign editing areas in a synchronous way

* Restore the Tab shortcut that moves the caret to end

- moveCaretToEnd is called twice now: The moveCaretToEnd calls in
  *TextInput causes the caret to be moved to the end when switching back
  from the window and back.
- To fix this, I will need the code for saving and restoring locations
  from #1377

* Restore selections in the PlainTextInput

* Improve type safety of destroyable

- clearable-array was renamed to destroyable
2021-11-05 11:29:02 +10:00

56 lines
1.5 KiB
SCSS

.linkb {
display: inline-block;
min-width: calc(var(--buttons-size) - 2px);
min-height: calc(var(--buttons-size) - 2px);
background-color: white;
border: 1px solid var(--medium-border);
padding: 0 !important;
margin-left: -1px;
/* !important cannot be used with @include */
border-top-left-radius: var(--border-left-radius) !important;
border-bottom-left-radius: var(--border-left-radius) !important;
border-top-right-radius: var(--border-right-radius) !important;
border-bottom-right-radius: var(--border-right-radius) !important;
&:hover {
background-color: #ebebeb;
}
&:active,
&:active:hover {
background-color: white;
box-shadow: inset 0 calc(var(--buttons-size) / 15) calc(var(--buttons-size) / 5)
rgba(0, 0, 0, 0.25);
}
.nightMode & {
background: linear-gradient(0deg, #555555 0%, #656565 100%);
border-width: 0px;
margin-left: 1px;
&:hover {
background: #7a7a7a;
border-color: #7a7a7a;
}
&:active,
&:active:hover {
box-shadow: inset 0 calc(var(--buttons-size) / 15)
calc(var(--buttons-size) / 5) rgba(0, 0, 0, 0.35);
border-color: #525252;
}
}
}
.topbut {
display: inline-block;
vertical-align: baseline;
width: calc(var(--buttons-size) - 12px);
height: calc(var(--buttons-size) - 12px);
}
.nightMode img.topbut {
filter: invert(1);
}