Skip to content

Commit 1c0b7db

Browse files
committed
✨ feat(default.scss): Support overridable default focus outline color/shadow
1 parent 9dfac0f commit 1c0b7db

6 files changed

Lines changed: 12557 additions & 12547 deletions

File tree

dist/cirrus-core.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,8 @@ pre > code[data-lang]:not([data-lang=""]) {
744744
--font-size-m: 1rem;
745745
--font-size-l: 1.25rem;
746746
--font-size-xl: 1.5rem;
747+
--cirrus-focus-size: 0 0 0.1rem 0.15rem;
748+
--cirrus-focus-color: rgba(240, 61, 77, 0.13);
747749
}
748750

749751
* {
@@ -846,7 +848,7 @@ fieldset legend {
846848

847849
/* When focusing any element */
848850
:focus {
849-
box-shadow: 0 0 0.1rem 0.15rem rgba(240, 61, 77, 0.13);
851+
box-shadow: var(--cirrus-focus-size) var(--cirrus-focus-color);
850852
outline: none;
851853
}
852854
@import url("https://fonts.googleapis.com/css?family=Nunito:200,300,400,600,700");

dist/cirrus-core.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)