Refactor: Move fonts to fonts.scss

This commit is contained in:
winkidney
2019-12-02 20:42:41 +08:00
committed by Isaac Bythewood
parent bd6f93abd1
commit cfb4cfdd34
2 changed files with 17 additions and 15 deletions

View File

@@ -238,21 +238,7 @@ export default {
$pin-footer-position-fix: -6px;
$avatar-width: 30px;
$avatar-height: 30px;
@mixin pin-detail-font-size{
font-size: 12px;
}
@mixin description-font {
@include pin-detail-font-size;
font-family: 'Georgia', 'Times', 'Times New Roman', serif;
}
@mixin secondary-font {
@include pin-detail-font-size;
color: #999;
font-weight: normal;
}
@import './utils/fonts';
@mixin loader {
background: url('../assets/loader.gif');

View File

@@ -9,3 +9,19 @@
@mixin secondary-font-color-in-dark {
color: #878787;
}
// for pins component
@mixin pin-detail-font-size{
font-size: 12px;
}
@mixin description-font {
@include pin-detail-font-size;
font-family: 'Georgia', 'Times', 'Times New Roman', serif;
}
@mixin secondary-font {
@include pin-detail-font-size;
color: #999;
font-weight: normal;
}