diff --git a/README.md b/README.md index dd9bd461..6e03f36b 100755 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ Kraken is free to use under the [MIT License](http://gomakethings.com/mit/). Kraken uses [semantic versioning](http://semver.org/). +* v6.0.0 - March 6, 2015 + * Removed icon font support. * v5.6.1 - March 6, 2015 * Fixed false positive from Opera Mini in SVG detection. * v5.6.0 - January 31, 2014 diff --git a/dist/css/main.css b/dist/css/main.css index ca0d6af6..f2fb92b8 100755 --- a/dist/css/main.css +++ b/dist/css/main.css @@ -1,5 +1,5 @@ /** - * Kraken v5.6.1 + * Kraken v6.0.0 * A lightweight front-end boilerplate, by Chris Ferdinandi. * http://github.com/cferdinandi/kraken * diff --git a/dist/css/main.min.css b/dist/css/main.min.css index a8f2905c..d46a38b1 100755 --- a/dist/css/main.min.css +++ b/dist/css/main.min.css @@ -1,2 +1,2 @@ -/** Kraken v5.6.1, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ +/** Kraken v6.0.0, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ @-ms-viewport{width:device-width;zoom:1}@-o-viewport{width:device-width;zoom:1}@viewport{width:device-width;zoom:1}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,button,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}html{overflow-y:scroll;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}img,video{max-width:100%;height:auto}embed,iframe,object{max-width:100%}template{display:none;visibility:hidden}img{-ms-interpolation-mode:bicubic}a:focus,button:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto .3125em;outline-offset:-.15625em}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted;cursor:help}.container{max-width:80em;width:88%;margin-left:auto;margin-right:auto}.row{margin-left:-1.4%;margin-right:-1.4%}.grid-dynamic,.grid-fourth,.grid-full,.grid-half,.grid-third,.grid-three-fourths,.grid-two-thirds{float:left;width:100%;padding-left:1.4%;padding-right:1.4%}.grid-flip{float:right}@media (min-width:20em){.row-start-xsmall .grid-fourth{width:25%}.row-start-xsmall .grid-third{width:33.33333%}.row-start-xsmall .grid-half{width:50%}.row-start-xsmall .grid-two-thirds{width:66.66667%}.row-start-xsmall .grid-three-fourths{width:75%}.row-start-xsmall .grid-full{width:100%}}@media (min-width:30em){.row-start-small .grid-fourth{width:25%}.row-start-small .grid-third{width:33.33333%}.row-start-small .grid-half{width:50%}.row-start-small .grid-two-thirds{width:66.66667%}.row-start-small .grid-three-fourths{width:75%}.row-start-small .grid-full{width:100%}}@media (min-width:40em){.grid-fourth{width:25%}.grid-third{width:33.33333%}.grid-half{width:50%}.grid-two-thirds{width:66.66667%}.grid-three-fourths{width:75%}.grid-full{width:100%}.offset-fourth{margin-left:25%}.offset-third{margin-left:33.33333%}.offset-half{margin-left:50%}.offset-two-thirds{margin-left:66.66667%}.offset-three-fourths{margin-left:75%}.offset-full{margin-left:100%}}@media (min-width:20em){.grid-dynamic{width:50%}}@media (min-width:30em){.grid-dynamic{width:33.33333%}}@media (min-width:40em){.grid-dynamic{width:25%}}body{font-family:"Helvetica Neue",Arial,sans-serif;font-size:100%;line-height:1.5;color:#272727;background:#fff}@media (min-width:40em){body{line-height:1.5625}}@media (min-width:80em){body{font-size:125%}}p{margin-bottom:1.5625em}a{color:#08c;text-decoration:none;word-wrap:break-word}a:focus,a:hover{color:#005580;text-decoration:underline}a img{border:none;background:0 0}a:hover img{border:none;background:0 0;opacity:.8}dl,ol,ul{margin-bottom:1.5625em;margin-left:2em}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dl{margin-left:0}dt{font-weight:700}.list-unstyled{margin-left:0;list-style:none}.list-inline{list-style:none;margin-left:-.5em;margin-right:-.5em;padding:0}.list-inline>li{display:inline;margin-left:.5em;margin-right:.5em}h1,h2,h3,h4,h5,h6{line-height:1.2;font-weight:400;margin-bottom:1em;padding-top:1em;word-wrap:break-word}.h1,h1{font-size:1.5em;padding-top:.5em}@media (min-width:40em){.h1,h1{font-size:1.75em}}.h2,h2{font-size:1.3125em}.h3,h3{font-size:1.1875em}.h4,.h5,.h6,h4,h5,h6{font-size:1em}.h4,h4{text-transform:uppercase}hr{margin:2em auto;border:0;border-top:.0725em solid #e5e5e5;border-bottom:0 solid #fff}strong{font-weight:700}em{font-style:italic}sub,sup{position:relative;font-size:85%;font-weight:700;line-height:0;vertical-align:baseline;margin-left:.25em}sup{top:-.5em}sub{bottom:-.25em}::-moz-selection{color:#fff;background:#08c}::selection{color:#fff;background:#08c}blockquote{border-left:.25em solid #e5e5e5;margin-bottom:1.5625em;padding-left:1.5625em;padding-right:1.5625em}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}code,pre{font-family:Menlo,Monaco,"Courier New",monospace;font-size:.875em;border-radius:.0725em}code{color:#d14;background-color:#f7f7f7;padding:.25em}pre{display:block;margin-bottom:1.5625em;line-height:1.5;background-color:#f4f4f4;padding:.8125em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;white-space:pre-wrap;word-break:break-all}pre code{font-size:1em;padding:0;color:inherit;background-color:transparent;border:0}.btn{display:inline-block;font-size:.9375em;padding:.5em .6875em;line-height:1.2;font-weight:400;background-color:#08c;border:.0725em solid #08c;border-radius:.0725em;margin-right:.3125em;margin-bottom:.3125em}.btn,.btn.active,.btn:active,.btn:focus,.btn:hover,.btn:visited,a .btn:active,a .btn:focus,a .btn:hover,a .btn:visited{color:#fff}.btn.active,.btn:active,.btn:focus,.btn:hover,a .btn:active,a .btn:focus,a .btn:hover{background-color:#005580;border-color:#005580;text-decoration:none}.btn-secondary{background-color:gray;border-color:gray}.btn-secondary.active,.btn-secondary:active,.btn-secondary:focus,.btn-secondary:hover,a .btn-secondary:active,a .btn-secondary:focus,a .btn-secondary:hover{background-color:#5a5a5a;border-color:#5a5a5a}.btn.active,.btn:active{-webkit-box-shadow:inset 0 .15625em .25em rgba(0,0,0,.15),0 .0725em .15625em rgba(0,0,0,.05);box-shadow:inset 0 .15625em .25em rgba(0,0,0,.15),0 .0725em .15625em rgba(0,0,0,.05);outline:0}.btn.disabled,.btn[disabled]{pointer-events:none;cursor:not-allowed;opacity:.5;filter:alpha(opacity=50);-webkit-box-shadow:none;box-shadow:none}.btn-large{padding:.6875em .9375em;font-size:1em;line-height:normal}.btn-block,input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{display:block;width:100%;margin-right:0;padding-right:0;padding-left:0}.btn,button{cursor:pointer;text-align:center;vertical-align:middle;background-image:none;-webkit-appearance:none}.btn:last-child,input.btn{margin-right:0}fieldset,form{margin-bottom:1.5625em}label,legend{display:block;font-weight:400;padding:0;margin-bottom:.3125em}input,select,textarea{display:block;width:100%;font:inherit;line-height:1.5;color:#555;margin-bottom:1.1875em;padding:.3125em;border:.0725em solid #b8b8b8;border-radius:.0725em}@media (min-width:40em){input,select,textarea{line-height:1.5625}}form .button,form button{margin-bottom:1.1875em}textarea{height:12em}input[type=checkbox],input[type=image],input[type=radio]{display:inline-block;width:auto;height:auto;padding:0;margin-bottom:.3125em;cursor:pointer}input:focus,textarea:focus{border-color:rgba(82,168,236,.8);-webkit-box-shadow:inset 0 .0725em .0725em rgba(0,0,0,.075),0 0 .5em rgba(82,168,236,.6);box-shadow:inset 0 .0725em .0725em rgba(0,0,0,.075),0 0 .5em rgba(82,168,236,.6);outline:0}input[type=checkbox]:focus,input[type=file]:focus,select:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto .3125em;outline-offset:-.125em}.input-inline{display:inline-block;width:auto;vertical-align:middle}.input-condensed{padding:.0725em .3125em;font-size:.9375em}.icon{display:inline-block;fill:currentColor;height:0;width:0}.svg .icon{height:1em;width:1em}.text-small{font-size:.9375em}.text-large{font-size:1.1875em;line-height:1.4}@media (min-width:40em){.text-large{font-size:1.3125em}}.text-muted{color:gray}.text-center{text-align:center}.text-right{text-align:right}.text-left{text-align:left}.float-left{float:left}.float-center{float:none;margin-left:auto;margin-right:auto}.float-right{float:right}.no-margin{margin:0}.no-margin-top{margin-top:0}.no-margin-bottom{margin-bottom:0}.margin-top{margin-top:1.5625em}.margin-bottom{margin-bottom:1.5625em}.margin-bottom-small{margin-bottom:.5em}.margin-bottom-large{margin-bottom:2em}.no-padding{padding:0}.no-padding-top{padding-top:0}.no-padding-bottom{padding-bottom:0}.padding-top{padding-top:1.5625em}.padding-top-small{padding-top:.5em}.padding-top-large{padding-top:2em}.padding-bottom{padding-bottom:1.5625em}.padding-bottom-small{padding-bottom:.5em}.padding-bottom-large{padding-bottom:2em}.screen-reader,.svg .icon-fallback-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.screen-reader-focusable:active,.screen-reader-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}[hidden]{display:none;visibility:hidden}.clearfix:after,.clearfix:before,.container:after,.container:before,.row:after,.row:before{display:table;content:" "}.clearfix:after,.container:after,.row:after{clear:both}@media print{*{background:0 0!important;color:#000!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important}@page{margin:.5cm}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}a[href^="#"]:after{content:""}h1,h2,h3,p{orphans:3;widows:3}h1,h2,h3{page-break-after:avoid}blockquote,pre{border-color:#999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}} \ No newline at end of file diff --git a/dist/js/detects.js b/dist/js/detects.js index 6dbb6eb2..6ee53e36 100644 --- a/dist/js/detects.js +++ b/dist/js/detects.js @@ -1,5 +1,5 @@ /** - * Kraken v5.6.1 + * Kraken v6.0.0 * A lightweight front-end boilerplate, by Chris Ferdinandi. * http://github.com/cferdinandi/kraken * @@ -7,100 +7,6 @@ * http://gomakethings.com/mit/ */ -;(function (window, document, undefined) { - - 'use strict'; - - /** - * Test for @font-face support - * @return {Boolean} Returns true if supported - */ - var isFontFaceSupported = function () { - - var doc = document, - head = doc.head || doc.getElementsByTagName( "head" )[ 0 ] || doc.documentElement, - style = doc.createElement( "style" ), - rule = "@font-face { font-family: 'webfont'; src: 'https://'; }", - supportFontFace = false, - blacklist = (function() { - var ua = win.navigator.userAgent.toLowerCase(), - wkvers = ua.match( /applewebkit\/([0-9]+)/gi ) && parseFloat( RegExp.$1 ), - webos = ua.match( /w(eb)?osbrowser/gi ), - wppre8 = ua.indexOf( "windows phone" ) > -1 && win.navigator.userAgent.match( /IEMobile\/([0-9])+/ ) && parseFloat( RegExp.$1 ) >= 9, - oldandroid = wkvers < 533 && ua.indexOf( "Android 2.1" ) > -1; - - return webos || oldandroid || wppre8; - }()), - sheet; - - style.type = "text/css"; - head.insertBefore( style, head.firstChild ); - sheet = style.sheet || style.styleSheet; - - if ( !!sheet && !blacklist ) { - try { - sheet.insertRule( rule, 0 ); - supportFontFace = sheet.cssRules[ 0 ].cssText && ( /webfont/i ).test( sheet.cssRules[ 0 ].cssText ); - sheet.deleteRule( sheet.cssRules.length - 1 ); - } catch( e ) { } - } - - return supportFontFace; - }; - - /** - * Test for pseudo selector support - * @param {String} selector Selector to test - * @return {Boolean} Returns true if supported - */ - var selectorSupported = function (selector) { - - var support, - sheet, - doc = document, - root = doc.documentElement, - head = root.getElementsByTagName('head')[0], - - impl = doc.implementation || { - hasFeature: function() { - return false; - } - }, - - link = doc.createElement("style"); - link.type = 'text/css'; - - (head || root).insertBefore(link, (head || root).firstChild); - - sheet = link.sheet || link.styleSheet; - - if (!(sheet && selector)) return false; - - support = impl.hasFeature('CSS2', '') ? - - function(selector) { - try { - sheet.insertRule(selector + '{ }', 0); - sheet.deleteRule(sheet.cssRules.length - 1); - } catch (e) { - return false; - } - return true; - } : function(selector) { - sheet.cssText = selector + ' { }'; - return sheet.cssText.length !== 0 && !(/unknown/i).test(sheet.cssText) && sheet.cssText.indexOf(selector) === 0; - }; - - return support(selector); - - }; - - // If @font-face and pseudo selectors are supported, add '.font-face' class to element - if (isFontFaceSupported && selectorSupported(':before')) { - document.documentElement.className += (document.documentElement.className ? ' ' : '') + 'font-face'; - } - -})(window, document); ;(function (window, document, undefined) { 'use strict'; diff --git a/dist/js/detects.min.js b/dist/js/detects.min.js index 0ab44190..882ffda2 100644 --- a/dist/js/detects.min.js +++ b/dist/js/detects.min.js @@ -1,2 +1,2 @@ -/** Kraken v5.6.1, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ -!function(e,t){"use strict";var n=function(){var e,n=t,s=n.head||n.getElementsByTagName("head")[0]||n.documentElement,r=n.createElement("style"),a="@font-face { font-family: 'webfont'; src: 'https://'; }",c=!1,i=function(){var e=win.navigator.userAgent.toLowerCase(),t=e.match(/applewebkit\/([0-9]+)/gi)&&parseFloat(RegExp.$1),n=e.match(/w(eb)?osbrowser/gi),s=e.indexOf("windows phone")>-1&&win.navigator.userAgent.match(/IEMobile\/([0-9])+/)&&parseFloat(RegExp.$1)>=9,r=533>t&&e.indexOf("Android 2.1")>-1;return n||r||s}();if(r.type="text/css",s.insertBefore(r,s.firstChild),e=r.sheet||r.styleSheet,e&&!i)try{e.insertRule(a,0),c=e.cssRules[0].cssText&&/webfont/i.test(e.cssRules[0].cssText),e.deleteRule(e.cssRules.length-1)}catch(o){}return c},s=function(e){var n,s,r=t,a=r.documentElement,c=a.getElementsByTagName("head")[0],i=r.implementation||{hasFeature:function(){return!1}},o=r.createElement("style");return o.type="text/css",(c||a).insertBefore(o,(c||a).firstChild),s=o.sheet||o.styleSheet,s&&e?(n=i.hasFeature("CSS2","")?function(e){try{s.insertRule(e+"{ }",0),s.deleteRule(s.cssRules.length-1)}catch(t){return!1}return!0}:function(e){return s.cssText=e+" { }",0!==s.cssText.length&&!/unknown/i.test(s.cssText)&&0===s.cssText.indexOf(e)},n(e)):!1};n&&s(":before")&&(t.documentElement.className+=(t.documentElement.className?" ":"")+"font-face")}(window,document),function(e,t){"use strict";var n=!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,s=-1===navigator.userAgent.indexOf("Opera Mini");n&&s&&(t.documentElement.className+=(t.documentElement.className?" ":"")+"svg")}(window,document); \ No newline at end of file +/** Kraken v6.0.0, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ +!function(e,t){"use strict";var n=!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,a=-1===navigator.userAgent.indexOf("Opera Mini");n&&a&&(t.documentElement.className+=(t.documentElement.className?" ":"")+"svg")}(window,document); \ No newline at end of file diff --git a/dist/js/main.js b/dist/js/main.js index bcf9e95f..716d7a8a 100644 --- a/dist/js/main.js +++ b/dist/js/main.js @@ -1,5 +1,5 @@ /** - * Kraken v5.6.1 + * Kraken v6.0.0 * A lightweight front-end boilerplate, by Chris Ferdinandi. * http://github.com/cferdinandi/kraken * diff --git a/dist/js/main.min.js b/dist/js/main.min.js index 0a5b610b..4895a6d9 100644 --- a/dist/js/main.min.js +++ b/dist/js/main.min.js @@ -1 +1 @@ -/** Kraken v5.6.1, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ +/** Kraken v6.0.0, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ diff --git a/docs/add-ons.html b/docs/add-ons.html index 44c3bb76..a2893296 100644 --- a/docs/add-ons.html +++ b/docs/add-ons.html @@ -136,7 +136,7 @@

Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/browsers.html b/docs/browsers.html index 64cc8090..0528aa49 100644 --- a/docs/browsers.html +++ b/docs/browsers.html @@ -68,7 +68,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/built-with-kraken.html b/docs/built-with-kraken.html index 1853084c..2e661541 100644 --- a/docs/built-with-kraken.html +++ b/docs/built-with-kraken.html @@ -148,7 +148,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/buttons.html b/docs/buttons.html index 96a93772..84830532 100644 --- a/docs/buttons.html +++ b/docs/buttons.html @@ -100,7 +100,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/dist/css/main.css b/docs/dist/css/main.css index ca0d6af6..f2fb92b8 100755 --- a/docs/dist/css/main.css +++ b/docs/dist/css/main.css @@ -1,5 +1,5 @@ /** - * Kraken v5.6.1 + * Kraken v6.0.0 * A lightweight front-end boilerplate, by Chris Ferdinandi. * http://github.com/cferdinandi/kraken * diff --git a/docs/dist/css/main.min.css b/docs/dist/css/main.min.css index a8f2905c..d46a38b1 100755 --- a/docs/dist/css/main.min.css +++ b/docs/dist/css/main.min.css @@ -1,2 +1,2 @@ -/** Kraken v5.6.1, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ +/** Kraken v6.0.0, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ @-ms-viewport{width:device-width;zoom:1}@-o-viewport{width:device-width;zoom:1}@viewport{width:device-width;zoom:1}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,button,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}html{overflow-y:scroll;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}img,video{max-width:100%;height:auto}embed,iframe,object{max-width:100%}template{display:none;visibility:hidden}img{-ms-interpolation-mode:bicubic}a:focus,button:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto .3125em;outline-offset:-.15625em}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted;cursor:help}.container{max-width:80em;width:88%;margin-left:auto;margin-right:auto}.row{margin-left:-1.4%;margin-right:-1.4%}.grid-dynamic,.grid-fourth,.grid-full,.grid-half,.grid-third,.grid-three-fourths,.grid-two-thirds{float:left;width:100%;padding-left:1.4%;padding-right:1.4%}.grid-flip{float:right}@media (min-width:20em){.row-start-xsmall .grid-fourth{width:25%}.row-start-xsmall .grid-third{width:33.33333%}.row-start-xsmall .grid-half{width:50%}.row-start-xsmall .grid-two-thirds{width:66.66667%}.row-start-xsmall .grid-three-fourths{width:75%}.row-start-xsmall .grid-full{width:100%}}@media (min-width:30em){.row-start-small .grid-fourth{width:25%}.row-start-small .grid-third{width:33.33333%}.row-start-small .grid-half{width:50%}.row-start-small .grid-two-thirds{width:66.66667%}.row-start-small .grid-three-fourths{width:75%}.row-start-small .grid-full{width:100%}}@media (min-width:40em){.grid-fourth{width:25%}.grid-third{width:33.33333%}.grid-half{width:50%}.grid-two-thirds{width:66.66667%}.grid-three-fourths{width:75%}.grid-full{width:100%}.offset-fourth{margin-left:25%}.offset-third{margin-left:33.33333%}.offset-half{margin-left:50%}.offset-two-thirds{margin-left:66.66667%}.offset-three-fourths{margin-left:75%}.offset-full{margin-left:100%}}@media (min-width:20em){.grid-dynamic{width:50%}}@media (min-width:30em){.grid-dynamic{width:33.33333%}}@media (min-width:40em){.grid-dynamic{width:25%}}body{font-family:"Helvetica Neue",Arial,sans-serif;font-size:100%;line-height:1.5;color:#272727;background:#fff}@media (min-width:40em){body{line-height:1.5625}}@media (min-width:80em){body{font-size:125%}}p{margin-bottom:1.5625em}a{color:#08c;text-decoration:none;word-wrap:break-word}a:focus,a:hover{color:#005580;text-decoration:underline}a img{border:none;background:0 0}a:hover img{border:none;background:0 0;opacity:.8}dl,ol,ul{margin-bottom:1.5625em;margin-left:2em}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dl{margin-left:0}dt{font-weight:700}.list-unstyled{margin-left:0;list-style:none}.list-inline{list-style:none;margin-left:-.5em;margin-right:-.5em;padding:0}.list-inline>li{display:inline;margin-left:.5em;margin-right:.5em}h1,h2,h3,h4,h5,h6{line-height:1.2;font-weight:400;margin-bottom:1em;padding-top:1em;word-wrap:break-word}.h1,h1{font-size:1.5em;padding-top:.5em}@media (min-width:40em){.h1,h1{font-size:1.75em}}.h2,h2{font-size:1.3125em}.h3,h3{font-size:1.1875em}.h4,.h5,.h6,h4,h5,h6{font-size:1em}.h4,h4{text-transform:uppercase}hr{margin:2em auto;border:0;border-top:.0725em solid #e5e5e5;border-bottom:0 solid #fff}strong{font-weight:700}em{font-style:italic}sub,sup{position:relative;font-size:85%;font-weight:700;line-height:0;vertical-align:baseline;margin-left:.25em}sup{top:-.5em}sub{bottom:-.25em}::-moz-selection{color:#fff;background:#08c}::selection{color:#fff;background:#08c}blockquote{border-left:.25em solid #e5e5e5;margin-bottom:1.5625em;padding-left:1.5625em;padding-right:1.5625em}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}code,pre{font-family:Menlo,Monaco,"Courier New",monospace;font-size:.875em;border-radius:.0725em}code{color:#d14;background-color:#f7f7f7;padding:.25em}pre{display:block;margin-bottom:1.5625em;line-height:1.5;background-color:#f4f4f4;padding:.8125em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;white-space:pre-wrap;word-break:break-all}pre code{font-size:1em;padding:0;color:inherit;background-color:transparent;border:0}.btn{display:inline-block;font-size:.9375em;padding:.5em .6875em;line-height:1.2;font-weight:400;background-color:#08c;border:.0725em solid #08c;border-radius:.0725em;margin-right:.3125em;margin-bottom:.3125em}.btn,.btn.active,.btn:active,.btn:focus,.btn:hover,.btn:visited,a .btn:active,a .btn:focus,a .btn:hover,a .btn:visited{color:#fff}.btn.active,.btn:active,.btn:focus,.btn:hover,a .btn:active,a .btn:focus,a .btn:hover{background-color:#005580;border-color:#005580;text-decoration:none}.btn-secondary{background-color:gray;border-color:gray}.btn-secondary.active,.btn-secondary:active,.btn-secondary:focus,.btn-secondary:hover,a .btn-secondary:active,a .btn-secondary:focus,a .btn-secondary:hover{background-color:#5a5a5a;border-color:#5a5a5a}.btn.active,.btn:active{-webkit-box-shadow:inset 0 .15625em .25em rgba(0,0,0,.15),0 .0725em .15625em rgba(0,0,0,.05);box-shadow:inset 0 .15625em .25em rgba(0,0,0,.15),0 .0725em .15625em rgba(0,0,0,.05);outline:0}.btn.disabled,.btn[disabled]{pointer-events:none;cursor:not-allowed;opacity:.5;filter:alpha(opacity=50);-webkit-box-shadow:none;box-shadow:none}.btn-large{padding:.6875em .9375em;font-size:1em;line-height:normal}.btn-block,input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{display:block;width:100%;margin-right:0;padding-right:0;padding-left:0}.btn,button{cursor:pointer;text-align:center;vertical-align:middle;background-image:none;-webkit-appearance:none}.btn:last-child,input.btn{margin-right:0}fieldset,form{margin-bottom:1.5625em}label,legend{display:block;font-weight:400;padding:0;margin-bottom:.3125em}input,select,textarea{display:block;width:100%;font:inherit;line-height:1.5;color:#555;margin-bottom:1.1875em;padding:.3125em;border:.0725em solid #b8b8b8;border-radius:.0725em}@media (min-width:40em){input,select,textarea{line-height:1.5625}}form .button,form button{margin-bottom:1.1875em}textarea{height:12em}input[type=checkbox],input[type=image],input[type=radio]{display:inline-block;width:auto;height:auto;padding:0;margin-bottom:.3125em;cursor:pointer}input:focus,textarea:focus{border-color:rgba(82,168,236,.8);-webkit-box-shadow:inset 0 .0725em .0725em rgba(0,0,0,.075),0 0 .5em rgba(82,168,236,.6);box-shadow:inset 0 .0725em .0725em rgba(0,0,0,.075),0 0 .5em rgba(82,168,236,.6);outline:0}input[type=checkbox]:focus,input[type=file]:focus,select:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto .3125em;outline-offset:-.125em}.input-inline{display:inline-block;width:auto;vertical-align:middle}.input-condensed{padding:.0725em .3125em;font-size:.9375em}.icon{display:inline-block;fill:currentColor;height:0;width:0}.svg .icon{height:1em;width:1em}.text-small{font-size:.9375em}.text-large{font-size:1.1875em;line-height:1.4}@media (min-width:40em){.text-large{font-size:1.3125em}}.text-muted{color:gray}.text-center{text-align:center}.text-right{text-align:right}.text-left{text-align:left}.float-left{float:left}.float-center{float:none;margin-left:auto;margin-right:auto}.float-right{float:right}.no-margin{margin:0}.no-margin-top{margin-top:0}.no-margin-bottom{margin-bottom:0}.margin-top{margin-top:1.5625em}.margin-bottom{margin-bottom:1.5625em}.margin-bottom-small{margin-bottom:.5em}.margin-bottom-large{margin-bottom:2em}.no-padding{padding:0}.no-padding-top{padding-top:0}.no-padding-bottom{padding-bottom:0}.padding-top{padding-top:1.5625em}.padding-top-small{padding-top:.5em}.padding-top-large{padding-top:2em}.padding-bottom{padding-bottom:1.5625em}.padding-bottom-small{padding-bottom:.5em}.padding-bottom-large{padding-bottom:2em}.screen-reader,.svg .icon-fallback-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.screen-reader-focusable:active,.screen-reader-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}[hidden]{display:none;visibility:hidden}.clearfix:after,.clearfix:before,.container:after,.container:before,.row:after,.row:before{display:table;content:" "}.clearfix:after,.container:after,.row:after{clear:both}@media print{*{background:0 0!important;color:#000!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important}@page{margin:.5cm}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}a[href^="#"]:after{content:""}h1,h2,h3,p{orphans:3;widows:3}h1,h2,h3{page-break-after:avoid}blockquote,pre{border-color:#999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}} \ No newline at end of file diff --git a/docs/dist/js/detects.js b/docs/dist/js/detects.js index 6dbb6eb2..6ee53e36 100644 --- a/docs/dist/js/detects.js +++ b/docs/dist/js/detects.js @@ -1,5 +1,5 @@ /** - * Kraken v5.6.1 + * Kraken v6.0.0 * A lightweight front-end boilerplate, by Chris Ferdinandi. * http://github.com/cferdinandi/kraken * @@ -7,100 +7,6 @@ * http://gomakethings.com/mit/ */ -;(function (window, document, undefined) { - - 'use strict'; - - /** - * Test for @font-face support - * @return {Boolean} Returns true if supported - */ - var isFontFaceSupported = function () { - - var doc = document, - head = doc.head || doc.getElementsByTagName( "head" )[ 0 ] || doc.documentElement, - style = doc.createElement( "style" ), - rule = "@font-face { font-family: 'webfont'; src: 'https://'; }", - supportFontFace = false, - blacklist = (function() { - var ua = win.navigator.userAgent.toLowerCase(), - wkvers = ua.match( /applewebkit\/([0-9]+)/gi ) && parseFloat( RegExp.$1 ), - webos = ua.match( /w(eb)?osbrowser/gi ), - wppre8 = ua.indexOf( "windows phone" ) > -1 && win.navigator.userAgent.match( /IEMobile\/([0-9])+/ ) && parseFloat( RegExp.$1 ) >= 9, - oldandroid = wkvers < 533 && ua.indexOf( "Android 2.1" ) > -1; - - return webos || oldandroid || wppre8; - }()), - sheet; - - style.type = "text/css"; - head.insertBefore( style, head.firstChild ); - sheet = style.sheet || style.styleSheet; - - if ( !!sheet && !blacklist ) { - try { - sheet.insertRule( rule, 0 ); - supportFontFace = sheet.cssRules[ 0 ].cssText && ( /webfont/i ).test( sheet.cssRules[ 0 ].cssText ); - sheet.deleteRule( sheet.cssRules.length - 1 ); - } catch( e ) { } - } - - return supportFontFace; - }; - - /** - * Test for pseudo selector support - * @param {String} selector Selector to test - * @return {Boolean} Returns true if supported - */ - var selectorSupported = function (selector) { - - var support, - sheet, - doc = document, - root = doc.documentElement, - head = root.getElementsByTagName('head')[0], - - impl = doc.implementation || { - hasFeature: function() { - return false; - } - }, - - link = doc.createElement("style"); - link.type = 'text/css'; - - (head || root).insertBefore(link, (head || root).firstChild); - - sheet = link.sheet || link.styleSheet; - - if (!(sheet && selector)) return false; - - support = impl.hasFeature('CSS2', '') ? - - function(selector) { - try { - sheet.insertRule(selector + '{ }', 0); - sheet.deleteRule(sheet.cssRules.length - 1); - } catch (e) { - return false; - } - return true; - } : function(selector) { - sheet.cssText = selector + ' { }'; - return sheet.cssText.length !== 0 && !(/unknown/i).test(sheet.cssText) && sheet.cssText.indexOf(selector) === 0; - }; - - return support(selector); - - }; - - // If @font-face and pseudo selectors are supported, add '.font-face' class to element - if (isFontFaceSupported && selectorSupported(':before')) { - document.documentElement.className += (document.documentElement.className ? ' ' : '') + 'font-face'; - } - -})(window, document); ;(function (window, document, undefined) { 'use strict'; diff --git a/docs/dist/js/detects.min.js b/docs/dist/js/detects.min.js index 0ab44190..882ffda2 100644 --- a/docs/dist/js/detects.min.js +++ b/docs/dist/js/detects.min.js @@ -1,2 +1,2 @@ -/** Kraken v5.6.1, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ -!function(e,t){"use strict";var n=function(){var e,n=t,s=n.head||n.getElementsByTagName("head")[0]||n.documentElement,r=n.createElement("style"),a="@font-face { font-family: 'webfont'; src: 'https://'; }",c=!1,i=function(){var e=win.navigator.userAgent.toLowerCase(),t=e.match(/applewebkit\/([0-9]+)/gi)&&parseFloat(RegExp.$1),n=e.match(/w(eb)?osbrowser/gi),s=e.indexOf("windows phone")>-1&&win.navigator.userAgent.match(/IEMobile\/([0-9])+/)&&parseFloat(RegExp.$1)>=9,r=533>t&&e.indexOf("Android 2.1")>-1;return n||r||s}();if(r.type="text/css",s.insertBefore(r,s.firstChild),e=r.sheet||r.styleSheet,e&&!i)try{e.insertRule(a,0),c=e.cssRules[0].cssText&&/webfont/i.test(e.cssRules[0].cssText),e.deleteRule(e.cssRules.length-1)}catch(o){}return c},s=function(e){var n,s,r=t,a=r.documentElement,c=a.getElementsByTagName("head")[0],i=r.implementation||{hasFeature:function(){return!1}},o=r.createElement("style");return o.type="text/css",(c||a).insertBefore(o,(c||a).firstChild),s=o.sheet||o.styleSheet,s&&e?(n=i.hasFeature("CSS2","")?function(e){try{s.insertRule(e+"{ }",0),s.deleteRule(s.cssRules.length-1)}catch(t){return!1}return!0}:function(e){return s.cssText=e+" { }",0!==s.cssText.length&&!/unknown/i.test(s.cssText)&&0===s.cssText.indexOf(e)},n(e)):!1};n&&s(":before")&&(t.documentElement.className+=(t.documentElement.className?" ":"")+"font-face")}(window,document),function(e,t){"use strict";var n=!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,s=-1===navigator.userAgent.indexOf("Opera Mini");n&&s&&(t.documentElement.className+=(t.documentElement.className?" ":"")+"svg")}(window,document); \ No newline at end of file +/** Kraken v6.0.0, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ +!function(e,t){"use strict";var n=!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,a=-1===navigator.userAgent.indexOf("Opera Mini");n&&a&&(t.documentElement.className+=(t.documentElement.className?" ":"")+"svg")}(window,document); \ No newline at end of file diff --git a/docs/dist/js/main.js b/docs/dist/js/main.js index bcf9e95f..716d7a8a 100644 --- a/docs/dist/js/main.js +++ b/docs/dist/js/main.js @@ -1,5 +1,5 @@ /** - * Kraken v5.6.1 + * Kraken v6.0.0 * A lightweight front-end boilerplate, by Chris Ferdinandi. * http://github.com/cferdinandi/kraken * diff --git a/docs/dist/js/main.min.js b/docs/dist/js/main.min.js index 0a5b610b..4895a6d9 100644 --- a/docs/dist/js/main.min.js +++ b/docs/dist/js/main.min.js @@ -1 +1 @@ -/** Kraken v5.6.1, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ +/** Kraken v6.0.0, by Chris Ferdinandi | http://github.com/cferdinandi/kraken | Licensed under MIT: http://gomakethings.com/mit/ */ diff --git a/docs/download.html b/docs/download.html index fe802fd1..98bf0eca 100644 --- a/docs/download.html +++ b/docs/download.html @@ -72,7 +72,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/file-structure.html b/docs/file-structure.html index 044d5168..409e0fdd 100644 --- a/docs/file-structure.html +++ b/docs/file-structure.html @@ -72,7 +72,6 @@

    File Structure

    | | |—— # Your documentation files | |—— js/ | | |—— detects -| | | |—— font-face.js | | | |—— svg.js | | | |—— # Your feature detection scripts | | |—— main @@ -84,7 +83,6 @@

    File Structure

    | | | |—— _code.scss | | | |—— _forms.scss | | | |—— _grid.scss -| | | |—— _iconfonts.scss | | | |—— _overrides.scss | | | |—— _print.scss | | | |—— _reset.scss @@ -138,7 +136,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/forms.html b/docs/forms.html index 3fe86295..098d01ff 100644 --- a/docs/forms.html +++ b/docs/forms.html @@ -192,7 +192,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/generating-documentation.html b/docs/generating-documentation.html index 2d9e3428..48707b95 100644 --- a/docs/generating-documentation.html +++ b/docs/generating-documentation.html @@ -82,7 +82,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/grid.html b/docs/grid.html index 2c954b4f..f6572612 100644 --- a/docs/grid.html +++ b/docs/grid.html @@ -256,7 +256,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/html-template.html b/docs/html-template.html index 56c97a30..4a62371d 100644 --- a/docs/html-template.html +++ b/docs/html-template.html @@ -183,7 +183,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/icons.html b/docs/icons.html index 264e3c1d..e00598c6 100644 --- a/docs/icons.html +++ b/docs/icons.html @@ -34,20 +34,7 @@

    Icons

    -

    Kraken includes support for both SVG icons and icon fonts. As an emerging best practice, it's strongly recommended that you use SVG.

    -

    Note: Because of namespacing conflicts, you cannot use SVG and icon fonts together by default. If you plan on using both, change the class names for at least one of them to avoid conflicts.

    - - - -

    SVG Sprites

    - -

    Kraken's build system will generate an SVG sprite from individual SVG files. Alternatively, you can use IcoMoon to generate an SVG sprite for you.

    +

    Kraken's build system will generate SVG sprites from individual SVG files.

    Include the contents of your SVG sprite as a hidden element directly after the opening <body> tag.

    <svg xmlns="http://www.w3.org/2000/svg" hidden>
         <symbol id="icon-logo" viewBox="0 0 100 100">
    @@ -69,18 +56,7 @@ 

    SVG Sprites

    </svg> <span class="icon-fallback-text">Tweet This</span>
    -

    Icon Fonts

    - -

    IcoMoon is an incredible app for building custom icon fonts.

    -

    Add icons to your markup by applying the .icon class to an empty <span> tag, as well as the name of the icon prefixed with .icon-.

    -
    <span class="icon icon-logo"></span>
    -
    -

    While icon fonts are well supported, some browsers—most notably Opera Mini—have issues with them. Kraken comes with icon font support detection that adds a .font-face class to the <html> element if supported.

    -

    If an icon is more than decorative, always include supporting text in a <span> with the .icon-fallback-text class. This text will display when icon fonts are not supported by the browser, and is accessible screen readers.

    -
    <span class="icon icon-twitter"></span>
    -<span class="icon-fallback-text">Tweet This</span>
    -
    -

    Learn more about icon fonts in this guide for beginners.

    +

    Learn more about using SVG sprites.

    @@ -108,7 +84,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/index.html b/docs/index.html index 6f14bd0b..0396676c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -122,7 +122,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/overrides.html b/docs/overrides.html index 34c1e592..bf33feee 100644 --- a/docs/overrides.html +++ b/docs/overrides.html @@ -231,7 +231,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/support.html b/docs/support.html index e0ad5fc6..06c7e7ef 100644 --- a/docs/support.html +++ b/docs/support.html @@ -62,7 +62,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/the-kraken-approach.html b/docs/the-kraken-approach.html index bab7af2e..d7bfac36 100644 --- a/docs/the-kraken-approach.html +++ b/docs/the-kraken-approach.html @@ -90,7 +90,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/typography.html b/docs/typography.html index 23c03310..55739520 100644 --- a/docs/typography.html +++ b/docs/typography.html @@ -227,7 +227,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/whats-new.html b/docs/whats-new.html index 002c92c9..f15f98b8 100644 --- a/docs/whats-new.html +++ b/docs/whats-new.html @@ -33,7 +33,9 @@
    -

    What's new in version 5?

    +

    What's new in version 6?

    +

    Kraken 6 brings only one major change: dropped icon font support. SVG is the way forward.

    +

    More awesome features (added in version 5)

    Most of the changes from Kraken 4 to Kraken 5 were class name changes and updates to the build process that break backwards compatibility but provide a more flexible foundation for front-end web developers.

    Accessibility Improvements
    @@ -51,7 +53,7 @@

    What's new in version 5?

    -

    More awesome features (added in version 4)

    +

    Even more awesome features (added in version 4)

    SVG Support
    Kraken now features an SVG sprite generator, as well as an SVG feature test for some conditional styling.
    @@ -102,7 +104,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/working-with-css.html b/docs/working-with-css.html index e1b99f94..97b0ce31 100644 --- a/docs/working-with-css.html +++ b/docs/working-with-css.html @@ -102,7 +102,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/docs/working-with-the-source-files.html b/docs/working-with-the-source-files.html index 1073b40d..24a5d476 100644 --- a/docs/working-with-the-source-files.html +++ b/docs/working-with-the-source-files.html @@ -223,7 +223,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/package.json b/package.json index e0e59b94..36d3243a 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Kraken", - "version": "5.6.1", + "version": "6.0.0", "description": "A lightweight front-end boilerplate", "main": "./", "author": { diff --git a/src/docs/_templates/_footer.html b/src/docs/_templates/_footer.html index d0538130..f33a4e0d 100644 --- a/src/docs/_templates/_footer.html +++ b/src/docs/_templates/_footer.html @@ -25,7 +25,7 @@

    Getting StartedTypography
  • Buttons
  • Forms
  • -
  • SVG Sprites & Icon Fonts
  • +
  • SVG Sprites
  • Alignment, Spacing & Visibility
  • diff --git a/src/docs/file-structure.md b/src/docs/file-structure.md index 82edc40f..8dcf3712 100644 --- a/src/docs/file-structure.md +++ b/src/docs/file-structure.md @@ -40,7 +40,6 @@ kraken | | |—— # Your documentation files | |—— js/ | | |—— detects -| | | |—— font-face.js | | | |—— svg.js | | | |—— # Your feature detection scripts | | |—— main @@ -52,7 +51,6 @@ kraken | | | |—— _code.scss | | | |—— _forms.scss | | | |—— _grid.scss -| | | |—— _iconfonts.scss | | | |—— _overrides.scss | | | |—— _print.scss | | | |—— _reset.scss diff --git a/src/docs/icons.md b/src/docs/icons.md index 38e2978b..6ff26c63 100644 --- a/src/docs/icons.md +++ b/src/docs/icons.md @@ -1,21 +1,6 @@ # Icons -Kraken includes support for both SVG icons and icon fonts. As an [emerging best practice](http://css-tricks.com/svg-sprites-use-better-icon-fonts/), it's strongly recommended that you use SVG. - -***Note:*** *Because of namespacing conflicts, you cannot use SVG and icon fonts together by default. If you plan on using both, change the class names for at least one of them to avoid conflicts.* - - - - -

    SVG Sprites

    - -Kraken's build system will generate an SVG sprite from individual SVG files. Alternatively, you can use [IcoMoon](https://icomoon.io/) to generate an SVG sprite for you. +Kraken's build system will generate SVG sprites from individual SVG files. Include the contents of your SVG sprite as a hidden element directly after the opening `` tag. @@ -47,24 +32,4 @@ Kraken comes with SVG support detection that adds an `.svg` class to the ` Tweet This ``` - -

    Icon Fonts

    - -[IcoMoon](https://icomoon.io/) is an incredible app for building custom icon fonts. - -Add icons to your markup by applying the `.icon` class to an empty `` tag, as well as the name of the icon prefixed with `.icon-`. - -```markup - -``` - -While icon fonts are well supported, some browsers—most notably Opera Mini—have issues with them. Kraken comes with icon font support detection that adds a `.font-face` class to the `` element if supported. - -If an icon is more than decorative, always include supporting text in a `` with the `.icon-fallback-text` class. This text will display when icon fonts are not supported by the browser, and is accessible screen readers. - -```markup - -Tweet This -``` - -Learn more about icon fonts in this [guide for beginners](http://gomakethings.com/icon-fonts). \ No newline at end of file +[Learn more about using SVG sprites.](https://css-tricks.com/svg-sprites-use-better-icon-fonts/) \ No newline at end of file diff --git a/src/docs/whats-new.md b/src/docs/whats-new.md index 84cd6283..88911bf2 100644 --- a/src/docs/whats-new.md +++ b/src/docs/whats-new.md @@ -1,4 +1,9 @@ -# What's new in version 5? +# What's new in version 6? + +Kraken 6 brings only one major change: dropped icon font support. SVG is the way forward. + + +## More awesome features (added in version 5) Most of the changes from Kraken 4 to Kraken 5 were class name changes and updates to the build process that break backwards compatibility but provide a more flexible foundation for front-end web developers. @@ -18,7 +23,7 @@ Most of the changes from Kraken 4 to Kraken 5 were class name changes and update -## More awesome features (added in version 4) +## Even more awesome features (added in version 4)
    SVG Support
    diff --git a/src/js/detects/font-face.js b/src/js/detects/font-face.js deleted file mode 100644 index e23ebf50..00000000 --- a/src/js/detects/font-face.js +++ /dev/null @@ -1,94 +0,0 @@ -;(function (window, document, undefined) { - - 'use strict'; - - /** - * Test for @font-face support - * @return {Boolean} Returns true if supported - */ - var isFontFaceSupported = function () { - - var doc = document, - head = doc.head || doc.getElementsByTagName( "head" )[ 0 ] || doc.documentElement, - style = doc.createElement( "style" ), - rule = "@font-face { font-family: 'webfont'; src: 'https://'; }", - supportFontFace = false, - blacklist = (function() { - var ua = win.navigator.userAgent.toLowerCase(), - wkvers = ua.match( /applewebkit\/([0-9]+)/gi ) && parseFloat( RegExp.$1 ), - webos = ua.match( /w(eb)?osbrowser/gi ), - wppre8 = ua.indexOf( "windows phone" ) > -1 && win.navigator.userAgent.match( /IEMobile\/([0-9])+/ ) && parseFloat( RegExp.$1 ) >= 9, - oldandroid = wkvers < 533 && ua.indexOf( "Android 2.1" ) > -1; - - return webos || oldandroid || wppre8; - }()), - sheet; - - style.type = "text/css"; - head.insertBefore( style, head.firstChild ); - sheet = style.sheet || style.styleSheet; - - if ( !!sheet && !blacklist ) { - try { - sheet.insertRule( rule, 0 ); - supportFontFace = sheet.cssRules[ 0 ].cssText && ( /webfont/i ).test( sheet.cssRules[ 0 ].cssText ); - sheet.deleteRule( sheet.cssRules.length - 1 ); - } catch( e ) { } - } - - return supportFontFace; - }; - - /** - * Test for pseudo selector support - * @param {String} selector Selector to test - * @return {Boolean} Returns true if supported - */ - var selectorSupported = function (selector) { - - var support, - sheet, - doc = document, - root = doc.documentElement, - head = root.getElementsByTagName('head')[0], - - impl = doc.implementation || { - hasFeature: function() { - return false; - } - }, - - link = doc.createElement("style"); - link.type = 'text/css'; - - (head || root).insertBefore(link, (head || root).firstChild); - - sheet = link.sheet || link.styleSheet; - - if (!(sheet && selector)) return false; - - support = impl.hasFeature('CSS2', '') ? - - function(selector) { - try { - sheet.insertRule(selector + '{ }', 0); - sheet.deleteRule(sheet.cssRules.length - 1); - } catch (e) { - return false; - } - return true; - } : function(selector) { - sheet.cssText = selector + ' { }'; - return sheet.cssText.length !== 0 && !(/unknown/i).test(sheet.cssText) && sheet.cssText.indexOf(selector) === 0; - }; - - return support(selector); - - }; - - // If @font-face and pseudo selectors are supported, add '.font-face' class to element - if (isFontFaceSupported && selectorSupported(':before')) { - document.documentElement.className += (document.documentElement.className ? ' ' : '') + 'font-face'; - } - -})(window, document); \ No newline at end of file diff --git a/src/sass/components/_iconfonts.scss b/src/sass/components/_iconfonts.scss deleted file mode 100644 index 46f9ae67..00000000 --- a/src/sass/components/_iconfonts.scss +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @section Icon Fonts - * Icon font styling. - * Change font names and URLs as needed. - * @link http://gomakethings.com/icon-fonts/ - */ - -/** - * Include the icon font family - */ - -@include font-face('icomoon', '../fonts/icomoon', normal, normal); - - -/** - * Base class - */ - -.icon { - font-family: 'icomoon'; - font-style: normal; - speak: none; - font-weight: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - - -/** - * Icon content - */ - -@each $icon, $character, $color in ($icons) { - .font-face .icon-#{$icon}:before { content: $character }; -} - - -/** - * Icon colors - */ - -@each $icon, $character, $color in ($icons) { - @if $color { - .icon-#{$icon} { color: $color }; - } -} - - -/** - * Icons in links - */ - -a.icon-link-wrap:hover { - text-decoration: none; -} - -a:hover .icon-link { - color: darken( $color-primary, 15% ); -} - -a:hover .icon-link-text { - text-decoration: underline; -} - - -/** - * Override color-styled icons - */ - -.icon-inherit-color { - color: inherit; -} - - -/** - * Text that displays when @font-face is unsupported. - * Also provides assistance for screen readers. - */ - -.font-face .icon-fallback-text { - @extend .screen-reader; -} \ No newline at end of file