mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-31 04:07:54 +01:00
💻 | Rework typography style
This commit is contained in:
@@ -19,5 +19,49 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nuxt-content-editor {
|
.nuxt-content-editor {
|
||||||
@apply dark:bg-dark-800 border dark:border-white border-black border-solid;
|
@apply dark:(bg-dark-800 text-white) border dark:border-white border-black border-solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
//TODO remove with windicss/typography
|
||||||
|
.nuxt-content-container {
|
||||||
|
p {
|
||||||
|
@apply text-gray-700 dark:text-gray-400
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
@apply font-bold text-black dark:text-white mt-8 mb-4
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
@apply list-inside list-disc my-4 text-gray-700 dark:text-gray-400
|
||||||
|
}
|
||||||
|
|
||||||
|
p, li {
|
||||||
|
@apply text-lg
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
@apply text-4xl
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
@apply text-3xl
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
@apply text-2xl
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
@apply text-xl
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
@apply text-lg
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
@apply text-sm
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
const colors = require('windicss/colors')
|
const colors = require('windicss/colors')
|
||||||
const typography = require('windicss/plugin/typography')
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [],
|
presets: [],
|
||||||
@@ -11,17 +10,16 @@ module.exports = {
|
|||||||
css: [
|
css: [
|
||||||
{
|
{
|
||||||
a: {
|
a: {
|
||||||
color: theme('colors.green.400'),
|
color: theme('colors.teal.400'),
|
||||||
transitionDuration: '300ms',
|
transitionDuration: '300ms',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
borderBottomColor: theme('colors.dark.200'),
|
borderBottomColor: theme('colors.gray.200'),
|
||||||
borderOpacity: '0%',
|
borderOpacity: '0%',
|
||||||
borderBottomWidth: '2px',
|
borderBottomWidth: '2px',
|
||||||
borderBottomStyle: 'solid',
|
borderBottomStyle: 'solid',
|
||||||
textDecoration: 'none',
|
textDecoration: 'none',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
borderBottomColor: theme('colors.green.400'),
|
borderBottomColor: theme('colors.teal.400'),
|
||||||
color: theme('colors.black')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -35,16 +33,15 @@ module.exports = {
|
|||||||
color: theme('colors.dark.100'),
|
color: theme('colors.dark.100'),
|
||||||
},
|
},
|
||||||
a: {
|
a: {
|
||||||
color: theme('colors.green.400'),
|
color: theme('colors.teal.400'),
|
||||||
transitionDuration: '300ms',
|
transitionDuration: '300ms',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
borderBottomColor: theme('colors.dark.200'),
|
borderBottomColor: theme('colors.gray.700'),
|
||||||
borderBottomWidth: '2px',
|
borderBottomWidth: '2px',
|
||||||
borderBottomStyle: 'solid',
|
borderBottomStyle: 'solid',
|
||||||
textDecoration: 'none',
|
textDecoration: 'none',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
borderBottomColor: theme('colors.green.400'),
|
borderBottomColor: theme('colors.teal.400'),
|
||||||
color: theme('colors.white')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
strong: {
|
strong: {
|
||||||
@@ -832,6 +829,6 @@ module.exports = {
|
|||||||
'disabled',
|
'disabled',
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
typography
|
require('windicss/plugin/typography')
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user