mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

@hgiesel in buttons.scss I access the color palette directly. Is this what you meant by "... keep it local to the component, and possibly make it global at a later time ..."?
27 lines
695 B
SCSS
27 lines
695 B
SCSS
/* Copyright: Ankitects Pty Ltd and contributors
|
|
* License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html */
|
|
|
|
@use "vars" as *;
|
|
|
|
$tooltip-padding-y: 0.45rem;
|
|
$tooltip-padding-x: 0.65rem;
|
|
$tooltip-max-width: 300px;
|
|
|
|
@import "sass/bootstrap/scss/tooltip";
|
|
|
|
.tooltip-inner {
|
|
text-align: start;
|
|
|
|
// marked transpiles tooltips into multiple paragraphs
|
|
// where trailing <p>s cause a bottom margin
|
|
> p:last-child {
|
|
display: inline;
|
|
}
|
|
|
|
// the default code color in tooltips is difficult to read; we'll probably
|
|
// want to add more of our own styling in the future
|
|
code {
|
|
color: palette(red, 0);
|
|
direction: inherit;
|
|
}
|
|
}
|