Skip to content

Commit 6a9143f

Browse files
Tweak dottydoc theme
1 parent f11c750 commit 6a9143f

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

doc-tool/bootstrap-theme/theme.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
// Custom colors
1010
$pro-grey: #414551;
1111
$soft-red: #ca445e;
12-
$primary: $pro-grey;
1312
$light: #fafafa;
1413
$code-color: $soft-red; // overrides bootstrap
1514

1615
$theme-colors: (
17-
"primary": $primary,
16+
"primary": $pro-grey,
1817
"secondary": $soft-red
1918
);
2019

@@ -51,7 +50,7 @@ $headings-font-family: $font-family-sans-serif;
5150
$font-weight-light: 300;
5251
$font-weight-normal: 400;
5352
$font-weight-bold: 700;
54-
$headings-font-weight: 700;
53+
$headings-font-weight: 400;
5554

5655
// Nav Fonts
5756
$toolbar-main-font: $headings-font-family;

doc-tool/resources/css/dottydoc.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,16 @@ footer img#author-img {
9898
line-height: 50px;
9999
text-align: center;
100100
text-decoration: none;
101-
font-size: 42px;
101+
font-size: 43px;
102102
font-family: var(--font-family-sans-serif);
103103
}
104-
104+
.api span.letter-anchor.object {
105+
line-height: 48px;
106+
}
107+
.api span.letter-anchor.class {
108+
line-height: 48px;
109+
padding-right: 3px;
110+
}
105111
.letter-anchor.object {
106112
background: #2c6c8d;
107113
}

doc-tool/resources/css/sidebar.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
background: var(--sidebar);
1313
margin-left: -275px; /* invisible by default, shown by toggle */
1414
transition: margin .25s ease-out;
15-
box-shadow: 0 0 10px var(--primary);
1615
}
1716

1817
.sidebar.toggled {
1918
margin-left: 0;
19+
box-shadow: -2px 0 8px var(--primary);
2020
}
2121

2222
.sidebar ul.toc {
@@ -113,9 +113,11 @@
113113
}
114114
.entity-kinds a.class {
115115
background: #44ad7d;
116+
padding-right: 1px;
116117
}
117118
.entity-kinds a.trait {
118119
background: #19aacf;
120+
padding-right: 1px;
119121
}
120122

121123
.with-companion .entity-kinds:not(:hover) a.object {
@@ -131,9 +133,11 @@
131133
@media (min-width: 768px) {
132134
.sidebar { /* visible by default, hidden by toggle */
133135
margin-left: 0;
136+
box-shadow: -2px 0 8px var(--primary);
134137
}
135138
.sidebar.toggled {
136139
margin-left: -275px;
140+
box-shadow: none;
137141
}
138142
#content-wrapper {
139143
margin-left: 275px !important;

0 commit comments

Comments
 (0)