Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
532569fe
Commit
532569fe
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
updated forms to rearrange focus state, reinstate uneditable-input, and a few other cleanup tidbits
parent
ecf84bda
2 merge requests
!3609
2.0.4 wip fix make docs
,
!3549
Clear tooltips delayed show timer when leave event is triggered. ALSO when hide delay is 0.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
less/forms.less
+18
-24
less/forms.less
with
18 additions
and
24 deletions
+18
-24
less/forms.less
+
18
-
24
View file @
532569fe
...
...
@@ -77,7 +77,8 @@ input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
input[type="color"],
.uneditable-input {
display: inline-block;
height: @baseLineHeight;
padding: 4px;
...
...
@@ -115,6 +116,14 @@ input[type="color"] {
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
@transition: border linear .2s, box-shadow linear .2s;
.transition(@transition);
// Focus state
&:focus {
border-color: rgba(82,168,236,.8);
outline: 0;
outline: thin dotted \9; /* IE6-9 */
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)");
}
}
// Position radios and checkboxes better
...
...
@@ -161,7 +170,13 @@ select[size] {
height: auto;
}
// Focus for select, file, radio, and checkbox
select:focus,
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
.tab-focus();
}
...
...
@@ -202,26 +217,6 @@ select[size] {
// FOCUS STATE
// -----------
input:focus,
textarea:focus {
border-color: rgba(82,168,236,.8);
outline: 0;
outline: thin dotted \9; /* IE6-9 */
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)");
}
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus,
select:focus {
.tab-focus();
.box-shadow(none); // override for file inputs
}
// INPUT SIZES
// -----------
...
...
@@ -252,8 +247,7 @@ textarea[class*="span"],
// GRID SIZING FOR INPUTS
// ----------------------
#grid > .input (@gridColumnWidth, @gridGutterWidth);
#grid > .input(@gridColumnWidth, @gridGutterWidth);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets