skillbox/client/src/styles/mixins/_typography.scss

140 lines
2.5 KiB
SCSS

@mixin main-title {
font-family: $sans-serif-font-family;
font-weight: 800;
font-size: toRem(64px);
}
@mixin heading-1 {
font-family: $sans-serif-font-family;
font-weight: 600;
font-size: toRem(44px);
}
@mixin heading-2 {
font-family: $sans-serif-font-family;
font-weight: 600;
font-size: toRem(34px);
}
@mixin heading-3 {
font-family: $sans-serif-font-family;
font-weight: 600;
font-size: toRem(24px);
}
@mixin heading-4 {
font-family: $sans-serif-font-family;
font-weight: 600;
font-size: toRem(18px);
}
@mixin sub-heading {
font-family: $sans-serif-font-family;
font-weight: 400;
font-size: toRem(16px);
}
@mixin modal-heading {
@include heading-2;
margin-bottom: 0;
line-height: 1.5;
}
@mixin regular-text {
font-family: $sans-serif-font-family;
font-weight: 400;
font-size: toRem(18px);
}
@mixin small-text {
font-family: $sans-serif-font-family;
font-weight: 400;
//font-size: toRem(16px); todo: did this really change or is this only for the subnavigation
font-size: toRem(14px);
}
@mixin tiny-text {
font-size: toRem(11px);
font-family: $sans-serif-font-family;
font-weight: $font-weight-regular;
color: $color-silver-dark;
}
@mixin aside-text {
@include regular-text;
font-size: toRem(14px);
}
@mixin aside-with-cheese {
@include aside-text;
font-weight: 600;
}
@mixin navigation-link {
font-family: $sans-serif-font-family;
color: $color-charcoal-dark;
font-size: toRem(18px);
font-weight: 600;
}
@mixin large-link {
font-family: $sans-serif-font-family;
font-size: toRem(18px);
font-weight: 400;
}
@mixin meta-title {
color: $color-silver-dark;
font-size: toRem(36px);
font-weight: 300;
font-family: $serif-font-family;
line-height: $default-heading-line-height;
}
@mixin inline-title {
@include regular-text;
color: $color-silver-dark;
}
@mixin lead-paragraph {
font-family: $serif-font-family;
line-height: 1.4;
font-size: toRem(26px);
}
@mixin regular-paragraph {
font-family: $serif-font-family;
font-size: toRem(18px);
}
@mixin link-base {
font-size: toRem(14px);
font-family: $sans-serif-font-family;
font-weight: $font-weight-regular;
cursor: pointer;
}
@mixin default-link {
@include link-base;
&--active {
color: $color-brand;
}
}
@mixin page-form-input-heading {
display: block;
margin-bottom: $medium-spacing;
@include heading-3;
}
@mixin popover-link {
@include large-link;
padding: $small-spacing 0;
cursor: pointer;
display: flex;
align-items: center;
flex-shrink: 0;
}