feat(aio): api page styles

Changed description from h3 to h2 to match the other header
Created api page classes for consistent styling
Add styles for info-bar section
Wrapped pre tags for code not to go off of screen
This commit is contained in:
Stefanie Fluin
2017-04-20 12:20:27 -07:00
committed by Pete Bacon Darwin
parent b0c5d21f31
commit cf034f759a
17 changed files with 135 additions and 65 deletions

View File

@ -0,0 +1,42 @@
.api-section {
display: flex;
flex-direction: row;
vertical-align: top;
position: relative;
margin-bottom: 32px;
padding: 8px 0 16px;
pre {
white-space: pre-line;
}
&:after {
content:"";
display: block;
position: absolute;
bottom: 0;
left: 0;
right: 0;
border-bottom: 1px solid $lightgray;
width: 100%;
}
}
.api-section-header {
width: 30%;
display: inline-block;
margin-right: 32px;
h2, p {
margin: 0;
}
}
.api-section-content {
width: 60%;
display: inline-block;
p {
margin: 0 0 8px 0;
}
}

View File

@ -9,4 +9,5 @@
@import 'marketing-layout';
@import 'footer';
@import 'layout-global';
@import 'not-found';
@import 'not-found';
@import 'api-page';

View File

@ -0,0 +1,5 @@
.info-bar {
padding: 32px;
border-radius: 4px;
background-color: rgba($blue, 0.1);
}

View File

@ -24,4 +24,5 @@
@import 'callout';
@import 'resources';
@import 'edit-page-cta';
@import 'heading-anchors';
@import 'heading-anchors';
@import 'api-info-bar';