Skip to content

Commit 8e56da5

Browse files
committed
Extract HydeFront partials
1 parent 4aee3cd commit 8e56da5

File tree

6 files changed

+75
-90
lines changed

6 files changed

+75
-90
lines changed

_media/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.prose blockquote.info {
2+
@apply border-blue-500;
3+
}
4+
5+
.prose blockquote.success {
6+
@apply border-green-500;
7+
}
8+
9+
.prose blockquote.warning {
10+
@apply border-amber-500;
11+
}
12+
13+
.prose blockquote.danger {
14+
@apply border-red-600;
15+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
2+
@apply w-fit;
3+
}
4+
5+
.prose :is(h1,h2,h3,h4,h5,h6):hover .heading-permalink,
6+
.prose :is(h1,h2,h3,h4,h5,h6):focus .heading-permalink {
7+
@apply opacity-75 grayscale transition-opacity duration-100 ease-out;
8+
}
9+
10+
.heading-permalink {
11+
@apply opacity-0 ml-1 transition-opacity duration-300 ease-linear px-1 scroll-m-4;
12+
}
13+
14+
.heading-permalink::before {
15+
@apply content-['#'];
16+
}
17+
18+
.heading-permalink:hover, .heading-permalink:focus {
19+
@apply opacity-100 grayscale-0;
20+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.table-of-contents {
2+
@apply pb-3;
3+
}
4+
5+
.table-of-contents > li {
6+
@apply my-[0.35rem];
7+
}
8+
9+
.table-of-contents ul {
10+
@apply pl-2;
11+
}
12+
13+
.table-of-contents a {
14+
@apply block -ml-8 pl-8 opacity-80 hover:opacity-100 hover:bg-gray-200/20 transition-all duration-300 relative;
15+
}
16+
17+
.table-of-contents a::before {
18+
@apply content-['#'] text-[75%] opacity-50 mr-1 transition-opacity duration-300;
19+
}
20+
21+
.table-of-contents a:hover::before {
22+
@apply opacity-100;
23+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pre code.torchlight {
2+
@apply block py-4 px-0 min-w-max;
3+
}
4+
5+
pre code.torchlight .line {
6+
@apply px-4;
7+
}
8+
9+
pre code.torchlight .line-number, pre code.torchlight .summary-caret {
10+
@apply mr-4;
11+
}

resources/assets/app.css

Lines changed: 5 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -11,95 +11,11 @@
1111
* See https://hydephp.com/docs/1.x/managing-assets#loading-from-cdn
1212
*/
1313

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+
1419
@tailwind base;
1520
@tailwind components;
1621
@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

Comments
 (0)