Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/elements/common/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@import '../../styles/inputs';

$font: lato, 'Helvetica Neue', helvetica, arial, sans-serif;
$fontComicSans: 'Comic Sans MS', cursive;
$minimumWidth: 300px;
$sidebarHeaderHeight: 60px;
$sidebarSubHeaderHeight: 56px;
Expand All @@ -28,6 +29,10 @@ $sidebarTabResponsiveSize: 48px;
/* stylelint-enable declaration-no-important */
font-family: $font;

:where(body.is-comic-sans) & {
font-family: $fontComicSans;
}

* {
@include rendering;

Expand All @@ -54,4 +59,8 @@ $sidebarTabResponsiveSize: 48px;
// Firefox sets opacity for placeholder to less than 100%
// See https://developer.mozilla.org/en-US/docs/Web/CSS/::placeholder#opaque_text
opacity: 1;

:where(body.is-comic-sans) & {
font-family: $fontComicSans;
}
}
5 changes: 5 additions & 0 deletions src/styles/mixins/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

@mixin font-family {
font-family: Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;

&:where(body.is-comic-sans),
:where(body.is-comic-sans) & {
font-family: 'Comic Sans MS', cursive;
}
}

@mixin font-aliasing {
Expand Down
Loading