diff --git a/README.md b/README.md index 56224b3..9d0eb70 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,11 @@ $initialize-font-size: 1em; $initialize-line-height: 1.4; ``` +Microsoft [dropped support](https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support) for IE8, IE9 & IE10. If you still have to support these old dinosaur browsers, just set dinosaur mode to true. +``` +$initialize-dinosaur-mode: true; +``` + Optional values: ``` $initialize-color: #000; @@ -45,9 +50,4 @@ $initialize-block-margins: 0 0 0.75em; $initialize-heading-color: #000; $initialize-heading-font-family: sans-serif; $initialize-heading-margins: 1em 0 0.75em; -``` - -If you don't have to support old dinosaur browsers like IE8 & IE9, just set dinosaur mode to false. Less code!! -``` -$initialize-dinosaur-mode: false; ``` \ No newline at end of file diff --git a/bower.json b/bower.json index 592c96f..1921348 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "initialize-css", - "version": "0.4.0", + "version": "1.0.0", "homepage": "http://jeroenoomsnl.github.io/initialize-css/", "authors": [ "Jeroen Ooms (@jeroenooms)" diff --git a/dist/_initialize.scss b/dist/_initialize.scss index cf99483..dc81b92 100644 --- a/dist/_initialize.scss +++ b/dist/_initialize.scss @@ -17,7 +17,7 @@ $initialize-line-height: 1.4 !default; // // Options // -$initialize-dinosaur-mode: true !default; // toggle support for IE8 & IE9 +$initialize-dinosaur-mode: false !default; // toggle support for IE8, IE9 & IE10 // // Optional values @@ -119,8 +119,12 @@ template { // // Links // -a { - background-color: transparent; + +// Remove the gray background color from active links in IE 10. +@if $initialize-dinosaur-mode == true { + a { + background-color: transparent; + } } a:active, diff --git a/dist/initialize.css b/dist/initialize.css index 39de643..206efc1 100644 --- a/dist/initialize.css +++ b/dist/initialize.css @@ -34,18 +34,8 @@ body { text-shadow: none; } -article, -aside, details, -figcaption, -figure, -footer, -header, -hgroup, main, -menu, -nav, -section, summary { display: block; } @@ -54,7 +44,6 @@ audio, canvas, progress, video { - display: inline-block; vertical-align: baseline; } @@ -68,10 +57,6 @@ template { display: none; } -a { - background-color: transparent; -} - a:active, a:hover { outline: 0; @@ -95,11 +80,6 @@ h1 { margin: 0.67em 0; } -mark { - background: #ff0; - color: #000; -} - small { font-size: 80%; } diff --git a/dist/initialize.min.css b/dist/initialize.min.css index 8625901..3ea133c 100644 --- a/dist/initialize.min.css +++ b/dist/initialize.min.css @@ -1 +1 @@ -article,aside,details,figcaption,figure,footer,header,hgroup,hr,main,menu,nav,section,summary{display:block}fieldset,hr,img,legend{border:0}pre,textarea{overflow:auto}fieldset,hr,legend,td,th{padding:0}html{-moz-box-sizing:border-box;box-sizing:border-box;font-family:sans-serif;line-height:1.4;font-size:1em;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}*,:after,:before{-moz-box-sizing:inherit;box-sizing:inherit}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:inherit;box-sizing:inherit;height:1px;border-top:1px solid #ccc;margin:1em 0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-moz-box-sizing:inherit;box-sizing:inherit;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:inherit;box-sizing:inherit}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{margin:0 2px}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}audio,canvas,iframe,img,svg,video{vertical-align:middle} \ No newline at end of file +audio,canvas,progress,sub,sup,video{vertical-align:baseline}details,hr,main,summary{display:block}fieldset,hr,img,legend{border:0}pre,textarea{overflow:auto}fieldset,hr,legend,td,th{padding:0}html{-moz-box-sizing:border-box;box-sizing:border-box;font-family:sans-serif;line-height:1.4;font-size:1em;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}*,:after,:before{-moz-box-sizing:inherit;box-sizing:inherit}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:inherit;box-sizing:inherit;height:1px;border-top:1px solid #ccc;margin:1em 0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-moz-box-sizing:inherit;box-sizing:inherit;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:inherit;box-sizing:inherit}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{margin:0 2px}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}audio,canvas,iframe,img,svg,video{vertical-align:middle} \ No newline at end of file diff --git a/package.json b/package.json index 5f1b2c8..801f738 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "initialize-css", - "version": "0.4.0", + "version": "1.0.0", "homepage": "http://jeroenoomsnl.github.io/initialize-css/", "description": "Initialize.css is a complete and customizable collection of CSS best practices based on Normalize.css and HTML5 Boilerplate. Available in CSS and configurable SASS (SCSS) format.", "author": { diff --git a/src/index.html b/src/index.html index b08271b..8078ebe 100644 --- a/src/index.html +++ b/src/index.html @@ -66,6 +66,12 @@

Configure

$initialize-font-size: 1em; $initialize-line-height: 1.4; + +

Microsoft dropped support for IE8, IE9 & IE10. If you still have to support these old dinosaur browsers, just set dinosaur mode to true.

+
+$initialize-dinosaur-mode: true;
+
+

Optional values:

 $initialize-color: #000;
@@ -76,10 +82,7 @@ 

Configure

$initialize-heading-margins: 1em 0 0.75em;
-

If you don't have to support old dinosaur browsers like IE8 & IE9, just set dinosaur mode to false. Less code!!

-
-$initialize-dinosaur-mode: false;
-
+ diff --git a/src/styles/initialize.scss b/src/styles/initialize.scss index cf99483..dc81b92 100644 --- a/src/styles/initialize.scss +++ b/src/styles/initialize.scss @@ -17,7 +17,7 @@ $initialize-line-height: 1.4 !default; // // Options // -$initialize-dinosaur-mode: true !default; // toggle support for IE8 & IE9 +$initialize-dinosaur-mode: false !default; // toggle support for IE8, IE9 & IE10 // // Optional values @@ -119,8 +119,12 @@ template { // // Links // -a { - background-color: transparent; + +// Remove the gray background color from active links in IE 10. +@if $initialize-dinosaur-mode == true { + a { + background-color: transparent; + } } a:active,