aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/static/css/tailwind.css
blob: 51b922c8102108a8c320afe4b8657272ebb02225 (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
@tailwind base;
@tailwind components;
@tailwind utilities;

/* * { cursor: url(/general/9front-cursor.png), auto; } */

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

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

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

/* Helpers */

a:hover {
	color: blue;
}

.blue {
	color: blue;
}

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

article.single.note h2 {
	@apply text-2xl font-bold mb-1 mt-8 leading-tight;
}

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

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

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

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

/* Blockquote */
article.single .content 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;
}

article.single .content blockquote p {
	@apply mb-2;
}

/* Media: Images, audio, video */
article.single figure {
	@apply my-8;
}

article.single figure figcaption {
	@apply text-center italic mt-1;
}

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

	image-rendering: crisp-edges;
	image-rendering: -webkit-optimize-contrast;
}

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.note code {
	@apply bg-gray-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,
article.single.note 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 .content ul {
	@apply list-disc pl-6 md:pl-10 mb-6;
}

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

/* Table of contents */
article.single #TableOfContents {
	@apply mb-10 ml-4 leading-relaxed;
}
article.single #TableOfContents ul {
	@apply list-decimal pl-4 md:pl-6;
}

/* Lists */
article.single .content ul ul {
	margin-bottom: auto;
}

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

/* Lazy loading of iframes */
article.single .ll-iframe {
	@apply bg-gray-100 rounded;
}

article.single .ll-iframe::before {
	@apply h-full flex border-2 border-gray-300 rounded justify-center items-center font-medium text-sm cursor-pointer animate-pulse;
	content: 'Click here to load resource…';
}

article.single .ll-iframe.empty::before {
	content: none;
}