public/app.vue

79 lines
1.1 KiB
Vue
Raw Normal View History

2022-07-21 16:50:03 -04:00
<template>
2022-07-21 22:03:35 -04:00
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
2022-07-21 16:50:03 -04:00
</template>
2022-07-21 22:03:35 -04:00
2023-01-28 15:59:29 -05:00
<style lang="scss">
2022-07-21 22:03:35 -04:00
* {
box-sizing: border-box;
/* for that cool wave dark mode effect */
z-index: 1;
position: relative;
}
html,
body,
div#__nuxt {
height: 100%;
width: 100%;
}
:root {
--text-color: #243746;
--bg: #f1e7d0;
}
.dark {
--text-color: #ebf4f1;
--bg: #091a28;
}
2022-12-31 20:27:53 -05:00
2023-01-28 15:59:29 -05:00
.prose {
2022-12-31 20:27:53 -05:00
/*
override default tailwind styles
these have a default specificity of 0, 4, 0 so !important is basically the only way
*/
2023-01-28 15:59:29 -05:00
h2,
h3,
h4,
h5,
h6 {
& > a {
font-weight: bold !important;
text-decoration: none !important;
}
}
2022-12-31 20:27:53 -05:00
}
2023-01-28 15:59:29 -05:00
.prose article {
h2,
h3,
h4,
h5,
h6 {
& > a:hover {
@apply hover:text-blue-700 dark:hover:text-blue-400;
&::before {
content: "#";
position: absolute;
opacity: 0.5;
left: -2rem;
font-style: italic;
}
}
}
a:hover {
@apply hover:text-blue-700 dark:hover:text-blue-400;
}
p {
font-family: "Source Serif Pro", serif;
line-height: 1.8;
color: #111;
font-size: 1.25rem;
}
2022-12-31 20:27:53 -05:00
}
2022-07-21 22:03:35 -04:00
</style>