Skip to content

Commit cbba0c9

Browse files
berezinantwhyoleg
authored andcommitted
fix: spacing in html output (#4292)
* fix: make segmentation of overloads more visible * fix: margin for kdoc tags * fix: tabs spacing inside tables * chore: build ui kit assets (cherry picked from commit ec63266)
1 parent 16eac59 commit cbba0c9

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,15 @@
5555
cursor: ew-resize;
5656
}
5757

58-
// do not show divider after tables as they have borders now
59-
.table + hr {
60-
display: none;
61-
}
62-
6358
.main-content .content > hr {
6459
margin: var(--size-m1) 0;
6560

66-
border-top: 1px solid var(--color-b20);
61+
border-top: 3px double var(--color-b50);
6762
border-right: none;
6863
border-bottom: none;
6964
border-left: none;
7065

7166
.theme-dark & {
72-
border-top: 1px solid var(--color-w16);
67+
border-top: 3px double var(--color-w50);
7368
}
7469
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
}
4646
}
4747

48+
h4.tableheader {
49+
margin-top: var(--size-m1);
50+
}
51+
4852
.table-row {
4953
display: flex;
5054
flex-direction: column;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
margin-top: 12px;
5959
}
6060

61-
.tabs-section-body .with-platform-tabs {
62-
padding-top: 12px;
63-
padding-bottom: 12px;
61+
/* tabs inside tables should have decreased spacing */
62+
.table .platform-bookmarks-row, .table .tabs-section {
63+
margin-bottom: var(--size-s3);
6464
}
6565

6666
.platform-hinted {

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

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,20 +1749,16 @@ code:not(.block) {
17491749
z-index: 1;
17501750
}
17511751

1752-
.table + hr {
1753-
display: none;
1754-
}
1755-
17561752
.main-content .content > hr {
17571753
border: none;
1758-
border-top: 1px solid var(--color-b20);
1754+
border-top: 3px double var(--color-b50);
17591755
margin: 24px 0;
17601756
margin: var(--size-m1) 0;
17611757
}
17621758

17631759
.theme-dark .main-content .content > hr {
1764-
border-top: 1px solid hsla(0, 0%, 100%, 0.16);
1765-
border-top: 1px solid var(--color-w16);
1760+
border-top: 3px double hsla(0, 0%, 100%, 0.5);
1761+
border-top: 3px double var(--color-w50);
17661762
}
17671763
:root {
17681764
--breakpoint-desktop-min:900px;
@@ -2696,6 +2692,11 @@ button.platform-tag:focus-visible {
26962692
margin-right: -16px;
26972693
}
26982694
}
2695+
h4.tableheader {
2696+
margin-top: 24px;
2697+
margin-top: var(--size-m1);
2698+
}
2699+
26992700
.table-row {
27002701
background-color: var(--color-background);
27012702
border: 1px solid rgba(0, 0, 0, 0.2);
@@ -2974,9 +2975,9 @@ td:first-child {
29742975
margin-top: 12px;
29752976
}
29762977

2977-
.tabs-section-body .with-platform-tabs {
2978-
padding-bottom: 12px;
2979-
padding-top: 12px;
2978+
.table .platform-bookmarks-row, .table .tabs-section {
2979+
margin-bottom: 16px;
2980+
margin-bottom: var(--size-s3);
29802981
}
29812982

29822983
.platform-hinted {

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)