浏览代码

Refactor: Move fonts to fonts.scss

pull/169/head
winkidney 5 年前
committed by Isaac Bythewood
父节点
当前提交
cfb4cfdd34
共有 2 个文件被更改,包括 17 次插入15 次删除
  1. +1
    -15
      pinry-spa/src/components/Pins.vue
  2. +16
    -0
      pinry-spa/src/components/utils/fonts.scss

+ 1
- 15
pinry-spa/src/components/Pins.vue 查看文件

@@ -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');


+ 16
- 0
pinry-spa/src/components/utils/fonts.scss 查看文件

@@ -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;
}

正在加载...
取消
保存