docs-v2/assets/styles/layouts/_article.scss

189 lines
3.8 KiB
SCSS
Raw Normal View History

2018-12-21 17:12:28 +00:00
.article {
background: $article-bg;
border-radius: $radius 0 0 $radius;
2018-12-21 23:59:12 +00:00
padding: 2rem 4rem 3rem;
}
.article--content{
max-width: 820px;
2018-12-21 23:59:12 +00:00
h1,h2,h3,h4,h5,h6 {
color: $article-heading;
a {
2018-12-31 17:30:41 +00:00
color: inherit !important;
font-weight: inherit !important;
2018-12-21 23:59:12 +00:00
text-decoration: none;
2018-12-31 23:59:16 +00:00
code:after {
border: none;
}
2018-12-21 23:59:12 +00:00
}
}
h2,h3,h4,h5,h6 {
& + .highlight pre { margin-top: .5rem }
& + pre { margin-top: .5rem }
& + .code-tabs-wrapper { margin-top: 0; }
}
2018-12-21 23:59:12 +00:00
h1 {
2019-05-07 02:29:04 +00:00
font-weight: normal;
2018-12-21 23:59:12 +00:00
font-size: 2.65rem;
margin: .4em 0 1em;
2018-12-21 23:59:12 +00:00
}
h2 {
font-size: 2rem;
2019-05-09 23:09:04 +00:00
margin: -.25rem 0 .5rem;
2018-12-21 23:59:12 +00:00
padding-top: 1.75rem;
2019-05-09 23:09:04 +00:00
font-weight: $medium;
color: $article-heading-alt;
2018-12-21 23:59:12 +00:00
}
h3 {
font-size: 1.65rem;
font-weight: $medium;
2019-01-24 19:48:05 +00:00
margin: -1rem 0 .5rem;
2018-12-21 23:59:12 +00:00
padding-top: 1.75rem;
}
h4 {
font-size: 1.25rem;
font-style: italic;
font-weight: $medium;
2018-12-31 23:59:16 +00:00
margin: -1.25rem 0 .5rem;
2018-12-21 23:59:12 +00:00
padding-top: 1.75rem;
2019-05-09 23:09:04 +00:00
color: $article-heading-alt;
2018-12-21 23:59:12 +00:00
}
h5 {
font-size: 1rem;
2018-12-31 23:59:16 +00:00
margin: -1.25rem 0 .25rem;
2018-12-21 23:59:12 +00:00
padding-top: 1.75rem;
}
h6 {
font-size: 1rem;
font-style: italic;
2018-12-31 23:59:16 +00:00
margin: -1.25rem 0 .25rem;
2018-12-21 23:59:12 +00:00
padding-top: 1.75rem;
}
p,li {
color: $article-text;
2019-05-16 22:41:24 +00:00
line-height: 1.7rem;
2018-12-21 23:59:12 +00:00
}
p {
margin: 0 0 1.5em;
}
a {
color: $article-link;
font-weight: $medium;
2018-12-21 23:59:12 +00:00
text-decoration: none;
&:hover {
color: $article-link-hover;
}
}
strong {
color: $article-bold;
2018-12-21 23:59:12 +00:00
}
img {
max-width: 100%;
margin-bottom: 2rem;
border-radius: ($radius * 1.5);
box-shadow: 1px 3px 10px $article-shadow;
}
hr {
border-width: 1px 0 0;
border-color: $article-hr;
border-style: solid;
margin: 1.85rem 0 1.75rem;
}
2018-12-21 23:59:12 +00:00
@import "article/blocks",
"article/buttons",
"article/children",
"article/code",
"article/cloud",
"article/enterprise",
"article/feedback",
"article/flex",
"article/lists",
"article/note",
"article/pagination-btns",
"article/product-tags",
"article/related",
"article/scrollbars",
"article/svgs",
"article/tabbed-content",
"article/tables",
"article/tags",
2019-05-16 22:41:24 +00:00
"article/telegraf-plugins",
"article/truncate",
"article/video",
"article/warn";
//////////////////////////////// Miscellaneous ///////////////////////////////
.required, .req {
color:#FF8564;
font-weight:700;
font-style: italic;
}
a.q-link {
font-size: .8rem;
vertical-align: super;
line-height: 0;
color: $g20-white;
opacity: .5;
transition: opacity .2s;
&:hover {opacity: 1;}
}
/////////////////////////// Getting Started Buttons //////////////////////////
2020-04-22 21:33:46 +00:00
.get-started-btns {
display: flex;
flex-direction: column;
justify-content: space-around;
2020-04-22 21:33:46 +00:00
align-items: flex-start;
margin-bottom: 2rem;
a.btn {
max-width: 300px;
width: 100%;
text-align: center;
padding: 1rem;
2020-04-23 21:09:30 +00:00
.oss:after {
content: 'beta';
display: inline-block;
position: relative;
font-style: italic;
font-size: .75em;
margin-left: .15rem;
padding: .1rem .4rem .12rem;
border-radius: 1rem;
border: 1px solid rgba($g20-white, .5);
top: -1px
}
}
}
}
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
@include media(small) {
.article {
padding: 1.5rem 1.5rem 3rem;
h1 { margin: .35rem 0 2rem; font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.3rem; }
}
2018-12-21 17:12:28 +00:00
}