sass-twitter-bootstrap 0.1.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/{sass-twitter-bootstrap.rb → sass/twitter/bootstrap.rb} +1 -1
- data/lib/sass/twitter/bootstrap/rails.rb +1 -5
- data/lib/sass/twitter/bootstrap/rails/engine.rb +12 -0
- data/lib/sass/twitter/bootstrap/version.rb +1 -1
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap-alert.js +32 -28
- data/vendor/assets/javascripts/twitter/bootstrap-button.js +33 -29
- data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +21 -33
- data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +26 -47
- data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +10 -18
- data/vendor/assets/javascripts/twitter/bootstrap-modal.js +17 -25
- data/vendor/assets/javascripts/twitter/bootstrap-popover.js +10 -13
- data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +18 -44
- data/vendor/assets/javascripts/twitter/bootstrap-tab.js +7 -12
- data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +35 -40
- data/vendor/assets/javascripts/twitter/bootstrap-transition.js +20 -30
- data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +15 -29
- data/vendor/assets/stylesheets/tests/buttons.html +139 -0
- data/vendor/assets/stylesheets/tests/css-tests.css +99 -1
- data/vendor/assets/stylesheets/tests/css-tests.html +519 -37
- data/vendor/assets/stylesheets/tests/forms-responsive.html +71 -0
- data/vendor/assets/stylesheets/tests/navbar-fixed-top.html +104 -0
- data/vendor/assets/stylesheets/tests/navbar-static-top.html +107 -0
- data/vendor/assets/stylesheets/tests/navbar.html +38 -39
- data/vendor/assets/stylesheets/twitter/_accordion.scss +0 -5
- data/vendor/assets/stylesheets/twitter/_alerts.scss +15 -3
- data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +0 -2
- data/vendor/assets/stylesheets/twitter/_button-groups.scss +32 -76
- data/vendor/assets/stylesheets/twitter/_buttons.scss +25 -33
- data/vendor/assets/stylesheets/twitter/_close.scss +1 -12
- data/vendor/assets/stylesheets/twitter/_code.scss +8 -8
- data/vendor/assets/stylesheets/twitter/_component-animations.scss +7 -9
- data/vendor/assets/stylesheets/twitter/_dropdowns.scss +45 -58
- data/vendor/assets/stylesheets/twitter/_forms.scss +146 -206
- data/vendor/assets/stylesheets/twitter/_grid.scss +5 -2
- data/vendor/assets/stylesheets/twitter/_hero-unit.scss +1 -3
- data/vendor/assets/stylesheets/twitter/_labels.scss +32 -0
- data/vendor/assets/stylesheets/twitter/_layouts.scss +2 -2
- data/vendor/assets/stylesheets/twitter/_mixins.scss +208 -273
- data/vendor/assets/stylesheets/twitter/_modals.scss +8 -14
- data/vendor/assets/stylesheets/twitter/_navbar.scss +73 -132
- data/vendor/assets/stylesheets/twitter/_navs.scss +43 -53
- data/vendor/assets/stylesheets/twitter/_pager.scss +0 -6
- data/vendor/assets/stylesheets/twitter/_pagination.scss +0 -1
- data/vendor/assets/stylesheets/twitter/_progress-bars.scss +6 -28
- data/vendor/assets/stylesheets/twitter/_reset.scss +4 -9
- data/vendor/assets/stylesheets/twitter/_scaffolding.scss +8 -4
- data/vendor/assets/stylesheets/twitter/_sprites.scss +7 -40
- data/vendor/assets/stylesheets/twitter/_tables.scss +33 -38
- data/vendor/assets/stylesheets/twitter/_thumbnails.scss +2 -14
- data/vendor/assets/stylesheets/twitter/_tooltip.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_type.scss +14 -28
- data/vendor/assets/stylesheets/twitter/_variables.scss +19 -116
- data/vendor/assets/stylesheets/twitter/_wells.scss +0 -10
- data/vendor/assets/stylesheets/twitter/bootstrap.scss +7 -3
- data/vendor/assets/stylesheets/twitter/responsive.scss +301 -15
- metadata +25 -190
- data/.gitignore +0 -4
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -14
- data/LICENSE +0 -176
- data/Makefile +0 -94
- data/README.md +0 -217
- data/Rakefile +0 -52
- data/bootstrap-2.0.4.css +0 -4661
- data/bootstrap-2.0.4.min.css +0 -9
- data/bootstrap-responsive-2.0.4.css +0 -932
- data/bootstrap-responsive-2.0.4.min.css +0 -9
- data/docs/assets/css/bootstrap-responsive.css +0 -932
- data/docs/assets/css/bootstrap.css +0 -4661
- data/docs/assets/css/docs.css +0 -846
- data/docs/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
- data/docs/assets/ico/favicon.ico +0 -0
- data/docs/assets/img/bird.png +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
- data/docs/assets/img/browsers.png +0 -0
- data/docs/assets/img/example-sites/fleetio.png +0 -0
- data/docs/assets/img/example-sites/jshint.png +0 -0
- data/docs/assets/img/example-sites/kippt.png +0 -0
- data/docs/assets/img/example-sites/soundready.png +0 -0
- data/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
- data/docs/assets/img/github-16px.png +0 -0
- data/docs/assets/img/glyphicons-halflings-white.png +0 -0
- data/docs/assets/img/glyphicons-halflings.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
- data/docs/assets/img/grid-18px-masked.png +0 -0
- data/docs/assets/img/icon-css3.png +0 -0
- data/docs/assets/img/icon-github.png +0 -0
- data/docs/assets/img/icon-html5.png +0 -0
- data/docs/assets/img/icon-twitter.png +0 -0
- data/docs/assets/img/less-logo-large.png +0 -0
- data/docs/assets/img/less-small.png +0 -0
- data/docs/assets/img/responsive-illustrations.png +0 -0
- data/docs/assets/js/README.md +0 -106
- data/docs/assets/js/application.js +0 -184
- data/docs/assets/js/bootstrap-alert.js +0 -90
- data/docs/assets/js/bootstrap-button.js +0 -96
- data/docs/assets/js/bootstrap-carousel.js +0 -169
- data/docs/assets/js/bootstrap-collapse.js +0 -157
- data/docs/assets/js/bootstrap-dropdown.js +0 -100
- data/docs/assets/js/bootstrap-modal.js +0 -218
- data/docs/assets/js/bootstrap-popover.js +0 -98
- data/docs/assets/js/bootstrap-scrollspy.js +0 -151
- data/docs/assets/js/bootstrap-tab.js +0 -135
- data/docs/assets/js/bootstrap-tooltip.js +0 -275
- data/docs/assets/js/bootstrap-transition.js +0 -61
- data/docs/assets/js/bootstrap-typeahead.js +0 -285
- data/docs/assets/js/bootstrap.js +0 -1825
- data/docs/assets/js/bootstrap.min.js +0 -6
- data/docs/assets/js/google-code-prettify/prettify.css +0 -30
- data/docs/assets/js/google-code-prettify/prettify.js +0 -28
- data/docs/assets/js/jquery.js +0 -9252
- data/docs/base-css.html +0 -1710
- data/docs/build/index.js +0 -44
- data/docs/build/node_modules/.bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/.git_ignore +0 -1
- data/docs/build/node_modules/hogan.js/.gitmodules +0 -3
- data/docs/build/node_modules/hogan.js/LICENSE +0 -177
- data/docs/build/node_modules/hogan.js/Makefile +0 -62
- data/docs/build/node_modules/hogan.js/README.md +0 -93
- data/docs/build/node_modules/hogan.js/bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/lib/compiler.js +0 -348
- data/docs/build/node_modules/hogan.js/lib/hogan.js +0 -20
- data/docs/build/node_modules/hogan.js/lib/template.js +0 -233
- data/docs/build/node_modules/hogan.js/package.json +0 -20
- data/docs/build/node_modules/hogan.js/test/html/list.html +0 -8
- data/docs/build/node_modules/hogan.js/test/index.html +0 -13
- data/docs/build/node_modules/hogan.js/test/index.js +0 -848
- data/docs/build/node_modules/hogan.js/test/mustache.js +0 -90
- data/docs/build/node_modules/hogan.js/test/spec.js +0 -77
- data/docs/build/node_modules/hogan.js/test/spec/Changes +0 -31
- data/docs/build/node_modules/hogan.js/test/spec/README.md +0 -65
- data/docs/build/node_modules/hogan.js/test/spec/Rakefile +0 -27
- data/docs/build/node_modules/hogan.js/test/spec/TESTING.md +0 -46
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +0 -103
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +0 -158
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +0 -230
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +0 -193
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +0 -109
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +0 -256
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +0 -149
- data/docs/build/node_modules/hogan.js/test/templates/list.mustache +0 -8
- data/docs/build/node_modules/hogan.js/tools/release.js +0 -74
- data/docs/build/node_modules/hogan.js/tools/web_templates.js +0 -32
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +0 -545
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +0 -572
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +0 -619
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +0 -233
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
- data/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
- data/docs/build/node_modules/hogan.js/web/index.html.mustache +0 -139
- data/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +0 -206
- data/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +0 -236
- data/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/js.mustache +0 -17
- data/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +0 -64
- data/docs/build/package.json +0 -6
- data/docs/components.html +0 -1931
- data/docs/download.html +0 -454
- data/docs/examples.html +0 -147
- data/docs/examples/fluid.html +0 -162
- data/docs/examples/hero.html +0 -109
- data/docs/examples/starter-template.html +0 -79
- data/docs/index.html +0 -259
- data/docs/javascript.html +0 -1520
- data/docs/less.html +0 -1060
- data/docs/scaffolding.html +0 -671
- data/docs/templates/layout.mustache +0 -146
- data/docs/templates/pages/base-css.mustache +0 -1594
- data/docs/templates/pages/components.mustache +0 -1815
- data/docs/templates/pages/download.mustache +0 -338
- data/docs/templates/pages/examples.mustache +0 -31
- data/docs/templates/pages/index.mustache +0 -144
- data/docs/templates/pages/javascript.mustache +0 -1405
- data/docs/templates/pages/less.mustache +0 -944
- data/docs/templates/pages/scaffolding.mustache +0 -555
- data/docs/templates/pages/upgrading.mustache +0 -194
- data/docs/upgrading.html +0 -310
- data/js/tests/index.html +0 -54
- data/js/tests/phantom.js +0 -63
- data/js/tests/server.js +0 -14
- data/js/tests/unit/bootstrap-alert.js +0 -56
- data/js/tests/unit/bootstrap-button.js +0 -77
- data/js/tests/unit/bootstrap-carousel.js +0 -28
- data/js/tests/unit/bootstrap-collapse.js +0 -54
- data/js/tests/unit/bootstrap-dropdown.js +0 -87
- data/js/tests/unit/bootstrap-modal.js +0 -114
- data/js/tests/unit/bootstrap-phantom.js +0 -21
- data/js/tests/unit/bootstrap-popover.js +0 -93
- data/js/tests/unit/bootstrap-scrollspy.js +0 -31
- data/js/tests/unit/bootstrap-tab.js +0 -61
- data/js/tests/unit/bootstrap-tooltip.js +0 -155
- data/js/tests/unit/bootstrap-transition.js +0 -13
- data/js/tests/unit/bootstrap-typeahead.js +0 -148
- data/js/tests/vendor/jquery.js +0 -9252
- data/js/tests/vendor/qunit.css +0 -232
- data/js/tests/vendor/qunit.js +0 -1510
- data/package.json +0 -25
- data/sass-twitter-bootstrap.gemspec +0 -19
- data/vendor/assets/javascripts/README.md +0 -112
- data/vendor/assets/javascripts/twitter/bootstrap.js +0 -12
- data/vendor/assets/stylesheets/twitter/_labels-badges.scss +0 -52
- data/vendor/assets/stylesheets/twitter/_responsive-1200px-min.scss +0 -26
- data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +0 -149
- data/vendor/assets/stylesheets/twitter/_responsive-768px-979px.scss +0 -17
- data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +0 -153
- data/vendor/assets/stylesheets/twitter/_responsive-utilities.scss +0 -41
@@ -1,4 +1,4 @@
|
|
1
|
-
// Forms
|
1
|
+
// Forms.scss
|
2
2
|
// Base styles for various input types, form layouts, and states
|
3
3
|
// -------------------------------------------------------------
|
4
4
|
|
@@ -27,7 +27,7 @@ legend {
|
|
27
27
|
line-height: $baseLineHeight * 2;
|
28
28
|
color: $grayDark;
|
29
29
|
border: 0;
|
30
|
-
border-bottom: 1px solid #
|
30
|
+
border-bottom: 1px solid #eee;
|
31
31
|
|
32
32
|
// Small
|
33
33
|
small {
|
@@ -42,113 +42,83 @@ input,
|
|
42
42
|
button,
|
43
43
|
select,
|
44
44
|
textarea {
|
45
|
-
@include font-shorthand(
|
45
|
+
@include font-shorthand(); // Set size, weight, line-height here
|
46
46
|
}
|
47
47
|
input,
|
48
48
|
button,
|
49
49
|
select,
|
50
50
|
textarea {
|
51
|
-
font-family
|
51
|
+
@include font-family-sans-serif(); // And only set font-family here for those that need it (note the missing label element)
|
52
52
|
}
|
53
53
|
|
54
54
|
// Identify controls by their labels
|
55
55
|
label {
|
56
56
|
display: block;
|
57
57
|
margin-bottom: 5px;
|
58
|
+
color: $grayDark;
|
58
59
|
}
|
59
60
|
|
60
|
-
//
|
61
|
-
|
62
|
-
|
63
|
-
// Shared size and type resets
|
64
|
-
select,
|
61
|
+
// Inputs, Textareas, Selects
|
62
|
+
input,
|
65
63
|
textarea,
|
66
|
-
|
67
|
-
input[type="password"],
|
68
|
-
input[type="datetime"],
|
69
|
-
input[type="datetime-local"],
|
70
|
-
input[type="date"],
|
71
|
-
input[type="month"],
|
72
|
-
input[type="time"],
|
73
|
-
input[type="week"],
|
74
|
-
input[type="number"],
|
75
|
-
input[type="email"],
|
76
|
-
input[type="url"],
|
77
|
-
input[type="search"],
|
78
|
-
input[type="tel"],
|
79
|
-
input[type="color"],
|
64
|
+
select,
|
80
65
|
.uneditable-input {
|
81
66
|
display: inline-block;
|
67
|
+
width: 210px;
|
82
68
|
height: $baseLineHeight;
|
83
69
|
padding: 4px;
|
84
70
|
margin-bottom: 9px;
|
85
71
|
font-size: $baseFontSize;
|
86
72
|
line-height: $baseLineHeight;
|
87
73
|
color: $gray;
|
74
|
+
border: 1px solid #ccc;
|
75
|
+
@include border-radius(3px);
|
88
76
|
}
|
89
|
-
|
90
|
-
|
91
|
-
// Declare width for legacy (can't be on input[type=*] selectors or it's too specific)
|
92
|
-
input,
|
93
|
-
textarea {
|
94
|
-
width: 210px;
|
95
|
-
}
|
96
|
-
// Reset height since textareas have rows
|
97
|
-
textarea {
|
77
|
+
.uneditable-textarea {
|
78
|
+
width: auto;
|
98
79
|
height: auto;
|
99
80
|
}
|
100
|
-
// Everything else
|
101
|
-
textarea,
|
102
|
-
input[type="text"],
|
103
|
-
input[type="password"],
|
104
|
-
input[type="datetime"],
|
105
|
-
input[type="datetime-local"],
|
106
|
-
input[type="date"],
|
107
|
-
input[type="month"],
|
108
|
-
input[type="time"],
|
109
|
-
input[type="week"],
|
110
|
-
input[type="number"],
|
111
|
-
input[type="email"],
|
112
|
-
input[type="url"],
|
113
|
-
input[type="search"],
|
114
|
-
input[type="tel"],
|
115
|
-
input[type="color"],
|
116
|
-
.uneditable-input {
|
117
|
-
background-color: $inputBackground;
|
118
|
-
border: 1px solid $inputBorder;
|
119
|
-
@include border-radius($inputBorderRadius);
|
120
|
-
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
|
121
|
-
@include transition(#{border linear .2s, box-shadow linear .2s});
|
122
81
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
@include box-shadow(#{inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)});
|
129
|
-
}
|
82
|
+
// Inputs within a label
|
83
|
+
label input,
|
84
|
+
label textarea,
|
85
|
+
label select {
|
86
|
+
display: block;
|
130
87
|
}
|
131
88
|
|
132
|
-
//
|
133
|
-
input[type="
|
134
|
-
input[type="checkbox"]
|
89
|
+
// Mini reset for unique input types
|
90
|
+
input[type="image"],
|
91
|
+
input[type="checkbox"],
|
92
|
+
input[type="radio"] {
|
93
|
+
width: auto;
|
94
|
+
height: auto;
|
95
|
+
padding: 0;
|
135
96
|
margin: 3px 0;
|
136
97
|
*margin-top: 0; /* IE7 */
|
137
98
|
line-height: normal;
|
138
99
|
cursor: pointer;
|
100
|
+
@include border-radius(0);
|
101
|
+
border: 0 \9; /* IE9 and down */
|
102
|
+
}
|
103
|
+
input[type="image"] {
|
104
|
+
border: 0;
|
139
105
|
}
|
140
106
|
|
141
|
-
// Reset
|
142
|
-
input[type="
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
107
|
+
// Reset the file input to browser defaults
|
108
|
+
input[type="file"] {
|
109
|
+
width: auto;
|
110
|
+
padding: initial;
|
111
|
+
line-height: initial;
|
112
|
+
border: initial;
|
113
|
+
background-color: $white;
|
114
|
+
background-color: initial;
|
115
|
+
@include box-shadow(none);
|
148
116
|
}
|
149
117
|
|
150
|
-
//
|
151
|
-
|
118
|
+
// Help out input buttons
|
119
|
+
input[type="button"],
|
120
|
+
input[type="reset"],
|
121
|
+
input[type="submit"] {
|
152
122
|
width: auto;
|
153
123
|
height: auto;
|
154
124
|
}
|
@@ -161,10 +131,15 @@ input[type="file"] {
|
|
161
131
|
line-height: 28px;
|
162
132
|
}
|
163
133
|
|
164
|
-
//
|
134
|
+
// Reset line-height for IE
|
135
|
+
input[type="file"] {
|
136
|
+
line-height: 18px \9;
|
137
|
+
}
|
138
|
+
|
139
|
+
// Chrome on Linux and Mobile Safari need background-color
|
165
140
|
select {
|
166
141
|
width: 220px; // default input width + 10px of padding that doesn't get applied
|
167
|
-
|
142
|
+
background-color: $white;
|
168
143
|
}
|
169
144
|
|
170
145
|
// Make multiple select elements height not fixed
|
@@ -173,12 +148,19 @@ select[size] {
|
|
173
148
|
height: auto;
|
174
149
|
}
|
175
150
|
|
176
|
-
//
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
151
|
+
// Remove shadow from image inputs
|
152
|
+
input[type="image"] {
|
153
|
+
@include box-shadow(none);
|
154
|
+
}
|
155
|
+
|
156
|
+
// Make textarea height behave
|
157
|
+
textarea {
|
158
|
+
height: auto;
|
159
|
+
}
|
160
|
+
|
161
|
+
// Hidden inputs
|
162
|
+
input[type="hidden"] {
|
163
|
+
display: none;
|
182
164
|
}
|
183
165
|
|
184
166
|
|
@@ -189,7 +171,6 @@ input[type="checkbox"]:focus {
|
|
189
171
|
// Indent the labels to position radios/checkboxes as hanging
|
190
172
|
.radio,
|
191
173
|
.checkbox {
|
192
|
-
min-height: 18px; // clear the floating input if there is no label text
|
193
174
|
padding-left: 18px;
|
194
175
|
}
|
195
176
|
.radio input[type="radio"],
|
@@ -220,6 +201,33 @@ input[type="checkbox"]:focus {
|
|
220
201
|
|
221
202
|
|
222
203
|
|
204
|
+
// FOCUS STATE
|
205
|
+
// -----------
|
206
|
+
|
207
|
+
input,
|
208
|
+
textarea {
|
209
|
+
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
|
210
|
+
$transition: border linear .2s, box-shadow linear .2s;
|
211
|
+
@include transition($transition);
|
212
|
+
}
|
213
|
+
input:focus,
|
214
|
+
textarea:focus {
|
215
|
+
border-color: rgba(82,168,236,.8);
|
216
|
+
$shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
217
|
+
@include box-shadow($shadow);
|
218
|
+
outline: 0;
|
219
|
+
outline: thin dotted \9; /* IE6-9 */
|
220
|
+
}
|
221
|
+
input[type="file"]:focus,
|
222
|
+
input[type="radio"]:focus,
|
223
|
+
input[type="checkbox"]:focus,
|
224
|
+
select:focus {
|
225
|
+
@include box-shadow(none); // override for file inputs
|
226
|
+
@include tab-focus();
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
|
223
231
|
// INPUT SIZES
|
224
232
|
// -----------
|
225
233
|
|
@@ -235,31 +243,18 @@ input[type="checkbox"]:focus {
|
|
235
243
|
input[class*="span"],
|
236
244
|
select[class*="span"],
|
237
245
|
textarea[class*="span"],
|
238
|
-
.uneditable-input
|
239
|
-
// Redeclare since the fluid row class is more specific
|
240
|
-
.row-fluid input[class*="span"],
|
241
|
-
.row-fluid select[class*="span"],
|
242
|
-
.row-fluid textarea[class*="span"],
|
243
|
-
.row-fluid .uneditable-input[class*="span"] {
|
246
|
+
.uneditable-input {
|
244
247
|
float: none;
|
245
248
|
margin-left: 0;
|
246
249
|
}
|
247
|
-
// Ensure input-prepend/append never wraps
|
248
|
-
.input-append input[class*="span"],
|
249
|
-
.input-append .uneditable-input[class*="span"],
|
250
|
-
.input-prepend input[class*="span"],
|
251
|
-
.input-prepend .uneditable-input[class*="span"],
|
252
|
-
.row-fluid .input-prepend [class*="span"],
|
253
|
-
.row-fluid .input-append [class*="span"] {
|
254
|
-
display: inline-block;
|
255
|
-
}
|
256
250
|
|
257
251
|
|
258
252
|
|
259
253
|
// GRID SIZING FOR INPUTS
|
260
254
|
// ----------------------
|
261
255
|
|
262
|
-
@include
|
256
|
+
@include inputGridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth);
|
257
|
+
|
263
258
|
|
264
259
|
|
265
260
|
|
@@ -273,16 +268,9 @@ textarea[disabled],
|
|
273
268
|
input[readonly],
|
274
269
|
select[readonly],
|
275
270
|
textarea[readonly] {
|
276
|
-
|
277
|
-
background-color: $inputDisabledBackground;
|
271
|
+
background-color: #f5f5f5;
|
278
272
|
border-color: #ddd;
|
279
|
-
|
280
|
-
// Explicitly reset the colors here
|
281
|
-
input[type="radio"][disabled],
|
282
|
-
input[type="checkbox"][disabled],
|
283
|
-
input[type="radio"][readonly],
|
284
|
-
input[type="checkbox"][readonly] {
|
285
|
-
background-color: transparent;
|
273
|
+
cursor: not-allowed;
|
286
274
|
}
|
287
275
|
|
288
276
|
|
@@ -313,7 +301,7 @@ select:focus:required:invalid {
|
|
313
301
|
border-color: #ee5f5b;
|
314
302
|
&:focus {
|
315
303
|
border-color: darken(#ee5f5b, 10%);
|
316
|
-
@include box-shadow(0 0 6px lighten(#ee5f5b, 20%));
|
304
|
+
@include box-shadow(0 0 6px lighten(#ee5f5b, 20%));
|
317
305
|
}
|
318
306
|
}
|
319
307
|
|
@@ -326,42 +314,38 @@ select:focus:required:invalid {
|
|
326
314
|
padding: ($baseLineHeight - 1) 20px $baseLineHeight;
|
327
315
|
margin-top: $baseLineHeight;
|
328
316
|
margin-bottom: $baseLineHeight;
|
329
|
-
background-color:
|
330
|
-
border-top: 1px solid #
|
331
|
-
@include clearfix(); // Adding clearfix to allow for .pull-right button containers
|
317
|
+
background-color: #f5f5f5;
|
318
|
+
border-top: 1px solid #ddd;
|
332
319
|
}
|
333
320
|
|
334
321
|
// For text that needs to appear as an input but should not be an input
|
335
322
|
.uneditable-input {
|
336
|
-
|
337
|
-
|
338
|
-
cursor: not-allowed;
|
339
|
-
background-color: $inputBackground;
|
323
|
+
display: block;
|
324
|
+
background-color: $white;
|
340
325
|
border-color: #eee;
|
341
326
|
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
|
327
|
+
cursor: not-allowed;
|
342
328
|
}
|
343
329
|
|
344
330
|
// Placeholder text gets special styles; can't be bundled together though for some reason
|
345
|
-
@include placeholder();
|
331
|
+
@include placeholder($grayLight);
|
346
332
|
|
347
333
|
|
348
334
|
|
349
335
|
// HELP TEXT
|
350
336
|
// ---------
|
351
337
|
|
352
|
-
.help-block,
|
353
|
-
.help-inline {
|
354
|
-
color: $gray; // lighten the text some for contrast
|
355
|
-
}
|
356
|
-
|
357
338
|
.help-block {
|
358
339
|
display: block; // account for any element using help-block
|
359
|
-
margin-
|
340
|
+
margin-top: 5px;
|
341
|
+
margin-bottom: 0;
|
342
|
+
color: $grayLight;
|
360
343
|
}
|
361
344
|
|
362
345
|
.help-inline {
|
363
346
|
display: inline-block;
|
364
347
|
@include ie7-inline-block();
|
348
|
+
margin-bottom: 9px;
|
365
349
|
vertical-align: middle;
|
366
350
|
padding-left: 5px;
|
367
351
|
}
|
@@ -375,16 +359,12 @@ select:focus:required:invalid {
|
|
375
359
|
.input-prepend,
|
376
360
|
.input-append {
|
377
361
|
margin-bottom: 5px;
|
362
|
+
@include clearfix(); // Clear the float to prevent wrapping
|
378
363
|
input,
|
379
|
-
select,
|
380
364
|
.uneditable-input {
|
381
|
-
|
382
|
-
margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
|
383
|
-
*margin-left: 0;
|
384
|
-
vertical-align: middle;
|
385
|
-
@include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
|
386
|
-
// Make input on top when focused so blue border and shadow always show
|
365
|
+
@include border-radius(0 3px 3px 0);
|
387
366
|
&:focus {
|
367
|
+
position: relative;
|
388
368
|
z-index: 2;
|
389
369
|
}
|
390
370
|
}
|
@@ -392,23 +372,21 @@ select:focus:required:invalid {
|
|
392
372
|
border-left-color: #ccc;
|
393
373
|
}
|
394
374
|
.add-on {
|
395
|
-
|
375
|
+
float: left;
|
376
|
+
display: block;
|
396
377
|
width: auto;
|
397
|
-
height: $baseLineHeight;
|
398
378
|
min-width: 16px;
|
379
|
+
height: $baseLineHeight;
|
380
|
+
margin-right: -1px;
|
399
381
|
padding: 4px 5px;
|
400
382
|
font-weight: normal;
|
401
383
|
line-height: $baseLineHeight;
|
384
|
+
color: $grayLight;
|
402
385
|
text-align: center;
|
403
386
|
text-shadow: 0 1px 0 $white;
|
404
|
-
|
405
|
-
background-color: $grayLighter;
|
387
|
+
background-color: #f5f5f5;
|
406
388
|
border: 1px solid #ccc;
|
407
|
-
|
408
|
-
.add-on,
|
409
|
-
.btn {
|
410
|
-
margin-left: -1px;
|
411
|
-
@include border-radius(0);
|
389
|
+
@include border-radius(3px 0 0 3px);
|
412
390
|
}
|
413
391
|
.active {
|
414
392
|
background-color: lighten($green, 30);
|
@@ -416,46 +394,33 @@ select:focus:required:invalid {
|
|
416
394
|
}
|
417
395
|
}
|
418
396
|
.input-prepend {
|
419
|
-
.add-on
|
420
|
-
|
421
|
-
margin-right: -1px;
|
422
|
-
}
|
423
|
-
.add-on:first-child,
|
424
|
-
.btn:first-child {
|
425
|
-
@include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
|
397
|
+
.add-on {
|
398
|
+
*margin-top: 1px; /* IE6-7 */
|
426
399
|
}
|
427
400
|
}
|
428
401
|
.input-append {
|
429
402
|
input,
|
430
|
-
select,
|
431
403
|
.uneditable-input {
|
432
|
-
|
404
|
+
float: left;
|
405
|
+
@include border-radius(3px 0 0 3px);
|
433
406
|
}
|
434
407
|
.uneditable-input {
|
435
|
-
border-right-color: #ccc;
|
436
408
|
border-left-color: #eee;
|
409
|
+
border-right-color: #ccc;
|
437
410
|
}
|
438
|
-
.add-on
|
439
|
-
|
440
|
-
@include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
|
441
|
-
}
|
442
|
-
}
|
443
|
-
// Remove all border-radius for inputs with both prepend and append
|
444
|
-
.input-prepend.input-append {
|
445
|
-
input,
|
446
|
-
select,
|
447
|
-
.uneditable-input {
|
448
|
-
@include border-radius(0);
|
449
|
-
}
|
450
|
-
.add-on:first-child,
|
451
|
-
.btn:first-child {
|
452
|
-
margin-right: -1px;
|
453
|
-
@include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
|
454
|
-
}
|
455
|
-
.add-on:last-child,
|
456
|
-
.btn:last-child {
|
411
|
+
.add-on {
|
412
|
+
margin-right: 0;
|
457
413
|
margin-left: -1px;
|
458
|
-
@include border-radius(0
|
414
|
+
@include border-radius(0 3px 3px 0);
|
415
|
+
}
|
416
|
+
input:first-child {
|
417
|
+
// In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input
|
418
|
+
// inherit the sum of its ancestors' margins.
|
419
|
+
*margin-left: -160px;
|
420
|
+
|
421
|
+
&+.add-on {
|
422
|
+
*margin-left: -21px;
|
423
|
+
}
|
459
424
|
}
|
460
425
|
}
|
461
426
|
|
@@ -465,10 +430,8 @@ select:focus:required:invalid {
|
|
465
430
|
// -----------
|
466
431
|
|
467
432
|
.search-query {
|
468
|
-
padding-right: 14px;
|
469
|
-
padding-right: 4px \9;
|
470
433
|
padding-left: 14px;
|
471
|
-
padding-
|
434
|
+
padding-right: 14px;
|
472
435
|
margin-bottom: 0; // remove the default margin on all inputs
|
473
436
|
@include border-radius(14px);
|
474
437
|
}
|
@@ -488,11 +451,8 @@ select:focus:required:invalid {
|
|
488
451
|
textarea,
|
489
452
|
select,
|
490
453
|
.help-inline,
|
491
|
-
.uneditable-input
|
492
|
-
.input-prepend,
|
493
|
-
.input-append {
|
454
|
+
.uneditable-input {
|
494
455
|
display: inline-block;
|
495
|
-
@include ie7-inline-block();
|
496
456
|
margin-bottom: 0;
|
497
457
|
}
|
498
458
|
// Re-hide hidden elements due to specifity
|
@@ -501,35 +461,28 @@ select:focus:required:invalid {
|
|
501
461
|
}
|
502
462
|
}
|
503
463
|
.form-search label,
|
504
|
-
.form-inline label
|
505
|
-
display: inline-block;
|
506
|
-
}
|
507
|
-
// Remove margin for input-prepend/-append
|
464
|
+
.form-inline label,
|
508
465
|
.form-search .input-append,
|
509
466
|
.form-inline .input-append,
|
510
467
|
.form-search .input-prepend,
|
511
468
|
.form-inline .input-prepend {
|
512
|
-
|
469
|
+
display: inline-block;
|
513
470
|
}
|
514
|
-
//
|
471
|
+
// Make the prepend and append add-on vertical-align: middle;
|
472
|
+
.form-search .input-append .add-on,
|
473
|
+
.form-inline .input-prepend .add-on,
|
474
|
+
.form-search .input-append .add-on,
|
475
|
+
.form-inline .input-prepend .add-on {
|
476
|
+
vertical-align: middle;
|
477
|
+
}
|
478
|
+
// Inline checkbox/radio labels
|
515
479
|
.form-search .radio,
|
516
|
-
.form-search .checkbox,
|
517
480
|
.form-inline .radio,
|
481
|
+
.form-search .checkbox,
|
518
482
|
.form-inline .checkbox {
|
519
|
-
padding-left: 0;
|
520
483
|
margin-bottom: 0;
|
521
484
|
vertical-align: middle;
|
522
485
|
}
|
523
|
-
// Remove float and margin, set to inline-block
|
524
|
-
.form-search .radio input[type="radio"],
|
525
|
-
.form-search .checkbox input[type="checkbox"],
|
526
|
-
.form-inline .radio input[type="radio"],
|
527
|
-
.form-inline .checkbox input[type="checkbox"] {
|
528
|
-
float: left;
|
529
|
-
margin-right: 3px;
|
530
|
-
margin-left: 0;
|
531
|
-
}
|
532
|
-
|
533
486
|
|
534
487
|
// Margin to space out fieldsets
|
535
488
|
.control-group {
|
@@ -560,20 +513,7 @@ legend + .control-group {
|
|
560
513
|
}
|
561
514
|
// Move over all input controls and content
|
562
515
|
.controls {
|
563
|
-
// Super jank IE7 fix to ensure the inputs in .input-append and input-prepend
|
564
|
-
// don't inherit the margin of the parent, in this case .controls
|
565
|
-
*display: inline-block;
|
566
|
-
*padding-left: 20px;
|
567
516
|
margin-left: 160px;
|
568
|
-
*margin-left: 0;
|
569
|
-
&:first-child {
|
570
|
-
*padding-left: 160px;
|
571
|
-
}
|
572
|
-
}
|
573
|
-
// Remove bottom margin on block level help text since that's accounted for on .control-group
|
574
|
-
.help-block {
|
575
|
-
margin-top: $baseLineHeight / 2;
|
576
|
-
margin-bottom: 0;
|
577
517
|
}
|
578
518
|
// Move over buttons in .form-actions to align with .controls
|
579
519
|
.form-actions {
|