* Fix all stylelint errors For any errors that fixing would require changing the output of the css disable stylelint for that line instead of modifying. * Update quality.py Make stylelint quality check pass when there are no errors * Delete empty selectors
94 lines
1.4 KiB
SCSS
94 lines
1.4 KiB
SCSS
// Utilities to provide v1-styling compatibility
|
|
|
|
@mixin font-size($sizeValue: 16) {
|
|
font-size: $sizeValue + px;
|
|
}
|
|
|
|
@mixin line-height($fontSize: auto) {
|
|
line-height: ($fontSize*1.48) + px;
|
|
}
|
|
|
|
%text-sr {
|
|
// clip has been deprecated but is still supported
|
|
clip: rect(1px 1px 1px 1px);
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
position: absolute;
|
|
margin: -1px;
|
|
height: 1px;
|
|
width: 1px;
|
|
border: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
// ensure there are spaces in sr text
|
|
word-wrap: normal;
|
|
}
|
|
|
|
// extends - UI - depth levels
|
|
%ui-depth0 { z-index: 0; }
|
|
%ui-depth1 { z-index: 10; }
|
|
%ui-depth2 { z-index: 100; }
|
|
%ui-depth3 { z-index: 1000; }
|
|
%ui-depth4 { z-index: 10000; }
|
|
%ui-depth5 { z-index: 100000; }
|
|
|
|
// weights
|
|
%t-ultrastrong {
|
|
font-weight: 700;
|
|
}
|
|
|
|
%t-strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
%t-demi-strong {
|
|
font-weight: 500;
|
|
}
|
|
|
|
%t-regular {
|
|
font-weight: 400;
|
|
}
|
|
|
|
%t-light {
|
|
font-weight: 300;
|
|
}
|
|
|
|
%t-ultralight {
|
|
font-weight: 200;
|
|
}
|
|
|
|
// copy
|
|
%t-copy {
|
|
font-family: $font-family-sans-serif;
|
|
}
|
|
|
|
%t-copy-sub1 {
|
|
@extend %t-copy;
|
|
|
|
@include line-height(14);
|
|
|
|
font-size: $forum-base-font-size;
|
|
}
|
|
|
|
%t-copy-sub2 {
|
|
@extend %t-copy;
|
|
|
|
@include line-height(12);
|
|
|
|
font-size: $forum-small-font-size;
|
|
}
|
|
|
|
// extends - UI - removes list styling/spacing when using uls, ols for navigation and less content-centric cases
|
|
%ui-no-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
text-indent: 0;
|
|
|
|
li,
|
|
dt,
|
|
dd {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
}
|