|
5 | 5 | * The HydeFront package contains some base styles to make your site look even more amazing. |
6 | 6 | * |
7 | 7 | * The compiled result of this file is shipped with HydePHP and is found at _media/app.css, |
8 | | -* so you don't need to compile this file unless you're making changes. |
| 8 | +* so you don't need to compile this file unless you're making changes to Tailwind styles. |
9 | 9 | * |
10 | 10 | * If you want, you can load the compiled file with minified styles for a base install from the CDN. |
11 | 11 | * See https://hydephp.com/docs/1.x/managing-assets#loading-from-cdn |
12 | 12 | */ |
13 | 13 |
|
| 14 | +@import 'hydefront/components/table-of-contents.css'; |
| 15 | +@import 'hydefront/components/heading-permalinks.css'; |
| 16 | +@import 'hydefront/components/torchlight.css'; |
| 17 | +@import 'hydefront/components/blockquotes.css'; |
| 18 | + |
14 | 19 | @tailwind base; |
15 | 20 | @tailwind components; |
16 | 21 | @tailwind utilities; |
17 | | - |
18 | | -/** |
19 | | - * Documentation Pages - Table of Contents |
20 | | - */ |
21 | | - |
22 | | -.table-of-contents { |
23 | | - @apply pb-3; |
24 | | -} |
25 | | - |
26 | | -.table-of-contents > li { |
27 | | - @apply my-[0.35rem]; |
28 | | -} |
29 | | - |
30 | | -.table-of-contents ul { |
31 | | - @apply pl-2; |
32 | | -} |
33 | | - |
34 | | -.table-of-contents a { |
35 | | - @apply block -ml-8 pl-8 opacity-80 hover:opacity-100 hover:bg-gray-200/20 transition-all duration-300 relative; |
36 | | -} |
37 | | - |
38 | | -.table-of-contents a::before { |
39 | | - @apply content-['#'] text-[75%] opacity-50 mr-1 transition-opacity duration-300; |
40 | | -} |
41 | | - |
42 | | -.table-of-contents a:hover::before { |
43 | | - @apply opacity-100; |
44 | | -} |
45 | | - |
46 | | -/** |
47 | | - * Documentation Pages - Heading Permalinks |
48 | | - */ |
49 | | - |
50 | | -.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { |
51 | | - @apply w-fit; |
52 | | -} |
53 | | - |
54 | | -.prose :is(h1,h2,h3,h4,h5,h6):hover .heading-permalink, |
55 | | -.prose :is(h1,h2,h3,h4,h5,h6):focus .heading-permalink { |
56 | | - @apply opacity-75 grayscale transition-opacity duration-100 ease-out; |
57 | | -} |
58 | | - |
59 | | -.heading-permalink { |
60 | | - @apply opacity-0 ml-1 transition-opacity duration-300 ease-linear px-1 scroll-m-4; |
61 | | -} |
62 | | - |
63 | | -.heading-permalink::before { |
64 | | - @apply content-['#']; |
65 | | -} |
66 | | - |
67 | | -.heading-permalink:hover, .heading-permalink:focus { |
68 | | - @apply opacity-100 grayscale-0; |
69 | | -} |
70 | | - |
71 | | -/** |
72 | | - * Torchlight |
73 | | - */ |
74 | | - |
75 | | -pre code.torchlight { |
76 | | - @apply block py-4 px-0 min-w-max; |
77 | | -} |
78 | | - |
79 | | -pre code.torchlight .line { |
80 | | - @apply px-4; |
81 | | -} |
82 | | - |
83 | | -pre code.torchlight .line-number, pre code.torchlight .summary-caret { |
84 | | - @apply mr-4; |
85 | | -} |
86 | | - |
87 | | -/** |
88 | | - * Colored Blockquotes |
89 | | - */ |
90 | | - |
91 | | -.prose blockquote.info { |
92 | | - @apply border-blue-500; |
93 | | -} |
94 | | - |
95 | | -.prose blockquote.success { |
96 | | - @apply border-green-500; |
97 | | -} |
98 | | - |
99 | | -.prose blockquote.warning { |
100 | | - @apply border-amber-500; |
101 | | -} |
102 | | - |
103 | | -.prose blockquote.danger { |
104 | | - @apply border-red-600; |
105 | | -} |
0 commit comments