aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2022-11-03 21:14:50 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2022-11-03 21:14:50 +0100
commit8282239d1cf73ed8e992dc121f45df29fcb2c872 (patch)
treee8345e8449c8a53942efd3eaff3300fe597aa5c2 /themes
parentbdc60d7d56b5384f13feaaccef28e63d77f15933 (diff)
downloadmitjafelicijan.com-8282239d1cf73ed8e992dc121f45df29fcb2c872.tar.gz
Move to Tailwind 3
Diffstat (limited to 'themes')
-rwxr-xr-xthemes/simple/layouts/partials/head.html6
-rwxr-xr-xthemes/simple/layouts/partials/tailwind.html235
-rw-r--r--themes/simple/static/css/tailwind.css233
3 files changed, 235 insertions, 239 deletions
diff --git a/themes/simple/layouts/partials/head.html b/themes/simple/layouts/partials/head.html
index 256608d..d7fbec6 100755
--- a/themes/simple/layouts/partials/head.html
+++ b/themes/simple/layouts/partials/head.html
@@ -4,6 +4,8 @@
4 4
5<link rel="alternate" type="application/rss+xml" href="/index.xml" title="{{ .Site.Author.name }}"> 5<link rel="alternate" type="application/rss+xml" href="/index.xml" title="{{ .Site.Author.name }}">
6 6
7<link rel="stylesheet" href="/general/index.css">
8
7<link 9<link
8 href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL69vf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv76+/8LBwQkAAAAAAAAAAAAAAAC+vb3/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL+9vf/Bv78JAAAAAAAAAAAAAAAAu7q6/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC7ubr/vr29CAAAAAAAAAAAy8nJAZ6foP8AAAA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v8ZGyH/J9Dg/ybQ4P8ZHCL/FSQs/yPK3/8UExj/GE1b/ybS5P8ZGB7/Ghwj/ynW5P8p2Ob/Ghwi/yWrtv8p1eH/Ghwi/xocIv8p1uT/J8XT/xkcIv8m1un/Hb7d/xUYH/8hzOr/HtHu/xcaIf8XGB//I8vi/xgxOv8XGSD/I8rg/yPK4P8XGiD/GUFL/yPP6f8SERj/Fhkh/x3A4f8AAAAAJ2f9/ydr//8mZPH/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlYu38J2v//ydo/f8AAAAAAAAAAAd8/fkFqf//Iob8sAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMY39awWr//8FfP3/AAAAAAAAAAAFm/7/SfD//wR+/f8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOB/f9B7v//BaX+/wAAAAAAAAAAQ878SAyZ/v9n1v4KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADu9v8DDJb+/z3N/XgAAAAA3/sAAN/7AADf+wAA3/sAAAAAAAAAAAAAAAAAAN/7AAAAAAAAAAAAAAAAAAAAAAAAj/EAAI/5AACP8QAA3/sAAA=="
9 rel="icon" type="image/x-icon" /> 11 rel="icon" type="image/x-icon" />
@@ -16,7 +18,3 @@
16<meta property="og:description" content="{{ if .Summary }}{{ .Summary }}{{ else }}{{ .Site.Params.Description }}{{ end }}"> 18<meta property="og:description" content="{{ if .Summary }}{{ .Summary }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
17<meta property="og:url" content="https://mitjafelicijan.com/{{ .Params.url }}"> 19<meta property="og:url" content="https://mitjafelicijan.com/{{ .Params.url }}">
18<meta property="og:image" content="https://mitjafelicijan.com/general/og.jpg"> 20<meta property="og:image" content="https://mitjafelicijan.com/general/og.jpg">
19
20<script src="https://cdn.tailwindcss.com"></script>
21
22{{ partial "tailwind.html" . }}
diff --git a/themes/simple/layouts/partials/tailwind.html b/themes/simple/layouts/partials/tailwind.html
deleted file mode 100755
index b6fd763..0000000
--- a/themes/simple/layouts/partials/tailwind.html
+++ /dev/null
@@ -1,235 +0,0 @@
1<style type="text/tailwindcss">
2 @layer utilities {
3
4 /* Container */
5 .container-blog {
6 max-width: 700px;
7 }
8
9 /* User text selection */
10 ::selection {
11 @apply bg-yellow-100 text-black;
12 }
13
14 ::-moz-selection {
15 @apply bg-yellow-100 text-black;
16 }
17
18 /* Headings */
19 article.single h2 {
20 @apply text-2xl font-bold mb-4 mt-8;
21 }
22
23 article.single h3 {
24 @apply text-xl font-bold mb-4 mt-8;
25 }
26
27 article.single h4 {
28 @apply text-lg font-bold mb-4 mt-8;
29 }
30
31 /* Paragraph */
32 article.single p {
33 @apply mb-5;
34 }
35
36 /* Links */
37 article.single a {
38 @apply underline hover:bg-yellow-100;
39 }
40
41 /* Blockquote */
42 article.single blockquote {
43 background-image: url('/general/alert-light.svg');
44 background-size: 30px 30px;
45 background-repeat: no-repeat;
46 background-position: 0 5px;
47 @apply pl-12 my-8;
48 }
49
50 /* Media: Images, audio, video */
51 article.single img {
52 @apply rounded w-full !bg-gray-50 my-8;
53 }
54
55 article.single video {
56 @apply rounded w-full !bg-gray-50;
57 }
58
59 article.single audio {
60 @apply w-full mb-6;
61 }
62
63 /* Code */
64 article.single code {
65 @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium;
66 }
67
68 article.single pre {
69 @apply !bg-gray-50 rounded text-xs p-4 mb-6 overflow-x-auto;
70 }
71
72 article.single pre code {
73 background: unset;
74 padding: unset;
75 @apply leading-relaxed;
76 }
77
78 /* Tables */
79 article.single table {
80 @apply w-full border border-black border-collapse mb-4;
81 }
82
83 article.single table tr,
84 article.single table td,
85 article.single table th {
86 @apply px-4 py-2 border text-left;
87 }
88
89 /* Unordered list */
90 article.single ul {
91 @apply list-disc pl-6 md:pl-10 mb-6;
92 }
93
94 /* Ordered list */
95 article.single ol {
96 @apply list-decimal pl-8 md:pl-10;
97 }
98
99 /* Katex */
100 article.single .katex-display {
101 @apply my-10;
102 }
103
104 /* Lazy loading of iframes */
105 article.single .ll-iframe {
106 @apply bg-gray-100 rounded;
107 }
108
109 article.single .ll-iframe::before {
110 @apply h-full flex border-2 border-gray-300 rounded justify-center items-center font-medium text-sm cursor-pointer animate-pulse;
111 content: 'Click here to load resource…';
112 }
113
114 article.single .ll-iframe.empty::before {
115 content: none;
116 }
117
118 /* Cactus Comments */
119 .comments img {
120 max-width: auto !important;
121 max-width: unset !important;
122 max-width: inherit !important;
123 }
124 .cactus-container .cactus-editor-textarea {
125 @apply border w-full h-32 px-3 py-2 outline-none rounded mb-2;
126 }
127
128 .cactus-container .cactus-editor-name input {
129 @apply border w-full px-3 py-2 mb-2 outline-none rounded;
130 }
131
132 .cactus-container .cactus-editor-name {
133 @apply mb-1;
134 }
135
136 /* Cactus: Buttons */
137 .cactus-editor-buttons {
138 @apply flex gap-2;
139 }
140
141 .cactus-container .cactus-button {
142 @apply text-base bg-gray-200 hover:bg-gray-300 font-medium px-6 py-2 rounded;
143 }
144
145 .cactus-container .cactus-editor {
146 @apply mb-10;
147 }
148
149 /* Cactus: Comment List */
150 .cactus-container .cactus-comments-list {
151 @apply flex flex-col gap-8;
152 }
153
154 .cactus-container .cactus-comment {
155 @apply flex gap-4;
156 }
157
158 .cactus-container .cactus-comment .cactus-comment-avatar img {
159 @apply w-8 h-8 rounded-full;
160 }
161
162 .cactus-container .cactus-comment .cactus-comment-avatar-placeholder {
163 @apply w-8 h-8 rounded-full bg-gray-300;
164 }
165
166 .cactus-container .cactus-comment .cactus-comment-header {
167 @apply flex gap-2 items-center;
168 }
169
170 .cactus-container .cactus-comment .cactus-comment-header .cactus-comment-displayname {
171 @apply font-semibold;
172 }
173
174 .cactus-container .cactus-comment .cactus-comment-header .cactus-comment-time {
175 @apply text-gray-400 text-sm;
176 }
177
178 .cactus-container .cactus-comment .cactus-message-text code {
179 @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium;
180 }
181
182 /* Unordered list */
183 .cactus-container .cactus-comment .cactus-message-text ul {
184 @apply list-disc pl-2 md:pl-6;
185 }
186
187 /* Ordered list */
188 .cactus-container .cactus-comment .cactus-message-text ol {
189 @apply list-decimal pl-2 md:pl-6;
190 }
191
192 /* Cactus: Login */
193 .cactus-container .cactus-login-form-wrapper {
194 @apply border mb-6 p-3 relative rounded;
195 }
196
197 .cactus-container .cactus-login-form .cactus-login-close {
198 @apply absolute right-3 top-3 w-4 h-4;
199 }
200
201 .cactus-container .cactus-login-form .cactus-login-title {
202 @apply font-bold mb-4 mt-0 pt-0;
203 }
204
205 /* Cactus: Login with a button */
206 .cactus-container .cactus-login-form .cactus-login-client {
207 @apply mb-6;
208 }
209
210 .cactus-container .cactus-login-form .cactus-login-client-title {
211 @apply font-semibold mb-2;
212 }
213
214 /* Cactus: Login with credentials */
215 .cactus-container .cactus-login-form .cactus-login-credentials {
216 }
217
218 .cactus-container .cactus-login-form .cactus-login-credentials-title {
219 @apply font-semibold mb-1;
220 }
221
222 .cactus-container .cactus-login-form .cactus-login-field {
223 @apply flex gap-4 mb-2 items-center;
224 }
225
226 .cactus-container .cactus-login-form .cactus-login-label {
227 @apply w-20;
228 }
229
230 .cactus-container .cactus-login-form input {
231 @apply border px-2 py-1 rounded;
232 }
233
234 }
235</style>
diff --git a/themes/simple/static/css/tailwind.css b/themes/simple/static/css/tailwind.css
new file mode 100644
index 0000000..199f1c6
--- /dev/null
+++ b/themes/simple/static/css/tailwind.css
@@ -0,0 +1,233 @@
1@tailwind base;
2@tailwind components;
3@tailwind utilities;
4
5/* Container */
6.container-blog {
7 max-width: 700px;
8}
9
10/* User text selection */
11::selection {
12 @apply bg-yellow-100 text-black;
13}
14
15::-moz-selection {
16 @apply bg-yellow-100 text-black;
17}
18
19/* Headings */
20article.single h2 {
21 @apply text-2xl font-bold mb-4 mt-8;
22}
23
24article.single h3 {
25 @apply text-xl font-bold mb-4 mt-8;
26}
27
28article.single h4 {
29 @apply text-lg font-bold mb-4 mt-8;
30}
31
32/* Paragraph */
33article.single p {
34 @apply mb-5;
35}
36
37/* Links */
38article.single a {
39 @apply underline hover:bg-yellow-100;
40}
41
42/* Blockquote */
43article.single blockquote {
44 background-image: url('/general/alert-light.svg');
45 background-size: 30px 30px;
46 background-repeat: no-repeat;
47 background-position: 0 5px;
48 @apply pl-12 my-8;
49}
50
51/* Media: Images, audio, video */
52article.single img {
53 @apply rounded w-full !bg-gray-50 my-8;
54}
55
56article.single video {
57 @apply rounded w-full !bg-gray-50;
58}
59
60article.single audio {
61 @apply w-full mb-6;
62}
63
64/* Code */
65article.single code {
66 @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium;
67}
68
69article.single pre {
70 @apply !bg-gray-50 rounded text-xs p-4 mb-6 overflow-x-auto;
71}
72
73article.single pre code {
74 background: unset;
75 padding: unset;
76 @apply leading-relaxed;
77}
78
79/* Tables */
80article.single table {
81 @apply w-full border border-black border-collapse mb-4;
82}
83
84article.single table tr,
85article.single table td,
86article.single table th {
87 @apply px-4 py-2 border text-left;
88}
89
90/* Unordered list */
91article.single ul {
92 @apply list-disc pl-6 md:pl-10 mb-6;
93}
94
95/* Ordered list */
96article.single ol {
97 @apply list-decimal pl-8 md:pl-10;
98}
99
100/* Katex */
101article.single .katex-display {
102 @apply my-10;
103}
104
105/* Lazy loading of iframes */
106article.single .ll-iframe {
107 @apply bg-gray-100 rounded;
108}
109
110article.single .ll-iframe::before {
111 @apply h-full flex border-2 border-gray-300 rounded justify-center items-center font-medium text-sm cursor-pointer animate-pulse;
112 content: 'Click here to load resource…';
113}
114
115article.single .ll-iframe.empty::before {
116 content: none;
117}
118
119/* Cactus Comments */
120.comments img {
121 max-width: auto !important;
122 max-width: unset !important;
123 max-width: inherit !important;
124}
125
126.cactus-container .cactus-editor-textarea {
127 @apply border w-full h-32 px-3 py-2 outline-none rounded mb-2;
128}
129
130.cactus-container .cactus-editor-name input {
131 @apply border w-full px-3 py-2 mb-2 outline-none rounded;
132}
133
134.cactus-container .cactus-editor-name {
135 @apply mb-1;
136}
137
138/* Cactus: Buttons */
139.cactus-editor-buttons {
140 @apply flex gap-2;
141}
142
143.cactus-container .cactus-button {
144 @apply text-base bg-gray-200 hover:bg-gray-300 font-medium px-6 py-2 rounded;
145}
146
147.cactus-container .cactus-editor {
148 @apply mb-10;
149}
150
151/* Cactus: Comment List */
152.cactus-container .cactus-comments-list {
153 @apply flex flex-col gap-8;
154}
155
156.cactus-container .cactus-comment {
157 @apply flex gap-4;
158}
159
160.cactus-container .cactus-comment .cactus-comment-avatar img {
161 @apply w-8 h-8 rounded-full;
162}
163
164.cactus-container .cactus-comment .cactus-comment-avatar-placeholder {
165 @apply w-8 h-8 rounded-full bg-gray-300;
166}
167
168.cactus-container .cactus-comment .cactus-comment-header {
169 @apply flex gap-2 items-center;
170}
171
172.cactus-container .cactus-comment .cactus-comment-header .cactus-comment-displayname {
173 @apply font-semibold;
174}
175
176.cactus-container .cactus-comment .cactus-comment-header .cactus-comment-time {
177 @apply text-gray-400 text-sm;
178}
179
180.cactus-container .cactus-comment .cactus-message-text code {
181 @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium;
182}
183
184/* Unordered list */
185.cactus-container .cactus-comment .cactus-message-text ul {
186 @apply list-disc pl-2 md:pl-6;
187}
188
189/* Ordered list */
190.cactus-container .cactus-comment .cactus-message-text ol {
191 @apply list-decimal pl-2 md:pl-6;
192}
193
194/* Cactus: Login */
195.cactus-container .cactus-login-form-wrapper {
196 @apply border mb-6 p-3 relative rounded;
197}
198
199.cactus-container .cactus-login-form .cactus-login-close {
200 @apply absolute right-3 top-3 w-4 h-4;
201}
202
203.cactus-container .cactus-login-form .cactus-login-title {
204 @apply font-bold mb-4 mt-0 pt-0;
205}
206
207/* Cactus: Login with a button */
208.cactus-container .cactus-login-form .cactus-login-client {
209 @apply mb-6;
210}
211
212.cactus-container .cactus-login-form .cactus-login-client-title {
213 @apply font-semibold mb-2;
214}
215
216/* Cactus: Login with credentials */
217.cactus-container .cactus-login-form .cactus-login-credentials {}
218
219.cactus-container .cactus-login-form .cactus-login-credentials-title {
220 @apply font-semibold mb-1;
221}
222
223.cactus-container .cactus-login-form .cactus-login-field {
224 @apply flex gap-4 mb-2 items-center;
225}
226
227.cactus-container .cactus-login-form .cactus-login-label {
228 @apply w-20;
229}
230
231.cactus-container .cactus-login-form input {
232 @apply border px-2 py-1 rounded;
233}