Skip to content

Commit 3dd7db4

Browse files
committed
Added note for blockquotes and fixed another longstanding visual bug with margin on the first item of a blockquote
1 parent 43f69c2 commit 3dd7db4

File tree

2 files changed

+32
-25
lines changed

2 files changed

+32
-25
lines changed

lessons/03-thoughts-on-js-and-css/A-css.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ title: "CSS"
33
description: "CSS is for styling"
44
---
55

6-
CSS is important
6+
> 💡 Did you know that CSS is an acronym for Completely Spontaneous Spacing
7+
8+
Use blockquotes for callouts.

styles/courses.css

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ blockquote > *:last-child {
338338
margin-bottom: 0;
339339
}
340340

341+
blockquote > *:first-child {
342+
margin-top: 0;
343+
}
344+
341345
.lesson-content img {
342346
max-width: 100%;
343347
}
@@ -361,7 +365,7 @@ blockquote > *:last-child {
361365
.lesson-text {
362366
width: 100%;
363367
padding: 25px 5px 25px 35px;
364-
min-height: 200px
368+
min-height: 200px;
365369
}
366370

367371
.sections-name {
@@ -469,8 +473,8 @@ ol.sections-name .lesson-details {
469473
}
470474

471475
ol.sections-name .lesson-preface {
472-
font-size:60px
473-
}
476+
font-size: 60px;
477+
}
474478
}
475479

476480
.lesson-details h3 {
@@ -521,7 +525,7 @@ ol.sections-name .lesson-details {
521525

522526
code,
523527
pre code {
524-
padding: .5rem;
528+
padding: 0.5rem;
525529
}
526530

527531
code,
@@ -537,27 +541,27 @@ pre code.hljs {
537541
}
538542

539543
pre {
540-
position: relative;
544+
position: relative;
541545
}
542546

543547
.div-copy {
544-
position: absolute;
545-
top: 0;
546-
right: 0;
548+
position: absolute;
549+
top: 0;
550+
right: 0;
547551
}
548552

549553
.div-copy .tooltip-copy::after {
550-
content: "";
551-
position: absolute;
552-
right: 100%;
553-
margin-right: -4px;
554-
top: 60%;
555-
transform: translateY(-50%);
556-
border-style: solid;
557-
border-width: 2px 2px 5px 8px;
558-
border-color: transparent transparent transparent #444;
559-
opacity: 0;
560-
transition: opacity .3s;
554+
content: "";
555+
position: absolute;
556+
right: 100%;
557+
margin-right: -4px;
558+
top: 60%;
559+
transform: translateY(-50%);
560+
border-style: solid;
561+
border-width: 2px 2px 5px 8px;
562+
border-color: transparent transparent transparent #444;
563+
opacity: 0;
564+
transition: opacity 0.3s;
561565
}
562566

563567
.div-copy .tooltip-copy::before {
@@ -573,14 +577,15 @@ pre {
573577
color: #fff;
574578
text-align: center;
575579
opacity: 0;
576-
transition: opacity .3s;
580+
transition: opacity 0.3s;
577581
}
578582

579583
.div-copy .tooltip-copy {
580-
margin-right: 0.3em;
581-
margin-top: 0.3em;
584+
margin-right: 0.3em;
585+
margin-top: 0.3em;
582586
}
583587

584-
.div-copy.clicked .tooltip-copy::before, .div-copy.clicked .tooltip-copy::after {
585-
opacity: 1;
588+
.div-copy.clicked .tooltip-copy::before,
589+
.div-copy.clicked .tooltip-copy::after {
590+
opacity: 1;
586591
}

0 commit comments

Comments
 (0)