Fucking arround with fonts

This commit is contained in:
Daniel Cortes
2020-06-06 00:20:08 -04:00
parent 95851b80ca
commit 084845f347
2 changed files with 49 additions and 26 deletions

View File

@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* Colorscheme */ /* Colorscheme */
:root { :root {
--white: hsl(0, 0%, 99%); --white: hsl(0, 0%, 99%);
@@ -12,17 +14,23 @@
/* Modificación básica de elementos*/ /* Modificación básica de elementos*/
body { body {
max-width: 75rem; max-width: 75em;
margin: 0 auto; margin: 0 auto;
padding: 0 1rem 4rem 1rem; padding: 0 1rem 4rem 1em;
font-family: sans-serif; font-family: "Work Sans", sans-serif;
color: var(--black); color: var(--black);
overflow-y: scroll; overflow-y: scroll;
line-height: 1.65;
font-size: 100%;
}
p {
margin-bottom: 1.15em;
} }
input { input {
border: 1px var(--gray-2) solid; border: 1px var(--gray-2) solid;
padding: .3rem; padding: .3em;
} }
button { button {
@@ -46,28 +54,43 @@ a, button.link {
} }
} }
h1, h2, h3, h4 { h1, h2, h3, h4, h5 {
margin-top: 1rem; line-height: 1.15;
margin-bottom: 1rem;
} }
h1 {
margin-top: 0;
font-size: 4.209em;
}
h2 {font-size: 3.157em;}
h3 {font-size: 2.369em;}
h4 {font-size: 1.777em;}
h5 {font-size: 1.333em;}
small, .text_small {font-size: 0.75em;}
/* Navbar */ /* Navbar */
.nav { .nav {
display: flex; display: flex;
min-height: 3.25rem; min-height: 3.25em;
position: relative; position: relative;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
.branding { .branding {
margin: 0; margin: 0;
font-size: 1.777em;
} }
.nav-links { .nav-links {
display: flex; display: flex;
.link { .link {
margin-left: 1rem; margin-left: 1em;
} }
} }
} }
@@ -83,19 +106,19 @@ ul.pagination {
} }
.page-item { .page-item {
height: 2.5rem; height: 2.5em;
text-align: center; text-align: center;
&.left, &.right { &.left, &.right {
width: 7rem; width: 7em;
} }
.page-link { .page-link {
display: inline-block; display: inline-block;
height: 100%; height: 100%;
margin-right: .4rem; margin-right: .4em;
padding: .75rem 1rem; padding: .75rem 1em;
color: var(--black); color: var(--black);
text-decoration: none; text-decoration: none;
@@ -118,7 +141,7 @@ ul.pagination {
} }
.spacing { .spacing {
margin: auto 1rem; margin: auto 1em;
font-weight: normal; font-weight: normal;
} }
} }
@@ -144,7 +167,7 @@ ul.entity_list {
li.artist, li.disc, li.song { li.artist, li.disc, li.song {
border-bottom: 2px var(--gray-1) solid; border-bottom: 2px var(--gray-1) solid;
margin-bottom: 1rem; margin-bottom: 1em;
&:last-child { &:last-child {
margin-bottom: auto; margin-bottom: auto;
@@ -166,11 +189,11 @@ ul.entity_list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
padding-left: 1rem; padding-left: 1em;
.small { .small {
color: var(--gray-4); color: var(--gray-4);
font-size: .8rem; font-size: .8em;
} }
} }
@@ -178,18 +201,18 @@ ul.entity_list {
} }
li.artist { li.artist {
height: 4rem; height: 4em;
} }
li.disc { li.disc {
height: 14rem; height: 14em;
a { a {
.coverart { .coverart {
object-fit: cover; object-fit: cover;
width: 200px; width: 200px;
height: 200px; height: 200px;
margin: 1rem; margin: 1em;
border: 1px solid var(--gray-2); border: 1px solid var(--gray-2);
&.loading { &.loading {
@@ -199,11 +222,11 @@ ul.entity_list {
.release-date { .release-date {
display: inline-block; display: inline-block;
font-size: .7rem; font-size: .7em;
background-color: var(--gray-4);; background-color: var(--gray-4);;
color: var(--white); color: var(--white);
padding: .1rem .5rem; padding: .1rem .5em;
border-radius: .25rem; border-radius: .25em;
text-align: center; text-align: center;
line-height: 1; line-height: 1;
} }
@@ -211,7 +234,7 @@ ul.entity_list {
} }
li.song { li.song {
height: 4rem; height: 4em;
} }
} }
@@ -223,7 +246,7 @@ ul.tabs {
margin: 1rem 0; margin: 1rem 0;
li.tab { li.tab {
padding: .5rem 1rem; padding: .5rem 1em;
margin-bottom: -2px; margin-bottom: -2px;
cursor: pointer; cursor: pointer;

View File

@@ -33,7 +33,7 @@ dd {
body { body {
min-height: 100vh; min-height: 100vh;
scroll-behavior: smooth; scroll-behavior: smooth;
text-rendering: optimizeSpeed; text-rendering: optimizeLegibility;
line-height: 1.5; line-height: 1.5;
} }