edgarluque.com/sass/style.scss

241 lines
3.1 KiB
SCSS
Raw Permalink Normal View History

2022-01-06 08:46:38 +00:00
$color: #E6E1CF;
$bgcolor: #14191F;
2024-02-15 09:30:47 +00:00
$code: #7abec2;
$accent: #4d7577;
2022-10-28 15:20:10 +00:00
$codeblock: #0f1419;
2022-01-06 08:46:38 +00:00
2021-12-23 16:38:19 +00:00
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
2022-01-06 08:46:38 +00:00
font-variant-ligatures: none;
2021-12-23 16:38:19 +00:00
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%;
2023-11-30 09:44:31 +00:00
font-family: Verdana, sans-serif;
2022-01-06 08:46:38 +00:00
background-color: $bgcolor;
color: $color;
2021-12-23 16:38:19 +00:00
}
/*
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 {
2022-01-06 08:46:38 +00:00
color: $color;
2023-11-30 09:44:31 +00:00
text-underline-offset: 4px;
2021-12-23 16:38:19 +00:00
}
pre {
padding: 10px;
overflow-x: auto;
2022-10-28 15:20:10 +00:00
border-radius: 4px;
2021-12-23 16:38:19 +00:00
margin: 1em 0;
2023-11-30 09:44:31 +00:00
font-family: "JetBrains Mono", "Courier New", monospace;
2021-12-24 12:18:41 +00:00
code {
background-color: inherit;
color: inherit;
border: 0;
}
2021-12-24 07:36:36 +00:00
}
code {
2023-11-30 09:44:31 +00:00
font-family: "JetBrains Mono", "Courier New", monospace;
2021-12-24 12:18:41 +00:00
padding: 2px;
2021-12-28 21:47:12 +00:00
line-height: 1.8;
2023-11-30 09:47:55 +00:00
font-weight: bold;
2022-10-20 08:23:58 +00:00
color: $code;
2021-12-23 16:38:19 +00:00
}
blockquote {
2022-10-28 15:20:10 +00:00
background-color: $codeblock;
2024-02-15 09:30:47 +00:00
border-left: 4px $accent solid;
padding: 0.02em 10px;
margin: 6px 0px;
2021-12-23 16:38:19 +00:00
}
.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;
}
}
2021-12-24 07:51:39 +00:00
ul.posts {
list-style-type: none;
padding: 0;
margin: 0;
2022-10-21 06:40:35 +00:00
margin-top: 5px;
2021-12-24 07:51:39 +00:00
}
2021-12-24 11:02:07 +00:00
ul.categories {
columns: 4;
@media screen and (max-width: 600px) {
columns: 2;
}
}
a.title {
text-decoration: none;
}
2021-12-23 16:38:19 +00:00
.brand-title {
font-size: 1.4rem;
text-transform: uppercase;
font-weight: bolder;
text-align: right;
margin: 0;
}
.blog-date {
text-align: right;
}
2021-12-24 11:02:07 +00:00
.capitalize {
text-transform: capitalize;
2021-12-24 11:14:57 +00:00
}
.category-link {
2022-01-06 08:46:38 +00:00
color: $color;
2022-01-06 09:47:03 +00:00
}
ul {
2022-10-21 06:31:46 +00:00
margin-top: 10px;
2022-01-06 09:47:03 +00:00
margin-bottom: 10px;
2022-10-20 08:07:27 +00:00
}
2024-02-13 09:04:21 +00:00
h1,h2 {
border-bottom: 2px $color solid;
2024-02-15 09:30:47 +00:00
border-bottom-color: $accent;
2024-02-13 09:04:21 +00:00
margin-bottom: 1rem;
2022-10-20 08:07:27 +00:00
}
2023-11-30 10:13:11 +00:00
table {
width: 100%;
margin: 1em 0px;
border-collapse: collapse;
}
table, th, td {
border: 1px solid;
}
th {
background-color: #2c2c2c;
color: white;
}
th, td {
padding: 10px;
text-align: left;
}
tr:nth-child(even) {background-color: #1b2127;}
2024-02-15 09:30:47 +00:00
.footer {
border-top: 2px $accent solid
}