fix(docs-infra): improve typography styles (incl. bigger font size/line height) (#40427)
Co-authored-by: Stefanie Fluin <sjtrimble@gmail.com> PR Close #40427
This commit is contained in:
parent
de1fd4b10d
commit
1e95c41069
@ -6,7 +6,7 @@ body {
|
|||||||
font-family: $main-font;
|
font-family: $main-font;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: $darkgray;
|
color: $darkgray;
|
||||||
@include font-size(14);
|
@include font-size(16);
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
@ -18,7 +18,7 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@include font-size(24);
|
@include font-size(40);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 1.6rem 0;
|
margin: 1.6rem 0;
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ h1 {
|
|||||||
h2 {
|
h2 {
|
||||||
border-top: 1px solid $lightgray;
|
border-top: 1px solid $lightgray;
|
||||||
clear: both;
|
clear: both;
|
||||||
@include font-size(22);
|
@include font-size(32);
|
||||||
margin-top: 4rem;
|
margin-top: 4rem;
|
||||||
padding-top: 4rem;
|
padding-top: 4rem;
|
||||||
|
|
||||||
@ -49,19 +49,19 @@ h2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
@include font-size(20);
|
@include font-size(24);
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
@include font-size(18);
|
@include font-size(20);
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
@include font-size(16);
|
@include font-size(18);
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
@ -98,9 +98,8 @@ ol,
|
|||||||
li,
|
li,
|
||||||
input,
|
input,
|
||||||
a {
|
a {
|
||||||
@include font-size(14);
|
@include font-size(16);
|
||||||
@include line-height(24);
|
@include line-height(32);
|
||||||
@include letter-spacing(0.3);
|
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: $darkgray;
|
color: $darkgray;
|
||||||
& > em {
|
& > em {
|
||||||
@ -133,6 +132,7 @@ ol ol {
|
|||||||
|
|
||||||
li {
|
li {
|
||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
|
@include line-height(24);
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -171,7 +171,6 @@ table tbody th {
|
|||||||
td {
|
td {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding: 8px 30px;
|
padding: 8px 30px;
|
||||||
@include letter-spacing(0.3);
|
|
||||||
|
|
||||||
> p,
|
> p,
|
||||||
ul {
|
ul {
|
||||||
|
@ -7,7 +7,6 @@ aio-nav-menu {
|
|||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 268px;
|
max-width: 268px;
|
||||||
@include font-size(13);
|
|
||||||
|
|
||||||
&:first-of-type {
|
&:first-of-type {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
@ -111,6 +110,7 @@ button.vertical-menu-item {
|
|||||||
color: $darkgray;
|
color: $darkgray;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@include font-size(16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading-children {
|
.heading-children {
|
||||||
@ -143,7 +143,8 @@ button.vertical-menu-item {
|
|||||||
|
|
||||||
.level-1 {
|
.level-1 {
|
||||||
font-family: $main-font;
|
font-family: $main-font;
|
||||||
@include font-size(14);
|
@include font-size(16);
|
||||||
|
@include line-height(28);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -164,9 +165,10 @@ button.vertical-menu-item {
|
|||||||
.level-2 {
|
.level-2 {
|
||||||
font-family: $main-font;
|
font-family: $main-font;
|
||||||
@include font-size(14);
|
@include font-size(14);
|
||||||
|
@include line-height(24);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-left: 32px;
|
padding-left: 36px;
|
||||||
|
|
||||||
&.expanded .mat-icon,
|
&.expanded .mat-icon,
|
||||||
.level-3.expanded .mat-icon {
|
.level-3.expanded .mat-icon {
|
||||||
@ -182,15 +184,17 @@ button.vertical-menu-item {
|
|||||||
.level-3 {
|
.level-3 {
|
||||||
font-family: $main-font;
|
font-family: $main-font;
|
||||||
@include font-size(14);
|
@include font-size(14);
|
||||||
|
@include line-height(24);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-left: 40px;
|
padding-left: 44px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.level-4 {
|
.level-4 {
|
||||||
font-family: $main-font;
|
font-family: $main-font;
|
||||||
@include font-size(14);
|
@include font-size(14);
|
||||||
|
@include line-height(24);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-left: 48px;
|
padding-left: 52px;
|
||||||
}
|
}
|
||||||
|
|
||||||
aio-nav-menu.top-menu {
|
aio-nav-menu.top-menu {
|
||||||
|
@ -276,6 +276,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
@include font-size(24);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
display: inline-block;
|
display: inline-flex;
|
||||||
vertical-align: text-top;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover .header-link {
|
&:hover .header-link {
|
||||||
|
@ -126,8 +126,8 @@
|
|||||||
a {
|
a {
|
||||||
color: lighten($darkgray, 10);
|
color: lighten($darkgray, 10);
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
@include font-size(12);
|
@include font-size(14);
|
||||||
@include line-height(16);
|
@include line-height(28);
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,7 +146,7 @@
|
|||||||
content: '';
|
content: '';
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
left: -3px;
|
left: -3px;
|
||||||
top: 12px;
|
top: 14px;
|
||||||
background: $blue;
|
background: $blue;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 6px;
|
width: 6px;
|
||||||
@ -178,7 +178,7 @@
|
|||||||
content: '';
|
content: '';
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
left: -3px;
|
left: -3px;
|
||||||
top: 12px;
|
top: 14px;
|
||||||
background: $lightgray;
|
background: $lightgray;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 6px;
|
width: 6px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user