Skip to content

Commit 58c5655

Browse files
author
Ronan Flynn-Curran
authored
Merge pull request #323 from flynnduism/admonitions
bug(styles): add admonitions css back in
2 parents f8c8594 + da12704 commit 58c5655

4 files changed

Lines changed: 71 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ develop-eggs
1313
.installed.cfg
1414
lib
1515
lib64
16+
bower_components
1617
.sass-cache
1718

1819
# python virtual environments for testing

themes/deis/static/css/styles.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.

themes/deis/static/css/styles.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/deis/static/scss/_doc-content.scss

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,74 @@
118118
}
119119
}
120120
}
121+
122+
// warning
123+
.version-warning {
124+
padding: 10px;
125+
margin-top: 10px;
126+
border: solid 4px $pink;
127+
128+
.version-warning-title {
129+
font-size: 18px;
130+
font-weight: bold;
131+
line-height: 26px;
132+
text-indent: 50px;
133+
}
134+
135+
.important .version-warning-title {
136+
background: url(../img/glyphs.png) no-repeat 0 -81px;
137+
}
138+
139+
a, a em, em {
140+
font-style: normal !important;
141+
color: $pink !important;
142+
}
143+
}
144+
145+
// admonition
146+
.admonition {
147+
padding: 0.25em 1.5em;
148+
margin-bottom: 1.5em;
149+
border: solid 4px $green;
150+
151+
.admonition-title {
152+
font-size: 18px;
153+
font-weight: bold;
154+
line-height: 26px;
155+
text-indent: 50px;
156+
}
157+
}
158+
159+
.warning {
160+
border: solid 4px $pink;
161+
}
162+
.warning .admonition-title {
163+
background: url(../img/glyphs.png) no-repeat;
164+
}
165+
.note .admonition-title {
166+
background: url(../img/glyphs.png) no-repeat 0 -25px;
167+
}
168+
.tip .admonition-title {
169+
background: url(../img/glyphs.png) no-repeat 0 -53px;
170+
}
171+
.important .admonition-title {
172+
background: url(../img/glyphs.png) no-repeat 0 -81px;
173+
}
174+
.hint .admonition-title {
175+
background: url(../img/glyphs.png) no-repeat 0 -108px;
176+
}
177+
.attention .admonition-title {
178+
background: url(../img/glyphs.png) no-repeat 0 -135px;
179+
}
180+
.caution .admonition-title {
181+
background: url(../img/glyphs.png) no-repeat 0 -160px;
182+
}
183+
.danger .admonition-title {
184+
background: url(../img/glyphs.png) no-repeat 0 -186px;
185+
}
186+
.error .admonition-title {
187+
background: url(../img/glyphs.png) no-repeat 0 -218px;
188+
}
121189
}
122190

123191

0 commit comments

Comments
 (0)