packer-cn/website/source/assets/stylesheets/_inner.scss

111 lines
1.4 KiB
SCSS
Raw Normal View History

2017-03-26 17:21:14 -04:00
#inner {
2019-10-04 18:10:07 -04:00
h1 {
@extend .g-type-display-2;
}
h2 {
@extend .g-type-display-3;
}
h3 {
@extend .g-type-display-4;
}
h4 {
@extend .g-type-display-5;
}
h5,
h6 {
@extend .g-type-display-6;
}
p,
li,
.alert {
font-size: 1.063rem;
line-height: 1.647em;
margin: 0 0 $font-size-default;
2017-03-26 17:21:14 -04:00
}
.alert p:last-child {
margin-bottom: 0;
}
2017-04-06 18:01:17 -04:00
pre,
code,
pre code,
tt {
2019-10-04 18:10:07 -04:00
line-height: 1.926em;
2017-04-06 18:01:17 -04:00
}
pre {
2017-03-26 17:21:14 -04:00
padding: 20px;
2019-10-04 18:10:07 -04:00
margin: 0 0 $font-size-default;
2017-03-26 17:21:14 -04:00
// This will force the code to scroll horizontally on small screens
// instead of wrapping.
code {
overflow-wrap: normal;
white-space: pre;
}
}
a {
color: $body-link-color;
text-decoration: none;
&:hover {
text-decoration: underline;
}
code {
background: inherit;
color: $body-link-color;
}
}
img {
display: block;
margin: 25px auto;
max-width: 650px;
height: auto;
width: 90%;
}
h1,
h2,
h3,
h4 {
color: $body-font-color;
margin-top: 54px;
2019-10-04 18:10:07 -04:00
margin-bottom: $font-size-default;
2017-03-26 17:21:14 -04:00
}
h2 {
padding-bottom: 3px;
border-bottom: 1px solid $gray-light;
}
h1 > code,
h2 > code,
h3 > code,
h4 > code,
2019-10-04 18:10:07 -04:00
h5 > code,
2017-03-26 17:21:14 -04:00
h6 > code,
li code,
table code,
p code,
tt,
.alert code {
background-color: transparent;
color: inherit;
padding: 0;
}
table {
@extend .table;
@extend .table-striped;
}
}