Sitelet https://github.com/ConciseCSS/concise.css/commit/c89aa3e880e50386fb758ce9101b5cf36dbd9e87
Skip to content

Commit c89aa3e

Browse files
committed
Update margins on <p> elements
1 parent 05f00da commit c89aa3e

6 files changed

Lines changed: 5 additions & 31 deletions

File tree

‎dist/concise.css‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ sub {
879879
s {
880880
text-decoration: line-through; }
881881

882-
p {
882+
p:not(:last-child) {
883883
margin-bottom: 20px; }
884884

885885
a {
@@ -1229,8 +1229,6 @@ address {
12291229
margin: 20px 0;
12301230
padding: 8px 1em;
12311231
position: relative; }
1232-
.alert p {
1233-
margin: 0; }
12341232
.alert a {
12351233
color: #222222; }
12361234
.alert a:hover {
@@ -1412,12 +1410,6 @@ a.alert-close:hover {
14121410
display: block;
14131411
margin-top: 10px; }
14141412

1415-
.card-content p {
1416-
margin-bottom: 0; }
1417-
1418-
.card-content p + p {
1419-
margin-bottom: 20px; }
1420-
14211413
.card-footer {
14221414
border-top: 1px solid #e0e0e0;
14231415
font-size: 0.875em;
@@ -1647,17 +1639,13 @@ ol.dropdown-content {
16471639
margin-top: 0; }
16481640

16491641
.modal-body {
1650-
padding: 32px 2.5em 8px; }
1651-
.modal-body p {
1652-
margin-bottom: 24px; }
1642+
padding: 32px 2.5em; }
16531643

16541644
.modal-footer {
16551645
border-top: 1px solid #e0e0e0;
16561646
font-size: 0.875em;
16571647
margin: 0;
16581648
padding: 24px 2.5em; }
1659-
.modal-footer p {
1660-
margin-bottom: 0; }
16611649

16621650
.modal-close {
16631651
color: white;

‎dist/concise.min.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/addons/concise-ui/components/_alerts.scss‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
padding: unitSize(1) 1em;
1313
position: relative;
1414

15-
p { margin: 0; }
16-
1715
a {
1816
color: darken(getColor(text, primary), 20%);
1917

‎src/addons/concise-ui/components/_cards.scss‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
margin-top: unitSize(1, 2);
1818
}
1919

20-
.card-content {
21-
p { margin-bottom: 0; }
22-
23-
p + p { margin-bottom: unitSize(3, -4); }
24-
}
25-
2620
.card-footer {
2721
border-top: 1px solid getColor(base, lines);
2822
font-size: pxToEm(14);

‎src/addons/concise-ui/components/_modals.scss‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,13 @@
5858
margin-top: 0;
5959
}
6060

61-
.modal-body {
62-
padding: unitSize(4) 2.5em unitSize(1);
63-
64-
p { margin-bottom: unitSize(3); }
65-
}
61+
.modal-body { padding: unitSize(4) 2.5em; }
6662

6763
.modal-footer {
6864
border-top: 1px solid getColor(base, lines);
6965
font-size: pxToEm(14);
7066
margin: 0;
7167
padding: unitSize(3) 2.5em;
72-
73-
p { margin-bottom: 0; }
7468
}
7569

7670
.modal-close {

‎src/core/layout/_type.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ s { text-decoration: line-through; }
3939
// Paragraphs
4040
// --------
4141

42-
p { margin-bottom: unitSize(3, -4); }
42+
p:not(:last-child) { margin-bottom: unitSize(3, -4); }
4343

4444

4545
//

0 commit comments

Comments
 (0)