aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/partials/tailwind.html
blob: 616ab3a28b5cce59c6b9d5a9cedca34ae74baa16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<style type="text/tailwindcss">
  @layer utilities {

    /* Container */
    .container-blog {
      max-width: 700px;
    }

    /* User text selection */
    ::selection {
      @apply bg-yellow-100 text-black;
    }

    ::-moz-selection {
      @apply bg-yellow-100 text-black;
    }

    /* Headings */
    article.single h2 {
      @apply text-2xl font-bold mb-4 mt-8;
    }

    article.single h3 {
      @apply text-xl font-bold mb-4 mt-8;
    }

    article.single h4 {
      @apply text-lg font-bold mb-4 mt-8;
    }

    /* Paragraph */
    article.single p {
      @apply mb-5;
    }

    /* Links */
    article.single a {
      @apply underline hover:bg-yellow-100;
    }

    /* Blockquote */
    article.single blockquote {
      background-image: url('/general/alert-light.svg');
      background-size: 30px 30px;
      background-repeat: no-repeat;
      background-position: 0 5px;
      @apply pl-12 my-8;
    }

    /* Media: Images, audio, video */
    article.single img {
      @apply rounded w-full !bg-gray-50 my-8;
    }

    article.single video {
      @apply rounded w-full !bg-gray-50;
    }

    article.single audio {
      @apply w-full mb-6;
    }

    /* Code */
    article.single code {
      @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium;
    }

    article.single pre {
      @apply !bg-gray-50 rounded text-xs p-4 mb-6 overflow-x-auto;
    }

    article.single pre code {
      background: unset;
      padding: unset;
      @apply leading-relaxed;
    }

    /* Tables */
    article.single table {
      @apply w-full border border-black border-collapse mb-4;
    }

    article.single table tr,
    article.single table td,
    article.single table th {
      @apply px-4 py-2 border text-left;
    }

    /* Unordered list */
    article.single ul {
      @apply list-disc pl-6 md:pl-10 mb-6;
    }

    /* Ordered list */
    article.single ol {
      @apply list-decimal pl-8 md:pl-10;
    }

    /* Katex */
    article.single .katex-display {
      @apply my-10;
    }

    /* Cactus Comments */
    .comments img {
      max-width: auto !important;
      max-width: unset !important;
      max-width: inherit !important;
    }
    .cactus-container .cactus-editor-textarea {
      @apply border w-full h-32 px-3 py-2 outline-none rounded mb-2;
    }

    .cactus-container .cactus-editor-name input {
      @apply border w-full px-3 py-2 mb-2 outline-none rounded;
    }

    .cactus-container .cactus-editor-name {
      @apply mb-1;
    }

    /* Cactus: Buttons */
    .cactus-editor-buttons {
      @apply flex gap-2;
    }

    .cactus-container .cactus-button {
      @apply text-base bg-gray-200 hover:bg-gray-300 font-medium px-6 py-2 rounded;
    }

    .cactus-container .cactus-editor {
      @apply mb-10;
    }

    /* Cactus: Comment List */
    .cactus-container .cactus-comments-list {
      @apply flex flex-col gap-8;
    }

    .cactus-container .cactus-comment {
      @apply flex gap-4;
    }

    .cactus-container .cactus-comment .cactus-comment-avatar img {
      @apply w-8 h-8 rounded-full;
    }

    .cactus-container .cactus-comment .cactus-comment-avatar-placeholder {
      @apply w-8 h-8 rounded-full bg-gray-300;
    }

    .cactus-container .cactus-comment .cactus-comment-header {
      @apply flex gap-2 items-center;
    }

    .cactus-container .cactus-comment .cactus-comment-header .cactus-comment-displayname {
      @apply font-semibold;
    }

    .cactus-container .cactus-comment .cactus-comment-header .cactus-comment-time {
      @apply text-gray-400 text-sm;
    }

    .cactus-container .cactus-comment .cactus-message-text code {
      @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium;
    }

    /* Unordered list */
    .cactus-container .cactus-comment .cactus-message-text  ul {
      @apply list-disc pl-2 md:pl-6;
    }

    /* Ordered list */
    .cactus-container .cactus-comment .cactus-message-text  ol {
      @apply list-decimal pl-2 md:pl-6;
    }

    /* Cactus: Login */
    .cactus-container .cactus-login-form-wrapper {
      @apply border mb-6 p-3 relative rounded;
    }

    .cactus-container .cactus-login-form .cactus-login-close {
      @apply absolute right-3 top-3 w-4 h-4;
    }

    .cactus-container .cactus-login-form .cactus-login-title {
      @apply font-bold mb-4 mt-0 pt-0;
    }

    /* Cactus: Login with a button */
    .cactus-container .cactus-login-form .cactus-login-client {
      @apply mb-6;
    }

    .cactus-container .cactus-login-form .cactus-login-client-title {
      @apply font-semibold mb-2;
    }

    /* Cactus: Login with credentials */
    .cactus-container .cactus-login-form .cactus-login-credentials {
    }

    .cactus-container .cactus-login-form .cactus-login-credentials-title {
      @apply font-semibold mb-1;
    }

    .cactus-container .cactus-login-form .cactus-login-field {
      @apply flex gap-4 mb-2 items-center;
    }

    .cactus-container .cactus-login-form .cactus-login-label {
      @apply w-20;
    }

    .cactus-container .cactus-login-form input {
      @apply border px-2 py-1 rounded;
    }

  }
</style>