l-hammer/YDTemplate

View on GitHub
src/assets/iconfonts/index.scss

Summary

Maintainability
Test Coverage
/**
 * Ionicons font
 *
 * 图标定义: .@{$ydicons-prefix}clear:before{ content: "\e600"; }
 */
$ydicons-font-family: "YDS-ifont";
$ydicons-prefix: "yds-icon-";

@font-face {
  font-family: $ydicons-font-family;  /* project id 275379 */
  src: url('//at.alicdn.com/t/font_564005_kuf4qt41tyrmgqfr.eot');
  src: url('//at.alicdn.com/t/font_564005_kuf4qt41tyrmgqfr.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_564005_kuf4qt41tyrmgqfr.woff') format('woff'),
  url('//at.alicdn.com/t/font_564005_kuf4qt41tyrmgqfr.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_564005_kuf4qt41tyrmgqfr.svg#YDS-ifont') format('svg');
  font-weight: normal;
  font-style: normal;
}
@mixin yds-icon() {
  display: inline-block;
  font-family: $ydicons-font-family;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.YDSICON {
    @include yds-icon;
}

.#{$ydicons-prefix}clear:before{ content: "\e600"; }
.#{$ydicons-prefix}close:before{ content: "\e61e"; }
.#{$ydicons-prefix}loading:before{ content: "\e79e"; }
.#{$ydicons-prefix}checkmark:before{ content: "\e633"; }

.#{$ydicons-prefix}arrow-up-a:before{ content: "\e656"; }
.#{$ydicons-prefix}arrow-right-a:before{ content: "\e63d"; }
.#{$ydicons-prefix}arrow-down-a:before{ content: "\e657"; }
.#{$ydicons-prefix}arrow-left-a:before{ content: "\e655"; }

.#{$ydicons-prefix}arrow-up-b:before{ content: "\e642"; }
.#{$ydicons-prefix}arrow-down-b:before{ content: "\e641"; }

.#{$ydicons-prefix}arrow-double-up-a:before{ content: "\e64c"; }
.#{$ydicons-prefix}arrow-double-right-a:before{ content: "\e640"; }
.#{$ydicons-prefix}arrow-double-down-a:before{ content: "\e64d"; }
.#{$ydicons-prefix}arrow-double-left-a:before{ content: "\e64b"; }

.#{$ydicons-prefix}hand-down:before{ content: "\e60c"; }

/**
 * --------------------------------------------------
 *                    以下为示例字体                   .
 * --------------------------------------------------
 */
@font-face {
  font-family: 'FZJHSXJW';
  src: url("https://caiyunupload.b0.upaiyun.com/ydimg/theme/2018/05/invitefriends/fonts/FZJHSXJW.woff?v=6") format("woff"), /* chrome、firefox */
  url("https://caiyunupload.b0.upaiyun.com/ydimg/theme/2018/05/invitefriends/fonts/FZJHSXJW.ttf?v=6") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
  url("https://caiyunupload.b0.upaiyun.com/ydimg/theme/2018/05/invitefriends/fonts/FZJHSXJW.svg#ydhkpp?v=6") format("svg"); /* iOS 4.1- */
  font-style: normal;
  font-weight: normal;
}
@font-face {
  font-family: 'fzhtjt';
  src: url("https://caiyunupload.b0.upaiyun.com/ydimg/theme/2018/05/invitefriends/fonts/fzhtjt.woff?v=6") format("woff"), /* chrome、firefox */
  url("https://caiyunupload.b0.upaiyun.com/ydimg/theme/2018/05/invitefriends/fonts/fzhtjt.ttf?v=6") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
  url("https://caiyunupload.b0.upaiyun.com/ydimg/theme/2018/05/invitefriends/fonts/fzhtjt.svg#ydhkpp?v=6") format("svg"); /* iOS 4.1- */
  font-style: normal;
  font-weight: normal;
}