Skip to content

Commit 6c30f81

Browse files
Merge pull request #9755 from circleci/fix-spacing
Fix spacing and styles - round 3
2 parents 7094920 + 1e70c63 commit 6c30f81

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

ui/src/css/doc.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,14 @@
320320
margin: 1rem 0 0;
321321
}
322322

323+
.doc .openblock.tabs {
324+
margin-top: calc(40 / var(--rem-base) * 1rem);
325+
}
326+
327+
.doc .imageblock {
328+
margin-top: calc(40 / var(--rem-base) * 1rem);
329+
}
330+
323331
.doc > table.tableblock,
324332
.doc > table.tableblock + *,
325333
.doc .tablecontainer,
@@ -658,7 +666,7 @@
658666
vertical-align: middle;
659667
object-fit: contain;
660668
border: 1px solid #D4D4D4;
661-
border-radius: 8px;
669+
border-radius: 12px;
662670
}
663671

664672
/* Remove border for images with no-border class */

ui/src/css/tabs.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*! Asciidoctor Tabs | Copyright (c) 2018-present Dan Allen | MIT License */
22
.tabs {
3-
margin-bottom: 1.25em;
3+
margin-bottom: 1.25rem;
44
}
55

66
.tablist > ul {
@@ -19,8 +19,8 @@
1919
display: flex;
2020
font-weight: 400;
2121
line-height: 1.5;
22-
padding: 1em 1px;
23-
margin-right: 1.5em;
22+
padding: 1rem 1px;
23+
margin-right: 1.5rem;
2424
position: relative;
2525
}
2626

@@ -42,7 +42,7 @@
4242
}
4343

4444
.tablist.ulist > ul li {
45-
margin: 0 1.5em 0 0;
45+
margin: 0 1.5rem 0 0;
4646
}
4747

4848
/* Disabled to allow borders to show
@@ -80,7 +80,7 @@
8080

8181
.tabpanel {
8282
background-color: #fff;
83-
padding: 1.25em 0;
83+
padding: calc(40 / var(--rem-base) * 1rem) 0 calc(20 / var(--rem-base) * 1rem) 0;
8484
}
8585

8686
.tabs.is-loading .tabpanel + .tabpanel,
@@ -104,7 +104,7 @@
104104
}
105105

106106
#content .tablecontainer {
107-
margin-bottom: 1.25em;
107+
margin-bottom: 1.25rem;
108108
}
109109

110110
#content .tablecontainer > table.tableblock {

0 commit comments

Comments
 (0)