-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Stopped design system CSS leaking on to other websites
- Loading branch information
Showing
92 changed files
with
65,691 additions
and
38,542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,55 @@ | ||
.wmnds-html { | ||
min-width: 320px; | ||
margin: 0; | ||
padding: 0; | ||
overflow-y: auto; | ||
color: get-color(text); | ||
background: get-color(background); | ||
font-family: $x-font-family; | ||
@include type-setting(0); | ||
scroll-behavior: smooth; | ||
} | ||
|
||
* { | ||
box-sizing: border-box; | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
color: get-color(text); | ||
font-family: $x-font-family; | ||
@include type-setting(0); | ||
} | ||
} | ||
|
||
li { | ||
margin-bottom: $size-xsm; | ||
} | ||
[class*="wmnds-"] { | ||
box-sizing: border-box; | ||
color: get-color(text); | ||
font-family: $x-font-family; | ||
@include type-setting(0); | ||
|
||
// Images | ||
img { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
// Images | ||
img { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
|
||
// Text highlighting color | ||
::-moz-selection { | ||
// Code for Firefox | ||
color: $white; | ||
background: get-color(primary); | ||
} | ||
// Text highlighting color | ||
::-moz-selection { | ||
// Code for Firefox | ||
color: $white; | ||
background: get-color(primary); | ||
} | ||
|
||
::selection { | ||
color: $white; | ||
background: get-color(primary); | ||
} | ||
::selection { | ||
color: $white; | ||
background: get-color(primary); | ||
} | ||
|
||
// Controls how elements look when focused (helps with accesibility/keyboard-only users) | ||
*:focus { | ||
outline: none; | ||
box-shadow: 0 0 0 2px $white, 0 0 0 4px get-color(secondary); | ||
} | ||
// Controls how elements look when focused (helps with accesibility/keyboard-only users) | ||
*:focus { | ||
outline: none; | ||
box-shadow: 0 0 0 2px $white, 0 0 0 4px get-color(secondary); | ||
} | ||
|
||
// This gets rid of firefox default focus dash-border | ||
*::-moz-focus-inner { | ||
border: 0; | ||
// This gets rid of firefox default focus dash-border | ||
*::-moz-focus-inner { | ||
border: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
// Global styles | ||
@import "utilities"; | ||
@import "typography"; | ||
|
||
@import "general"; | ||
@import "typography"; | ||
@import "lists"; | ||
|
||
@import "utilities"; | ||
// Grid | ||
@import "wmnds-grid/wmnds-grid"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,140 +1,125 @@ | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
color: get-color(text); | ||
font-family: $x-font-family; | ||
@include type-setting(0); | ||
} | ||
|
||
// Get rid of margin for the first header item in main content | ||
* { | ||
h1:first-child, | ||
h2:first-child, | ||
h3:first-child, | ||
h4:first-child { | ||
margin-top: 0; | ||
[class*="wmnds-"] { | ||
div, | ||
span, | ||
p, | ||
a { | ||
@include type-setting(0); | ||
} | ||
} | ||
|
||
.wmnds-grid h1[class*="wmnds-col"], | ||
.wmnds-grid .h1[class*="wmnds-col"], | ||
h1, | ||
.h1, | ||
.wmnds-grid h2[class*="wmnds-col"], | ||
.wmnds-grid .h2[class*="wmnds-col"], | ||
h2, | ||
.h2, | ||
.wmnds-grid h3[class*="wmnds-col"], | ||
.wmnds-grid .h3[class*="wmnds-col"], | ||
h3, | ||
.h3, | ||
.wmnds-grid h4[class*="wmnds-col"], | ||
.wmnds-grid .h4[class*="wmnds-col"], | ||
h4, | ||
.h4 { | ||
font-family: $x-heading-font-family; | ||
} | ||
p, | ||
pre, | ||
table, | ||
blockquote { | ||
margin-top: 0; | ||
margin-bottom: $base-line-height; | ||
} | ||
|
||
div, | ||
span, | ||
li, | ||
ul, | ||
ol, | ||
p, | ||
a { | ||
@include type-setting(0); | ||
} | ||
// Let's make sure all's aligned | ||
sub, | ||
sup { | ||
position: relative; | ||
line-height: 0; | ||
vertical-align: baseline; | ||
} | ||
|
||
h1, | ||
.h1 { | ||
color: get-color(primary); | ||
@include type-setting(1, 0.85); | ||
// On desktop devices | ||
@media all and (min-width: $breakpoint-md) { | ||
@include type-setting(1); | ||
sup { | ||
top: -0.5em; | ||
} | ||
} | ||
|
||
h2, | ||
.h2 { | ||
color: get-color(primary); | ||
@include type-setting(2, 0.85); | ||
font-weight: bold; | ||
// On desktop devices | ||
@media all and (min-width: $breakpoint-md) { | ||
@include type-setting(2); | ||
sub { | ||
bottom: -0.25em; | ||
} | ||
} | ||
|
||
h3, | ||
.h3 { | ||
color: inherit; | ||
@include type-setting(3); | ||
font-weight: bold; | ||
} | ||
// Set heading font for heading elements | ||
h1, | ||
h1[class*="wmnds-col"], | ||
h2, | ||
h2[class*="wmnds-col"], | ||
h3, | ||
h3[class*="wmnds-col"], | ||
h4, | ||
h4[class*="wmnds-col"] { | ||
font-family: $x-heading-font-family; | ||
} | ||
|
||
h4, | ||
.h4 { | ||
color: inherit; | ||
@include type-setting(4); | ||
font-weight: bold; | ||
h1, | ||
&.wmnds-h1 { | ||
color: get-color(primary); | ||
@include type-setting(1, 0.85); | ||
// On desktop devices | ||
@media all and (min-width: $breakpoint-md) { | ||
@include type-setting(1); | ||
} | ||
} | ||
|
||
&.wmnds-weight-400 { | ||
font-weight: normal; | ||
h2, | ||
&.wmnds-h2 { | ||
color: get-color(primary); | ||
@include type-setting(2, 0.85); | ||
font-weight: bold; | ||
// On desktop devices | ||
@media all and (min-width: $breakpoint-md) { | ||
@include type-setting(2); | ||
} | ||
} | ||
} | ||
|
||
h5, | ||
.h5 { | ||
@include type-setting(5); | ||
font-weight: bold; | ||
} | ||
h3, | ||
&.wmnds-h3 { | ||
color: inherit; | ||
@include type-setting(3); | ||
font-weight: bold; | ||
} | ||
|
||
h6, | ||
.h6 { | ||
@include type-setting(5); | ||
font-weight: normal; | ||
} | ||
h4, | ||
&.wmnds-h4 { | ||
color: inherit; | ||
@include type-setting(4); | ||
font-weight: bold; | ||
|
||
.h2 > *, | ||
.h3 > *, | ||
.h4 > *, | ||
.h5 > * { | ||
color: initial; | ||
font-weight: initial; | ||
} | ||
&.wmnds-weight-400 { | ||
font-weight: normal; | ||
} | ||
} | ||
|
||
p, | ||
ul, | ||
ol, | ||
pre, | ||
table, | ||
blockquote { | ||
margin-top: 0; | ||
margin-bottom: $base-line-height; | ||
} | ||
h5, | ||
&.wmnds-h5 { | ||
@include type-setting(5); | ||
font-weight: bold; | ||
} | ||
|
||
ul ul, | ||
ol ol, | ||
ul ol, | ||
ol ul { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
} | ||
h6, | ||
&.wmnds-h6 { | ||
@include type-setting(5); | ||
font-weight: normal; | ||
} | ||
|
||
// Let's make sure all's aligned | ||
sub, | ||
sup { | ||
position: relative; | ||
line-height: 0; | ||
vertical-align: baseline; | ||
&.wmnds-h2 > *, | ||
&.wmnds-h3 > *, | ||
&.wmnds-h4 > *, | ||
&.wmnds-h5 > * { | ||
color: initial; | ||
font-weight: initial; | ||
} | ||
} | ||
|
||
sup { | ||
top: -0.5em; | ||
// Set heading font for heading elements | ||
.wmnds-h1[class*="wmnds-"], | ||
.wmnds-h2[class*="wmnds-"], | ||
.wmnds-h3[class*="wmnds-"], | ||
.wmnds-h4[class*="wmnds-"] { | ||
font-family: $x-heading-font-family; | ||
} | ||
|
||
sub { | ||
bottom: -0.25em; | ||
* { | ||
h1:first-child, | ||
h2:first-child, | ||
h3:first-child, | ||
h4:first-child, | ||
h1:first-child[class*="wmnds-"], | ||
h2:first-child[class*="wmnds-"], | ||
h3:first-child[class*="wmnds-"], | ||
h4:first-child[class*="wmnds-"] { | ||
margin-top: 0; | ||
} | ||
} |
Oops, something went wrong.