diff options
author | Yury German <blueknight@gentoo.org> | 2016-02-12 22:22:00 -0500 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2016-02-12 22:22:00 -0500 |
commit | 657cafe0e955cf88033597f131aa50835140c617 (patch) | |
tree | cf21a30d319cb2a238a6cfb8b4eb3b20b1b5dcff /plugins/wordpress-mobile-pack/admin/sass/mixins/_icon.scss | |
parent | Adding New Mantra version 2.4.1.1 - Bug 574468 (diff) | |
download | blogs-gentoo-657cafe0e955cf88033597f131aa50835140c617.tar.gz blogs-gentoo-657cafe0e955cf88033597f131aa50835140c617.tar.bz2 blogs-gentoo-657cafe0e955cf88033597f131aa50835140c617.zip |
Updating plugins easy-table, jetpack, openid, public-post preview, talbe-of-contents-plus, wordress-mobile-pack - Bug 574468
Diffstat (limited to 'plugins/wordpress-mobile-pack/admin/sass/mixins/_icon.scss')
-rw-r--r-- | plugins/wordpress-mobile-pack/admin/sass/mixins/_icon.scss | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/plugins/wordpress-mobile-pack/admin/sass/mixins/_icon.scss b/plugins/wordpress-mobile-pack/admin/sass/mixins/_icon.scss new file mode 100644 index 00000000..cb7d93f9 --- /dev/null +++ b/plugins/wordpress-mobile-pack/admin/sass/mixins/_icon.scss @@ -0,0 +1,55 @@ +@mixin wbz-inline-icon($name, $font-size: 15px, $font-family: 'Appticles') {
+ $character: wbz-icon-character-for-name($name);
+
+ &:before {
+ position: relative;
+ text-align: center;
+ font-family: $font-family!important;
+ font-size: $font-size!important;
+ font-weight: normal!important;
+
+ @if $character {
+ content: "#{$character}";
+ } @else {
+ content: "#{$name}";
+ }
+ }
+}
+
+
+@function wbz-icon-character-for-name($name) {
+
+ // Row 1
+ @if ($name == "facebook") { @return "f"; }
+ @else if ($name == "twitter") { @return "t"; }
+ @else if ($name == "google-plus") { @return "g"; }
+ @else if ($name == "rss") { @return "r"; }
+ @else if ($name == "wordpress") { @return "w"; }
+ @else if ($name == "tumblr") { @return "\35"; }
+ @else if ($name == "youtube") {@return "\36"; }
+ @else if($name == "dfp") { @return "\37"; }
+
+ @else if ($name == "close-x") { @return "\31"; }
+ @else if ($name == "active") { @return "\32"; }
+ @else if ($name == "preview") { @return "\33"; }
+ @else if ($name == "edit") { @return "\34"; }
+
+ @else if($name == "apple") { @return "\e800"; }
+ @else if($name == "lock") { @return "\e801"; }
+ @else if($name == "blocked") { @return "\e802"; }
+ @else if($name == "airplane") { @return "\e803"; }
+ @else if($name == "cloud") { @return "\e804"; }
+ @else if($name == "stack") { @return "\e805"; }
+ @else if($name == "tablet") { @return "\e806"; }
+ @else if($name == "paint") { @return "\e807"; }
+ @else if($name == "shield") { @return "\e808"; }
+ @else if($name == "share") { @return "\e809"; }
+
+ @else if($name == "coins") { @return "\e80a"; }
+ @else if($name == "headset") { @return "\e80b"; }
+
+ @else {
+ // @debug "#icon: icon with name '#{$name}' not found.";
+ @return false;
+ }
+}
\ No newline at end of file |