Skip to content

Commit 1489630

Browse files
committed
fix: spacing and dividers
1 parent 4f4705a commit 1489630

File tree

6 files changed

+33
-18
lines changed

6 files changed

+33
-18
lines changed

dokka-subprojects/plugin-base-frontend/src/main/ui-kit/layout/styles.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,16 @@
5252

5353
cursor: ew-resize;
5454
}
55+
56+
.main-content .content > hr {
57+
margin: var(--size-m1) 0;
58+
59+
border-top: 1px solid var(--color-b20);
60+
border-right: none;
61+
border-bottom: none;
62+
border-left: none;
63+
64+
.theme-dark & {
65+
border-top: 1px solid var(--color-w16);
66+
}
67+
}

dokka-subprojects/plugin-base-frontend/src/main/ui-kit/table/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
.table {
1717
display: flex;
1818
flex-direction: column;
19+
20+
margin-bottom: 32px;
1921
}
2022

2123
.tableheader {
@@ -78,8 +80,6 @@
7880
}
7981

8082
.table-row:last-of-type {
81-
margin-bottom: 32px;
82-
8383
border-bottom-width: 1px;
8484
border-bottom-style: solid;
8585
}

dokka-subprojects/plugin-base-frontend/src/main/ui-kit/tabs/styles.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
.tabs-section,
77
.platform-hinted > .platform-bookmarks-row {
8+
margin-bottom: var(--size-m2);
9+
810
border-bottom: 1px inset var(--text-outline);
911

1012
&.tabs_wrapping {
@@ -28,10 +30,6 @@
2830
font: var(--font-text-s);
2931
}
3032

31-
.platform-hinted > .platform-bookmarks-row {
32-
margin-bottom: var(--size-s3);
33-
}
34-
3533
.no-js .platform-bookmarks-row + .sourceset-dependent-content {
3634
margin-top: var(--size-s2);
3735
}

dokka-subprojects/plugin-base/src/main/resources/dokka/styles/style.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ img {
184184

185185
/* /---dark theme --- */
186186

187-
.main-content .content > hr {
188-
margin: 30px 0;
189-
border-top: 3px double #8c8b8b;
190-
}
191-
192187
.main-content :is(h1, h2) {
193188
font-weight: 600;
194189
}

dokka-subprojects/plugin-base/src/main/resources/dokka/ui-kit/ui-kit.css

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,18 @@ code:not(.block) {
16931693
position: relative;
16941694
z-index: 1;
16951695
}
1696+
1697+
.main-content .content > hr {
1698+
border: none;
1699+
border-top: 1px solid var(--color-b20);
1700+
margin: 24px 0;
1701+
margin: var(--size-m1) 0;
1702+
}
1703+
1704+
.theme-dark .main-content .content > hr {
1705+
border-top: 1px solid hsla(0, 0%, 100%, 0.16);
1706+
border-top: 1px solid var(--color-w16);
1707+
}
16961708
:root {
16971709
--breakpoint-desktop-min:900px;
16981710
--breakpoint-tablet-max:899px;
@@ -2623,6 +2635,7 @@ button.platform-tag:focus-visible {
26232635
.table {
26242636
display: flex;
26252637
flex-direction: column;
2638+
margin-bottom: 32px;
26262639
}
26272640

26282641
.tableheader {
@@ -2685,7 +2698,6 @@ button.platform-tag:focus-visible {
26852698
.table-row:last-of-type {
26862699
border-bottom-style: solid;
26872700
border-bottom-width: 1px;
2688-
margin-bottom: 32px;
26892701
}
26902702

26912703
.table-row_multimodule:last-of-type, .table-row_platform-tagged:last-of-type {
@@ -2867,6 +2879,8 @@ td:first-child {
28672879

28682880
.platform-hinted > .platform-bookmarks-row, .tabs-section {
28692881
border-bottom: 1px inset var(--text-outline);
2882+
margin-bottom: 32px;
2883+
margin-bottom: var(--size-m2);
28702884
}
28712885

28722886
.platform-hinted > .platform-bookmarks-row.tabs_wrapping, .tabs-section.tabs_wrapping {
@@ -2886,11 +2900,6 @@ td:first-child {
28862900
padding: 10px 16px 6px;
28872901
}
28882902

2889-
.platform-hinted > .platform-bookmarks-row {
2890-
margin-bottom: 16px;
2891-
margin-bottom: var(--size-s3);
2892-
}
2893-
28942903
.no-js .platform-bookmarks-row + .sourceset-dependent-content {
28952904
margin-top: 8px;
28962905
margin-top: var(--size-s2);

dokka-subprojects/plugin-base/src/main/resources/dokka/ui-kit/ui-kit.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.

0 commit comments

Comments
 (0)