Skip to content

Commit 02ad1af

Browse files
authored
Fix dark mode blockquote and TODO (#71)
1 parent c85fdda commit 02ad1af

File tree

2 files changed

+33
-28
lines changed

2 files changed

+33
-28
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PlutoTeachingTools"
22
uuid = "661c6b06-c737-4d37-b85c-46df65de6f69"
33
authors = ["Eric Ford <[email protected]> and contributors"]
4-
version = "0.4.5"
4+
version = "0.4.6"
55

66
[deps]
77
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"

src/computational_thinking.jl

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function TODO(; lang::AbstractLanguage=default_language[], text="", heading=todo
270270
271271
div.ptt-todo-content {
272272
padding:1.2rem;
273-
background-color: white;
273+
background-color: var(--white);
274274
}
275275
</style>
276276
""")
@@ -295,7 +295,7 @@ function blockquote(text, author="")
295295
<div class="nice-blockquote nice-blockquote__bordered nice-blockquote--quoted">
296296
<p class="nice-blockquote__text">
297297
$text
298-
<p>
298+
</p>
299299
<div class="nice-blockquote__text nice-blockquote__text--author">
300300
$author
301301
</div>
@@ -310,21 +310,35 @@ function blockquote(text, author="")
310310
.nice-blockquote__bordered{
311311
border-left-width: 14px;
312312
}
313-
.nice-blockquote--quoted::before{
314-
content:open-quote;
315-
font-size:70px;
316-
font-family: Arial;
317-
font-weight:bold;
318-
color:#ccc;
319-
display:block;
320-
margin-top:-20px;
321-
margin-bottom:-40px;
322-
font-family: Arial;
313+
p.nice-blockquote__text::before,
314+
p.nice-blockquote__text::after{
315+
content: open-quote;
316+
font-size: 70px;
317+
font-family: Arial;
318+
font-weight: bold;
319+
color: #ccc;
320+
display: block;
321+
/* margin-top: -20px; */
322+
/* margin-bottom: -40px; */
323+
font-family: Arial;
324+
float: left;
325+
/* padding: 0.1ch 1ch; */
326+
}
327+
328+
p.nice-blockquote__text::before{
329+
padding-inline-end: .2ch;
330+
line-height: 0.5;
323331
}
332+
p.nice-blockquote__text::after{
333+
content: close-quote;
334+
float: right;
335+
padding-inline-start: .2ch;
336+
line-height: .7;
337+
}
338+
324339
.nice-blockquote__text{
325340
font-family: Arial;
326341
font-style: italic;
327-
fontsize: 1.5em;
328342
margin:0;
329343
line height: 1.5;
330344
text-align:left;
@@ -333,21 +347,12 @@ function blockquote(text, author="")
333347
margin-bottom:10px;
334348
}
335349
.nice-blockquote__text--author{
336-
font-weight:bold;
337-
font-style: normal;
338-
text-align:right;
339-
fontsize: 2em;
340-
}
341-
.nice-blockquote__text--author::before{
342-
content:close-quote;
343-
font-size:70px;
344-
font-family: Arial;
345-
font-weight:bold;
346-
color:#ccc;
347-
display:block;
348-
margin-top:-28px;
349-
margin-bottom:-40px;
350+
font-weight:bold;
351+
font-style: normal;
352+
text-align:right;
353+
margin-block-start: 3em;
350354
}
355+
351356
</style>
352357
""")
353358
end

0 commit comments

Comments
 (0)