[CSS] Links should be aligned with content now. Underlined in main content by default. Highlighted when focused.

This commit is contained in:
Eliseu Amaro 2021-09-06 13:08:27 +01:00 committed by Hugo Sales
parent bdde047dfa
commit 1f792a0183
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 20 additions and 43 deletions

View File

@ -1,6 +1,5 @@
:root { :root {
/* FONTS */ /* FONTS */
--display-font: 'Manrope', sans-serif;
--main-font: 'Inter var', sans-serif; --main-font: 'Inter var', sans-serif;
/* UNITS /* UNITS
@ -35,15 +34,12 @@ a,
a:visited { a:visited {
text-decoration: none; text-decoration: none;
color: var(--white); color: var(--white);
margin-bottom: 1px;
outline: 0;
} }
a:focus, a:focus,
a:hover { a:hover {
text-decoration: underline; text-decoration: underline;
color: var(--white); color: var(--white);
transition: var(--cubic-transition);
} }
figcaption a:link { figcaption a:link {
@ -164,16 +160,22 @@ summary:focus {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
font-size: var(--main-size); font-size: var(--main-size);
font-family: var(--display-font);
} }
/* NOTES */ /* NOTES */
.h-entry {
margin-top: var(--unit-size);
}
.h-entry hr { .h-entry hr {
margin-top: 5px; margin-top: 5px;
} }
.h-entry a {
.h-entry { text-decoration: underline;
margin-top: var(--unit-size); }
.h-entry a:focus {
animation-name: highlight;
animation-duration: 500ms;
animation-timing-function: ease-in-out;
} }
.h-entry, .h-entry,
@ -203,7 +205,6 @@ summary:focus {
} }
.note-author { .note-author {
font-family: var(--display-font);
font-size: var(--medium-size); font-size: var(--medium-size);
font-weight: bold; font-weight: bold;
display: flex; display: flex;
@ -319,15 +320,12 @@ summary:focus {
border-radius: var(--unit-size); border-radius: var(--unit-size);
border: solid 2px var(--bg2); border: solid 2px var(--bg2);
font-family: var(--main-font);
font-weight: 400;
color: var(--white); color: var(--white);
} }
.section-title-details { .section-title-details {
font-family: var(--display-font);
font-weight: 900;
font-size: var(--main-size); font-size: var(--main-size);
font-weight: 700;
border-radius: var(--unit-size); border-radius: var(--unit-size);
padding: 5px 10px 5px 10px; padding: 5px 10px 5px 10px;
@ -386,13 +384,12 @@ summary:focus {
/* BUTTONS AND INPUT SHENANIGANS */ /* BUTTONS AND INPUT SHENANIGANS */
label { label {
font-family: var(--display-font);
font-weight: bold; font-weight: bold;
} }
button { button {
font-size: var(--small-size) !important; font-size: var(--small-size) !important;
font-family: var(--display-font) !important; font-family: var(--main-font) !important;
font-weight: bold !important; font-weight: bold !important;
background-image: linear-gradient(180deg, var(--bg2), transparent) !important; background-image: linear-gradient(180deg, var(--bg2), transparent) !important;
color: var(--white) !important; color: var(--white) !important;
@ -489,13 +486,13 @@ input[type=file]:hover {
/* button part of file selector */ /* button part of file selector */
::file-selector-button { ::file-selector-button {
font-family: var(--display-font) !important; font-family: var(--main-font) !important;
font-weight: bold !important; font-weight: bold !important;
color: var(--white) !important; color: var(--white) !important;
} }
select { select {
font-family: var(--display-font) !important; font-family: var(--main-font) !important;
font-size: var(--small-size); font-size: var(--small-size);
font-weight: normal !important; font-weight: normal !important;
background: linear-gradient(180deg, var(--bg2), transparent) !important; background: linear-gradient(180deg, var(--bg2), transparent) !important;

View File

@ -67,7 +67,6 @@ details > summary::-webkit-details-marker {
} }
* { * {
vertical-align: middle !important;
box-sizing: border-box !important; box-sizing: border-box !important;
} }
@ -86,49 +85,30 @@ html {
} }
h1 { h1 {
font-family: var(--display-font);
font-size: var(--main-size); font-size: var(--main-size);
font-weight: 900; font-weight: 700;
opacity: 1.00;
letter-spacing: -0.40px;
word-spacing: 4.00px;
} }
h2 { h2 {
font-family: var(--display-font);
font-size: var(--medium-size); font-size: var(--medium-size);
font-weight: 800; font-weight: 600;
letter-spacing: -0.75px;
word-spacing: 3.00px;
text-transform: none;
} }
h3 { h3 {
font-family: var(--display-font);
font-size: var(--small-size); font-size: var(--small-size);
font-weight: 700; font-weight: 600;
line-height: 1.00;
letter-spacing: -0.20px;
word-spacing: 1.00px;
text-transform: none;
} }
p { p {
font-family: var(--main-font); font-family: var(--main-font);
font-size: var(--small-size); font-size: var(--small-size);
font-weight: 400; font-weight: 400;
letter-spacing: -0.30px;
word-spacing: -0.10px;
margin-bottom: var(--small-size); margin-bottom: var(--small-size);
text-transform: none;
} }
textarea { textarea {
font-family: var(--main-font); font-family: var(--main-font);
font-weight: 400; font-weight: 400;
letter-spacing: -0.30px;
word-spacing: -0.10px;
text-transform: none;
} }
ul { ul {
@ -147,7 +127,6 @@ li {
button { button {
cursor: pointer !important; cursor: pointer !important;
float: right !important; float: right !important;
/*width: min-content !important;*/
align-self: end !important; align-self: end !important;
} }
input { input {
@ -187,8 +166,9 @@ input[type=radio] {
/* file selector */ /* file selector */
input[type=file] { input[type=file] {
all: unset; all: unset;
display: block !important; display: block;
border-radius: var(--unit-size); width: 100%;
border-radius: var(--unit-size) !important;
} }
input + label { input + label {