warning class

This commit is contained in:
Galen Wolfe-Pauly 2015-09-10 19:35:20 -07:00
parent 92e0ffb3d6
commit fd1719525e
2 changed files with 60 additions and 6 deletions

View File

@ -102,10 +102,13 @@ hr {
border: 0;
border-top: 2px solid #f4f4f4;
}
h1 {
margin-top: 4rem;
}
h2,
h3 {
margin: 0;
margin-top: 1rem;
margin-top: 2rem;
}
h1,
h2,
@ -433,8 +436,8 @@ div.post li p {
display: inline;
}
div.toc {
margin-top: 6rem;
margin-bottom: 6rem;
margin-top: 3rem;
margin-bottom: 3rem;
}
div.toc h1,
div.toc h2,
@ -444,6 +447,8 @@ div.toc h4 {
cursor: pointer;
text-decoration: underline;
font-size: 1.2rem;
margin-top: 0.3rem;
margin-bottom: 0.3rem;
}
div.toc h2 {
margin-left: 1rem;
@ -458,6 +463,7 @@ div.toc h1.t {
font-weight: 500;
font-size: 2rem;
text-decoration: none;
margin-bottom: 2rem;
}
#body .CodeMirror {
font-size: 0.8rem;
@ -474,6 +480,27 @@ div.toc h1.t {
.error {
color: #f91733;
}
.warning {
background-color: #ff3537;
padding: 1rem;
width: 18rem;
margin: 2rem 0;
color: #fff;
}
.warning a {
color: inherit;
border-color: #fff;
}
.warning h1 {
font-size: 1rem;
}
.warning h1,
.warning p {
margin: 0 0.3rem;
}
.warning.w {
width: auto;
}
@media only screen and (max-width: 1170px) {
#nav,
#nav > div,

View File

@ -32,10 +32,13 @@ hr
border 0
border-top 2px solid #f4f4f4
h1
margin-top 4rem
h2
h3
margin 0
margin-top 1rem
margin-top 2rem
h1
h2
@ -361,8 +364,8 @@ div.post
display inline
div.toc
margin-top 6rem
margin-bottom 6rem
margin-top 3rem
margin-bottom 3rem
h1
h2
@ -372,6 +375,8 @@ div.toc
cursor pointer
text-decoration underline
font-size 1.2rem
margin-top .3rem
margin-bottom .3rem
h2
margin-left 1rem
@ -386,6 +391,7 @@ div.toc
font-weight 500
font-size 2rem
text-decoration none
margin-bottom 2rem
#body .CodeMirror
font-size .8rem
@ -402,4 +408,25 @@ div.toc
.error
color rgba(249,23,51,1)
.warning
background-color rgb(255,53,55)
padding 1rem
width 18rem
margin 2rem 0
color #fff
a
color inherit
border-color #fff
h1
font-size 1rem
h1
p
margin 0 .3rem
.warning.w
width auto
@import 'mobile'