diff options
| author | Jieiku | 2022-05-31 00:37:30 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-31 00:37:30 -0700 |
| commit | a2ecc94e7e33283aa386a82817ef87644477cf42 (patch) | |
| tree | f60e318f30d09ccfefc96328f3d929664b1fab17 /sass/include | |
| parent | 6a999e0de4cb153ddfd81c8e6e35b48c3de86813 (diff) | |
| download | abridge-a2ecc94e7e33283aa386a82817ef87644477cf42.tar.gz abridge-a2ecc94e7e33283aa386a82817ef87644477cf42.tar.bz2 abridge-a2ecc94e7e33283aa386a82817ef87644477cf42.zip | |
Add FontAwesome and Restructure Theme SASS
Diffstat (limited to 'sass/include')
| -rw-r--r-- | sass/include/_document.scss | 41 | ||||
| -rw-r--r-- | sass/include/_typography.scss | 31 |
2 files changed, 72 insertions, 0 deletions
diff --git a/sass/include/_document.scss b/sass/include/_document.scss index a5f91db..31f43ac 100644 --- a/sass/include/_document.scss +++ b/sass/include/_document.scss @@ -1,3 +1,44 @@ +:root { + // Spacings + --s1: .5rem; + --s2: 1rem; + --rc: .5rem; //radius corners + + // Borders + --br: 0.25rem; //border radius + --bw: 0.0625rem; //border width + --ow: 0.1875rem; //outline width + + // Responsives spacings + @if $enable-responsive-spacings { + // Sectionning + body > header, + body > main, + body > footer, + section { + @if map-get($breakpoints, "sm") { + @media (min-width: map-get($breakpoints, "sm")) { + --s1: .5rem; + } + } + @if map-get($breakpoints, "md") { + @media (min-width: map-get($breakpoints, "md")) { + --s1: .6rem; + } + } + @if map-get($breakpoints, "lg") { + @media (min-width: map-get($breakpoints, "lg")) { + --s1: .7rem; + } + } + @if map-get($breakpoints, "xl") { + @media (min-width: map-get($breakpoints, "xl")) { + --s1: .8rem; + } + } + } + } +} // Document: Content-box & Responsive typography // Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border` diff --git a/sass/include/_typography.scss b/sass/include/_typography.scss index c98fac5..b964426 100644 --- a/sass/include/_typography.scss +++ b/sass/include/_typography.scss @@ -1,3 +1,34 @@ +:root { + --fs: 1rem; //font-size + --lh: 1.5; //line-height + --lhh: 1.2; //line-height headers + --fw: 400; //font-weight + --fh: 700; //font-weight h1-h6 + // Responsive typography + @if $enable-responsive-typography { + @if map-get($breakpoints, "sm") { + @media (min-width: map-get($breakpoints, "sm")) { + --fs: 1rem; + } + } + @if map-get($breakpoints, "md") { + @media (min-width: map-get($breakpoints, "md")) { + --fs: 1.04rem; + } + } + @if map-get($breakpoints, "lg") { + @media (min-width: map-get($breakpoints, "lg")) { + --fs: 1.08rem; + } + } + @if map-get($breakpoints, "xl") { + @media (min-width: map-get($breakpoints, "xl")) { + --fs: 1.12rem; + } + } + } +} + // Typography h1, h2, |
