diff options
| author | Mark Otto <[email protected]> | 2014-07-08 19:20:45 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-07-08 19:20:45 -0700 |
| commit | c825629ffe096c116aed21dbba14e07f2615472d (patch) | |
| tree | 1a322b397c961df907d089c4ea8b65d3dbc70969 /less | |
| parent | 6c7a6b4691746937a127c0834f48e3f3e1443c3e (diff) | |
| download | bootstrap-c825629ffe096c116aed21dbba14e07f2615472d.tar.xz bootstrap-c825629ffe096c116aed21dbba14e07f2615472d.zip | |
Nuke all IE8 fallbacks and comments and hacks
Diffstat (limited to 'less')
| -rw-r--r-- | less/badges.less | 2 | ||||
| -rw-r--r-- | less/carousel.less | 8 | ||||
| -rw-r--r-- | less/dropdowns.less | 1 | ||||
| -rw-r--r-- | less/forms.less | 5 | ||||
| -rw-r--r-- | less/labels.less | 2 | ||||
| -rw-r--r-- | less/mixins/opacity.less | 3 | ||||
| -rw-r--r-- | less/modals.less | 1 | ||||
| -rw-r--r-- | less/navs.less | 7 | ||||
| -rw-r--r-- | less/popovers.less | 4 | ||||
| -rw-r--r-- | less/variables.less | 4 |
10 files changed, 6 insertions, 31 deletions
diff --git a/less/badges.less b/less/badges.less index e1dc57826..0c448b56f 100644 --- a/less/badges.less +++ b/less/badges.less @@ -18,7 +18,7 @@ background-color: @badge-bg; .border-radius(@badge-border-radius); - // Empty badges collapse automatically (not available in IE8) + // Empty badges collapse automatically &:empty { display: none; } diff --git a/less/carousel.less b/less/carousel.less index 612e5c289..e42378af2 100644 --- a/less/carousel.less +++ b/less/carousel.less @@ -159,15 +159,11 @@ border-radius: 10px; cursor: pointer; - // IE8-9 hack for event handling + // IE9 hack for event handling // - // Internet Explorer 8-9 does not support clicks on elements without a set + // Internet Explorer 9 does not support clicks on elements without a set // `background-color`. We cannot use `filter` since that's not viewed as a // background color by the browser. Thus, a hack is needed. - // - // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we - // set alpha transparency for the best results possible. - background-color: #000 \9; // IE8 background-color: rgba(0,0,0,0); // IE9 } .active { diff --git a/less/dropdowns.less b/less/dropdowns.less index c58e792be..a04773566 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -42,7 +42,6 @@ font-size: @font-size-base; text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer) background-color: @dropdown-bg; - border: 1px solid @dropdown-fallback-border; // IE8 fallback border: 1px solid @dropdown-border; .border-radius(@border-radius-base); box-shadow: 0 6px 12px rgba(0,0,0,.175); diff --git a/less/forms.less b/less/forms.less index dca78cf24..f0aed90fe 100644 --- a/less/forms.less +++ b/less/forms.less @@ -31,7 +31,6 @@ legend { label { display: inline-block; - max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141) margin-bottom: 5px; font-weight: bold; } @@ -52,7 +51,7 @@ input[type="search"] { input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; - margin-top: 1px \9; // IE8-9 + margin-top: 1px \9; // IE9 line-height: normal; } @@ -182,7 +181,7 @@ input[type="time"], input[type="datetime-local"], input[type="month"] { line-height: @input-height-base; - // IE8+ misaligns the text within date inputs, so we reset + // IE9+ misaligns the text within date inputs, so we reset line-height: @line-height-base ~"\0"; &.input-sm { diff --git a/less/labels.less b/less/labels.less index 66a2412b6..f34c019b1 100644 --- a/less/labels.less +++ b/less/labels.less @@ -24,7 +24,7 @@ } } - // Empty labels collapse automatically (not available in IE8) + // Empty labels collapse automatically &:empty { display: none; } diff --git a/less/mixins/opacity.less b/less/mixins/opacity.less index 33ed25ce6..1f7148099 100644 --- a/less/mixins/opacity.less +++ b/less/mixins/opacity.less @@ -2,7 +2,4 @@ .opacity(@opacity) { opacity: @opacity; - // IE8 filter - @opacity-ie: (@opacity * 100); - filter: ~"alpha(opacity=@{opacity-ie})"; } diff --git a/less/modals.less b/less/modals.less index cf3aed5b4..a8fd0dd2b 100644 --- a/less/modals.less +++ b/less/modals.less @@ -51,7 +51,6 @@ .modal-content { position: relative; background-color: @modal-content-bg; - border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc) border: 1px solid @modal-content-border-color; .border-radius(@border-radius-large); box-shadow: 0 3px 9px rgba(0,0,0,.5); diff --git a/less/navs.less b/less/navs.less index 97aaab876..7a211819d 100644 --- a/less/navs.less +++ b/less/navs.less @@ -59,13 +59,6 @@ .nav-divider { .nav-divider(); } - - // Prevent IE8 from misplacing imgs - // - // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989 - > li > a > img { - max-width: none; - } } diff --git a/less/popovers.less b/less/popovers.less index 555173c3a..b22ad96be 100644 --- a/less/popovers.less +++ b/less/popovers.less @@ -72,7 +72,6 @@ left: 50%; margin-left: -@popover-arrow-outer-width; border-bottom-width: 0; - border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-top-color: @popover-arrow-outer-color; bottom: -@popover-arrow-outer-width; &:after { @@ -88,7 +87,6 @@ left: -@popover-arrow-outer-width; margin-top: -@popover-arrow-outer-width; border-left-width: 0; - border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-right-color: @popover-arrow-outer-color; &:after { content: " "; @@ -102,7 +100,6 @@ left: 50%; margin-left: -@popover-arrow-outer-width; border-top-width: 0; - border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-bottom-color: @popover-arrow-outer-color; top: -@popover-arrow-outer-width; &:after { @@ -119,7 +116,6 @@ right: -@popover-arrow-outer-width; margin-top: -@popover-arrow-outer-width; border-right-width: 0; - border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-left-color: @popover-arrow-outer-color; &:after { content: " "; diff --git a/less/variables.less b/less/variables.less index ce57ea26a..9c02f623f 100644 --- a/less/variables.less +++ b/less/variables.less @@ -215,8 +215,6 @@ @dropdown-bg: #fff; //** Dropdown menu `border-color`. @dropdown-border: rgba(0,0,0,.15); -//** Dropdown menu `border-color` **for IE8**. -@dropdown-fallback-border: #ccc; //** Divider color for between dropdown items. @dropdown-divider-bg: #e5e5e5; @@ -551,8 +549,6 @@ @modal-content-bg: #fff; //** Modal content border color @modal-content-border-color: rgba(0,0,0,.2); -//** Modal content border color **for IE8** -@modal-content-fallback-border-color: #999; //** Modal backdrop background color @modal-backdrop-bg: #000; |
