Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
denniserdmann committed Mar 14, 2021
1 parent 0961568 commit fc49b9f
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions files/nutshell/scss/base/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,22 @@ $headlines: (
html {
--headings__font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Helvetica Neue", Arial, sans-serif;
--headings__font-weight: 700;
--headings__color: 'currentColor';
--headings__color: 'currentColor';

--paragraph__link-color: var(--color-links);
--code__color: var(--color-highlight);
--selection-background: var(--color-brand);
--pre__color-background: var(--color-gray);
--pre__color: var(--color-text--inverted);
--paragraph__link-color: var(--color-links);
--code__color: var(--color-highlight);
--selection-background: var(--color-brand);
--pre__color-background: var(--color-gray);
--pre__color: var(--color-text--inverted);

--selection-color: var(--color-text--inverted);
--selection-color: var(--color-text--inverted);

--hr-border: var(--base-border);
--paragraph__link-decoration: underline;
--paragraph__link-decoration--hover: none;
--hr-border: var(--base-border);
--paragraph__link-decoration: underline;
--paragraph__link-decoration--hover: none;
}



// USED FROM _variables.scss

// --------------------------------------------------
Expand Down Expand Up @@ -142,32 +141,32 @@ html {
font-size: map-get($sizes, xs); // [5]
line-height: $line-height;
margin-bottom: $margin-bottom;

@if $color {
color: $color;
}

@if $font-weight {
font-weight: $font-weight;
} @else {
font-weight: var(--headings__font-weight);
}
}

@if $font-family {
font-family: $font-family;
} @else {
font-family: var(--headings__font-family);
}
}

// [6]
@for $i from 2 through length($sizes) {
$current: nth($sizes, $i); // $i = 2 = sm, $i = 5 = xl
$viewport: nth($current, 1);
$font-size: nth($current, 2);
$current: nth($sizes, $i); // $i = 2 = sm, $i = 5 = xl
$viewport: nth($current, 1);
$font-size: nth($current, 2);

@include media-query(screen-#{$viewport}) {
font-size: $font-size;
}
@include media-query(screen-#{$viewport}) {
font-size: $font-size;
}
}
}

Expand All @@ -185,7 +184,6 @@ html {
margin-top: $margin-top;
}


.ce_text + .ce_text & {
&:first-child {
margin-top: $margin-top;
Expand Down Expand Up @@ -248,7 +246,7 @@ hr {
}

::selection {
background: var(--selection-background);
background: var(--selection-background);
color: var(--selection-color);
opacity: 1;
}

0 comments on commit fc49b9f

Please sign in to comment.