feat(docs-infra): change typography font sizes to be rem based (#31118)

PR Close #31118
This commit is contained in:
Stefanie Fluin 2019-06-18 13:36:02 -07:00 committed by Kara Erickson
parent 7035f225ad
commit 65974154e2
25 changed files with 162 additions and 153 deletions

View File

@ -1,8 +1,12 @@
html {
font-size: 62.5%;
}
body { body {
font-family: $main-font; font-family: $main-font;
margin: 0; margin: 0;
color: $darkgray; color: $darkgray;
font-size: 14px; @include font-size(14);
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
@ -12,9 +16,9 @@ h1, h2, h3, h4, h5, h6 {
} }
h1 { h1 {
display: inline-block; @include font-size(24);
font-size: 24px;
font-weight: 500; font-weight: 500;
display: inline-block;
margin: 8px 0px; margin: 8px 0px;
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
@ -23,37 +27,37 @@ h1 {
} }
h2 { h2 {
font-size: 22px; @include font-size(22);
font-weight: 500; font-weight: 500;
margin: 32px 0px 24px; margin: 32px 0px 24px;
clear: both; clear: both;
} }
h3 { h3 {
font-size: 20px; @include font-size(20);
font-weight: 400; font-weight: 400;
margin: 24px 0px 12px; margin: 24px 0px 12px;
clear: both; clear: both;
} }
h4 { h4 {
font-size: 18px; @include font-size(18);
font-weight: 400; font-weight: 400;
margin: 8px 0px; margin: 8px 0px;
clear: both; clear: both;
} }
h5 { h5 {
font-size: 16px; @include font-size(16);
font-weight: 500; font-weight: 500;
margin: 8px 0px; margin: 8px 0px;
clear: both; clear: both;
} }
h6 { h6 {
color: $mediumgray; @include font-size(16);
font-size: 16px;
font-weight: 500; font-weight: 500;
color: $mediumgray;
margin: 8px 0px; margin: 8px 0px;
clear: both; clear: both;
} }
@ -83,13 +87,13 @@ ol,
li, li,
input, input,
a { a {
font-size: 14px; @include font-size(14);
line-height: 24px; @include line-height(24);
letter-spacing: 0.3px; @include letter-spacing(0.3);
font-weight: 400; font-weight: 400;
color: $darkgray; color: $darkgray;
& > em { & > em {
letter-spacing: 0.3px; @include letter-spacing(0.3);
} }
} }
@ -129,7 +133,7 @@ a {
} }
.app-toolbar a { .app-toolbar a {
font-size: 16px; @include font-size(16);
font-weight: 400; font-weight: 400;
color: $white; color: $white;
font-family: $main-font; font-family: $main-font;
@ -157,7 +161,7 @@ table tbody th {
td { td {
font-weight: 400; font-weight: 400;
padding: 8px 30px; padding: 8px 30px;
letter-spacing: 0.3px; @include letter-spacing(0.3);
> p, > p,
ul { ul {
@ -171,7 +175,7 @@ td {
} }
th { th {
font-size: 16px; @include font-size(16);
font-weight: 500; font-weight: 500;
padding: 13px 32px; padding: 13px 32px;
text-align: left; text-align: left;

View File

@ -1,6 +1,6 @@
footer { footer {
position: relative; position: relative;
line-height: 24px; @include line-height(24);
flex: 1; flex: 1;
padding: 48px; padding: 48px;
z-index: 0; z-index: 0;
@ -37,7 +37,7 @@ footer {
cursor: pointer; cursor: pointer;
} }
h3 { h3 {
font-size: 16px; @include font-size(16);
text-transform: uppercase; text-transform: uppercase;
font-weight: 400; font-weight: 400;
margin: 0 0 16px; margin: 0 0 16px;
@ -82,23 +82,15 @@ footer {
} }
} }
@media (max-width: 700px) {
h3 {
font-size: 110%;
}
}
@media (max-width: 600px) { @media (max-width: 600px) {
h3 { h3 {
font-size: 100%; @include font-size(14);
} }
} }
} }
footer::after { footer::after {
content: ""; content: '';
position: absolute; position: absolute;
z-index: -1; z-index: -1;
top: 0; top: 0;

View File

@ -22,9 +22,9 @@
.hero-title { .hero-title {
display: inline-block; display: inline-block;
font-size: 28px; @include font-size(28);
font-weight: 400; font-weight: 400;
line-height: 48px; @include line-height(48);
margin: 0 8px 0 0; margin: 0 8px 0 0;
text-transform: uppercase; text-transform: uppercase;
@ -76,8 +76,8 @@ section#intro {
} }
.hero-headline { .hero-headline {
font-size: 40px; @include font-size(40);
line-height: 64px; @include line-height(64);
font-weight: 500; font-weight: 500;
margin: 32px 0; margin: 32px 0;
@ -90,8 +90,8 @@ section#intro {
} }
@media (max-width: 575px) { @media (max-width: 575px) {
font-size: 32px; @include font-size(32);
line-height: 50px; @include line-height(50);
} }
} }
@ -154,7 +154,7 @@ section#intro {
align-items: center; align-items: center;
height: 40px; height: 40px;
min-width: 160px; min-width: 160px;
font-size: 16px; @include font-size(16);
color: $white; color: $white;
background-color: $blue; background-color: $blue;
border-radius: 48px; border-radius: 48px;
@ -172,11 +172,11 @@ section#intro {
right: 0; right: 0;
position: static; position: static;
transition: all 0.3s ease-in; transition: all 0.3s ease-in;
font-size: 16px; @include font-size(16);
} }
p { p {
font-size: 16px; @include font-size(16);
margin: 8px; margin: 8px;
text-align: center; text-align: center;
} }
@ -252,9 +252,9 @@ section#intro {
width: 184px; width: 184px;
height: 40px; height: 40px;
padding: 0 24px; padding: 0 24px;
font-size: 18px; @include font-size(18);
font-weight: 600; font-weight: 600;
line-height: 40px; @include line-height(40);
background-color: $white; background-color: $white;
border-radius: 48px; border-radius: 48px;
box-shadow: 0 2px 5px 0 rgba(0,0,0,.26); box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
@ -325,7 +325,7 @@ aio-shell {
} }
.text-headline { .text-headline {
font-size: 20px; @include font-size(20);
font-weight: 500; font-weight: 500;
color: $blue; color: $blue;
margin-top: 10px; margin-top: 10px;
@ -424,7 +424,7 @@ div[layout=row]{
.banner-headline { .banner-headline {
text-transform: uppercase; text-transform: uppercase;
font-size: 24px; @include font-size(24);
font-weight: 300; font-weight: 300;
color: $white; color: $white;
margin: 0; margin: 0;
@ -432,7 +432,7 @@ div[layout=row]{
-webkit-margin-after: 0; -webkit-margin-after: 0;
@media (max-width: 600px) { @media (max-width: 600px) {
font-size: 18px; @include font-size(18);
font-weight: 400; font-weight: 400;
} }

View File

@ -13,8 +13,8 @@
flex-direction: column; flex-direction: column;
h1 { h1 {
font-size: 48px; @include font-size(48);
color: $blue; color: $blue;
text-transform: uppercase; text-transform: uppercase;
margin: 8px 0; margin: 8px 0;
} }
@ -22,6 +22,6 @@
.nf-icon.material-icons { .nf-icon.material-icons {
color: $blue; color: $blue;
font-size: 100px; @include font-size(100);
position: static; position: static;
} }

View File

@ -6,7 +6,7 @@
aio-nav-menu { aio-nav-menu {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
font-size: 13px; @include font-size(13);
ul, a { ul, a {
padding: 0; padding: 0;
margin: 0; margin: 0;
@ -137,7 +137,7 @@ button.vertical-menu-item {
.level-1 { .level-1 {
font-family: $main-font; font-family: $main-font;
font-size: 14px; @include font-size(14);
font-weight: 400; font-weight: 400;
margin-left: 14px; margin-left: 14px;
transition: background-color 0.2s; transition: background-color 0.2s;
@ -147,7 +147,7 @@ button.vertical-menu-item {
.level-2 { .level-2 {
color: $mediumgray; color: $mediumgray;
font-family: $main-font; font-family: $main-font;
font-size: 14px; @include font-size(14);
font-weight: 400; font-weight: 400;
margin-left: 12px; margin-left: 12px;
text-transform: none; text-transform: none;
@ -156,7 +156,7 @@ button.vertical-menu-item {
.level-3 { .level-3 {
color: $mediumgray; color: $mediumgray;
font-family: $main-font; font-family: $main-font;
font-size: 14px; @include font-size(14);
margin-left: 10px; margin-left: 10px;
} }
@ -195,7 +195,7 @@ mat-sidenav .doc-version {
option { option {
font-family: $main-font; font-family: $main-font;
font-size: 14px; @include font-size(14);
} }
} }
} }

View File

@ -1,7 +1,7 @@
.alert { .alert {
padding: 16px; padding: 16px;
margin: 24px 0px; margin: 24px 0px;
font-size: 14px; @include font-size(14);
color: $darkgray; color: $darkgray;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;

View File

@ -70,29 +70,25 @@ aio-api-list {
box-sizing: border-box; box-sizing: border-box;
border: 1px solid $white; border: 1px solid $white;
color: $blue-600; color: $blue-600;
font-size: 16px; @include font-size(16);
height: 32px; height: 32px;
line-height: 32px; @include line-height(32);
outline: none; outline: none;
padding: 0 16px 0 32px; padding: 0 16px 0 32px;
transition: all .2s; transition: all .2s;
// PLACEHOLDER TEXT // PLACEHOLDER TEXT
&::-webkit-input-placeholder { /* Chrome/Opera/Safari */ &::-webkit-input-placeholder,
&::-moz-placeholder,
&::-ms-input-placeholder,
&:-moz-placeholder {
/* Chrome/Opera/Safari */
/* Firefox 19+ */
/* IE 10+ */
/* Firefox 18- */
color: $blue-grey-100; color: $blue-grey-100;
font-size: 14px; @include font-size(14);
}
&::-moz-placeholder { /* Firefox 19+ */
color: $blue-grey-100;
font-size: 14px;
}
&:-ms-input-placeholder { /* IE 10+ */
color: $blue-grey-100;
font-size: 14px;
}
&:-moz-placeholder { /* Firefox 18- */
color: $blue-grey-100;
font-size: 14px;
} }
&:focus { &:focus {
@ -103,7 +99,7 @@ aio-api-list {
.material-icons { .material-icons {
color: $blue-grey-100; color: $blue-grey-100;
font-size: 20px; @include font-size(20);
left: 8px; left: 8px;
position: absolute; position: absolute;
top: 6px; top: 6px;
@ -120,9 +116,9 @@ aio-api-list {
box-shadow: 0 1px 2px rgba($black, .24); box-shadow: 0 1px 2px rgba($black, .24);
color: $white; color: $white;
display: inline-block; display: inline-block;
font-size: 10px; @include font-size(10);
font-weight: 600; font-weight: 600;
line-height: 16px; @include line-height(16);
text-align: center; text-align: center;
width: 16px; width: 16px;
@ -170,9 +166,9 @@ aio-api-list {
} }
li { li {
font-size: 14px; @include font-size(14);
margin: 8px 0; margin: 8px 0;
line-height: 14px; @include line-height(14);
padding: 0; padding: 0;
float: left; float: left;
width: 33%; width: 33%;
@ -187,7 +183,7 @@ aio-api-list {
a { a {
color: $blue-grey-600; color: $blue-grey-600;
display: inline-block; display: inline-block;
line-height: 16px; @include line-height(16);
padding: 0 16px 0; padding: 0 16px 0;
text-decoration: none; text-decoration: none;
transition: all .3s; transition: all .3s;
@ -208,8 +204,8 @@ aio-api-list {
.docs-content .h2-api-docs, .docs-content .h2-api-docs,
.docs-content .h2-api-docs:first-of-type { .docs-content .h2-api-docs:first-of-type {
font-size: 18px; @include font-size(18);
line-height: 24px; @include line-height(24);
margin-top: 0; margin-top: 0;
} }
@ -251,7 +247,7 @@ p {
.row-margin { .row-margin {
margin-bottom: 36px; margin-bottom: 36px;
h2 { h2 {
line-height: 28px; @include line-height(28);
} }
} }
@ -292,7 +288,7 @@ p {
} }
.api-doc-code { .api-doc-code {
font-size: 14px; @include font-size(14);
color: #1a2326; color: #1a2326;
// the last .pln (white space) creates additional spacing between sections of the api doc. Remove it. // the last .pln (white space) creates additional spacing between sections of the api doc. Remove it.
@ -314,11 +310,11 @@ p {
} }
.api-doc-code { .api-doc-code {
font-size: 12px; @include font-size(12);
} }
p.location-badge { p.location-badge {
position: relative; position: relative;
font-size: 11px; @include font-size(11);
} }
} }

View File

@ -6,7 +6,7 @@
th { th {
text-transform: none; text-transform: none;
font-size: 16px; @include font-size(16);
font-weight: bold; font-weight: bold;
} }
@ -52,7 +52,7 @@
&.parameters-table { &.parameters-table {
margin-top: 0; margin-top: 0;
font-size: 14px; @include font-size(14);
box-shadow: none; box-shadow: none;
tr { tr {
@ -120,7 +120,7 @@
.material-icons { .material-icons {
border-radius: 4px; border-radius: 4px;
padding: 4px; padding: 4px;
font-size: 20px; @include font-size(20);
&:hover { &:hover {
background-color: $mist; background-color: $mist;
} }
@ -166,7 +166,7 @@
} }
h4 { h4 {
font-size: 14px; @include font-size(14);
font-weight: bold; font-weight: bold;
margin-top: 12px; margin-top: 12px;
} }
@ -175,12 +175,12 @@
.api-heading { .api-heading {
padding: 5px 0; padding: 5px 0;
font-size: 14px; @include font-size(14);
} }
.parameters-table { .parameters-table {
margin-top: 0; margin-top: 0;
font-size: 14px; @include font-size(14);
td:nth-child(1) { td:nth-child(1) {
width: 20%; width: 20%;
} }
@ -245,9 +245,9 @@
.from-constructor, .read-only-property, .write-only-property { .from-constructor, .read-only-property, .write-only-property {
font-size: 12px; @include font-size(12);
font-weight: 600; font-weight: 600;
letter-spacing: 0.5px; @include letter-spacing(0.5);
font-style: italic; font-style: italic;
background-color: $lightgray; background-color: $lightgray;
border-radius: 4px; border-radius: 4px;

View File

@ -3,9 +3,9 @@
.button, .button,
a.button.mat-button { a.button.mat-button {
display: inline-block; display: inline-block;
line-height: 32px; @include line-height(32);
padding: 0px 16px; padding: 0px 16px;
font-size: 14px; @include font-size(14);
font-weight: 400; font-weight: 400;
border-radius: 3px; border-radius: 3px;
text-decoration: none; text-decoration: none;
@ -15,20 +15,20 @@ a.button.mat-button {
// SIZES // SIZES
&.button-small { &.button-small {
font-size: 12px; @include font-size(12);
line-height: 24px; @include line-height(24);
padding: 0px 8px; padding: 0px 8px;
} }
&.button-large { &.button-large {
font-size: 15px; @include font-size(15);
line-height: 48px; @include line-height(48);
padding: 0px 24px; padding: 0px 24px;
} }
&.button-x-large { &.button-x-large {
font-size: 16px; @include font-size(16);
line-height: 56px; @include line-height(56);
padding: 0px 24px; padding: 0px 24px;
} }
@ -85,10 +85,10 @@ a.button.mat-button {
a.filter-button { a.filter-button {
width: 140px; width: 140px;
font-size: 14px; @include font-size(14);
padding: 0px 16px; padding: 0px 16px;
margin: 8px; margin: 8px;
line-height: 48px; @include line-height(48);
border: 2px solid $blue; border: 2px solid $blue;
border-radius: 4px; border-radius: 4px;

View File

@ -6,7 +6,7 @@
header { header {
color: $white; color: $white;
line-height: 24px; @include line-height(24);
font-weight: 500; font-weight: 500;
padding: 8px 16px; padding: 8px 16px;
margin: 0; margin: 0;
@ -17,7 +17,7 @@
p { p {
padding: 16px; padding: 16px;
margin: 0px; margin: 0px;
font-size: 14px; @include font-size(14);
} }
> *:not(:first-child) { > *:not(:first-child) {

View File

@ -26,7 +26,7 @@
} }
.card-footer { .card-footer {
line-height: 32px; @include line-height(32);
padding: 8px 16px; padding: 8px 16px;
background-color: rgba($blue, 0.1); background-color: rgba($blue, 0.1);
color: $blue; color: $blue;
@ -36,8 +36,8 @@
section { section {
color: $deepgray; color: $deepgray;
font-size: 20px; @include font-size(20);
line-height: 24px; @include line-height(24);
margin: 0; margin: 0;
padding: 32px 0 24px; padding: 32px 0 24px;
text-transform: none; text-transform: none;
@ -46,8 +46,8 @@
p { p {
color: $darkgray; color: $darkgray;
font-size: 13px; @include font-size(13);
line-height: 24px; @include line-height(24);
padding: 0 16px; padding: 0 16px;
margin: 0; margin: 0;
text-align: center; text-align: center;
@ -57,7 +57,7 @@
bottom: 0; bottom: 0;
border-top: 0.5px solid $lightgray; border-top: 0.5px solid $lightgray;
box-sizing: border-box; box-sizing: border-box;
line-height: 48px; @include line-height(48);
left: 0; left: 0;
position: absolute; position: absolute;
right: 0; right: 0;
@ -66,7 +66,7 @@
a { a {
color: $mediumgray; color: $mediumgray;
font-size: 13px; @include font-size(13);
} }
} }
.card-footer.center { .card-footer.center {

View File

@ -51,7 +51,7 @@ code-example header {
background-color: $accentblue; background-color: $accentblue;
border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;
color: $offwhite; color: $offwhite;
font-size: 16px; @include font-size(16);
padding: 8px 16px; padding: 8px 16px;
} }
@ -88,7 +88,7 @@ aio-code pre {
align-items: center; align-items: center;
code span { code span {
line-height: 24px; @include line-height(24);
} }
} }
@ -159,7 +159,7 @@ ol.linenums {
margin: 0; margin: 0;
font-family: $code-font; font-family: $code-font;
font-size: 90%; font-size: 90%;
line-height: 24px; @include line-height(24);
} }
} }

View File

@ -72,7 +72,7 @@ aio-contributor {
.info-item { .info-item {
color: $white; color: $white;
font-size: 14px; @include font-size(14);
font-weight: 500; font-weight: 500;
margin: 8px; margin: 8px;
padding: 0; padding: 0;
@ -142,8 +142,8 @@ aio-contributor {
p { p {
margin: 8px 0; margin: 8px 0;
font-size: 12px; @include font-size(12);
line-height: 14px; @include line-height(14);
text-align: left; text-align: left;
} }
@ -172,7 +172,7 @@ aio-contributor {
} }
section { section {
font-size: 14px; @include font-size(14);
font-weight: 500; font-weight: 500;
padding: 8px; padding: 8px;
margin: 0; margin: 0;
@ -184,8 +184,8 @@ aio-contributor {
p { p {
cursor: pointer; cursor: pointer;
font-size: 14px; @include font-size(14);
line-height: 18px; @include line-height(18);
margin: 8px 16px; margin: 8px 16px;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow-y: auto; overflow-y: auto;

View File

@ -14,7 +14,7 @@
summary { summary {
cursor: pointer; cursor: pointer;
font-size: 16px; @include font-size(16);
position: relative; position: relative;
padding: 16px 24px; padding: 16px 24px;
color: $black; color: $black;

View File

@ -1,10 +1,10 @@
.edit-page-cta { .edit-page-cta {
font-weight: 400; font-weight: 400;
font-size: 14px; @include font-size(14);
color: $blue; color: $blue;
text-align: right; text-align: right;
margin-right: 32px; margin-right: 32px;
display: block; display: block;
position: absolute; position: absolute;
right: 0; right: 0;
} }

View File

@ -12,7 +12,7 @@
} }
.feature-title { .feature-title {
font-size: 16px; @include font-size(16);
font-weight: 500; font-weight: 500;
margin: 8px 0px; margin: 8px 0px;
clear: both; clear: both;
@ -28,11 +28,11 @@
.feature { .feature {
max-width: 300px; max-width: 300px;
margin: 0 16px; margin: 0 16px;
@media (max-width: 768px) { @media (max-width: 768px) {
max-width: 100%; max-width: 100%;
} }
} }
} }
} }

View File

@ -8,8 +8,8 @@
.file { .file {
display: block; display: block;
font-family: $main-font; font-family: $main-font;
letter-spacing: 0.3px; @include letter-spacing(0.3);
line-height: 32px; @include line-height(32);
color: $darkgray; color: $darkgray;
} }

View File

@ -2,7 +2,7 @@ label.raised, .api-header label {
border-radius: 4px; border-radius: 4px;
padding: 4px 16px; padding: 4px 16px;
display: inline; display: inline;
font-size: 14px; @include font-size(14);
color: $white; color: $white;
margin-right: 8px; margin-right: 8px;
font-weight: 500; font-weight: 500;
@ -29,8 +29,8 @@ label.raised, .api-header label {
} }
&.property-type-label { &.property-type-label {
font-size: 12px; @include font-size(12);
background-color: $darkgray; background-color: $darkgray;
color: $white; color: $white;
text-transform: none; text-transform: none;
} }
@ -40,7 +40,7 @@ label.raised, .api-header label {
// The API badges should be a little smaller // The API badges should be a little smaller
padding: 2px 10px; padding: 2px 10px;
font-size: 12px; @include font-size(12);
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
margin: 4px 0; margin: 4px 0;

View File

@ -57,7 +57,7 @@ aio-notification {
border-radius: 15px; border-radius: 15px;
text-transform: uppercase; text-transform: uppercase;
padding: 0 10px; padding: 0 10px;
font-size: 12px; @include font-size(12);
@media (max-width: 780px) { @media (max-width: 780px) {
display: none; display: none;
} }

View File

@ -16,8 +16,8 @@
display: block; display: block;
overflow: hidden; overflow: hidden;
visibility: hidden; visibility: hidden;
font-size: 0; @include font-size(0);
line-height: 0; @include line-height(0);
width: 0; width: 0;
height: 0; height: 0;
} }
@ -60,8 +60,8 @@
display: block; display: block;
overflow: hidden; overflow: hidden;
visibility: hidden; visibility: hidden;
font-size: 0; @include font-size(0);
line-height: 0; @include line-height(0);
width: 0; width: 0;
height: 0; height: 0;
} }
@ -79,8 +79,8 @@
display: block; display: block;
overflow: hidden; overflow: hidden;
visibility: hidden; visibility: hidden;
font-size: 0; @include font-size(0);
line-height: 0; @include line-height(0);
width: 0; width: 0;
height: 0; height: 0;
} }
@ -101,7 +101,7 @@ aio-resource-list {
.c-resource { .c-resource {
h4 { h4 {
margin: 0; margin: 0;
line-height: 24px; @include line-height(24);
} }
p { p {
@ -131,6 +131,7 @@ aio-resource-list {
margin: 2px 0; margin: 2px 0;
padding: 3px 14px; padding: 3px 14px;
font-size: 18px !important; font-size: 18px !important;
font-size: 1.8rem !important;
&:hover { &:hover {
background: #edf0f2; background: #edf0f2;

View File

@ -54,7 +54,7 @@ aio-search-results.embedded .search-results {
height: 100%; height: 100%;
.search-section-header { .search-section-header {
font-size: 16px; @include font-size(16);
font-weight: 400; font-weight: 400;
margin: 10px 0px 5px; margin: 10px 0px 5px;
text-transform: uppercase; text-transform: uppercase;
@ -71,7 +71,7 @@ aio-search-results.embedded .search-results {
} }
a { a {
font-size: 14px; @include font-size(14);
color: $lightgray; color: $lightgray;
text-decoration: none; text-decoration: none;
font-weight: normal; font-weight: normal;

View File

@ -10,10 +10,10 @@
box-sizing: border-box; box-sizing: border-box;
border: 1px solid $white; border: 1px solid $white;
color: $blue-grey-600; color: $blue-grey-600;
font-size: 12px; @include font-size(12);
font-weight: 400; font-weight: 400;
height: 32px; height: 32px;
line-height: 32px; @include line-height(32);
outline: none; outline: none;
padding: 0 16px; padding: 0 16px;
text-align: left; text-align: left;
@ -51,8 +51,8 @@
li { li {
cursor: pointer; cursor: pointer;
font-size: 14px; @include font-size(14);
line-height: 32px; @include line-height(32);
margin: 0; margin: 0;
padding: 0 16px 0 40px; padding: 0 16px 0 40px;
position: relative; position: relative;

View File

@ -25,12 +25,12 @@ table {
background: rgba($lightgray, 0.2); background: rgba($lightgray, 0.2);
border-bottom: 1px solid $lightgray; border-bottom: 1px solid $lightgray;
color: $darkgray; color: $darkgray;
font-size: 12px; @include font-size(12);
font-weight: 500; font-weight: 500;
padding: 8px 24px; padding: 8px 24px;
text-align: left; text-align: left;
text-transform: uppercase; text-transform: uppercase;
line-height: 28px; @include line-height(28);
} }
} }
@ -40,7 +40,7 @@ table {
border-bottom: 1px solid $lightgray; border-bottom: 1px solid $lightgray;
padding: 16px; padding: 16px;
text-align: left; text-align: left;
line-height: 24px; @include line-height(24);
vertical-align: top; vertical-align: top;
@media (max-width: 480px) { @media (max-width: 480px) {
@ -53,7 +53,7 @@ table {
} }
td { td {
letter-spacing: 0.30px; @include letter-spacing(0.3);
tr td:first-child { tr td:first-child {
@media (max-width: 480px) { @media (max-width: 480px) {
@ -112,4 +112,4 @@ table {
} }
} }
} }
} }

View File

@ -23,13 +23,13 @@ aio-toc.embedded {
} }
.toc-inner { .toc-inner {
font-size: 13px; @include font-size(13);
overflow-y: visible; overflow-y: visible;
padding: 4px 0 0 10px; padding: 4px 0 0 10px;
.toc-heading, .toc-heading,
.toc-list .h1 { .toc-list .h1 {
font-size: 115%; @include font-size(16);
} }
.toc-heading { .toc-heading {
@ -117,8 +117,8 @@ aio-toc.embedded {
li { li {
box-sizing: border-box; box-sizing: border-box;
font-size: 12px; @include font-size(12);
line-height: 16px; @include line-height(16);
padding: 3px 0 3px 12px; padding: 3px 0 3px 12px;
position: relative; position: relative;
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
@ -140,7 +140,7 @@ aio-toc.embedded {
a { a {
color: lighten($darkgray, 10); color: lighten($darkgray, 10);
overflow: visible; overflow: visible;
font-size: 12px; @include font-size(12);
display: table-cell; display: table-cell;
} }

View File

@ -40,6 +40,22 @@
} }
} }
// REM Font Adjustments
@mixin font-size($sizeValue) {
font-size: ($sizeValue) + px;
font-size: ($sizeValue / 10) + rem;
}
@mixin letter-spacing($spacingValue) {
letter-spacing: ($spacingValue) + px;
letter-spacing: ($spacingValue / 10) + rem;
}
@mixin line-height($heightValue) {
line-height: ($heightValue) + px;
line-height: ($heightValue / 10) + rem;
}
@mixin rotate($degrees) { @mixin rotate($degrees) {
-moz-transform: rotate($degrees); -moz-transform: rotate($degrees);
-webkit-transform: rotate($degrees); -webkit-transform: rotate($degrees);
@ -72,4 +88,4 @@
box-shadow: 0 8px 8px rgba($black, 0.24), 0 0 8px rgba($black, 0.12); box-shadow: 0 8px 8px rgba($black, 0.24), 0 0 8px rgba($black, 0.12);
text-decoration: none; text-decoration: none;
} }
} }