Skip to content

Commit 443d809

Browse files
committed
Update CSS for latest dconv version
1 parent 22e168d commit 443d809

File tree

1 file changed

+85
-121
lines changed

1 file changed

+85
-121
lines changed

docs/css/page.css

Lines changed: 85 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,168 +1,132 @@
1-
/* Global Styles */
2-
3-
body {
4-
margin-top: 50px;
5-
background: #fff;
1+
/* Custom dark color */
2+
:root {
3+
--bs-dark: #033c73;
4+
--bs-dark-rgb: 3, 60, 115;
65
}
76

8-
a.anchor {
9-
display: block; position: relative; top: -50px; visibility: hidden;
7+
/* Sidebar */
8+
#sidebar {
9+
max-width: 350px !important;
1010
}
1111

12-
/* ------------------------------- */
13-
14-
/* Wrappers */
15-
16-
/* ------------------------------- */
17-
18-
#index .well {
19-
background-color: #033c73;
20-
color: #fff;
21-
}
22-
#index small, #index .small {
23-
color: #aaa;
12+
/* Sidebar navigation tabs on dark background */
13+
#sidebar .nav-tabs {
14+
border-bottom-color: var(--bs-border-color-translucent);
2415
}
2516

26-
#wrapper {
27-
width: 100%;
17+
#sidebar .nav-tabs .nav-link {
18+
color: var(--bs-light);
19+
border-color: transparent;
20+
background-color: transparent;
2821
}
2922

30-
#page-wrapper {
31-
padding: 0 15px 50px;
32-
width: 720px;
33-
background-color: #fff;
34-
margin-left: 350px;
23+
#sidebar .nav-tabs .nav-link:hover {
24+
color: var(--bs-white);
25+
background-color: rgba(255, 255, 255, 0.1);
3526
}
3627

37-
#sidebar {
38-
position: fixed;
39-
width: 350px;
40-
top: 50px;
41-
bottom: 0;
42-
padding: 15px;
43-
color: #ffffff;
44-
background-color: #033c73;
45-
border-right: 1px solid #ccc;
46-
overflow-y: auto;
47-
}
48-
#sidebar li > a {
49-
color: #fff;
50-
}
51-
#sidebar li.active > a,
52-
#sidebar li > a:hover {
53-
color: #555 !important;
28+
#sidebar .nav-tabs .nav-link.active {
29+
color: var(--bs-dark);
30+
background-color: var(--bs-light);
31+
border-color: var(--bs-border-color-translucent) var(--bs-border-color-translucent) var(--bs-light);
5432
}
5533

56-
#sidebar .tab-content {
57-
background-color: #fff;
58-
color: #000;
59-
padding: 0.5em;
60-
}
61-
#sidebar-summary {
62-
}
63-
#sidebar-keywords {
64-
}
65-
.summary td {
66-
vertical-align: top;
67-
}
6834

69-
/* ------------------------------- */
70-
71-
/* Misc */
72-
73-
/* ------------------------------- */
35+
/* Sidebar content links (light zone) */
36+
#sidebar .tab-content a {
37+
color: var(--bs-body-color);
38+
text-decoration: none;
39+
}
7440

75-
.well-small ul {
76-
padding: 0px;
41+
#sidebar .tab-content a:hover {
42+
text-decoration: underline;
7743
}
78-
.table th,
79-
.table td.pagination-centered {
80-
text-align: center;
44+
45+
#sidebar .tab-content a.active {
46+
font-weight: bold;
47+
background-color: var(--bs-secondary-bg);
48+
border-radius: 3px;
8149
}
8250

51+
/* Sidebar footer links (dark zone) */
52+
#sidebar footer a,
53+
#sidebar .flex-shrink-0.border-top a {
54+
color: var(--bs-light);
55+
text-decoration: none;
56+
}
8357

84-
pre {
85-
overflow: visible; /* Workaround for dropdown menus */
58+
#sidebar .flex-shrink-0.border-top a:hover {
59+
text-decoration: underline;
8660
}
8761

88-
pre.text {
89-
padding: 0;
90-
font-size: 13px;
91-
color: #000;
92-
background: transparent;
93-
border: none;
94-
margin-bottom: 18px;
62+
/* Breadcrumbs bar */
63+
#breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
64+
color: var(--bs-secondary-color);
9565
}
96-
pre.arguments {
97-
font-size: 13px;
98-
color: #000;
99-
background: transparent;
66+
67+
/* Main content links (light zone) */
68+
#content a {
69+
color: var(--bs-body-color);
70+
text-decoration: none;
10071
}
10172

102-
.comment {
103-
color: #888;
73+
#content a:hover {
74+
text-decoration: underline;
10475
}
105-
small, .small {
106-
color: #888;
76+
77+
/* Chapter numbers in sidebar */
78+
.summary td:first-child small {
79+
color: var(--bs-secondary-color);
10780
}
108-
.level1 {
109-
font-size: 125%;
81+
82+
.summary td {
83+
vertical-align: top;
11084
}
85+
86+
/* Documentation content styles */
11187
.sublevels {
112-
border-left: 1px solid #ccc;
88+
border-left: 1px solid var(--bs-border-color);
11389
padding-left: 10px;
11490
}
91+
11592
.tab {
11693
padding-left: 1.25em;
11794
}
118-
.keyword {
119-
font-family: Menlo, Monaco, "Courier New", monospace;
120-
white-space: pre;
121-
background: #eee;
122-
border-top: 1px solid #fff;
123-
border-bottom: 1px solid #ccc;
124-
}
12595

126-
.label-see-also {
127-
background-color: #999;
128-
}
129-
.label-disabled {
130-
background-color: #ccc;
131-
}
132-
h5 {
133-
text-decoration: underline;
96+
.keyword {
97+
font-family: var(--bs-font-monospace);
98+
white-space: pre;
99+
background: var(--bs-tertiary-bg);
100+
border-top: 1px solid var(--bs-light);
101+
border-bottom: 1px solid var(--bs-border-color);
134102
}
135103

136104
.example-desc {
137-
border-bottom: 1px solid #ccc;
105+
border-bottom: 1px solid var(--bs-border-color);
138106
margin-bottom: 18px;
139107
}
140-
.noheight {
141-
min-height: 0 !important;
142-
}
108+
143109
.separator {
144-
margin-bottom: 18px;
110+
margin-bottom: 18px;
145111
}
146112

147-
div {
148-
word-wrap: break-word;
113+
.level1 {
114+
font-size: 125%;
149115
}
150116

151-
html, body {
152-
width: 100%;
153-
min-height: 100%:
117+
pre.text {
118+
padding: 0;
119+
font-size: 13px;
120+
background: transparent;
121+
border: none;
122+
margin-bottom: 18px;
154123
}
155124

156-
.dropdown-menu > li {
157-
white-space: nowrap;
125+
pre.arguments {
126+
font-size: 13px;
127+
background: transparent;
158128
}
159-
/* TEMPORARILY HACKS WHILE PRE TAGS ARE USED
160-
-------------------------------------------------- */
161129

162-
h5,
163-
.unpre,
164-
.example-desc,
165-
.dropdown-menu {
166-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
167-
white-space: normal;
168-
}
130+
.comment {
131+
color: var(--bs-secondary-color);
132+
}

0 commit comments

Comments
 (0)