Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2014-07-21 22:11:45 +0400
committerGleb Mazovetskiy <glex.spb@gmail.com>2014-07-21 22:11:45 +0400
commitf5ee26fc989b39f6ad8f623083140a070482ebb7 (patch)
tree91d8c678c8bb7048f6d5f8b1b1fb39a2662fb8a0 /assets
parent43a76e57c9e3d8c53603ef0956b80e9dfcb24931 (diff)
rake convert
Diffstat (limited to 'assets')
-rw-r--r--assets/javascripts/bootstrap.js16
-rw-r--r--assets/javascripts/bootstrap/button.js16
-rw-r--r--assets/stylesheets/bootstrap/_forms.scss1
-rw-r--r--assets/stylesheets/bootstrap/_tables.scss6
-rw-r--r--assets/stylesheets/bootstrap/_theme.scss2
-rw-r--r--assets/stylesheets/bootstrap/_utilities.scss1
-rw-r--r--assets/stylesheets/bootstrap/_variables.scss6
7 files changed, 16 insertions, 32 deletions
diff --git a/assets/javascripts/bootstrap.js b/assets/javascripts/bootstrap.js
index a7870a9..f1c5020 100644
--- a/assets/javascripts/bootstrap.js
+++ b/assets/javascripts/bootstrap.js
@@ -333,15 +333,6 @@
}
- // FOCUS SHIM (FOR BUTTON GROUPS)
- // ==============================
-
- function getBtnTarget(target) {
- var $target = $(target)
- return $target.hasClass('btn') ? $target : $target.parent('.btn')
- }
-
-
// BUTTON DATA-API
// ===============
@@ -352,11 +343,8 @@
Plugin.call($btn, 'toggle')
e.preventDefault()
})
- .on('focus.bs.button.data-api', '[data-toggle^="button"]', function (e) {
- getBtnTarget(e.target).addClass('focus')
- })
- .on('blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
- getBtnTarget(e.target).removeClass('focus')
+ .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
+ $(e.target).closest('.btn').toggleClass('focus', e.type == 'focus')
})
}(jQuery);
diff --git a/assets/javascripts/bootstrap/button.js b/assets/javascripts/bootstrap/button.js
index 7e2a6e4..b3e944c 100644
--- a/assets/javascripts/bootstrap/button.js
+++ b/assets/javascripts/bootstrap/button.js
@@ -97,15 +97,6 @@
}
- // FOCUS SHIM (FOR BUTTON GROUPS)
- // ==============================
-
- function getBtnTarget(target) {
- var $target = $(target)
- return $target.hasClass('btn') ? $target : $target.parent('.btn')
- }
-
-
// BUTTON DATA-API
// ===============
@@ -116,11 +107,8 @@
Plugin.call($btn, 'toggle')
e.preventDefault()
})
- .on('focus.bs.button.data-api', '[data-toggle^="button"]', function (e) {
- getBtnTarget(e.target).addClass('focus')
- })
- .on('blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
- getBtnTarget(e.target).removeClass('focus')
+ .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
+ $(e.target).closest('.btn').toggleClass('focus', e.type == 'focus')
})
}(jQuery);
diff --git a/assets/stylesheets/bootstrap/_forms.scss b/assets/stylesheets/bootstrap/_forms.scss
index ff008a8..c94cb76 100644
--- a/assets/stylesheets/bootstrap/_forms.scss
+++ b/assets/stylesheets/bootstrap/_forms.scss
@@ -337,6 +337,7 @@ input[type="checkbox"] {
height: $input-height-base;
line-height: $input-height-base;
text-align: center;
+ pointer-events: none;
}
.input-lg + .form-control-feedback {
width: $input-height-large;
diff --git a/assets/stylesheets/bootstrap/_tables.scss b/assets/stylesheets/bootstrap/_tables.scss
index be88fc4..6d92514 100644
--- a/assets/stylesheets/bootstrap/_tables.scss
+++ b/assets/stylesheets/bootstrap/_tables.scss
@@ -6,6 +6,12 @@
table {
background-color: $table-bg;
}
+caption {
+ padding-top: $table-cell-padding;
+ padding-bottom: $table-cell-padding;
+ color: $text-muted;
+ text-align: left;
+}
th {
text-align: left;
}
diff --git a/assets/stylesheets/bootstrap/_theme.scss b/assets/stylesheets/bootstrap/_theme.scss
index 00386a2..266ad31 100644
--- a/assets/stylesheets/bootstrap/_theme.scss
+++ b/assets/stylesheets/bootstrap/_theme.scss
@@ -116,6 +116,7 @@
$shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
@include box-shadow($shadow);
+ .navbar-nav > .open > a,
.navbar-nav > .active > a {
@include gradient-vertical($start-color: darken($navbar-default-bg, 5%), $end-color: darken($navbar-default-bg, 2%));
@include box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
@@ -131,6 +132,7 @@
@include gradient-vertical($start-color: lighten($navbar-inverse-bg, 10%), $end-color: $navbar-inverse-bg);
@include reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
+ .navbar-nav > .open > a,
.navbar-nav > .active > a {
@include gradient-vertical($start-color: $navbar-inverse-bg, $end-color: lighten($navbar-inverse-bg, 2.5%));
@include box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
diff --git a/assets/stylesheets/bootstrap/_utilities.scss b/assets/stylesheets/bootstrap/_utilities.scss
index 3ad5f2e..85cb62e 100644
--- a/assets/stylesheets/bootstrap/_utilities.scss
+++ b/assets/stylesheets/bootstrap/_utilities.scss
@@ -53,5 +53,4 @@
.affix {
position: fixed;
- @include translate3d(0, 0, 0);
}
diff --git a/assets/stylesheets/bootstrap/_variables.scss b/assets/stylesheets/bootstrap/_variables.scss
index 8cdc824..7fb9ff0 100644
--- a/assets/stylesheets/bootstrap/_variables.scss
+++ b/assets/stylesheets/bootstrap/_variables.scss
@@ -1,4 +1,4 @@
-// When true, asset path helpers are used, otherwise regular url() is used
+// When true, asset path helpers are used, otherwise regular `url()`` is used.
// When there no function is defined, `fn('')` is parsed as string that equals the right hand side
// NB: in Sass 3.3 there is a native function: function-exists(twbs-font-path)
$bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")')) !default;
@@ -12,7 +12,7 @@ $bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")
//
//## Gray and brand colors for use across Bootstrap.
-$gray-base: #000 !default;
+$gray-base: #000 !default;
$gray-darker: lighten($gray-base, 13.5%) !default; // #222
$gray-dark: lighten($gray-base, 20%) !default; // #333
$gray: lighten($gray-base, 33.5%) !default; // #555
@@ -196,7 +196,7 @@ $input-border-radius: $border-radius-base !default;
$input-border-focus: #66afe9 !default;
//** Placeholder text color
-$input-color-placeholder: $gray-light !default;
+$input-color-placeholder: #999 !default;
//** Default `.form-control` height
$input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;