edgarluque.com/sass/style.scss
2022-10-28 17:20:10 +02:00

211 lines
2.6 KiB
SCSS

$color: #E6E1CF;
$bgcolor: #14191F;
$code: #FFAA00;
$codeblock: #0f1419;
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
font-variant-ligatures: none;
box-sizing: border-box;
font-size: 16px;
@media screen and (max-width: 500px) {
font-size: 12px;
}
@media screen and (max-width: 800px) {
font-size: 14px;
}
}
/*
2. Remove default margin
*/
* {
margin: 0;
}
/*
3. Allow percentage-based heights in the application
*/
html,
body {
height: 100%;
font-family: "JetBrains Mono", monospace;
background-color: $bgcolor;
color: $color;
}
/*
Typographic tweaks!
4. Add accessible line-height
5. Improve text rendering
*/
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/*
6. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
/*
7. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
font: inherit;
}
/*
8. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/*
9. Create a root stacking context
*/
#root,
#__next {
isolation: isolate;
}
$breakpoint: 900px;
.title {
font-size: 2em;
text-align: center;
}
h1 {
font-size: 1.6em;
}
h2 {
font-size: 1.4em;
}
h3 {
font-size: 1.2em;
}
p {
margin: 1em 0;
}
a {
color: $color;
font-weight: bold;
}
pre {
padding: 10px;
overflow-x: auto;
border-radius: 4px;
margin: 1em 0;
font-family: "JetBrains Mono", monospace;
code {
background-color: inherit;
color: inherit;
border: 0;
}
}
code {
font-family: "JetBrains Mono", monospace;
padding: 2px;
line-height: 1.8;
font-weight:bold;
color: $code;
}
blockquote {
background-color: $codeblock;
border-left: 4px #FFAA00 solid;
padding:0px 10px
}
.container {
margin: 10px auto;
margin-top: 0;
padding-top: 10px;
max-width: $breakpoint;
@media screen and (max-width: $breakpoint) {
max-width: 100%;
margin: 10px 10px;
}
}
ul.nav {
text-align: right;
text-transform: uppercase;
li {
display: inline;
padding: 0 5px;
}
}
ul.posts {
list-style-type: none;
padding: 0;
margin: 0;
margin-top: 5px;
}
ul.categories {
columns: 4;
@media screen and (max-width: 600px) {
columns: 2;
}
}
a.title {
text-decoration: none;
}
.brand-title {
font-size: 1.4rem;
text-transform: uppercase;
font-weight: bolder;
text-align: right;
margin: 0;
}
.blog-date {
text-align: right;
}
.capitalize {
text-transform: capitalize;
}
.category-link {
color: $color;
}
ul {
margin-top: 10px;
margin-bottom: 10px;
}
h1,h2,h3 {
border-bottom: 4px $color dotted;
}