Created
July 14, 2014 18:01
-
-
Save alienresident/2c908079a221639ac4e5 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.0.rc.1) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
@import "compass"; | |
$tool-icons: ( | |
sakai-help: "\f059", | |
sakai-iframe-site: '\f015', | |
sakai-motd: '\f015', | |
sakai-schedule: '\f073', | |
sakai-resources: '\f07b', | |
sakai-chat: '\f086', | |
sakai-mailbox: '\f01c', | |
sakai-siteinfo: '\f085', | |
sakai-messages: '\f003', | |
sakai-membership: '\f0c0', | |
sakai-forums: '\f0e6', | |
sakai-iframe: '\f0c1', | |
sakai-gradebook-tool : '\e050', | |
sakai-blogwow : '\f09e', | |
sakai-sitestats: '\f080', | |
sakai-news: '\f09e', | |
sakai-subsite: '' // intentionally blank | |
); | |
@mixin web-font-family($font-name: false) { | |
@if $font-name { font-family: $font-name; } | |
} | |
@mixin web-font-face($font-name, $font-file-name, $font-weight: normal, $font-style: normal, $inline-fonts: false) { | |
@if $inline-fonts and $font-name { | |
@include font-face( | |
$font-name, | |
inline-font-files( | |
"#{$font-file-name}.woff", woff, | |
"#{$font-file-name}.ttf", truetype, | |
"#{$font-file-name}.svg", svg | |
), | |
"#{$font-file-name}.eot", | |
$font-weight, | |
$font-style | |
); | |
} | |
@else if $font-name { | |
@include font-face( | |
$font-name, | |
font-files( | |
"#{$font-file-name}.woff", woff, | |
"#{$font-file-name}.ttf", truetype, | |
"#{$font-file-name}.svg##{$font-name}", svg | |
), | |
"#{$font-file-name}.eot", | |
$font-weight, | |
$font-style | |
); | |
} | |
} | |
@mixin generate-icons($icons, $pseudo: before, $prefix: '', $extend: '') { | |
@each $class, $icon in $icons { | |
#{$prefix}#{$class}:#{$pseudo} { | |
//content: #{$icon}; | |
content: "#{map-get($icons, $icon)}"; | |
@if ($extend != '') { | |
@extend %#{$extend}; | |
//@warn "$extend is #{$extend}" | |
} | |
} | |
} | |
} | |
@mixin generate-icon($icon, $pseudo: before, $prefix: '', $extend: '') { | |
#{$prefix}#{nth($icon, 1)}:#{$pseudo} { | |
content: nth($icon, 2); | |
@if ($extend != '') { | |
@extend %#{$extend}; | |
} | |
} | |
} | |
$icon-font-name: 'Sakai-Icon-Font'; | |
$icon-font-file-name: 'Sakai-Icon-Font'; | |
$icon-inline-fonts: false; | |
$icon-font-weight: normal; | |
$icon-font-style: normal; | |
%ico-font-base { | |
font-family: $icon-font-name; | |
speak: none; | |
font-style: normal; | |
font-weight: normal; | |
line-height: 1; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
%ico-font-icons { | |
@extend %ico-font-base; | |
margin: 0 .25em 0 0; | |
padding: .25em; | |
} | |
$icon-font-name: false !default; | |
$icon-font-file-name: false !default; | |
$icon-inline-fonts: false; | |
$icon-font-weight: normal; | |
$icon-font-style: normal; | |
$fallback-icon: ('[class*="icon-sakai"]' '\f0a3'); // fallback for unassigned icons. | |
// include icon font | |
@include web-font-face($icon-font-name, $icon-font-file-name, $icon-font-weight, $icon-font-style, $icon-inline-fonts); | |
@include generate-icon($fallback-icon, before, '', 'ico-font-icons'); | |
@include generate-icons($tool-icons, before, '.icon-', 'ico-font-icons'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "UTF-8"; | |
[class*="icon-sakai"]:before, .icon-sakai-help:before, .icon-sakai-iframe-site:before, .icon-sakai-motd:before, .icon-sakai-schedule:before, .icon-sakai-resources:before, .icon-sakai-chat:before, .icon-sakai-mailbox:before, .icon-sakai-siteinfo:before, .icon-sakai-messages:before, .icon-sakai-membership:before, .icon-sakai-forums:before, .icon-sakai-iframe:before, .icon-sakai-gradebook-tool:before, .icon-sakai-blogwow:before, .icon-sakai-sitestats:before, .icon-sakai-news:before, .icon-sakai-subsite:before { | |
font-family: "Sakai-Icon-Font"; | |
speak: none; | |
font-style: normal; | |
font-weight: normal; | |
line-height: 1; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
[class*="icon-sakai"]:before, .icon-sakai-help:before, .icon-sakai-iframe-site:before, .icon-sakai-motd:before, .icon-sakai-schedule:before, .icon-sakai-resources:before, .icon-sakai-chat:before, .icon-sakai-mailbox:before, .icon-sakai-siteinfo:before, .icon-sakai-messages:before, .icon-sakai-membership:before, .icon-sakai-forums:before, .icon-sakai-iframe:before, .icon-sakai-gradebook-tool:before, .icon-sakai-blogwow:before, .icon-sakai-sitestats:before, .icon-sakai-news:before, .icon-sakai-subsite:before { | |
margin: 0 .25em 0 0; | |
padding: .25em; | |
} | |
@font-face { | |
font-family: "Sakai-Icon-Font"; | |
src: url('/fonts/Sakai-Icon-Font.eot'); | |
src: url('/fonts/Sakai-Icon-Font.eot?#iefix') format('embedded-opentype'), url('/fonts/Sakai-Icon-Font.woff') format('woff'), url('/fonts/Sakai-Icon-Font.ttf') format('truetype'), url('/fonts/Sakai-Icon-Font.svg#Sakai-Icon-Font') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
[class*="icon-sakai"]:before { | |
content: ""; | |
} | |
.icon-sakai-help:before { | |
content: ""; | |
} | |
.icon-sakai-iframe-site:before { | |
content: ""; | |
} | |
.icon-sakai-motd:before { | |
content: ""; | |
} | |
.icon-sakai-schedule:before { | |
content: ""; | |
} | |
.icon-sakai-resources:before { | |
content: ""; | |
} | |
.icon-sakai-chat:before { | |
content: ""; | |
} | |
.icon-sakai-mailbox:before { | |
content: ""; | |
} | |
.icon-sakai-siteinfo:before { | |
content: ""; | |
} | |
.icon-sakai-messages:before { | |
content: ""; | |
} | |
.icon-sakai-membership:before { | |
content: ""; | |
} | |
.icon-sakai-forums:before { | |
content: ""; | |
} | |
.icon-sakai-iframe:before { | |
content: ""; | |
} | |
.icon-sakai-gradebook-tool:before { | |
content: ""; | |
} | |
.icon-sakai-blogwow:before { | |
content: ""; | |
} | |
.icon-sakai-sitestats:before { | |
content: ""; | |
} | |
.icon-sakai-news:before { | |
content: ""; | |
} | |
.icon-sakai-subsite:before { | |
content: ""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment