Add css variable support

This commit is contained in:
CJ Patoilo 2020-08-18 00:01:33 -03:00
parent 9a566d2155
commit 4841f8184e
13 changed files with 76 additions and 59 deletions

65
dist/milligram.css vendored
View File

@ -6,6 +6,15 @@
* Licensed under the MIT license * Licensed under the MIT license
*/ */
:root {
--color-initial: #fff;
--color-primary: #9b4dca;
--color-secondary: #606c76;
--color-tertiary: #f4f5f6;
--color-quaternary: #d1d1d1;
--color-quinary: #e1e1e1;
}
*, *,
*:after, *:after,
*:before { *:before {
@ -18,7 +27,7 @@ html {
} }
body { body {
color: #606c76; color: var(--color-secondary);
font-family: "Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif; font-family: "Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-size: 1.6em; font-size: 1.6em;
font-weight: 300; font-weight: 300;
@ -27,7 +36,7 @@ body {
} }
blockquote { blockquote {
border-left: 0.3rem solid #d1d1d1; border-left: 0.3rem solid var(--color-quaternary);
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
@ -41,10 +50,10 @@ button,
input[type=button], input[type=button],
input[type=reset], input[type=reset],
input[type=submit] { input[type=submit] {
background-color: #9b4dca; background-color: var(--color-primary);
border: 0.1rem solid #9b4dca; border: 0.1rem solid var(--color-primary);
border-radius: 0.4rem; border-radius: 0.4rem;
color: #fff; color: var(--color-initial);
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-size: 1.1rem; font-size: 1.1rem;
@ -67,9 +76,9 @@ input[type=reset]:focus,
input[type=reset]:hover, input[type=reset]:hover,
input[type=submit]:focus, input[type=submit]:focus,
input[type=submit]:hover { input[type=submit]:hover {
background-color: #606c76; background-color: var(--color-secondary);
border-color: #606c76; border-color: var(--color-secondary);
color: #fff; color: var(--color-initial);
outline: 0; outline: 0;
} }
.button[disabled], .button[disabled],
@ -89,8 +98,8 @@ input[type=reset][disabled]:focus,
input[type=reset][disabled]:hover, input[type=reset][disabled]:hover,
input[type=submit][disabled]:focus, input[type=submit][disabled]:focus,
input[type=submit][disabled]:hover { input[type=submit][disabled]:hover {
background-color: #9b4dca; background-color: var(--color-primary);
border-color: #9b4dca; border-color: var(--color-primary);
} }
.button.button-outline, .button.button-outline,
button.button-outline, button.button-outline,
@ -98,7 +107,7 @@ input[type=button].button-outline,
input[type=reset].button-outline, input[type=reset].button-outline,
input[type=submit].button-outline { input[type=submit].button-outline {
background-color: transparent; background-color: transparent;
color: #9b4dca; color: var(--color-primary);
} }
.button.button-outline:focus, .button.button-outline:hover, .button.button-outline:focus, .button.button-outline:hover,
button.button-outline:focus, button.button-outline:focus,
@ -110,8 +119,8 @@ input[type=reset].button-outline:hover,
input[type=submit].button-outline:focus, input[type=submit].button-outline:focus,
input[type=submit].button-outline:hover { input[type=submit].button-outline:hover {
background-color: transparent; background-color: transparent;
border-color: #606c76; border-color: var(--color-secondary);
color: #606c76; color: var(--color-secondary);
} }
.button.button-outline[disabled]:focus, .button.button-outline[disabled]:hover, .button.button-outline[disabled]:focus, .button.button-outline[disabled]:hover,
button.button-outline[disabled]:focus, button.button-outline[disabled]:focus,
@ -123,7 +132,7 @@ input[type=reset].button-outline[disabled]:hover,
input[type=submit].button-outline[disabled]:focus, input[type=submit].button-outline[disabled]:focus,
input[type=submit].button-outline[disabled]:hover { input[type=submit].button-outline[disabled]:hover {
border-color: inherit; border-color: inherit;
color: #9b4dca; color: var(--color-primary);
} }
.button.button-clear, .button.button-clear,
button.button-clear, button.button-clear,
@ -132,7 +141,7 @@ input[type=reset].button-clear,
input[type=submit].button-clear { input[type=submit].button-clear {
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
color: #9b4dca; color: var(--color-primary);
} }
.button.button-clear:focus, .button.button-clear:hover, .button.button-clear:focus, .button.button-clear:hover,
button.button-clear:focus, button.button-clear:focus,
@ -145,7 +154,7 @@ input[type=submit].button-clear:focus,
input[type=submit].button-clear:hover { input[type=submit].button-clear:hover {
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
color: #606c76; color: var(--color-secondary);
} }
.button.button-clear[disabled]:focus, .button.button-clear[disabled]:hover, .button.button-clear[disabled]:focus, .button.button-clear[disabled]:hover,
button.button-clear[disabled]:focus, button.button-clear[disabled]:focus,
@ -156,11 +165,11 @@ input[type=reset].button-clear[disabled]:focus,
input[type=reset].button-clear[disabled]:hover, input[type=reset].button-clear[disabled]:hover,
input[type=submit].button-clear[disabled]:focus, input[type=submit].button-clear[disabled]:focus,
input[type=submit].button-clear[disabled]:hover { input[type=submit].button-clear[disabled]:hover {
color: #9b4dca; color: var(--color-primary);
} }
code { code {
background: #f4f5f6; background: var(--color-tertiary);
border-radius: 0.4rem; border-radius: 0.4rem;
font-size: 86%; font-size: 86%;
margin: 0 0.2rem; margin: 0 0.2rem;
@ -169,8 +178,8 @@ code {
} }
pre { pre {
background: #f4f5f6; background: var(--color-tertiary);
border-left: 0.3rem solid #9b4dca; border-left: 0.3rem solid var(--color-primary);
overflow-y: hidden; overflow-y: hidden;
} }
pre > code { pre > code {
@ -182,7 +191,7 @@ pre > code {
hr { hr {
border: 0; border: 0;
border-top: 0.1rem solid #f4f5f6; border-top: 0.1rem solid var(--color-tertiary);
margin: 3rem 0; margin: 3rem 0;
} }
@ -204,7 +213,7 @@ textarea,
select { select {
-webkit-appearance: none; -webkit-appearance: none;
background-color: transparent; background-color: transparent;
border: 0.1rem solid #d1d1d1; border: 0.1rem solid var(--color-quaternary);
border-radius: 0.4rem; border-radius: 0.4rem;
box-shadow: none; box-shadow: none;
box-sizing: inherit; box-sizing: inherit;
@ -228,16 +237,16 @@ input[type=week]:focus,
input:not([type]):focus, input:not([type]):focus,
textarea:focus, textarea:focus,
select:focus { select:focus {
border-color: #9b4dca; border-color: var(--color-primary);
outline: 0; outline: 0;
} }
select { select {
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23d1d1d1" d="M0,0l6,8l6-8"/></svg>') center right no-repeat; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23ar(--color-quaternary)" d="M0,0l6,8l6-8"/></svg>') center right no-repeat;
padding-right: 3rem; padding-right: 3rem;
} }
select:focus { select:focus {
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%239b4dca" d="M0,0l6,8l6-8"/></svg>'); background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23ar(--color-primary)" d="M0,0l6,8l6-8"/></svg>');
} }
select[multiple] { select[multiple] {
background: none; background: none;
@ -422,11 +431,11 @@ input[type=file].input-file {
} }
} }
a { a {
color: #9b4dca; color: var(--color-primary);
text-decoration: none; text-decoration: none;
} }
a:focus, a:hover { a:focus, a:hover {
color: #606c76; color: var(--color-secondary);
} }
dl, dl,
@ -494,7 +503,7 @@ table {
td, td,
th { th {
border-bottom: 0.1rem solid #e1e1e1; border-bottom: 0.1rem solid var(--color-quinary);
padding: 1.2rem 1.5rem; padding: 1.2rem 1.5rem;
} }
td:first-child, td:first-child,

View File

@ -1 +1 @@
{"version":3,"sources":["../src/_Base.sass","milligram.css","../src/_Color.sass","../src/_Blockquote.sass","../src/_Button.sass","../src/_Code.sass","../src/_Divider.sass","../src/_Form.sass","../src/_Grid.sass","../src/_Link.sass","../src/_List.sass","../src/_Spacing.sass","../src/_Table.sass","../src/_Typography.sass","../src/_Image.sass","../src/_Utility.sass"],"names":[],"mappings":"AAKA;;;EAGE,mBAAA;ACJF;;ADQA;EACE,sBAAA;EACA,gBAAA;ACLF;;ADQA;EACE,cEZgB;EFahB,yEAAA;EACA,gBAAA;EACA,gBAAA;EACA,sBAAA;EACA,gBAAA;ACLF;;AEdA;EACE,iCAAA;EACA,cAAA;EACA,eAAA;EACA,oBAAA;AFiBF;AEfE;EACE,gBAAA;AFiBJ;;A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BAAA;AZ8fF;;AY5fA;EACE,iBAAA;EACA,iBAAA;EACA,gBAAA;AZ+fF;;Aa1iBA;EACE,eAAA;Ab6iBF;;Ac3iBE;EACE,WAAA;EACA,YAAA;EACA,cAAA;Ad8iBJ;;Ac3iBA;EACE,WAAA;Ad8iBF;;Ac5iBA;EACE,YAAA;Ad+iBF","file":"milligram.css"} {"version":3,"sources":["../src/_Color.sass","milligram.css","../src/_Base.sass","../src/_Blockquote.sass","../src/_Button.sass","../src/_Code.sass","../src/_Divider.sass","../src/_Form.sass","../src/_Grid.sass","../src/_Link.sass","../src/_List.sass","../src/_Spacing.sass","../src/_Table.sass","../src/_Typography.sass","../src/_Image.sass","../src/_Utility.sass"],"names":[],"mappings":"AAWA;EACE,qBAAA;EACA,wBAAA;EACA,0BAAA;EACA,yBAAA;EACA,2BAAA;EACA,wBAAA;ACVF;;ACFA;;;EAGE,mBAAA;ADKF;;ACDA;EACE,sBAAA;EACA,gBAAA;ADIF;;ACDA;EACE,6BAAA;EACA,yEAAA;EACA,gBAAA;EACA,gBAAA;EACA,sBAAA;EACA,gBAAA;ADIF;;AEvBA;EACE,iDAAA;EACA,cAAA;EACA,eAAA;EACA,oBAAA;AF0BF;AExBE;EACE,gBAAA;AF0BJ;;AGjCA;;;;;EAKE,sCAAA;EACA,yCAAA;EACA,qBAAA;EACA,2BAAA;EACA,eAAA;EACA,qBAAA;EACA,iBAAA;EACA,gBAAA;EACA,cAAA;EACA,sBAAA;EACA,mBAAA;EACA,eAAA;EACA,kBAAA;EACA,qBAAA;EACA,yBAAA;EACA,mBAAA;AHoCF;AGlCE;;;;;;;;;EAEE,wCAAA;EACA,oCAAA;EACA,2BAAA;EACA,UAAA;AH2CJ;AGzCE;;;;;EACE,eAAA;EACA,YAAA;AH+CJ;AG7CI;;;;;;;;;EAEE,sCAAA;EACA,kCAAA;AHsDN;AGpDE;;;;;EACE,6BAAA;EACA,2BAAA;AH0DJ;AGxDI;;;;;;;;;EAEE,6BAAA;EACA,o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AA;EACA,4BAAA;ATmbJ;;ASjbA;EACE,0BAAA;ATobF;;ASlbA;EACE,yBAAA;ATqbF;;AUtcA;;;;;EAKE,mBAAA;AVycF;;AUvcA;;;;EAIE,qBAAA;AV0cF;;AUxcA;;;;;;;;;EASE,qBAAA;AV2cF;;AWjeA;EACE,iBAAA;EACA,cAAA;EACA,gBAAA;EACA,gBAAA;EACA,WAAA;AXoeF;;AWleA;;EAEE,gDAAA;EACA,sBAAA;AXqeF;AWneE;;EACE,eAAA;AXseJ;AWpeE;;EACE,gBAAA;AXueJ;;AWreA;EAEE;IACE,cAAA;IACA,mBAAA;EXueF;AACF;AY9fA;;EAEE,iBAAA;AZggBF;;AY9fA;EACE,aAAA;AZigBF;;AY/fA;;;;;;EAME,gBAAA;EACA,uBAAA;EACA,mBAAA;EACA,aAAA;AZkgBF;;AYhgBA;EACE,iBAAA;EACA,gBAAA;AZmgBF;;AYjgBA;EACE,iBAAA;EACA,iBAAA;AZogBF;;AYlgBA;EACE,iBAAA;EACA,gBAAA;AZqgBF;;AYngBA;EACE,iBAAA;EACA,wBAAA;EACA,iBAAA;AZsgBF;;AYpgBA;EACE,iBAAA;EACA,wBAAA;EACA,gBAAA;AZugBF;;AYrgBA;EACE,iBAAA;EACA,iBAAA;EACA,gBAAA;AZwgBF;;AanjBA;EACE,eAAA;AbsjBF;;AcpjBE;EACE,WAAA;EACA,YAAA;EACA,cAAA;AdujBJ;;AcpjBA;EACE,WAAA;AdujBF;;AcrjBA;EACE,YAAA;AdwjBF","file":"milligram.css"}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"version":3,"sources":["../src/_Base.sass","../src/_Color.sass","../src/_Blockquote.sass","../src/_Button.sass","../src/_Code.sass","../src/_Divider.sass","../src/_Form.sass","../src/_Grid.sass","../src/_Link.sass","../src/_List.sass","../src/_Spacing.sass","../src/_Table.sass","../src/_Typography.sass","../src/_Image.sass","../src/_Utility.sass"],"names":[],"mappings":"AAKA,mBAGE,kBAAA,CAI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A,CAEA,sDAGE,aAAA,CACA,2BAAA,CAEJ,GACE,yBAAA,CAEF,GACE,wBAAA,CCjBF,wBAKE,kBAAA,CAEF,+BAIE,oBAAA,CAEF,4CASE,oBAAA,CCtBF,MACE,gBAAA,CACA,aAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CAEF,MAEE,iCAAA,CACA,qBAAA,CAEA,8BACE,cAAA,CAEF,4BACE,eAAA,CAEJ,yBAEE,MACE,aAAA,CACA,kBAAA,CAAA,CCtBJ,SAEE,gBAAA,CAEF,EACE,YAAA,CAEF,kBAME,eAAA,CACA,sBAAA,CACA,kBAAA,CACA,YAAA,CAEF,GACE,gBAAA,CACA,eAAA,CAEF,GACE,gBAAA,CACA,gBAAA,CAEF,GACE,gBAAA,CACA,eAAA,CAEF,GACE,gBAAA,CACA,uBAAA,CACA,gBAAA,CAEF,GACE,gBAAA,CACA,uBAAA,CACA,eAAA,CAEF,GACE,gBAAA,CACA,gBAAA,CACA,eAAA,CC3CF,IACE,cAAA,CCEA,gBACE,UAAA,CACA,WAAA,CACA,aAAA,CAGJ,YACE,UAAA,CAEF,aACE,WAAA","file":"milligram.min.css"} {"version":3,"sources":["../src/_Color.sass","../src/_Base.sass","../src/_Blockquote.sass","../src/_Button.sass","../src/_Code.sass","../src/_Divider.sass","../src/_Form.sass","../src/_Grid.sass","../src/_Link.sass","../src/_List.sass","../src/_Spacing.sass","../src/_Table.sass","../src/_Typography.sass","../src/_Image.sass","../src/_Utility.sass"],"names":[],"mappings":"AAWA,MACE,qBAAA,CACA,wBAAA,CACA,0BAAA,CACA,yBAAA,CACA,2BAAA,CACA,wBAAA,CCZF,mBAGE,kBAAA,CAIF,KACE,qBAAA,CACA,eAAA,CAGF,KACE,4BAAA,CACA,oEAAA,CACA,eAAA,CACA,eAAA,CACA,oBAAA,CACA,eAAA,CCnBF,WACE,+CAAA,CACA,aAAA,CACA,cAAA,CACA,mBAAA,CAEA,wBACE,eAAA,CCPJ,uEAKE,qCAAA,CACA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,cAAA,CAEF,4BACE,eAAA,CAEJ,yBAEE,MACE,aAAA,CACA,kBAAA,CAAA,CCtBJ,SAEE,gBAAA,CAEF,EACE,YAAA,CAEF,kBAME,eAAA,CACA,sBAAA,CACA,kBAAA,CACA,YAAA,CAEF,GACE,gBAAA,CACA,eAAA,CAEF,GACE,gBAAA,CACA,gBAAA,CAEF,GACE,gBAAA,CACA,eAAA,CAEF,GACE,gBAAA,CACA,uBAAA,CACA,gBAAA,CAEF,GACE,gBAAA,CACA,uBAAA,CACA,eAAA,CAEF,GACE,gBAAA,CACA,gBAAA,CACA,eAAA,CC3CF,IACE,cAAA,CCEA,gBACE,UAAA,CACA,WAAA,CACA,aAAA,CAGJ,YACE,UAAA,CAEF,aACE,WAAA","file":"milligram.min.css"}

View File

@ -16,7 +16,7 @@ html
// Default body styles // Default body styles
body body
color: $color-secondary color: var(--color-secondary)
font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif
font-size: 1.6em // Currently ems cause chrome bug misinterpreting rems on body element font-size: 1.6em // Currently ems cause chrome bug misinterpreting rems on body element
font-weight: 300 font-weight: 300

View File

@ -3,7 +3,7 @@
// //
blockquote blockquote
border-left: .3rem solid $color-quaternary border-left: .3rem solid var(--color-quaternary)
margin-left: 0 margin-left: 0
margin-right: 0 margin-right: 0
padding: 1rem 1.5rem padding: 1rem 1.5rem

View File

@ -7,10 +7,10 @@ button,
input[type='button'], input[type='button'],
input[type='reset'], input[type='reset'],
input[type='submit'] input[type='submit']
background-color: $color-primary background-color: var(--color-primary)
border: .1rem solid $color-primary border: .1rem solid var(--color-primary)
border-radius: .4rem border-radius: .4rem
color: $color-initial color: var(--color-initial)
cursor: pointer cursor: pointer
display: inline-block display: inline-block
font-size: 1.1rem font-size: 1.1rem
@ -26,9 +26,9 @@ input[type='submit']
&:focus, &:focus,
&:hover &:hover
background-color: $color-secondary background-color: var(--color-secondary)
border-color: $color-secondary border-color: var(--color-secondary)
color: $color-initial color: var(--color-initial)
outline: 0 outline: 0
&[disabled] &[disabled]
@ -37,39 +37,39 @@ input[type='submit']
&:focus, &:focus,
&:hover &:hover
background-color: $color-primary background-color: var(--color-primary)
border-color: $color-primary border-color: var(--color-primary)
&.button-outline &.button-outline
background-color: transparent background-color: transparent
color: $color-primary color: var(--color-primary)
&:focus, &:focus,
&:hover &:hover
background-color: transparent background-color: transparent
border-color: $color-secondary border-color: var(--color-secondary)
color: $color-secondary color: var(--color-secondary)
&[disabled] &[disabled]
&:focus, &:focus,
&:hover &:hover
border-color: inherit border-color: inherit
color: $color-primary color: var(--color-primary)
&.button-clear &.button-clear
background-color: transparent background-color: transparent
border-color: transparent border-color: transparent
color: $color-primary color: var(--color-primary)
&:focus, &:focus,
&:hover &:hover
background-color: transparent background-color: transparent
border-color: transparent border-color: transparent
color: $color-secondary color: var(--color-secondary)
&[disabled] &[disabled]
&:focus, &:focus,
&:hover &:hover
color: $color-primary color: var(--color-primary)

View File

@ -3,7 +3,7 @@
// //
code code
background: $color-tertiary background: var(--color-tertiary)
border-radius: .4rem border-radius: .4rem
font-size: 86% font-size: 86%
margin: 0 .2rem margin: 0 .2rem
@ -11,8 +11,8 @@ code
white-space: nowrap white-space: nowrap
pre pre
background: $color-tertiary background: var(--color-tertiary)
border-left: .3rem solid $color-primary border-left: .3rem solid var(--color-primary)
overflow-y: hidden overflow-y: hidden
& > code & > code

View File

@ -8,3 +8,11 @@ $color-secondary: #606c76 !default
$color-tertiary: #f4f5f6 !default $color-tertiary: #f4f5f6 !default
$color-quaternary: #d1d1d1 !default $color-quaternary: #d1d1d1 !default
$color-quinary: #e1e1e1 !default $color-quinary: #e1e1e1 !default
:root
--color-initial: #{$color-initial}
--color-primary: #{$color-primary}
--color-secondary: #{$color-secondary}
--color-tertiary: #{$color-tertiary}
--color-quaternary: #{$color-quaternary}
--color-quinary: #{$color-quinary}

View File

@ -4,5 +4,5 @@
hr hr
border: 0 border: 0
border-top: .1rem solid $color-tertiary border-top: .1rem solid var(--color-tertiary)
margin: 3.0rem 0 margin: 3.0rem 0

View File

@ -20,7 +20,7 @@ textarea,
select select
-webkit-appearance: none // sass-lint:disable-line no-vendor-prefixes -webkit-appearance: none // sass-lint:disable-line no-vendor-prefixes
background-color: transparent background-color: transparent
border: .1rem solid $color-quaternary border: .1rem solid var(--color-quaternary)
border-radius: .4rem border-radius: .4rem
box-shadow: none box-shadow: none
box-sizing: inherit // Forced to replace inherit values of the normalize.css box-sizing: inherit // Forced to replace inherit values of the normalize.css
@ -29,15 +29,15 @@ select
width: 100% width: 100%
&:focus &:focus
border-color: $color-primary border-color: var(--color-primary)
outline: 0 outline: 0
select select
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23' + str-slice(inspect($color-quaternary), 2) + '" d="M0,0l6,8l6-8"/></svg>') center right no-repeat background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23' + str-slice(inspect(var(--color-quaternary)), 2) + '" d="M0,0l6,8l6-8"/></svg>') center right no-repeat
padding-right: 3.0rem padding-right: 3.0rem
&:focus &:focus
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23' + str-slice(inspect($color-primary), 2) + '" d="M0,0l6,8l6-8"/></svg>') background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 8" width="30"><path fill="%23' + str-slice(inspect(var(--color-primary)), 2) + '" d="M0,0l6,8l6-8"/></svg>')
&[multiple] &[multiple]
background: none background: none

View File

@ -3,9 +3,9 @@
// //
a a
color: $color-primary color: var(--color-primary)
text-decoration: none text-decoration: none
&:focus, &:focus,
&:hover &:hover
color: $color-secondary color: var(--color-secondary)

View File

@ -11,7 +11,7 @@ table
td, td,
th th
border-bottom: .1rem solid $color-quinary border-bottom: .1rem solid var(--color-quinary)
padding: 1.2rem 1.5rem padding: 1.2rem 1.5rem
&:first-child &:first-child