Skip to content

Commit

Permalink
Update Gruntfile.js to copy 'dist/' files to 'docs/dist/' with 'grunt…
Browse files Browse the repository at this point in the history
… dist' task; Fixes twbs#12030: navbar toggle focus state
  • Loading branch information
mdo committed Jan 1, 2014
1 parent 83d26de commit 50cf0b1
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ module.exports = function (grunt) {
grunt.registerTask('dist-docs', ['copy:docs']);

// Full distribution task.
grunt.registerTask('dist', ['clean', 'dist-css', 'copy:fonts', 'dist-js']);
grunt.registerTask('dist', ['clean', 'dist-css', 'copy:fonts', 'dist-docs', 'dist-js']);

// Default task.
grunt.registerTask('default', ['test', 'dist', 'build-glyphicons-data', 'build-customizer']);
Expand Down
3 changes: 3 additions & 0 deletions dist/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docs/assets/css/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,11 @@ body {
color: #fff;
background-color: #463265;
}
.bs-docs-nav .navbar-toggle {
.bs-docs-nav .navbar-header .navbar-toggle {
border-color: #563d7c;
}
.bs-docs-nav .navbar-toggle:hover {
.bs-docs-nav .navbar-header .navbar-toggle:hover,
.bs-docs-nav .navbar-header .navbar-toggle:focus {
background-color: #463265;
border-color: #463265;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/raw-files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/css/bootstrap.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions less/navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@
border: 1px solid transparent;
border-radius: @border-radius-base;

// We remove the `outline` here, but later compensate by attaching `:hover`
// styles to `:focus`.
&:focus {
outline: none;
}

// Bars
.icon-bar {
display: block;
Expand Down

0 comments on commit 50cf0b1

Please sign in to comment.