Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
f0b4f05a
Commit
f0b4f05a
authored
Sep 25, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove ie7 support from mixins
parent
ce19e63d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
35 deletions
+2
-35
less/mixins.less
less/mixins.less
+2
-35
No files found.
less/mixins.less
View file @
f0b4f05a
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
// --------
// --------
// For clearing floats like a boss h5bp.com/q
// For clearing floats like a boss h5bp.com/q
.clearfix {
.clearfix {
*zoom: 1;
&:before,
&:before,
&:after {
&:after {
display: table;
display: table;
...
@@ -42,31 +41,6 @@
...
@@ -42,31 +41,6 @@
margin-right: auto;
margin-right: auto;
}
}
// IE7 inline-block
// ----------------
.ie7-inline-block() {
*display: inline; /* IE7 inline-block hack */
*zoom: 1;
}
// IE7 likes to collapse whitespace on either side of the inline-block elements.
// Ems because we're attempting to match the width of a space character. Left
// version is for form buttons, which typically come after other elements, and
// right version is for icons, which come before. Applying both is ok, but it will
// mean that space between those elements will be .6em (~2 space characters) in IE7,
// instead of the 1 space in other browsers.
.ie7-restore-left-whitespace() {
*margin-left: .3em;
&:first-child {
*margin-left: 0;
}
}
.ie7-restore-right-whitespace() {
*margin-right: .3em;
}
// Sizing shortcuts
// Sizing shortcuts
// -------------------------
// -------------------------
.size(@height, @width) {
.size(@height, @width) {
...
@@ -477,14 +451,8 @@
...
@@ -477,14 +451,8 @@
// -------------------------
// -------------------------
// Dividers (basically an hr) within dropdowns and nav lists
// Dividers (basically an hr) within dropdowns and nav lists
.nav-divider(@top: #e5e5e5, @bottom: @white) {
.nav-divider(@top: #e5e5e5, @bottom: @white) {
// IE7 needs a set width since we gave a height. Restricting just
// to IE7 to keep the 1px left/right space in other browsers.
// It is unclear where IE is getting the extra space that we need
// to negative-margin away, but so it goes.
*width: 100%;
height: 1px;
height: 1px;
margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px
margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px
*margin: -5px 0 5px;
overflow: hidden;
overflow: hidden;
background-color: @top;
background-color: @top;
border-bottom: 1px solid @bottom;
border-bottom: 1px solid @bottom;
...
@@ -493,9 +461,8 @@
...
@@ -493,9 +461,8 @@
// Button backgrounds
// Button backgrounds
// ------------------
// ------------------
.buttonBackground(@startColor, @endColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
.buttonBackground(@startColor, @endColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
// gradientBar will set the background to a pleasing blend of these, to support IE<=
*
9
.gradientBar(@startColor, @endColor, @textColor, @textShadow);
.gradientBar(@startColor, @endColor, @textColor, @textShadow);
*background-color: @endColor; /* Darken IE7 buttons by default so they stand out more given they won't have borders */
.reset-filter();
.reset-filter();
// in these cases the gradient won't cover the background, so we override
// in these cases the gradient won't cover the background, so we override
...
@@ -505,7 +472,7 @@
...
@@ -505,7 +472,7 @@
*background-color: darken(@endColor, 5%);
*background-color: darken(@endColor, 5%);
}
}
// IE
7 +
8 can't handle box-shadow to show active, so we darken a bit ourselves
// IE8 can't handle box-shadow to show active, so we darken a bit ourselves
&:active,
&:active,
&.active {
&.active {
background-color: darken(@endColor, 10%) e("\9");
background-color: darken(@endColor, 10%) e("\9");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment