diff --git a/build/_includes/tests/stacked-icons.html b/build/_includes/tests/stacked-icons.html new file mode 100644 index 000000000..36e427f78 --- /dev/null +++ b/build/_includes/tests/stacked-icons.html @@ -0,0 +1,51 @@ +

+ + + + + Twitter Icon + + + + + Facebook Icon + + + + + GitHub Icon +

+

+ + + + + Twitter Icon + + + + + Facebook Icon + + + + + GitHub Icon +

+

+ + + + + Twitter Icon + + + + + Facebook Icon + + + + + GitHub Icon +

\ No newline at end of file diff --git a/build/_layouts/base.html b/build/_layouts/base.html index 0dac65b94..1be2887fd 100644 --- a/build/_layouts/base.html +++ b/build/_layouts/base.html @@ -59,7 +59,7 @@ - + diff --git a/build/assets/font-awesome/css/font-awesome.css b/build/assets/font-awesome/css/font-awesome.css index 0d058c602..46c03e26d 100644 --- a/build/assets/font-awesome/css/font-awesome.css +++ b/build/assets/font-awesome/css/font-awesome.css @@ -24,7 +24,7 @@ * -------------------------- */ @font-face { font-family: 'FontAwesome'; - src: url('../font/fontawesome-webfont.eot?v=3.0.1'); + src: url('../font/fontawesome-webfont.eot?v=3.1.0'); src: url('../font/FontAwesome.otf') format('opentype'); font-weight: normal; font-style: normal; @@ -46,6 +46,11 @@ display: inline-block; speak: none; } +/* makes the font 33% larger relative to the icon container */ +.icon-large:before { + vertical-align: -10%; + font-size: 1.3333333333333333em; +} /* makes sure icons active on rollover in links */ a [class^="icon-"], a [class*=" icon-"] { @@ -82,6 +87,12 @@ ul.icons-ul > li .icon-li { .icon-muted { color: #eeeeee; } +.icon-light { + color: #ffffff; +} +.icon-dark { + color: #333333; +} .icon-border { border: solid 1px #eeeeee; padding: .2em .25em .15em; @@ -170,11 +181,6 @@ ul.icons-ul > li .icon-li { .dropdown-submenu:hover > a > [class*=" icon-"] { background-image: none; } -/* makes the font 33% larger relative to the icon container */ -.icon-large:before { - vertical-align: -10%; - font-size: 1.3333333333333333em; -} /* keeps Bootstrap styles with and without icons the same */ .btn [class^="icon-"], .nav [class^="icon-"], @@ -240,6 +246,31 @@ ul.icons-ul > li .icon-li { } /* EXTRAS * -------------------------- */ +/* Stacked and layered icon */ +.icon-stack { + position: relative; + display: inline-block; + text-align: center; + width: 2em; + height: 2em; + line-height: 2em; + vertical-align: -35%; +} +.icon-stack [class^="icon-"], +.icon-stack [class*=" icon-"] { + position: absolute; + width: inherit; + height: inherit; + font-size: 1em; + line-height: inherit; +} +.icon-stack .icon-stack-base { + width: inherit; + height: inherit; + font-size: 2em; + line-height: inherit; +} +/* Animated rotating icon */ .icon-spin { display: inline-block; -moz-animation: spin 2s infinite linear; @@ -287,8 +318,8 @@ ul.icons-ul > li .icon-li { transform: rotate(359deg); } } -/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen - readers do not read off random characters that represent icons */ +/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen + readers do not read off random characters that represent icons */ .icon-glass:before { content: "\f000"; } diff --git a/build/assets/font-awesome/font/FontAwesome.otf b/build/assets/font-awesome/font/FontAwesome.otf index 3bc571e8b..71cc7c8a5 100644 Binary files a/build/assets/font-awesome/font/FontAwesome.otf and b/build/assets/font-awesome/font/FontAwesome.otf differ diff --git a/build/assets/font-awesome/less/bootstrap.less b/build/assets/font-awesome/less/bootstrap.less index 5954f0e91..243f16676 100644 --- a/build/assets/font-awesome/less/bootstrap.less +++ b/build/assets/font-awesome/less/bootstrap.less @@ -32,12 +32,6 @@ background-image: none; } -/* makes the font 33% larger relative to the icon container */ -.icon-large:before { - vertical-align: -10%; - font-size: 4/3em; -} - /* keeps Bootstrap styles with and without icons the same */ .btn, .nav { [class^="icon-"], diff --git a/build/assets/font-awesome/less/core.less b/build/assets/font-awesome/less/core.less index 1dcd3e951..4e3411947 100644 --- a/build/assets/font-awesome/less/core.less +++ b/build/assets/font-awesome/less/core.less @@ -18,7 +18,13 @@ speak: none; } -/* makes sure icons active on rollover in links */ +/* makes the font 33% larger relative to the icon container */ +.icon-large:before { + vertical-align: -10%; + font-size: 4/3em; +} + + /* makes sure icons active on rollover in links */ a { [class^="icon-"], [class*=" icon-"] { @@ -60,9 +66,9 @@ ul.icons-ul { } } -.icon-muted { - color: @iconMuted; -} +.icon-muted { color: @iconMuted; } +.icon-light { color: @iconLight; } +.icon-dark { color: @iconDark; } // Icon Borders // ------------------------- diff --git a/build/assets/font-awesome/less/extras.less b/build/assets/font-awesome/less/extras.less index 1d9c3b87a..ff4344691 100644 --- a/build/assets/font-awesome/less/extras.less +++ b/build/assets/font-awesome/less/extras.less @@ -1,6 +1,10 @@ /* EXTRAS * -------------------------- */ +/* Stacked and layered icon */ +.icon-stack(); + +/* Animated rotating icon */ .icon-spin { display: inline-block; -moz-animation: spin 2s infinite linear; diff --git a/build/assets/font-awesome/less/icons.less b/build/assets/font-awesome/less/icons.less index fc790c420..871a12e94 100644 --- a/build/assets/font-awesome/less/icons.less +++ b/build/assets/font-awesome/less/icons.less @@ -1,5 +1,5 @@ -/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen - readers do not read off random characters that represent icons */ +/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen + readers do not read off random characters that represent icons */ .icon-glass:before { content: "\f000"; } .icon-music:before { content: "\f001"; } .icon-search:before { content: "\f002"; } diff --git a/build/assets/font-awesome/less/mixins.less b/build/assets/font-awesome/less/mixins.less index d5e3e917d..df4c41fbb 100644 --- a/build/assets/font-awesome/less/mixins.less +++ b/build/assets/font-awesome/less/mixins.less @@ -6,3 +6,29 @@ -moz-border-radius: @radius; border-radius: @radius; } + +.icon-stack(@width: 2em, @height: 2em, @top-font-size: 1em, @base-font-size: 2em) { + .icon-stack { + position: relative; + display: inline-block; + text-align: center; + width: @width; + height: @height; + line-height: @width; + vertical-align: -35%; + [class^="icon-"], + [class*=" icon-"] { + position: absolute; + width: inherit; + height: inherit; + font-size: @top-font-size; + line-height: inherit; + } + .icon-stack-base { + width: inherit; + height: inherit; + font-size: @base-font-size; + line-height: inherit; + } + } +} \ No newline at end of file diff --git a/build/assets/font-awesome/less/path.less b/build/assets/font-awesome/less/path.less index 9c390101e..933120674 100644 --- a/build/assets/font-awesome/less/path.less +++ b/build/assets/font-awesome/less/path.less @@ -3,15 +3,14 @@ @font-face { font-family: 'FontAwesome'; - src: url('@{FontAwesomePath}/fontawesome-webfont.eot?v=3.0.1'); - // src: url('@{FontAwesomePath}/fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'), - // url('@{FontAwesomePath}/fontawesome-webfont.woff?v=3.0.1') format('woff'), - // url('@{FontAwesomePath}/fontawesome-webfont.ttf?v=3.0.1') format('truetype'); - // url('@{FontAwesomePath}/fontawesome-webfont.svg#fontawesomeregular?v=3.0.1') format('svg'); + src: url('@{FontAwesomePath}/fontawesome-webfont.eot?v=@{FontAwesomeVersion}'); + // src: url('@{FontAwesomePath}/fontawesome-webfont.eot?#iefix&v=@{FontAwesomeVersion}') format('embedded-opentype'), + // url('@{FontAwesomePath}/fontawesome-webfont.woff?v=@{FontAwesomeVersion}') format('woff'), + // url('@{FontAwesomePath}/fontawesome-webfont.ttf?v=@{FontAwesomeVersion}') format('truetype'); + // url('@{FontAwesomePath}/fontawesome-webfont.svg#fontawesomeregular?v=@{FontAwesomeVersion}') format('svg'); src: url('@{FontAwesomePath}/FontAwesome.otf') format('opentype'); font-weight: normal; font-style: normal; } - diff --git a/build/assets/font-awesome/less/variables.less b/build/assets/font-awesome/less/variables.less index 17954528c..0f42d6a37 100644 --- a/build/assets/font-awesome/less/variables.less +++ b/build/assets/font-awesome/less/variables.less @@ -1,6 +1,9 @@ // Variables // -------------------------- -@FontAwesomePath: "../font"; -@borderColor: #eee; -@iconMuted: #eee; +@FontAwesomePath: "../font"; +@FontAwesomeVersion: "3.1.0"; +@borderColor: #eee; +@iconMuted: #eee; +@iconLight: #fff; +@iconDark: #333; \ No newline at end of file diff --git a/build/assets/js/index/index.js b/build/assets/js/site.js similarity index 100% rename from build/assets/js/index/index.js rename to build/assets/js/site.js diff --git a/build/test.html b/build/test.html index 43a512fe5..9048b8aff 100644 --- a/build/test.html +++ b/build/test.html @@ -581,4 +581,12 @@ title: Font Awesome Visual Test Cases +

Stacked icons

+
+ {% include tests/stacked-icons.html %} +
+
+ {% include tests/stacked-icons.html %} +
+