mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-04-20 16:39:09 +00:00
styles: delete duplicated defintions, apply global link styles
This commit is contained in:
parent
8307168459
commit
0c9eb8fbcf
@ -66,6 +66,24 @@ h1 {
|
|||||||
font-weight: $bold;
|
font-weight: $bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0.75rem 0;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
line-height: 1.25;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: black;
|
||||||
|
border-bottom: darkgrey solid 0.1em;
|
||||||
|
font-family: $ext-sans;
|
||||||
|
margin: 1rem 0;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-bottom: red solid 0.1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-family: $ext-sans;
|
font-family: $ext-sans;
|
||||||
font-weight: $regular;
|
font-weight: $regular;
|
||||||
@ -154,24 +172,6 @@ h1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.block__dictionary {
|
|
||||||
max-width: 50rem;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
padding: 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block__word {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
margin: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0.75rem 0;
|
|
||||||
font-size: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.style__italics {
|
.style__italics {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
@ -267,18 +267,6 @@ p {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__link {
|
|
||||||
text-decoration: none;
|
|
||||||
color: black;
|
|
||||||
border-bottom: darkgrey solid 0.1em;
|
|
||||||
font-family: $ext-sans;
|
|
||||||
margin: 1rem 0;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
border-bottom: red solid 0.1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.block__dictionary {
|
.block__dictionary {
|
||||||
@ -288,15 +276,6 @@ p {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.auto-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(
|
|
||||||
auto-fill,
|
|
||||||
minmax(var(--auto-grid-min-size), 1fr)
|
|
||||||
);
|
|
||||||
grid-gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block__word {
|
.block__word {
|
||||||
grid-column: span 2;
|
grid-column: span 2;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -304,64 +283,6 @@ p {
|
|||||||
margin: 1rem;
|
margin: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0.75rem 0;
|
|
||||||
font-size: 1.25rem;
|
|
||||||
line-height: 1.25;
|
|
||||||
}
|
|
||||||
|
|
||||||
.style__italics {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
.word {
|
|
||||||
&__title {
|
|
||||||
font-family: $serif;
|
|
||||||
font-weight: 900;
|
|
||||||
font-size: 2.5rem;
|
|
||||||
line-height: 1.25;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__definition {
|
|
||||||
font-family: $sans-serif;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__speech {
|
|
||||||
font-size: 0.5em;
|
|
||||||
font-family: $sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__signal {
|
|
||||||
border-top: 1px solid currentcolor;
|
|
||||||
// border-radius: 100px;
|
|
||||||
display: inline-block;
|
|
||||||
font-family: $ext-sans;
|
|
||||||
text-transform: uppercase;
|
|
||||||
font-size: 0.75rem;
|
|
||||||
letter-spacing: 0.15rem;
|
|
||||||
padding: 0.5rem 0.75rem;
|
|
||||||
|
|
||||||
&__avoid {
|
|
||||||
color: red;
|
|
||||||
|
|
||||||
&:before {
|
|
||||||
content: '🚨';
|
|
||||||
margin-left: -2.15rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__better {
|
|
||||||
color: green;
|
|
||||||
|
|
||||||
&:before {
|
|
||||||
content: '👍';
|
|
||||||
margin-left: -2.15rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.block__type {
|
.block__type {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 4fr;
|
grid-template-columns: 1fr 4fr;
|
||||||
@ -397,6 +318,7 @@ p {
|
|||||||
padding: 0.45rem 0.65rem;
|
padding: 0.45rem 0.65rem;
|
||||||
margin: 0.25rem 0.75rem;
|
margin: 0.25rem 0.75rem;
|
||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
@include icon__avoid();
|
@include icon__avoid();
|
||||||
@include icon__embed();
|
@include icon__embed();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user