Skip to content

Commit 8295754

Browse files
author
Niutoseq
committed
style of buttons, note and small textual changes
1 parent 6c59a17 commit 8295754

File tree

8 files changed

+174
-45
lines changed

8 files changed

+174
-45
lines changed

docs/_static/css/colors.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/css/general.css

Lines changed: 55 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/css/main.css

Lines changed: 57 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/scss/colors.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
--message-success-bg: #E3F6CF;
1717
--message-danger: #D10000;
1818
--message-danger-bg: #FAE5E8;
19-
--message-warning: #FF8E6E;
19+
--message-warning: #DC7500;
2020
--message-warning-bg: #FFF1ED;
21-
--message-info: #368EC4;
21+
--message-info: #074E8A;
2222
--message-info-bg: #E7F2F8;
2323
}

docs/_static/scss/general.scss

Lines changed: 55 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,30 @@ span {
99
a {
1010
text-decoration: none;
1111
}
12+
a:hover:not(.logo-title) {
13+
opacity: 0.7;
14+
}
15+
a:visited {
16+
color: var(--primary-blue);
17+
}
1218
a.ahref-blue {
1319
text-decoration: underline;
20+
color: var(--primary-blue);
21+
}
22+
a.ahref-orange {
23+
text-decoration: underline;
24+
color: var(--primary-orange);
1425
}
15-
a:visited {
16-
color: var(--secondary-blue)!important;
1726

27+
.main-content a {
28+
color: var(--secondary-blue);
29+
text-decoration: underline;
1830
}
1931
.main-content a:visited {
20-
color: var(--light-orange)!important;
21-
}
22-
.main-content a:hover {
23-
color: var(--hover-orange)!important;
24-
text-decoration: underline;
32+
opacity: 0.8;
33+
color: var(--secondary-blue)!important;
2534
}
35+
2636
.wy-side-nav-search a:visited {
2737
color: white!important;
2838
}
@@ -226,9 +236,13 @@ code.docutils.literal.notranslate {
226236
/* buttons next previous */
227237
.btn,
228238
.btn-neutral {
229-
background: none;
230-
border: none;
239+
background: #fff;
240+
background-color: #fff!important;
241+
border: 1px solid var(--primary-orange);
231242
font-weight: 600;
243+
font-size: 12px;
244+
max-width: 110px;
245+
padding: 0 15px;
232246
color: var(--primary-orange)!important;
233247

234248
.fa {
@@ -237,9 +251,17 @@ code.docutils.literal.notranslate {
237251

238252
&:visited {
239253
color: var(--primary-orange)!important;
240-
254+
}
255+
&:hover {
256+
opacity: 1;
241257
}
242258
}
259+
.btn:active {
260+
padding: 0 15px;
261+
}
262+
.rst-content .btn:focus {
263+
outline: 0px solid;
264+
}
243265
/* buttons next previous end */
244266

245267
.rst-content p + ul {
@@ -279,7 +301,6 @@ code.docutils.literal.notranslate {
279301
background: inherit;
280302
}
281303

282-
283304
& li.current > a,
284305
& li.toctree-l2.current a,
285306
& li.toctree-l3.current li.toctree-l4.current > a,
@@ -288,7 +309,6 @@ code.docutils.literal.notranslate {
288309
background: #fff;
289310
}
290311

291-
292312
& li.current>a, & li.on a {
293313
background: #fff;
294314
}
@@ -318,7 +338,6 @@ code.docutils.literal.notranslate {
318338
}
319339
}
320340

321-
322341
& li.toctree-l2,
323342
& li.toctree-l3,
324343
& li.toctree-l4,
@@ -340,15 +359,12 @@ code.docutils.literal.notranslate {
340359
& li.on a {
341360
padding-left: 20px;
342361
}
343-
344-
345362
}
346363

347364
/* sidebar end */
348365

349366

350367
/* aside */
351-
352368
.aside-support {
353369
display: flex;
354370
flex-direction: column;
@@ -380,6 +396,29 @@ code.docutils.literal.notranslate {
380396
}
381397
/* aside end */
382398

399+
/*notes (admonition notes)*/
400+
.rst-content .admonition {
401+
background: var(--message-info-bg);
402+
padding: 25px 20px 20px 40px;
403+
margin: 20px 0;
404+
border-radius: 4px;
405+
}
406+
.rst-content .note {
407+
.admonition-title {
408+
background: transparent;
409+
color: #074E8A;
410+
font-size: 16px;
411+
}
412+
413+
p,
414+
a {
415+
font-size: 13px;
416+
}
417+
418+
}
419+
420+
/* notes (admonition notes) end */
421+
383422
/* breadcrumb */
384423
.wy-side-nav-search img {
385424
background-color: transparent;
@@ -402,7 +441,6 @@ code.docutils.literal.notranslate {
402441
box-shadow: none;
403442
}
404443

405-
406444
.logo-title {
407445
display: flex;
408446
justify-content: center;
@@ -498,7 +536,6 @@ li.wy-breadcrumbs-aside a {
498536
}
499537
}
500538

501-
502539
/* -------- PORTRAIT END ---------- */
503540

504541
/* ---------- MOBILE -------------- */

0 commit comments

Comments
 (0)