Skip to content
GitLab
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
7e72eb50
Commit
7e72eb50
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
new tab focus style and mixin
parent
997fc33a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
docs/assets/css/bootstrap.css
+19
-5
docs/assets/css/bootstrap.css
docs/less.html
+5
-0
docs/less.html
docs/templates/pages/less.mustache
+5
-0
docs/templates/pages/less.mustache
less/buttons.less
+1
-1
less/buttons.less
less/forms.less
+2
-3
less/forms.less
less/mixins.less
+17
-3
less/mixins.less
less/reset.less
+1
-1
less/reset.less
with
50 additions
and
13 deletions
+50
-13
docs/assets/css/bootstrap.css
+
19
-
5
View file @
7e72eb50
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Fri Jan 27 1
6
:3
9:5
7 PST 2012
* Date: Fri Jan 27 1
8
:3
3:0
7 PST 2012
*/
*/
article
,
article
,
aside
,
aside
,
...
@@ -35,6 +35,11 @@ html {
...
@@ -35,6 +35,11 @@ html {
}
}
a
:focus
{
a
:focus
{
outline
:
thin
dotted
;
outline
:
thin
dotted
;
outline
:
5px
auto
-webkit-focus-ring-color
;
outline-offset
:
-2px
;
-moz-outline
:
5px
auto
-moz-mac-focusring
;
-moz-outline-radius
:
6px
;
-moz-outline-offset
:
0
;
}
}
a
:hover
,
a
:active
{
a
:hover
,
a
:active
{
outline
:
0
;
outline
:
0
;
...
@@ -611,8 +616,7 @@ input:focus, textarea:focus {
...
@@ -611,8 +616,7 @@ input:focus, textarea:focus {
-webkit-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
),
0
0
8px
rgba
(
82
,
168
,
236
,
0.6
);
-webkit-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
),
0
0
8px
rgba
(
82
,
168
,
236
,
0.6
);
-moz-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
),
0
0
8px
rgba
(
82
,
168
,
236
,
0.6
);
-moz-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
),
0
0
8px
rgba
(
82
,
168
,
236
,
0.6
);
box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
),
0
0
8px
rgba
(
82
,
168
,
236
,
0.6
);
box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
),
0
0
8px
rgba
(
82
,
168
,
236
,
0.6
);
outline
:
0
;
outline
:
thin
dotted
\
9
;
outline
:
1px
dotted
#666
\
9
;
/* IE6-8 */
/* IE6-8 */
}
}
...
@@ -620,7 +624,12 @@ input[type=file]:focus, input[type=checkbox]:focus, select:focus {
...
@@ -620,7 +624,12 @@ input[type=file]:focus, input[type=checkbox]:focus, select:focus {
-webkit-box-shadow
:
none
;
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;
box-shadow
:
none
;
outline
:
1px
dotted
#666
;
outline
:
thin
dotted
;
outline
:
5px
auto
-webkit-focus-ring-color
;
outline-offset
:
-2px
;
-moz-outline
:
5px
auto
-moz-mac-focusring
;
-moz-outline-radius
:
6px
;
-moz-outline-offset
:
0
;
}
}
.input-mini
{
.input-mini
{
width
:
60px
;
width
:
60px
;
...
@@ -2612,7 +2621,12 @@ table .span12 {
...
@@ -2612,7 +2621,12 @@ table .span12 {
transition
:
background-position
0.1s
linear
;
transition
:
background-position
0.1s
linear
;
}
}
.btn
:focus
{
.btn
:focus
{
outline
:
1px
dotted
#666
;
outline
:
thin
dotted
;
outline
:
5px
auto
-webkit-focus-ring-color
;
outline-offset
:
-2px
;
-moz-outline
:
5px
auto
-moz-mac-focusring
;
-moz-outline-radius
:
6px
;
-moz-outline-offset
:
0
;
}
}
.btn.active
,
.btn
:active
{
.btn.active
,
.btn
:active
{
background-image
:
none
;
background-image
:
none
;
...
...
This diff is collapsed.
Click to expand it.
docs/less.html
+
5
-
0
View file @
7e72eb50
...
@@ -455,6 +455,11 @@
...
@@ -455,6 +455,11 @@
<td><em
class=
"muted"
>
none
</em></td>
<td><em
class=
"muted"
>
none
</em></td>
<td>
Add to any parent to clear floats within
</td>
<td>
Add to any parent to clear floats within
</td>
</tr>
</tr>
<tr>
<td><code>
.tab-focus()
</code></td>
<td><em
class=
"muted"
>
none
</em></td>
<td>
Apply the Webkit focus style and round Firefox outline
</td>
</tr>
<tr>
<tr>
<td><code>
.center-block()
</code></td>
<td><code>
.center-block()
</code></td>
<td><em
class=
"muted"
>
none
</em></td>
<td><em
class=
"muted"
>
none
</em></td>
...
...
This diff is collapsed.
Click to expand it.
docs/templates/pages/less.mustache
+
5
-
0
View file @
7e72eb50
...
@@ -390,6 +390,11 @@
...
@@ -390,6 +390,11 @@
<td><em
class=
"muted"
>
none
</em></td>
<td><em
class=
"muted"
>
none
</em></td>
<td>
{{
_i
}}
Add to any parent to clear floats within
{{/
i
}}
</td>
<td>
{{
_i
}}
Add to any parent to clear floats within
{{/
i
}}
</td>
</tr>
</tr>
<tr>
<td><code>
.tab-focus()
</code></td>
<td><em
class=
"muted"
>
none
</em></td>
<td>
{{
_i
}}
Apply the Webkit focus style and round Firefox outline
{{/
i
}}
</td>
</tr>
<tr>
<tr>
<td><code>
.center-block()
</code></td>
<td><code>
.center-block()
</code></td>
<td><em
class=
"muted"
>
none
</em></td>
<td><em
class=
"muted"
>
none
</em></td>
...
...
This diff is collapsed.
Click to expand it.
less/buttons.less
+
1
-
1
View file @
7e72eb50
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
// Focus state for keyboard and accessibility
// Focus state for keyboard and accessibility
&:focus {
&:focus {
outline: 1px dotted #666
;
.tab-focus()
;
}
}
// Active and Disabled states
// Active and Disabled states
...
...
This diff is collapsed.
Click to expand it.
less/forms.less
+
2
-
3
View file @
7e72eb50
...
@@ -191,14 +191,13 @@ textarea:focus {
...
@@ -191,14 +191,13 @@ textarea:focus {
border-color: rgba(82,168,236,.8);
border-color: rgba(82,168,236,.8);
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
.box-shadow(@shadow);
.box-shadow(@shadow);
outline: 0;
outline: thin dotted \9; /* IE6-8 */
outline: 1px dotted #666 \9; /* IE6-8 */
}
}
input[type=file]:focus,
input[type=file]:focus,
input[type=checkbox]:focus,
input[type=checkbox]:focus,
select:focus {
select:focus {
.box-shadow(none); // override for file inputs
.box-shadow(none); // override for file inputs
outline: 1px dotted #666; // Selet elements don't get box-shadow styles, so instead we do outline
.tab-focus();
}
}
...
...
This diff is collapsed.
Click to expand it.
less/mixins.less
+
17
-
3
View file @
7e72eb50
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
// --------------------------------------------------
// --------------------------------------------------
// Clearfix
// Clearfix
// --------
-----------------
// --------
// For clearing floats like a boss h5bp.com/q
// For clearing floats like a boss h5bp.com/q
.clearfix() {
.clearfix() {
*zoom: 1;
*zoom: 1;
...
@@ -21,8 +21,22 @@
...
@@ -21,8 +21,22 @@
}
}
}
}
// Webkit-style focus
// ------------------
.tab-focus() {
// Default
outline: thin dotted;
// Webkit
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
// Firefox
-moz-outline: 5px auto -moz-mac-focusring;
-moz-outline-radius: 6px;
-moz-outline-offset: 0;
}
// Center-align a block level element
// Center-align a block level element
// -------------------------
// -------------------------
---------
.center-block() {
.center-block() {
display: block;
display: block;
margin-left: auto;
margin-left: auto;
...
@@ -30,7 +44,7 @@
...
@@ -30,7 +44,7 @@
}
}
// IE7 inline-block
// IE7 inline-block
// ----------------
---------
// ----------------
.ie7-inline-block() {
.ie7-inline-block() {
*display: inline; /* IE7 inline-block hack */
*display: inline; /* IE7 inline-block hack */
*zoom: 1;
*zoom: 1;
...
...
This diff is collapsed.
Click to expand it.
less/reset.less
+
1
-
1
View file @
7e72eb50
...
@@ -46,7 +46,7 @@ html {
...
@@ -46,7 +46,7 @@ html {
}
}
// Focus states
// Focus states
a:focus {
a:focus {
outline: thin dotted
;
.tab-focus()
;
}
}
// Hover & Active
// Hover & Active
a:hover,
a:hover,
...
...
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