feat(aio): overall margin, code, alert styles

This commit is contained in:
Stefanie Fluin 2017-03-28 17:15:02 -07:00 committed by Igor Minar
parent f518e3a75f
commit 43a9619e57
18 changed files with 80 additions and 80 deletions

View File

@ -413,7 +413,7 @@ p {
}
.api-doc-code {
border-bottom: 0px;
border-bottom: 0;
:hover {
border-bottom: none;

View File

@ -17,7 +17,7 @@ export interface TabInfo {
@Component({
selector: 'code-tabs',
template: `
<md-tab-group>
<md-tab-group class="code-tab-group">
<md-tab style="overflow-y: hidden;" *ngFor="let tab of tabs">
<template md-tab-label>
<span class="{{tab.class}}">{{ tab.title }}</span>

View File

@ -25,7 +25,7 @@ const copiedLabel = 'Copied!';
template: `
<pre class="prettyprint lang-{{language}}">
<button class="material-icons copy-button" #copyButton (click)="doCopy()">content_copy</button>
<button class="material-icons copy-button" (click)="doCopy()">content_copy</button>
<code class="animated fadeIn" #codeContainer></code>
</pre>
`

View File

@ -8,6 +8,7 @@ import { NavigationNode } from 'app/navigation/navigation.service';
<li><a class="nav-link" href="overview" title="Angular Documentation">Docs</a></li>
<li *ngFor="let node of nodes"><a class="nav-link" [href]="node.path || node.url" [title]="node.title">{{ node.title }}</a></li>
</ul>`,
styleUrls: ['top-menu.component.scss']
})
export class TopMenuComponent {

View File

@ -13,7 +13,7 @@
display:inline-block;
font-size: 36px;
font-weight: 400;
margin: 12px 0px;
margin: 8px 0px;
}
h1:after {
@ -21,21 +21,20 @@
display: block;
height: 1px;
width: 40%;
margin: 30px 0px 10px;
margin: 32px 0px 10px;
background: $lightgray;
}
h2 {
font-size: 30px;
font-weight: 500;
margin: 48px 0px 32px;
margin: 32px 0px 24px;
}
h3 {
font-size: 24px;
font-weight: 500;
margin: 12px 0px;
text-transform: uppercase;
margin: 24px 0px;
}
h4 {
@ -52,7 +51,7 @@
}
.mat-tab-body-wrapper h2 {
margin-top: 0px;
margin-top: 0;
}
p, ol, ul, ol, li, input, a {
@ -77,6 +76,10 @@
text-transform: uppercase;
}
strong {
font-weight: 500;
}
table {
border-collapse: collapse;
border-radius: 2px;
@ -118,6 +121,11 @@
border-radius: 4px;
}
code {
font-family: $code-font;
font-size: 90%;
}
.sidenav-content a {
color: $blue;
&:hover {

View File

@ -1,6 +1,5 @@
.sidenav-content {
padding: 1rem 3rem;
height: 100vh;
padding: 1rem 3rem 3rem;
margin: auto;
}
@ -25,7 +24,7 @@
.l-sub-section {
color: $blue;
margin: 0px 0px 10px 0px;
margin: 0 0 10px 0px;
padding: 10px;
background: $offwhite;
border-left: 4px solid $blue;

View File

@ -1,8 +1,10 @@
footer {
position: relative;
line-height: 24px;
}
footer .footer {
flex: 1;
padding: 20px;
z-index: 10;
background-color: $blue;
@ -20,7 +22,7 @@ footer .footer {
}
}
p {
margin: 0px 0px 5px;
margin: 0 0 5px;
}
}

View File

@ -26,7 +26,7 @@ aio-search-results {
.search-area {
display: flex;
flex-direction: column;
margin: 0px 10px;
margin: 0 10px;
h2 {
font-size: 16px;
margin: 10px 0px 5px;

View File

@ -34,7 +34,7 @@ aio-nav-menu.top-menu .vertical-menu-item {
outline: none;
&:hover {
text-shadow: 0px 0px 5px #ffffff;
text-shadow: 0 0 5px #ffffff;
background-color: $lightgray;
}

View File

@ -10,20 +10,20 @@ aio-top-menu ul {
flex-direction: row;
align-items: center;
list-style-position: inside;
padding: 0px;
margin: 0px;
padding: 0;
margin: 0;
}
aio-top-menu li {
list-style-type: none;
padding: 0px;
padding: 0;
}
md-toolbar.mat-toolbar {
position: relative;
z-index: 10;
box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.30);
padding: 0 16px 0px 0px;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.30);
padding: 0 16px 0 0;
}
.search-container {

View File

@ -1,7 +1,6 @@
.alert {
display: flex;
padding: 0px 10px;
margin: 20px 0px;
padding: 16px;
margin: 24px 0px;
font-size: 14px;
color: $darkgray;
&.is-critical {
@ -18,4 +17,9 @@
border-left: 10px solid $blue;
background-color: rgba($blue, 0.05);
}
p {
margin: 0;
padding: 8px 16px;
}
}

View File

@ -43,11 +43,26 @@ code-tabs mat-tab-body-content .fadeIn {
aio-code pre {
display: flex;
padding: 0px;
padding: 0;
white-space: pre-wrap;
}
.lang-ts .copy-button {
code ol {
font-family: $main-font;
color: $lightgray;
li {
margin: 0;
font-family: $code-font;
font-size: 90%;
}
}
.prettyprint {
position: relative;
}
.copy-button {
top: -16px;
right: -16px;
color: $lightgray;
@ -58,8 +73,8 @@ aio-code pre {
}
}
.lang- .copy-button {
visibility: hidden;
.code-tab-group div.mat-tab-body-content {
height: auto;
}
$blue-grey-50: #ECEFF1;
@ -73,36 +88,6 @@ $blue-grey-700: #455A64;
$blue-grey-800: #37474F;
$blue-grey-900: #263238;
$pink-50: #FCE4EC;
$pink-100: #F8BBD0;
$pink-200: #F48FB1;
$pink-300: #F06292;
$pink-400: #EC407A;
$pink-500: #E91E63;
$pink-600: #D81B60;
$pink-700: #C2185B;
$pink-800: #AD1457;
$pink-900: #880E4F;
$pink-A100: #FF80AB;
$pink-A200: #FF4081;
$pink-A400: #F50057;
$pink-A700: #C51162;
$teal-50: #E0F2F1;
$teal-100: #B2DFDB;
$teal-200: #80CBC4;
$teal-300: #4DB6AC;
$teal-400: #26A69A;
$teal-500: #009688;
$teal-600: #00897B;
$teal-700: #00796B;
$teal-800: #00695C;
$teal-900: #004D40;
$teal-A100: #A7FFEB;
$teal-A200: #64FFDA;
$teal-A400: #1DE9B6;
$teal-A700: #00BFA5;
$white: #FFFFFF;
/*
@ -126,33 +111,33 @@ $white: #FFFFFF;
outline: 1px solid rgba($blue-grey-700, .56);
}
.kwd {
color: $pink-600;
color: $darkgray;
}
.typ,
.tag {
color: $pink-600;
color: $darkred;
}
.str,
.atv {
color: $teal-700;
color: $blue;
}
.atn {
color: $teal-700;
color: $blue;
}
.com {
color: $teal-700;
color: $mediumgray;
}
.lit {
color: $teal-700;
color: $blue;
}
.pun {
color: $blue-grey-700;
}
.pln {
color: $blue-grey-700;
color: $green-800;
}
.dec {
color: $teal-700;
color: $blue;
}
@ -170,32 +155,32 @@ $white: #FFFFFF;
}
.kwd {
color: $pink-600;
color: $darkgray;
}
.typ,
.tag {
color: $pink-600;
color: $darkred;
}
.str,
.atv {
color: $teal-700;
color: $blue;
}
.atn {
color: $teal-700;
color: $blue;
}
.com {
color: $teal-700;
color: $mediumgray;
}
.lit {
color: $teal-700;
color: $blue;
}
.pun {
color: $blue-grey-700;
}
.pln {
color: $blue-grey-700;
color: $green-800;
}
.dec {
color: $teal-700;
color: $blue;
}
}

View File

@ -2,7 +2,7 @@
background: $offwhite;
box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, .2);
border: 4px solid $lightgray;
margin: 0px 0px 5px 0px;
margin: 0 0 5px 0;
padding: 10px;
.file {

View File

@ -10,8 +10,8 @@
.hamburger.mat-button {
transition: color 0.2s;
height: 100%;
margin: 0px;
padding: 0px;
margin: 0;
padding: 0;
}
.hamburger.mat-button:hover {

View File

@ -4,8 +4,8 @@
background: $white;
padding: 20px;
display: inline-block;
box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, .2);
margin: 0px 0px 10px 0px;
box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, .2);
margin: 0 0 10px 0;
img {
border-radius: 4px;

View File

@ -15,7 +15,7 @@ table {
color: $darkgray;
font-size: 12px;
font-weight: 500;
padding: 0px 24px;
padding: 0 24px;
text-align: left;
text-transform: uppercase;
}

View File

@ -16,6 +16,7 @@ $mediumgray: #7E7E7E;
$darkgray: #333;
$black: #0A1014;
$codegreen: #17ff0b;
$green-800: #2E7D32;
$orange: #FF9800;
$anti-pattern: $brightred;

View File

@ -54,6 +54,6 @@
background-color: $bgcolor;
border-radius: 5px;
padding: 20px;
margin: 0px auto; // was 24
margin: 0 auto; // was 24
border: 0.5px solid $lightgray;
}