forked from django-cms/django-filer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
274 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
// #LAYOUT# | ||
|
||
@import "iconography"; | ||
@import "icons"; | ||
@import "old"; | ||
@import "main"; | ||
@import "modal"; | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
//###################################################################################################################### | ||
// #ICONOGRAPHY# | ||
|
||
// default font file generated by gulp | ||
@font-face { | ||
font-family: "django-filer-iconfont"; | ||
src: url("../fonts/django-filer-iconfont.eot?v=3.2.0"); | ||
src: url("../fonts/django-filer-iconfont.eot?v=3.2.0#iefix") format("eot"), | ||
url("../fonts/django-filer-iconfont.woff2?v=3.2.0") format("woff2"), | ||
url("../fonts/django-filer-iconfont.woff?v=3.2.0") format("woff"), | ||
url("../fonts/django-filer-iconfont.ttf?v=3.2.0") format("truetype"), | ||
url("../fonts/django-filer-iconfont.svg?v=3.2.0#django-filer-iconfont") format("svg"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
%icon { | ||
display: inline-block; | ||
font: normal normal normal 14px/1 django-filer-iconfont; | ||
font-size: inherit; | ||
text-rendering: auto; | ||
transform: translate(0, 0); | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
@function icon-char($filename) { | ||
$char: ""; | ||
|
||
@if $filename == check { | ||
$char: "E001"; | ||
} | ||
@if $filename == remove { | ||
$char: "E002"; | ||
} | ||
|
||
@return $char; | ||
} | ||
|
||
.cms-icon { | ||
@extend %icon; | ||
} | ||
@mixin icon($filename, $insert: before) { | ||
&:#{$insert} { | ||
content: #{"\"\\"}#{icon-char($filename) + "\""}; | ||
} | ||
} | ||
|
||
// ##################################################################################################################### | ||
// #ICONS:start# | ||
// use unicode characters for accessibility reasons and use aria-hidden="true" for decorative icons | ||
// DOCS: http://filamentgroup.com/lab/bulletproof_icon_fonts.html | ||
|
||
.cms-icon-check { | ||
@include icon(check); | ||
} | ||
|
||
.cms-icon-remove { | ||
@include icon(remove); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.dz-success-mark, | ||
.dz-error-mark { | ||
&:before { | ||
@extend %icon; | ||
font-size: $font-size-large; | ||
vertical-align: middle; | ||
margin-right: 5px; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
//###################################################################################################################### | ||
// #ICONOGRAPHY# | ||
|
||
// default font file generated by gulp | ||
@font-face { | ||
font-family: "<%= fontName %>"; | ||
src: url("<%= fontPath %><%= fontName %>.eot?v=3.2.0"); | ||
src: url("<%= fontPath %><%= fontName %>.eot?v=3.2.0#iefix") format("eot"), | ||
url("<%= fontPath %><%= fontName %>.woff2?v=3.2.0") format("woff2"), | ||
url("<%= fontPath %><%= fontName %>.woff?v=3.2.0") format("woff"), | ||
url("<%= fontPath %><%= fontName %>.ttf?v=3.2.0") format("truetype"), | ||
url("<%= fontPath %><%= fontName %>.svg?v=3.2.0#<%= fontName %>") format("svg"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
%icon { | ||
display: inline-block; | ||
font: normal normal normal 14px/1 <%= fontName %>; | ||
font-size: inherit; | ||
text-rendering: auto; | ||
transform: translate(0, 0); | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
@function icon-char($filename) { | ||
$char: ""; | ||
<% _.each(glyphs, function(glyph) { %> | ||
@if $filename == <%= glyph.fileName %> { | ||
$char: "<%= glyph.codePoint %>"; | ||
}<% }); %> | ||
|
||
@return $char; | ||
} | ||
|
||
.cms-icon { | ||
@extend %icon; | ||
} | ||
@mixin icon($filename, $insert: before) { | ||
&:#{$insert} { | ||
content: #{"\"\\"}#{icon-char($filename) + "\""}; | ||
} | ||
} | ||
|
||
// ##################################################################################################################### | ||
// #ICONS:start# | ||
// use unicode characters for accessibility reasons and use aria-hidden="true" for decorative icons | ||
// DOCS: http://filamentgroup.com/lab/bulletproof_icon_fonts.html | ||
<% _.each(glyphs, function(glyph) { %> | ||
.cms-icon-<%= glyph.fileName %> { | ||
@include icon(<%= glyph.fileName %>); | ||
} | ||
<% }); %> |
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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