Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/JohnAlbin/normalize-scss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnAlbin <virtually.johnalbin@gmail.com>2016-10-18 10:18:30 +0300
committerJohnAlbin <virtually.johnalbin@gmail.com>2016-10-18 10:18:30 +0300
commit1f724e751f3250e58bf7990b88d403bf94b5ab69 (patch)
treee19c7e612b1f04ab3c1973fa83e0fcf5c4217458 /fork-versions
parent507ea1d6689ad358f781dc2f6777c1b6c11954be (diff)
Drop support for IE6-7 and Firefox 29 in ruby-sass-compass fork. #89
Diffstat (limited to 'fork-versions')
-rw-r--r--fork-versions/ruby-sass-compass/_normalize.scss76
-rw-r--r--fork-versions/ruby-sass-compass/_variables.scss13
2 files changed, 7 insertions, 82 deletions
diff --git a/fork-versions/ruby-sass-compass/_normalize.scss b/fork-versions/ruby-sass-compass/_normalize.scss
index 25beb33..bb0195c 100644
--- a/fork-versions/ruby-sass-compass/_normalize.scss
+++ b/fork-versions/ruby-sass-compass/_normalize.scss
@@ -3,7 +3,6 @@
@import "variables";
// After the default variables are set, import the required Compass partials.
// Feel free to move these lines to your own initialization partial.
-@import "compass/support";
@import "compass/css3/box-sizing";
@import "compass/typography/vertical_rhythm";
@@ -21,11 +20,11 @@
$normalize-vertical-rhythm: true !global;
}
-@if $normalize-vertical-rhythm or support-legacy-browser(ie, "7") {
+@if $normalize-vertical-rhythm {
/**
* Establish a vertical rhythm unit using $base-font-size, $base-line-height,
- * and $rhythm-unit variables. Also, correct text resizing oddly in IE 6/7 when
- * body `font-size` is set using `em` units.
+ * and $rhythm-unit variables. Also, correct old browser bug that prevented
+ * accessible resizing of text when root font-size is set with px or em.
*/
@include establish-baseline();
@@ -85,10 +84,6 @@ canvas,
progress,
video {
display: inline-block;
- @if support-legacy-browser(ie, "7") {
- *display: inline;
- *zoom: 1;
- }
}
/**
@@ -183,9 +178,6 @@ code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
- @if support-legacy-browser(ie, "6") {
- _font-family: 'courier new', monospace;
- }
font-size: 1em; /* 2 */
}
@@ -204,7 +196,7 @@ dfn {
h1 {
/* Set the font-size and line-height while keeping a proper vertical rhythm. */
- @if $normalize-vertical-rhythm or support-legacy-browser(ie, "7") {
+ @if $normalize-vertical-rhythm {
@include adjust-font-size-to( $h1-font-size );
}
@else {
@@ -216,7 +208,7 @@ h1 {
@include trailer(1, $h1-font-size);
}
-@if $normalize-vertical-rhythm or support-legacy-browser(ie, "7") {
+@if $normalize-vertical-rhythm {
h2 {
@include adjust-font-size-to( $h2-font-size );
@include leader(1, $h2-font-size);
@@ -295,10 +287,6 @@ sup {
img {
border-style: none;
- @if support-legacy-browser(ie, "7") {
- /* Improve image quality when scaled in IE 7. */
- -ms-interpolation-mode: bicubic;
- }
}
/**
@@ -312,7 +300,7 @@ svg:not(:root) {
/* Grouping content
========================================================================== */
-@if $normalize-vertical-rhythm or support-legacy-browser(ie, "7") {
+@if $normalize-vertical-rhythm {
/**
* Set 1 unit of vertical rhythm on the top and bottom margin.
*/
@@ -321,10 +309,6 @@ svg:not(:root) {
@include output-rhythm(margin, rhythm(1) $indent-amount);
}
- /**
- * Address margins set differently in IE 6/7.
- */
-
dl,
menu,
ol,
@@ -350,10 +334,6 @@ svg:not(:root) {
margin: 0 0 0 $indent-amount;
}
- /**
- * Address paddings set differently in IE 6/7.
- */
-
menu,
ol,
ul {
@@ -361,18 +341,6 @@ svg:not(:root) {
}
}
-@if support-legacy-browser(ie, "7") {
- /**
- * Correct list images handled incorrectly in IE 7.
- */
-
- nav ul,
- nav ol {
- list-style: none;
- list-style-image: none;
- }
-}
-
/**
* Add the correct margin in IE 8.
*/
@@ -392,7 +360,7 @@ hr {
overflow: visible; /* 2 */
}
-@if $normalize-vertical-rhythm or support-legacy-browser(ie, "7") {
+@if $normalize-vertical-rhythm {
/**
* Set 1 unit of vertical rhythm on the top and bottom margin.
*/
@@ -430,21 +398,9 @@ pre {
* on when it has padding (and textfield appearance).
*/
-@if support-legacy-browser(ie, "7") {
- /**
- * Correct margin displayed oddly in IE 6/7.
- */
-
- form {
- margin: 0;
- }
-}
-
/**
* 1. Change font properties to `inherit` in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
- * 3. Address `font-family` inconsistency between `textarea` and other form in IE 7
- * 4. Improve appearance and consistency with IE 6/7.
*/
button,
@@ -454,10 +410,6 @@ select,
textarea {
font: inherit; /* 1 */
margin: 0; /* 2 */
- @if support-legacy-browser(ie, "7") {
- *font-family: $base-font-family; /* 3 */
- *vertical-align: middle; /* 4 */
- }
}
/**
@@ -520,27 +472,17 @@ button,
input {
overflow: visible;
- @if support-legacy-browser(firefox, "29") {
- // Firefox sets `line-height` using `!important` in the UA stylesheet.
- line-height: normal;
- }
}
/**
* 1. Add the correct box sizing in IE <11.
* 2. Remove the padding in IE <11.
- * 3. Remove excess padding in IE 7.
- * Known issue: excess padding remains in IE 6.
*/
[type="checkbox"],
[type="radio"] {
@include box-sizing(border-box); /* 1 */
padding: 0; /* 2 */
- @if support-legacy-browser(ie, "7") {
- *height: 13px; /* 3 */
- *width: 13px; /* 3 */
- }
}
/**
@@ -609,7 +551,6 @@ fieldset {
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
- * 4. Correct alignment displayed oddly in IE 6/7.
*/
legend {
@@ -619,9 +560,6 @@ legend {
white-space: normal; /* 1 */
color: inherit; /* 2 */
padding: 0; /* 3 */
- @if support-legacy-browser(ie, "7") {
- *margin-left: -7px; /* 4 */
- }
}
/**
diff --git a/fork-versions/ruby-sass-compass/_variables.scss b/fork-versions/ruby-sass-compass/_variables.scss
index 6254b3f..cebd9e0 100644
--- a/fork-versions/ruby-sass-compass/_variables.scss
+++ b/fork-versions/ruby-sass-compass/_variables.scss
@@ -17,19 +17,6 @@
// Supported values: px, em, rem.
$rhythm-unit: 'em' !default;
- // Note: This project also makes use of variables from Compass' support
- // module. Documentation for this can be found on the wiki at:
- // http://compass-style.org/reference/compass/support/
- $critical-usage-threshold: 0.01 !default;
-
- $browser-minimum-versions: (
- 'chrome': null,
- 'firefox': null,
- 'ie': null,
- 'safari': null,
- 'opera': null
- ) !default;
-
// The default font family.
$base-font-family: sans-serif !default;