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
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cards</title>
<meta charset="UTF-8">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,700&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons+Round">
<style>
* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Roboto", sans-serif; transition-timing-function: ease-in-out; }
html {
padding: .5in;
background: #eee;
/*filter: invert(1) hue-rotate(180deg);*/
}
.card-shadow {
position: relative;
margin: 16px auto;
width: 5.5in;
border-radius: 24px;
box-shadow: 0 2px 16px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.1);
/*box-shadow: 0 0 1px #000;*/
transition: box-shadow .2s;
}
.card-shadow:hover {
box-shadow: 0 2px 16px rgba(0,0,0,.15), 0 2px 4px rgba(0,0,0,.15);
}
.card {
padding-bottom: 16px;
border-radius: 24px;
background-color: #fff;
overflow: hidden;
color: rgba(0,0,0,.87);
}
h2 {
margin: 0 24px 0;
font-size: 24px;
line-height: 36px;
font-weight: normal;
}
h2:first-child {
margin-top: 18px;
}
h3 {
margin: 22px 24px 0;
font-size: 14px;
line-height: 16px;
font-weight: 500;
letter-spacing: 0.1px;
color: rgba(0,0,0,.38);
}
h3 .material-icons-round {
font-size: 16px;
vertical-align: -3px;
}
p {
margin: 16px 24px 0;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.5px;
}
pre {
margin: 16px 0 0;
padding: 16px 24px;
font: 14px/1.3em "Hack", monospace;
background: rgba(0,0,0,.04);
}
pre:first-child {
margin: 0;
padding-top: 18px;
}
pre:last-child {
padding-bottom: 18px;
}
pre:has(+.tags) {
margin-bottom: 16px;
}
.tags {
margin: 8px 20px 6px 24px;
text-align: right;
font-size: 14px;
line-height: 16px;
color: rgba(0,0,0,.38);
}
.tag {
display: inline-block;
margin: 0 3px;
}
.tags .material-icons-round {
font-size: 20px;
vertical-align: -5px;
}
.edit {
float: right;
margin: 20px;
color: rgba(0,0,0,.25);
}
.card img {
display: block;
width: 100%;
margin: 16px 0;
}
.card img:first-child {
margin-top: 0;
}
.card img:last-child {
margin-bottom: 0;
}
.card:has(pre:last-child),
.card:has(img:last-child) {
padding-bottom: 0;
}
code {
margin: 0 -2px;
padding: 2px 4px;
font: 14px/1.3em "Hack", monospace;
white-space: nowrap;
background: rgba(0,0,0,.05);
border-radius: 4px;
letter-spacing: 0;
}
.gfm-color_chip {
display: inline-block;
line-height: 1;
margin: 0 0 2px 4px;
vertical-align: middle;
border-radius: 3px;
width: 0.9em;
height: 0.9em;
background: #fff;
background-image: linear-gradient(135deg, #ded6ee 25%, transparent 0%, transparent 75%, #ded6ee 0%),linear-gradient(135deg, #ded6ee 25%, transparent 0%, transparent 75%, #ded6ee 0%);
background-size: 1em 1em;
background-position: 0 0, 0.5em 0.5em;
}
.gfm-color_chip>span {
display: inline-block;
width: 100%;
height: 100%;
margin-bottom: 2px;
border-radius: 3px;
border: 1px solid rgba(31,30,36,0.24);
}
</style>
</head>
<body>
<div class="card-shadow" style="z-index:1"><div class="card">
<div class="edit"><i class="material-icons-round">edit</i></div>
<h3>Parent, Other Parent
<i class="material-icons-round">push_pin</i>
<i class="material-icons-round">public</i>
</h3>
<h2>Example Note</h2>
<p>Meh <strong>bold</strong> <em>italic</em> meh whatever <del>lorem</del> ipsum dolor sit amet adispicing elit</p>
<p><span style="color:#1565C0">Foobar</span> <span style="color:#b00020">lipsum</span> <span style="background:#feefc3">yeet</span> <code>uwu</code></p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Call the <code>load()</code> function. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<pre>function test() {
return 42;
}</pre>
<p>It has <em>survived</em> not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. <code>RGBA(0,255,0,0.3)<span class="gfm-color_chip"><span style="background-color: RGBA(0,255,0,0.3);"></span></span></code></p>
<div class="tags"><span class="tag">#hash</span> <span class="tag">#tag</span>
<i class="material-icons-round">more_vert</i>
</div>
</div></div>
<div class="card-shadow"><div class="card">
<p>Short note</p>
</div></div>
<div class="card-shadow"><div class="card">
<h2>Parentless Note</h2>
<p>Content, words, et cetera.</p>
<div class="tags">
<i class="material-icons-round">more_vert</i>
</div>
</div></div>
<div class="card-shadow"><div class="card">
<h3>
<i class="material-icons-round">push_pin</i>
</h3>
<h2>Pinned Note</h2>
<p>More content? Huh, weird.</p>
<div class="tags">
<i class="material-icons-round">more_vert</i>
</div>
</div></div>
<div class="card-shadow"><div class="card">
<pre>function codeCard() {
return "Yay!";
}</pre>
</div></div>
<div class="card-shadow"><div class="card">
<pre>codeCard2();</pre>
<p>Intermission 1</p>
<pre>secondAct(omg);</pre>
<p>Intermission 2</p>
<pre>finale(applause);</pre>
</div></div>
<div class="card-shadow"><div class="card">
<h3>Photography
<i class="material-icons-round">public</i>
</h3>
<h2>Note with a picture</h2>
<img src="https://images.unsplash.com/photo-1608021413768-4c7529c82d7c?w=1024" alt="Meh">
<div class="tags"><span class="tag">#nature</span>
<i class="material-icons-round">more_vert</i>
</div>
</div></div>
<div class="card-shadow"><div class="card">
<img src="https://images.unsplash.com/photo-1608021413768-4c7529c82d7c?w=1024" alt="Meh">
</div></div>
</body>
</html>
|