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
50a945e0
Commit
50a945e0
authored
Jul 09, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.0-wip' of
https://github.com/nextgenthemes/bootstrap
into nextgenthemes-2.1.0-wip
Conflicts: less/buttons.less
parents
25d0b341
7d1c8c2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
34 deletions
+36
-34
less/buttons.less
less/buttons.less
+36
-34
No files found.
less/buttons.less
View file @
50a945e0
...
...
@@ -26,11 +26,10 @@
border-bottom-color: darken(@btnBorder, 10%);
.border-radius(4px);
.ie7-restore-left-whitespace(); // Give IE7 some love
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.15), 0 1px 2px rgba(0,0,0,.05)");
}
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
// Hover state
.btn
:hover {
// Hover state
&
:hover {
color: @grayDark;
text-decoration: none;
background-color: darken(@white, 10%);
...
...
@@ -40,34 +39,37 @@
// transition is only when going to hover, otherwise the background
// behind the gradient (there for IE<=9 fallback) gets mismatched
.transition(background-position .1s linear);
}
}
// Focus state for keyboard and accessibility
.btn
:focus {
// Focus state for keyboard and accessibility
&
:focus {
.tab-focus();
}
}
// Active state
.btn
.active,
.btn
:active {
// Active state
&
.active,
&
:active {
background-color: darken(@white, 10%);
background-color: darken(@white, 15%) e("\9");
background-image: none;
outline: 0;
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.1
), 0 1px 2px rgba(0,0,0,.05)");
}
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15
), 0 1px 2px rgba(0,0,0,.05)");
}
// Disabled state
.btn
.disabled,
.btn
[disabled] {
// Disabled state
&
.disabled,
&
[disabled] {
cursor: default;
background-color: darken(@white, 10%);
background-image: none;
.opacity(65);
.box-shadow(none);
}
}
// Button Sizes
// --------------------------------------------------
...
...
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