Skip to content

Commit 20d045f

Browse files
committed
Use moban static assets
1 parent 391d91d commit 20d045f

File tree

3 files changed

+60
-41
lines changed

3 files changed

+60
-41
lines changed

.moban.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ copy:
2222
- runtime.txt: runtime.txt
2323
- Makefile: docs/Makefile
2424
- make.bat: docs/make.bat
25+
- _static/custom.css: docs/custom.css
26+
- _static/images/coala-header.png: docs/images/coala-header.png
27+
- _static/images/coala_logo.svg: docs/images/coala_logo.svg

_static/custom.css

Lines changed: 56 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
* Custom stylesheet
66
*
77
*/
8-
@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,300i,400,500,700,900');
8+
@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,300i,400,500,700,900'); /* Ignore CSSLintBear */
99

10-
div.sphinxsidebar .caption-text {
10+
.sphinxsidebar .caption-text {
1111
font-size: 120%;
1212
}
1313

14-
img.logo {
14+
.logo {
1515
width: 100%;
1616
}
1717

18-
.sphinxsidebarwrapper a.current.reference.internal {
18+
.sphinxsidebarwrapper .internal, .sphinxsidebarwrapper .external {
1919
font-weight: 300;
2020
}
2121

@@ -24,76 +24,97 @@ body {
2424
}
2525

2626
h1,h2,h3,h4,h5,h6 {
27-
font-family: Roboto !important;
28-
font-weight: 200 !important;
27+
font-family: Roboto !important; /* Ignore CSSLintBear */
28+
font-weight: 200 !important; /* Ignore CSSLintBear */
2929
}
3030

3131
.toctree-l1 {
3232
padding-bottom: 0.5em;
3333
}
3434

35-
div.body p, div.body dd, div.body li {
36-
line-height: 2 !important;
37-
font-weight: 300;
38-
font-size: 1.1em;
35+
.body p, .body dd, .body li {
3936
font-family: Roboto;
37+
font-size: 1em;
38+
font-weight: 300;
39+
line-height: 2;
4040
text-align: justify;
4141
}
4242

43-
.sphinxsidebarwrapper > h3 {
44-
margin-top: 1em !important;
43+
.search {
44+
margin-bottom: 1em;
4545
}
4646

4747
.sphinxsidebarwrapper ul {
48-
margin-bottom: 1em !important;
48+
margin-bottom: 1em;
4949
}
5050

51-
div.sphinxsidebar input[type="submit" i] {
52-
font-family: 'Roboto', serif !important;
51+
.sphinxsidebar input[type="submit"] {
52+
font-family: 'Roboto', serif ;
5353
margin-top: 1em;
5454
}
5555

56-
p.caption {
57-
margin-top: 1em !important;
56+
.caption {
57+
margin-top: 1em ;
5858
}
5959

6060
.caption-text {
6161
font-weight: 500;
6262
}
6363

64-
div.sphinxsidebarwrapper h1.logo-name {
64+
.sphinxsidebarwrapper .logo-name {
6565
display: none;
6666
}
6767

6868
.sphinxsidebarwrapper .logo {
6969
margin-bottom: 2em;
7070
}
7171

72-
.admonition, .note {
72+
div.admonition { /* Ignore CSSLintBear */
73+
background-color: #263238;
74+
border: none;
75+
border-radius: 0;
7376
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
77+
color: white;
78+
font-family: Roboto;
79+
padding: 2em;
7480
position: relative;
75-
margin: 0.5rem 0 1rem 0;
76-
background-color: #263238 !important;
7781
transition: box-shadow .25s;
78-
border-radius: 0 !important;
79-
border: none !important;
80-
font-family: Roboto !important;
81-
color: white;
8282
}
8383

84-
div.admonition p.admonition-title {
85-
font-family: 'Roboto', serif !important;
86-
margin: 0 0 5px 0 !important;
87-
font-weight: 100;
84+
div.attention { /* csslint allow: overqualified-elements */
85+
background-color: #d9534f;
86+
}
87+
88+
div.caution { /* csslint allow: overqualified-elements */
89+
background-color: #f0ad4e;
90+
}
91+
92+
div.important { /* csslint allow: overqualified-elements */
93+
background-color: #d9534f;
94+
}
95+
96+
div.tip { /* csslint allow: overqualified-elements */
97+
background-color: #428bca;
8898
}
8999

90-
.admonition p {
91-
margin-top: 1em !important;
92-
font-weight: 200 !important;
100+
div.note { /* csslint allow: overqualified-elements */
101+
background-color: #5bc0de;
102+
}
103+
104+
div.admonition p.admonition-title { /* Ignore CSSLintBear */
105+
font-family: 'Roboto', serif;
106+
font-weight: 200;
107+
margin: 0 0 5px 0;
108+
}
109+
110+
div.admonition p {
111+
font-weight: 300;
112+
margin-top: 1em;
93113
}
94114

95115
.admonition a {
96116
color: #eee;
117+
font-weight: 300;
97118
}
98119

99120
.admonition a:hover {
@@ -117,21 +138,17 @@ pre {
117138
code {
118139
background-color: #ecf0f3;
119140
color: #222;
120-
padding: 0 em !important;
121141
display: inline-block;
122-
}
123-
124-
.admonition a {
125-
font-weight: 300;
142+
padding: 0;
126143
}
127144

128145
img {
146+
height: auto ;
129147
max-width: 100%;
130-
height: auto !important;
131148
}
132149

133150
/* Override few pygments styles */
134151

135-
.highlight .nn {
152+
.highlight .nn, .highlight .nc {
136153
text-decoration: none;
137154
}

_static/images/coala_logo.svg

Lines changed: 1 addition & 2 deletions
Loading

0 commit comments

Comments
 (0)