| 1 | @tailwind base; |
| 2 | @tailwind components; |
| 3 | @tailwind utilities; |
| 4 | |
| 5 | :root { |
| 6 | --noise-image: url('/assets/noise.svg'); |
| 7 | --header-height: 4rem; |
| 8 | --anchor-margin: var(--header-height); |
| 9 | |
| 10 | scroll-padding-top: var(--anchor-margin); |
| 11 | } |
| 12 | |
| 13 | @screen md { |
| 14 | :root { |
| 15 | --header-height: 5rem; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | * { |
| 20 | scrollbar-color: theme('colors.gray.500') theme('colors.gray.300'); |
| 21 | scrollbar-width: thin; |
| 22 | } |
| 23 | *::-webkit-scrollbar { |
| 24 | width: 8px; |
| 25 | height: 8px; |
| 26 | } |
| 27 | *::-webkit-scrollbar-track { |
| 28 | @apply bg-gray-300; |
| 29 | } |
| 30 | *::-webkit-scrollbar-thumb { |
| 31 | @apply rounded-full bg-gray-500 bg-clip-padding; |
| 32 | |
| 33 | border: 1px solid transparent; |
| 34 | } |
| 35 | *::-webkit-scrollbar-thumb:hover { |
| 36 | @apply bg-gray-600; |
| 37 | } |
| 38 | *::-webkit-scrollbar-thumb:hover:active { |
| 39 | @apply bg-gray-700; |
| 40 | } |
| 41 | |
| 42 | html:not(.translating) { |
| 43 | scroll-behavior: smooth; |
| 44 | } |
| 45 | |
| 46 | body { |
| 47 | @apply text-foreground bg-background relative min-h-full; |
| 48 | } |
| 49 | |
| 50 | body::before { |
| 51 | @apply bg-background fixed inset-0 block; |
| 52 | |
| 53 | background-image: var(--noise-image), |
| 54 | linear-gradient( |
| 55 | to bottom, |
| 56 | theme('colors.gray.100'), |
| 57 | theme('colors.background') 50% |
| 58 | ); |
| 59 | content: ''; |
| 60 | z-index: -1; |
| 61 | } |
| 62 | |
| 63 | a:not(.custom-anchor) { |
| 64 | @apply text-marp-darken; |
| 65 | } |
| 66 | |
| 67 | a:not(.custom-anchor):hover { |
| 68 | @apply text-marp-dark underline transition-colors duration-300; |
| 69 | } |
| 70 | |
| 71 | a:not(.custom-anchor):hover:active { |
| 72 | @apply text-marp-darkest duration-0; |
| 73 | } |
| 74 | |
| 75 | mark { |
| 76 | background: none; |
| 77 | color: inherit; |
| 78 | box-shadow: inset 0 -0.2em theme('colors.marp.light'); |
| 79 | } |
| 80 | |
| 81 | /* NProgress */ |
| 82 | #nprogress .bar { |
| 83 | @apply bg-marp-brand; |
| 84 | } |
| 85 | #nprogress .peg { |
| 86 | @apply shadow-none; |
| 87 | } |
| 88 | |
| 89 | /* Helper classes */ |
| 90 | .text-gradient { |
| 91 | @apply text-marp-brand leading-tight; |
| 92 | } |
| 93 | |
| 94 | @supports (background-clip: text) { |
| 95 | .text-gradient { |
| 96 | @apply bg-marp-brand bg-clip-text text-transparent; |
| 97 | |
| 98 | background-image: linear-gradient( |
| 99 | -1deg, |
| 100 | theme('colors.marp.light'), |
| 101 | theme('colors.marp.brand'), |
| 102 | theme('colors.marp.dark') |
| 103 | ); |
| 104 | } |
| 105 | } |
| 106 |