150 lines
2.2 KiB
SCSS
150 lines
2.2 KiB
SCSS
// Typography System
|
|
h1, h2, h3, h4, h5, h6 {
|
|
line-height: $line-height-heading;
|
|
font-weight: 600;
|
|
margin-bottom: $space-3;
|
|
color: $color-text;
|
|
}
|
|
|
|
h1 {
|
|
font-size: $font-size-3xl;
|
|
margin-bottom: $space-5;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: $font-size-2xl;
|
|
margin-top: $space-7;
|
|
margin-bottom: $space-4;
|
|
padding-bottom: $space-2;
|
|
border-bottom: 1px solid $color-border;
|
|
}
|
|
|
|
h3 {
|
|
font-size: $font-size-xl;
|
|
margin-top: $space-6;
|
|
margin-bottom: $space-3;
|
|
}
|
|
|
|
h4 {
|
|
font-size: $font-size-lg;
|
|
margin-top: $space-5;
|
|
margin-bottom: $space-3;
|
|
}
|
|
|
|
h5 {
|
|
font-size: $font-size-md;
|
|
margin-top: $space-4;
|
|
margin-bottom: $space-2;
|
|
font-weight: 700;
|
|
}
|
|
|
|
h6 {
|
|
font-size: $font-size-sm;
|
|
margin-top: $space-4;
|
|
margin-bottom: $space-2;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: $space-4;
|
|
max-width: $max-content-width;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.lead {
|
|
font-size: $font-size-lg;
|
|
line-height: 1.5;
|
|
color: $color-text-muted;
|
|
margin-bottom: $space-5;
|
|
}
|
|
|
|
.text-small {
|
|
font-size: $font-size-sm;
|
|
}
|
|
|
|
.text-xs {
|
|
font-size: $font-size-xs;
|
|
}
|
|
|
|
.text-muted {
|
|
color: $color-text-muted;
|
|
}
|
|
|
|
.text-mono {
|
|
font-family: $font-family-mono;
|
|
}
|
|
|
|
strong, b {
|
|
font-weight: 600;
|
|
}
|
|
|
|
em, i {
|
|
font-style: italic;
|
|
}
|
|
|
|
mark {
|
|
background-color: rgba($color-warning, 0.2);
|
|
padding: 2px 4px;
|
|
border-radius: $radius-sm;
|
|
}
|
|
|
|
// Lists
|
|
ul, ol {
|
|
margin-bottom: $space-4;
|
|
padding-left: $space-5;
|
|
|
|
li {
|
|
margin-bottom: $space-2;
|
|
}
|
|
|
|
ul, ol {
|
|
margin-top: $space-2;
|
|
margin-bottom: $space-2;
|
|
}
|
|
}
|
|
|
|
// Definition lists
|
|
dl {
|
|
margin-bottom: $space-4;
|
|
|
|
dt {
|
|
font-weight: 600;
|
|
margin-bottom: $space-1;
|
|
}
|
|
|
|
dd {
|
|
margin-bottom: $space-3;
|
|
margin-left: $space-5;
|
|
color: $color-text-muted;
|
|
}
|
|
}
|
|
|
|
// Tables
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: $space-5;
|
|
font-size: $font-size-sm;
|
|
|
|
th, td {
|
|
padding: $space-3;
|
|
text-align: left;
|
|
border-bottom: 1px solid $color-border;
|
|
}
|
|
|
|
th {
|
|
font-weight: 600;
|
|
background-color: $color-paper-light;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background-color: rgba($color-paper-light, 0.5);
|
|
}
|
|
} |