aboutsummaryrefslogtreecommitdiff
path: root/sass/_variables.scss
diff options
context:
space:
mode:
authorJieiku2022-05-31 03:00:20 -0700
committerJieiku2022-05-31 03:00:20 -0700
commit31395878a127a6dd474da50c2f93956588aa2135 (patch)
tree0122eb9d2d085ceb87016e3c50912d70462f9f87 /sass/_variables.scss
parent04631b1f651fd677baf837be318084b91cb9acf4 (diff)
downloadabridge-31395878a127a6dd474da50c2f93956588aa2135.tar.gz
abridge-31395878a127a6dd474da50c2f93956588aa2135.tar.bz2
abridge-31395878a127a6dd474da50c2f93956588aa2135.zip
HTML5 Validation & Cleanup
Diffstat (limited to 'sass/_variables.scss')
-rw-r--r--sass/_variables.scss72
1 files changed, 72 insertions, 0 deletions
diff --git a/sass/_variables.scss b/sass/_variables.scss
index 0f65c61..e4de650 100644
--- a/sass/_variables.scss
+++ b/sass/_variables.scss
@@ -103,3 +103,75 @@ $icon-moon: false !default;// dark moon
$icon-sun: false !default;// light sun
$icon-x: true !default;// x symbol
// add an icon link to an html template like this: <a href="#"><span class="svg home"></span></a>
+
+: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
+
+ --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;
+ }
+ }
+ }
+
+ // 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;
+ }
+ }
+ }
+ }
+}