Completely deprecate iconfonts

This commit is contained in:
Rico Sta. Cruz 2017-10-13 00:16:48 +08:00
parent 4c669bcbfb
commit f486b64789
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
10 changed files with 878 additions and 6230 deletions

View File

@ -16,20 +16,19 @@
&:hover, &:hover,
&:focus { &:focus {
background: $base-a; background-color: $base-a;
color: white; color: white;
} }
& > i::before { & > i::before {
@include ion-icon('ios-home-outline'); content: '';
font-size: 24px; @include ion-ios-home-outline(24px, $base-mute);
height: 48px; height: 48px;
line-height: 48px; line-height: 48px;
width: 48px; width: 48px;
text-align: center;
} }
&:hover > i::before { &:hover > i::before {
@extend %ion-icon-ios-home; background-image: ion-ios-home-image(white);
} }
} }

View File

@ -25,9 +25,8 @@
} }
& > h3::before { & > h3::before {
@include ion-icon('md-arrow-forward'); content: '';
font-size: 24px; @include ion-md-arrow-forward(24px, $base-a);
color: $base-a;
margin-right: 16px; margin-right: 16px;
} }

View File

@ -9,10 +9,9 @@
} }
&::before { &::before {
@include ion-icon('md-information-circle'); content: '';
font-size: 24px; @include ion-md-information-circle(24px, $base-mute3);
margin-right: 8px; margin-right: 8px;
color: $base-mute3;
} }
& > a { & > a {

View File

@ -1,4 +1,5 @@
/* /*
content: '';
* Spacer before footer * Spacer before footer
*/ */
@ -11,9 +12,8 @@
} }
& > .icon::before { & > .icon::before {
@include ion-icon('ios-flash'); content: '';
color: $base-mute; @include ion-ios-flash(32px, $base-mute);
font-size: 32px;
opacity: 0.25; opacity: 0.25;
} }
} }

View File

@ -34,16 +34,13 @@
& > .text > .icon { & > .text > .icon {
margin-bottom: 16px; margin-bottom: 16px;
display: block; display: block;
color: adjust-color($base-a, $lightness: 16%, $hue: 20deg);
} }
& > .text > .icon::before { & > .text > .icon::before {
@include ion-icon('ios-arrow-back'); content: '';
font-size: 48px; @include ion-ios-arrow-back(48px, adjust-color($base-a, $lightness: 16%, $hue: 20deg));
height: 64px; height: 64px;
width: 64px; width: 64px;
line-height: 64px - 4px;
text-align: center;
border: solid 2px adjust-color($base-a, $lightness: 16%, $hue: 20deg); border: solid 2px adjust-color($base-a, $lightness: 16%, $hue: 20deg);
border-radius: 50%; border-radius: 50%;
text-indent: -2px; text-indent: -2px;

View File

@ -97,6 +97,7 @@
flex: 0 0 48px; flex: 0 0 48px;
width: 48px; width: 48px;
line-height: 48px; line-height: 48px;
font-size: 24px; background-size: 24px 24px;
background-position: center center;
} }
} }

View File

@ -24,20 +24,19 @@
} }
& > a::before { & > a::before {
@include ion-icon('md-arrow-forward'); content: '';
font-size: 24px; @include ion-md-arrow-forward(16px, white);
margin-right: 16px; margin-right: 16px;
width: 32px; width: 32px;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
text-align: center;
border-radius: 50%; border-radius: 50%;
} }
& > a, & > a,
& > a:visited { & > a:visited {
&::before { &::before {
background: $base-a; background-color: $base-a;
color: white; color: white;
} }
} }
@ -49,7 +48,7 @@
} }
&::before { &::before {
background: $base-a7; background-color: $base-a7;
} }
} }
} }

View File

@ -1,6 +1,5 @@
@import './variables'; @import './variables';
@import '../vendor/modularscale/modularscale'; @import '../vendor/modularscale/modularscale';
@import '../vendor/iconfonts/ionicons@3';
@import '../vendor/ionicons-inline/ionicons'; @import '../vendor/ionicons-inline/ionicons';
@import './utils/carbon-style'; @import './utils/carbon-style';
@import './utils/font-size'; @import './utils/font-size';
@ -9,7 +8,6 @@
@import './utils/section-gutter'; @import './utils/section-gutter';
@import './utils/section-with-container'; @import './utils/section-with-container';
@import './placeholders/push-button'; @import './placeholders/push-button';
@include ion-font;
@import './base/base'; @import './base/base';
@import './markdown/a-em'; @import './markdown/a-em';
@import './markdown/code'; @import './markdown/code';

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long