diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-11-03 21:14:50 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-11-03 21:14:50 +0100 |
| commit | 8282239d1cf73ed8e992dc121f45df29fcb2c872 (patch) | |
| tree | e8345e8449c8a53942efd3eaff3300fe597aa5c2 /themes/simple/static | |
| parent | bdc60d7d56b5384f13feaaccef28e63d77f15933 (diff) | |
| download | mitjafelicijan.com-8282239d1cf73ed8e992dc121f45df29fcb2c872.tar.gz | |
Move to Tailwind 3
Diffstat (limited to 'themes/simple/static')
| -rw-r--r-- | themes/simple/static/css/tailwind.css | 233 |
1 files changed, 233 insertions, 0 deletions
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 */ | ||
| 20 | article.single h2 { | ||
| 21 | @apply text-2xl font-bold mb-4 mt-8; | ||
| 22 | } | ||
| 23 | |||
| 24 | article.single h3 { | ||
| 25 | @apply text-xl font-bold mb-4 mt-8; | ||
| 26 | } | ||
| 27 | |||
| 28 | article.single h4 { | ||
| 29 | @apply text-lg font-bold mb-4 mt-8; | ||
| 30 | } | ||
| 31 | |||
| 32 | /* Paragraph */ | ||
| 33 | article.single p { | ||
| 34 | @apply mb-5; | ||
| 35 | } | ||
| 36 | |||
| 37 | /* Links */ | ||
| 38 | article.single a { | ||
| 39 | @apply underline hover:bg-yellow-100; | ||
| 40 | } | ||
| 41 | |||
| 42 | /* Blockquote */ | ||
| 43 | article.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 */ | ||
| 52 | article.single img { | ||
| 53 | @apply rounded w-full !bg-gray-50 my-8; | ||
| 54 | } | ||
| 55 | |||
| 56 | article.single video { | ||
| 57 | @apply rounded w-full !bg-gray-50; | ||
| 58 | } | ||
| 59 | |||
| 60 | article.single audio { | ||
| 61 | @apply w-full mb-6; | ||
| 62 | } | ||
| 63 | |||
| 64 | /* Code */ | ||
| 65 | article.single code { | ||
| 66 | @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium; | ||
| 67 | } | ||
| 68 | |||
| 69 | article.single pre { | ||
| 70 | @apply !bg-gray-50 rounded text-xs p-4 mb-6 overflow-x-auto; | ||
| 71 | } | ||
| 72 | |||
| 73 | article.single pre code { | ||
| 74 | background: unset; | ||
| 75 | padding: unset; | ||
| 76 | @apply leading-relaxed; | ||
| 77 | } | ||
| 78 | |||
| 79 | /* Tables */ | ||
| 80 | article.single table { | ||
| 81 | @apply w-full border border-black border-collapse mb-4; | ||
| 82 | } | ||
| 83 | |||
| 84 | article.single table tr, | ||
| 85 | article.single table td, | ||
| 86 | article.single table th { | ||
| 87 | @apply px-4 py-2 border text-left; | ||
| 88 | } | ||
| 89 | |||
| 90 | /* Unordered list */ | ||
| 91 | article.single ul { | ||
| 92 | @apply list-disc pl-6 md:pl-10 mb-6; | ||
| 93 | } | ||
| 94 | |||
| 95 | /* Ordered list */ | ||
| 96 | article.single ol { | ||
| 97 | @apply list-decimal pl-8 md:pl-10; | ||
| 98 | } | ||
| 99 | |||
| 100 | /* Katex */ | ||
| 101 | article.single .katex-display { | ||
| 102 | @apply my-10; | ||
| 103 | } | ||
| 104 | |||
| 105 | /* Lazy loading of iframes */ | ||
| 106 | article.single .ll-iframe { | ||
| 107 | @apply bg-gray-100 rounded; | ||
| 108 | } | ||
| 109 | |||
| 110 | article.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 | |||
| 115 | article.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 | } | ||
