scss fontello

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了scss fontello相关的知识,希望对你有一定的参考价值。

@font-face {
  font-family: 'fontello';
  src: url('../fonts/fontello.eot?73096002');
  src: url('../fonts/fontello.eot?73096002#iefix') format('embedded-opentype'),
       url('../fonts/fontello.woff2?73096002') format('woff2'),
       url('../fonts/fontello.woff?73096002') format('woff'),
       url('../fonts/fontello.ttf?73096002') format('truetype'),
       url('../fonts/fontello.svg?73096002#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'fontello';
    src: url('../fonts/fontello.svg?73096002#fontello') format('svg');
  }
}
*/
 
 [class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
 
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
 
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
 
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;
 
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
 
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
 
.icon-print:before { content: '\e800'; } /* '' */
.icon-angle-circled-down:before { content: '\f13a'; } /* '' */
.icon-file-pdf:before { content: '\f1c1'; } /* '' */

以上是关于scss fontello的主要内容,如果未能解决你的问题,请参考以下文章

Azure Web 应用程序中未显示 Fontello 图标

代号一:将 Fontello 与 CSS 结合使用

icon fonts

字体图标 vs png 图标

scss [lightbox- SCSS] #ui #scss

scss scss_vertical-center.scss