clean up styles
This commit is contained in:
@@ -24,7 +24,4 @@ const { size } = Astro.props;
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
border-radius: 200px;
|
border-radius: 200px;
|
||||||
}
|
}
|
||||||
a > svg {
|
|
||||||
transform: translateY(0.18rem);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -31,11 +31,11 @@ const { title, date, slug } = Astro.props;
|
|||||||
|
|
||||||
.blog-header {
|
.blog-header {
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
|
||||||
|
|
||||||
.blog-header > h2 {
|
& h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.calendar-icon {
|
.calendar-icon {
|
||||||
transform: translateY(0.3rem);
|
transform: translateY(0.3rem);
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ const { post } = Astro.props;
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
article {
|
article {
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
}
|
|
||||||
|
|
||||||
article:not(:first-child) {
|
&:not(:first-child) {
|
||||||
border-top: var(--border);
|
border-top: var(--border);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -39,15 +39,15 @@ const { title, image, links } = Astro.props;
|
|||||||
border: var(--border);
|
border: var(--border);
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
|
||||||
|
|
||||||
.card > div {
|
& div {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
& h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
|||||||
@@ -45,20 +45,20 @@ const year = new Date().getFullYear();
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
|
||||||
|
|
||||||
.socials a {
|
& a {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
|
||||||
|
|
||||||
.rss-icon {
|
& .rss-icon {
|
||||||
color: var(--orange);
|
color: var(--orange);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mastodon-icon {
|
& .mastodon-icon {
|
||||||
color: var(--blue);
|
color: var(--blue);
|
||||||
transform: translateY(4px);
|
transform: translateY(4px);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 516px) {
|
@media (max-width: 516px) {
|
||||||
.socials {
|
.socials {
|
||||||
|
|||||||
@@ -69,12 +69,12 @@ import { navLinks } from "../../data/nav-links";
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
transition: $transition;
|
transition: $transition;
|
||||||
}
|
|
||||||
|
|
||||||
.drawer > div {
|
& div {
|
||||||
padding: 8px 6px 4px;
|
padding: 8px 6px 4px;
|
||||||
border-bottom: var(--border);
|
border-bottom: var(--border);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|||||||
@@ -26,9 +26,8 @@ import Nav from "./Nav.astro";
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
border-bottom: var(--border);
|
border-bottom: var(--border);
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
& .container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -37,13 +36,14 @@ import Nav from "./Nav.astro";
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
.container > div {
|
& div {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import { navLinks } from "../../data/nav-links";
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@use "../../styles/variables.scss" as *;
|
@use "../../styles/variables.scss" as *;
|
||||||
|
|
||||||
nav > ul {
|
ul {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@@ -25,12 +25,12 @@ import { navLinks } from "../../data/nav-links";
|
|||||||
font-size: 1.15rem;
|
font-size: 1.15rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
& a {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: $max-mobile-width) {
|
@media screen and (max-width: $max-mobile-width) {
|
||||||
nav {
|
nav {
|
||||||
|
|||||||
@@ -14,19 +14,21 @@ import BrushIcon from "../../assets/svg/paintbrush.svg";
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@use "../styles/variables.scss" as *;
|
||||||
|
|
||||||
.toggles {
|
.toggles {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
|
||||||
|
|
||||||
.toggles > div {
|
div {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -36,13 +38,12 @@ import BrushIcon from "../../assets/svg/paintbrush.svg";
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: var(--orange);
|
background-color: var(--orange);
|
||||||
border-radius: 120px;
|
border-radius: 120px;
|
||||||
}
|
|
||||||
|
|
||||||
input:checked {
|
&:checked {
|
||||||
background-color: var(--sky);
|
background-color: var(--sky);
|
||||||
}
|
}
|
||||||
|
|
||||||
input::after {
|
&:after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
@@ -51,12 +52,13 @@ import BrushIcon from "../../assets/svg/paintbrush.svg";
|
|||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
left: 1px;
|
left: 1px;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
transition: all 0.1s ease-in-out;
|
transition: $quick-transition;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:checked:after {
|
&:checked:after {
|
||||||
left: 15px;
|
left: 15px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 516px) {
|
@media (max-width: 516px) {
|
||||||
.toggles {
|
.toggles {
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ main {
|
|||||||
a {
|
a {
|
||||||
color: var(--blue);
|
color: var(--blue);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
&:hover {
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main p {
|
main p {
|
||||||
@@ -112,14 +112,14 @@ kbd {
|
|||||||
aspect-ratio: square;
|
aspect-ratio: square;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
}
|
|
||||||
|
|
||||||
.icon-button:active {
|
&:active {
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-button > svg {
|
& svg {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* shiki */
|
/* shiki */
|
||||||
|
|||||||
@@ -2,4 +2,10 @@ $max-mobile-width: 768px;
|
|||||||
$max-page-width: 800px;
|
$max-page-width: 800px;
|
||||||
$radius: 5px;
|
$radius: 5px;
|
||||||
$border-style: 1px solid;
|
$border-style: 1px solid;
|
||||||
$transition: all 0.3s ease-in-out;
|
|
||||||
|
/* transitions */
|
||||||
|
$transition-duration: 0.3s;
|
||||||
|
$quick-transition-duration: 0.1s;
|
||||||
|
|
||||||
|
$transition: all $transition-duration ease-in-out;
|
||||||
|
$quick-transition: all $quick-transition-duration ease-in-out;
|
||||||
|
|||||||
Reference in New Issue
Block a user