add: some styles and more organization
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
.text-content {
|
||||
$base-font-size: 22px;
|
||||
$heading-scale: 1.33;
|
||||
|
||||
@function pow($number, $exponent) {
|
||||
$value: 1;
|
||||
|
||||
@if $exponent > 0 {
|
||||
@for $i from 1 through $exponent {
|
||||
$value: $value * $number;
|
||||
}
|
||||
}
|
||||
|
||||
@return $value;
|
||||
}
|
||||
|
||||
@for $i from 1 through 5 {
|
||||
h#{$i} {
|
||||
$factor: pow($heading-scale, 5 - $i);
|
||||
font-size: $base-font-size * $factor;
|
||||
}
|
||||
}
|
||||
|
||||
& > * {
|
||||
max-width: 100ch;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
pre,
|
||||
code {
|
||||
background: #f0f0f0 !important;
|
||||
|
||||
font-family: 'Source Code Pro', monospace;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 1rem auto;
|
||||
|
||||
padding: 0.5rem;
|
||||
|
||||
max-width: 90ch;
|
||||
|
||||
border-radius: 0.5rem;
|
||||
|
||||
box-shadow: 0.25rem 0.25rem 0 0 #777;
|
||||
}
|
||||
|
||||
code {
|
||||
border-radius: 0.25rem;
|
||||
padding: 0 0.125rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user