bootstrap-jasny 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +27 -0
- data/lib/bootstrap-jasny.rb +51 -0
- data/lib/bootstrap-jasny/compass_functions.rb +24 -0
- data/lib/bootstrap-jasny/engine.rb +7 -0
- data/lib/bootstrap-jasny/less_functions.rb +14 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_fill.eot +0 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_fill.otf +0 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_fill.svg +475 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_fill.ttf +0 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_fill.woff +0 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_stroke.eot +0 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_stroke.otf +0 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_stroke.svg +492 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_stroke.ttf +0 -0
- data/vendor/assets/fonts/bootstrap/iconic/iconic_stroke.woff +0 -0
- data/vendor/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-affix.js +117 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +99 -0
- data/vendor/assets/javascripts/bootstrap-button.js +105 -0
- data/vendor/assets/javascripts/bootstrap-carousel.js +207 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +167 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +165 -0
- data/vendor/assets/javascripts/bootstrap-fileupload.js +169 -0
- data/vendor/assets/javascripts/bootstrap-inputmask.js +355 -0
- data/vendor/assets/javascripts/bootstrap-modal.js +247 -0
- data/vendor/assets/javascripts/bootstrap-popover.js +114 -0
- data/vendor/assets/javascripts/bootstrap-rowlink.js +71 -0
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +162 -0
- data/vendor/assets/javascripts/bootstrap-tab.js +144 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +361 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +60 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +524 -0
- data/vendor/assets/javascripts/bootstrap.js +21 -0
- data/vendor/assets/stylesheets/bootstrap-responsive.less +1 -0
- data/vendor/assets/stylesheets/bootstrap.less +2 -0
- data/vendor/assets/stylesheets/bootstrap/accordion.less +34 -0
- data/vendor/assets/stylesheets/bootstrap/action-areas.less +14 -0
- data/vendor/assets/stylesheets/bootstrap/action-links.less +57 -0
- data/vendor/assets/stylesheets/bootstrap/alerts.less +79 -0
- data/vendor/assets/stylesheets/bootstrap/bootstrap.less +63 -0
- data/vendor/assets/stylesheets/bootstrap/breadcrumbs.less +24 -0
- data/vendor/assets/stylesheets/bootstrap/button-groups.less +229 -0
- data/vendor/assets/stylesheets/bootstrap/buttons.less +228 -0
- data/vendor/assets/stylesheets/bootstrap/carousel.less +158 -0
- data/vendor/assets/stylesheets/bootstrap/close.less +32 -0
- data/vendor/assets/stylesheets/bootstrap/code.less +61 -0
- data/vendor/assets/stylesheets/bootstrap/component-animations.less +22 -0
- data/vendor/assets/stylesheets/bootstrap/dropdowns.less +237 -0
- data/vendor/assets/stylesheets/bootstrap/fileupload.less +105 -0
- data/vendor/assets/stylesheets/bootstrap/forms-uneditable.less +159 -0
- data/vendor/assets/stylesheets/bootstrap/forms.less +690 -0
- data/vendor/assets/stylesheets/bootstrap/grid.less +21 -0
- data/vendor/assets/stylesheets/bootstrap/hero-unit.less +25 -0
- data/vendor/assets/stylesheets/bootstrap/iconic.less +209 -0
- data/vendor/assets/stylesheets/bootstrap/jasny-bootstrap.less +31 -0
- data/vendor/assets/stylesheets/bootstrap/jasny-forms.less +99 -0
- data/vendor/assets/stylesheets/bootstrap/jasny-forms.responsive-1200px-min.less +16 -0
- data/vendor/assets/stylesheets/bootstrap/jasny-forms.responsive-767px-max.less +17 -0
- data/vendor/assets/stylesheets/bootstrap/jasny-forms.responsive-768px-979px.less +36 -0
- data/vendor/assets/stylesheets/bootstrap/jasny-navs-tabbable.less +148 -0
- data/vendor/assets/stylesheets/bootstrap/jasny-responsive.less +27 -0
- data/vendor/assets/stylesheets/bootstrap/labels-badges.less +84 -0
- data/vendor/assets/stylesheets/bootstrap/layouts-semifluid.less +11 -0
- data/vendor/assets/stylesheets/bootstrap/layouts-semifluid.responsive-1200px-min.less +7 -0
- data/vendor/assets/stylesheets/bootstrap/layouts.less +16 -0
- data/vendor/assets/stylesheets/bootstrap/media.less +55 -0
- data/vendor/assets/stylesheets/bootstrap/mixins.less +702 -0
- data/vendor/assets/stylesheets/bootstrap/modals.less +95 -0
- data/vendor/assets/stylesheets/bootstrap/navbar.less +497 -0
- data/vendor/assets/stylesheets/bootstrap/navs.less +409 -0
- data/vendor/assets/stylesheets/bootstrap/page-alert.less +23 -0
- data/vendor/assets/stylesheets/bootstrap/page-alert.responsive-1200px-min.less +11 -0
- data/vendor/assets/stylesheets/bootstrap/page-alert.responsive-767px-max.less +20 -0
- data/vendor/assets/stylesheets/bootstrap/pager.less +43 -0
- data/vendor/assets/stylesheets/bootstrap/pagination.less +123 -0
- data/vendor/assets/stylesheets/bootstrap/popovers.less +133 -0
- data/vendor/assets/stylesheets/bootstrap/progress-bars.less +122 -0
- data/vendor/assets/stylesheets/bootstrap/reset.less +216 -0
- data/vendor/assets/stylesheets/bootstrap/responsive-1200px-min.less +28 -0
- data/vendor/assets/stylesheets/bootstrap/responsive-767px-max.less +193 -0
- data/vendor/assets/stylesheets/bootstrap/responsive-768px-979px.less +19 -0
- data/vendor/assets/stylesheets/bootstrap/responsive-navbar.less +189 -0
- data/vendor/assets/stylesheets/bootstrap/responsive-row-desktop.less +23 -0
- data/vendor/assets/stylesheets/bootstrap/responsive-tables.less +30 -0
- data/vendor/assets/stylesheets/bootstrap/responsive-utilities.less +59 -0
- data/vendor/assets/stylesheets/bootstrap/responsive.less +48 -0
- data/vendor/assets/stylesheets/bootstrap/rowlink.less +20 -0
- data/vendor/assets/stylesheets/bootstrap/scaffolding.less +53 -0
- data/vendor/assets/stylesheets/bootstrap/sprites.less +197 -0
- data/vendor/assets/stylesheets/bootstrap/tables.less +244 -0
- data/vendor/assets/stylesheets/bootstrap/thumbnails.less +53 -0
- data/vendor/assets/stylesheets/bootstrap/tooltip.less +70 -0
- data/vendor/assets/stylesheets/bootstrap/type.less +247 -0
- data/vendor/assets/stylesheets/bootstrap/utilities.less +30 -0
- data/vendor/assets/stylesheets/bootstrap/variables.less +302 -0
- data/vendor/assets/stylesheets/bootstrap/wells.less +29 -0
- metadata +241 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
//
|
2
|
+
// Component animations
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.fade {
|
7
|
+
opacity: 0;
|
8
|
+
.transition(opacity .15s linear);
|
9
|
+
&.in {
|
10
|
+
opacity: 1;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
.collapse {
|
15
|
+
position: relative;
|
16
|
+
height: 0;
|
17
|
+
overflow: hidden;
|
18
|
+
.transition(height .35s ease);
|
19
|
+
&.in {
|
20
|
+
height: auto;
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,237 @@
|
|
1
|
+
//
|
2
|
+
// Dropdown menus
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
7
|
+
.dropup,
|
8
|
+
.dropdown {
|
9
|
+
position: relative;
|
10
|
+
}
|
11
|
+
.dropdown-toggle {
|
12
|
+
// The caret makes the toggle a bit too tall in IE7
|
13
|
+
*margin-bottom: -3px;
|
14
|
+
}
|
15
|
+
.dropdown-toggle:active,
|
16
|
+
.open .dropdown-toggle {
|
17
|
+
outline: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Dropdown arrow/caret
|
21
|
+
// --------------------
|
22
|
+
.caret {
|
23
|
+
display: inline-block;
|
24
|
+
width: 0;
|
25
|
+
height: 0;
|
26
|
+
vertical-align: top;
|
27
|
+
border-top: 4px solid @black;
|
28
|
+
border-right: 4px solid transparent;
|
29
|
+
border-left: 4px solid transparent;
|
30
|
+
content: "";
|
31
|
+
}
|
32
|
+
|
33
|
+
// Place the caret
|
34
|
+
.dropdown .caret {
|
35
|
+
margin-top: 8px;
|
36
|
+
margin-left: 2px;
|
37
|
+
}
|
38
|
+
|
39
|
+
// The dropdown menu (ul)
|
40
|
+
// ----------------------
|
41
|
+
.dropdown-menu {
|
42
|
+
position: absolute;
|
43
|
+
top: 100%;
|
44
|
+
left: 0;
|
45
|
+
z-index: @zindexDropdown;
|
46
|
+
display: none; // none by default, but block on "open" of the menu
|
47
|
+
float: left;
|
48
|
+
min-width: 160px;
|
49
|
+
padding: 5px 0;
|
50
|
+
margin: 2px 0 0; // override default ul
|
51
|
+
list-style: none;
|
52
|
+
background-color: @dropdownBackground;
|
53
|
+
border: 1px solid #ccc; // Fallback for IE7-8
|
54
|
+
border: 1px solid @dropdownBorder;
|
55
|
+
*border-right-width: 2px;
|
56
|
+
*border-bottom-width: 2px;
|
57
|
+
.border-radius(6px);
|
58
|
+
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
59
|
+
-webkit-background-clip: padding-box;
|
60
|
+
-moz-background-clip: padding;
|
61
|
+
background-clip: padding-box;
|
62
|
+
|
63
|
+
// Aligns the dropdown menu to right
|
64
|
+
&.pull-right {
|
65
|
+
right: 0;
|
66
|
+
left: auto;
|
67
|
+
}
|
68
|
+
|
69
|
+
// Dividers (basically an hr) within the dropdown
|
70
|
+
.divider {
|
71
|
+
.nav-divider(@dropdownDividerTop, @dropdownDividerBottom);
|
72
|
+
}
|
73
|
+
|
74
|
+
// Links within the dropdown menu
|
75
|
+
> li > a {
|
76
|
+
display: block;
|
77
|
+
padding: 3px 20px;
|
78
|
+
clear: both;
|
79
|
+
font-weight: normal;
|
80
|
+
line-height: @baseLineHeight;
|
81
|
+
color: @dropdownLinkColor;
|
82
|
+
white-space: nowrap;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
// Hover/Focus state
|
87
|
+
// -----------
|
88
|
+
.dropdown-menu > li > a:hover,
|
89
|
+
.dropdown-menu > li > a:focus,
|
90
|
+
.dropdown-submenu:hover > a,
|
91
|
+
.dropdown-submenu:focus > a {
|
92
|
+
text-decoration: none;
|
93
|
+
color: @dropdownLinkColorHover;
|
94
|
+
#gradient > .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%));
|
95
|
+
}
|
96
|
+
|
97
|
+
// Active state
|
98
|
+
// ------------
|
99
|
+
.dropdown-menu > .active > a,
|
100
|
+
.dropdown-menu > .active > a:hover,
|
101
|
+
.dropdown-menu > .active > a:focus {
|
102
|
+
color: @dropdownLinkColorActive;
|
103
|
+
text-decoration: none;
|
104
|
+
outline: 0;
|
105
|
+
#gradient > .vertical(@dropdownLinkBackgroundActive, darken(@dropdownLinkBackgroundActive, 5%));
|
106
|
+
}
|
107
|
+
|
108
|
+
// Disabled state
|
109
|
+
// --------------
|
110
|
+
// Gray out text and ensure the hover/focus state remains gray
|
111
|
+
.dropdown-menu > .disabled > a,
|
112
|
+
.dropdown-menu > .disabled > a:hover,
|
113
|
+
.dropdown-menu > .disabled > a:focus {
|
114
|
+
color: @grayLight;
|
115
|
+
}
|
116
|
+
// Nuke hover/focus effects
|
117
|
+
.dropdown-menu > .disabled > a:hover,
|
118
|
+
.dropdown-menu > .disabled > a:focus {
|
119
|
+
text-decoration: none;
|
120
|
+
background-color: transparent;
|
121
|
+
background-image: none; // Remove CSS gradient
|
122
|
+
.reset-filter();
|
123
|
+
cursor: default;
|
124
|
+
}
|
125
|
+
|
126
|
+
// Open state for the dropdown
|
127
|
+
// ---------------------------
|
128
|
+
.open {
|
129
|
+
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
130
|
+
// make the menu appear below buttons that appeared later on the page
|
131
|
+
*z-index: @zindexDropdown;
|
132
|
+
|
133
|
+
& > .dropdown-menu {
|
134
|
+
display: block;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
// Right aligned dropdowns
|
139
|
+
// ---------------------------
|
140
|
+
.pull-right > .dropdown-menu {
|
141
|
+
right: 0;
|
142
|
+
left: auto;
|
143
|
+
}
|
144
|
+
|
145
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
146
|
+
// ------------------------------------------------------
|
147
|
+
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
148
|
+
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
149
|
+
.dropup,
|
150
|
+
.navbar-fixed-bottom .dropdown {
|
151
|
+
// Reverse the caret
|
152
|
+
.caret {
|
153
|
+
border-top: 0;
|
154
|
+
border-bottom: 4px solid @black;
|
155
|
+
content: "";
|
156
|
+
}
|
157
|
+
// Different positioning for bottom up menu
|
158
|
+
.dropdown-menu {
|
159
|
+
top: auto;
|
160
|
+
bottom: 100%;
|
161
|
+
margin-bottom: 1px;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
// Sub menus
|
166
|
+
// ---------------------------
|
167
|
+
.dropdown-submenu {
|
168
|
+
position: relative;
|
169
|
+
}
|
170
|
+
// Default dropdowns
|
171
|
+
.dropdown-submenu > .dropdown-menu {
|
172
|
+
top: 0;
|
173
|
+
left: 100%;
|
174
|
+
margin-top: -6px;
|
175
|
+
margin-left: -1px;
|
176
|
+
.border-radius(0 6px 6px 6px);
|
177
|
+
}
|
178
|
+
.dropdown-submenu:hover > .dropdown-menu {
|
179
|
+
display: block;
|
180
|
+
}
|
181
|
+
|
182
|
+
// Dropups
|
183
|
+
.dropup .dropdown-submenu > .dropdown-menu {
|
184
|
+
top: auto;
|
185
|
+
bottom: 0;
|
186
|
+
margin-top: 0;
|
187
|
+
margin-bottom: -2px;
|
188
|
+
.border-radius(5px 5px 5px 0);
|
189
|
+
}
|
190
|
+
|
191
|
+
// Caret to indicate there is a submenu
|
192
|
+
.dropdown-submenu > a:after {
|
193
|
+
display: block;
|
194
|
+
content: " ";
|
195
|
+
float: right;
|
196
|
+
width: 0;
|
197
|
+
height: 0;
|
198
|
+
border-color: transparent;
|
199
|
+
border-style: solid;
|
200
|
+
border-width: 5px 0 5px 5px;
|
201
|
+
border-left-color: darken(@dropdownBackground, 20%);
|
202
|
+
margin-top: 5px;
|
203
|
+
margin-right: -10px;
|
204
|
+
}
|
205
|
+
.dropdown-submenu:hover > a:after {
|
206
|
+
border-left-color: @dropdownLinkColorHover;
|
207
|
+
}
|
208
|
+
|
209
|
+
// Left aligned submenus
|
210
|
+
.dropdown-submenu.pull-left {
|
211
|
+
// Undo the float
|
212
|
+
// Yes, this is awkward since .pull-left adds a float, but it sticks to our conventions elsewhere.
|
213
|
+
float: none;
|
214
|
+
|
215
|
+
// Positioning the submenu
|
216
|
+
> .dropdown-menu {
|
217
|
+
left: -100%;
|
218
|
+
margin-left: 10px;
|
219
|
+
.border-radius(6px 0 6px 6px);
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
// Tweak nav headers
|
224
|
+
// -----------------
|
225
|
+
// Increase padding from 15px to 20px on sides
|
226
|
+
.dropdown .dropdown-menu .nav-header {
|
227
|
+
padding-left: 20px;
|
228
|
+
padding-right: 20px;
|
229
|
+
}
|
230
|
+
|
231
|
+
// Typeahead
|
232
|
+
// ---------
|
233
|
+
.typeahead {
|
234
|
+
z-index: 1051;
|
235
|
+
margin-top: 2px; // give it some space to breathe
|
236
|
+
.border-radius(@baseBorderRadius);
|
237
|
+
}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
// Fileupload.less
|
2
|
+
// CSS for file upload button and fileupload widget
|
3
|
+
// ------------------------------------------------
|
4
|
+
|
5
|
+
.btn-file {
|
6
|
+
overflow: hidden;
|
7
|
+
position: relative;
|
8
|
+
vertical-align: middle;
|
9
|
+
> input {
|
10
|
+
position: absolute;
|
11
|
+
top: 0;
|
12
|
+
right: 0;
|
13
|
+
margin: 0;
|
14
|
+
opacity: 0;
|
15
|
+
filter: alpha(opacity=0);
|
16
|
+
transform: translate(-300px, 0) scale(4);
|
17
|
+
font-size: 23px;
|
18
|
+
direction: ltr;
|
19
|
+
cursor: pointer;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.fileupload {
|
24
|
+
margin-bottom: 9px;
|
25
|
+
.uneditable-input {
|
26
|
+
display: inline-block;
|
27
|
+
margin-bottom: 0px;
|
28
|
+
vertical-align: middle;
|
29
|
+
cursor: text;
|
30
|
+
}
|
31
|
+
.thumbnail {
|
32
|
+
overflow: hidden;
|
33
|
+
display: inline-block;
|
34
|
+
margin-bottom: 5px;
|
35
|
+
vertical-align: middle;
|
36
|
+
text-align: center;
|
37
|
+
> img {
|
38
|
+
display: inline-block;
|
39
|
+
vertical-align: middle;
|
40
|
+
max-height: 100%;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
.btn {
|
44
|
+
vertical-align: middle;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
.fileupload-exists .fileupload-new,
|
48
|
+
.fileupload-new .fileupload-exists {
|
49
|
+
display: none;
|
50
|
+
}
|
51
|
+
.fileupload-inline .fileupload-controls {
|
52
|
+
display: inline;
|
53
|
+
}
|
54
|
+
|
55
|
+
// Not 100% correct, but helps in typical use case
|
56
|
+
.fileupload-new .input-append .btn-file {
|
57
|
+
.border-radius(0 3px 3px 0)
|
58
|
+
}
|
59
|
+
|
60
|
+
.thumbnail-borderless .thumbnail {
|
61
|
+
border: none;
|
62
|
+
padding: 0;
|
63
|
+
.border-radius(0);
|
64
|
+
.box-shadow(none);
|
65
|
+
}
|
66
|
+
.fileupload-new.thumbnail-borderless .thumbnail {
|
67
|
+
border: 1px solid #ddd;
|
68
|
+
}
|
69
|
+
|
70
|
+
.control-group.warning .fileupload {
|
71
|
+
.uneditable-input {
|
72
|
+
color: #a47e3c;
|
73
|
+
border-color: #a47e3c;
|
74
|
+
}
|
75
|
+
.fileupload-preview {
|
76
|
+
color: #a47e3c;
|
77
|
+
}
|
78
|
+
.thumbnail {
|
79
|
+
border-color: #a47e3c;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
.control-group.error .fileupload {
|
83
|
+
.uneditable-input {
|
84
|
+
color: #b94a48;
|
85
|
+
border-color: #b94a48;
|
86
|
+
}
|
87
|
+
.fileupload-preview {
|
88
|
+
color: #b94a48;
|
89
|
+
}
|
90
|
+
.thumbnail {
|
91
|
+
border-color: #b94a48;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
.control-group.success .fileupload {
|
95
|
+
.uneditable-input {
|
96
|
+
color: #468847;
|
97
|
+
border-color: #468847;
|
98
|
+
}
|
99
|
+
.fileupload-preview {
|
100
|
+
color: #468847;
|
101
|
+
}
|
102
|
+
.thumbnail {
|
103
|
+
border-color: #468847;
|
104
|
+
}
|
105
|
+
}
|
@@ -0,0 +1,159 @@
|
|
1
|
+
// Forms-uneditable.less
|
2
|
+
// CSS for uneditable forms and form elements
|
3
|
+
// ------------------------------------------
|
4
|
+
|
5
|
+
.uneditable-input,
|
6
|
+
.uneditable-textarea {
|
7
|
+
display: inline-block;
|
8
|
+
font-size: @baseFontSize;
|
9
|
+
line-height: @baseLineHeight;
|
10
|
+
color: @gray;
|
11
|
+
cursor: not-allowed;
|
12
|
+
background-color: @inputBackground;
|
13
|
+
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
|
14
|
+
padding: 4px 3px 4px 5px;
|
15
|
+
border: 1px solid #eee;
|
16
|
+
.border-radius(@inputBorderRadius);
|
17
|
+
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
|
18
|
+
}
|
19
|
+
.uneditable-input {
|
20
|
+
white-space: pre;
|
21
|
+
overflow: hidden; // prevent text from wrapping, but still cut it off like an input does
|
22
|
+
height: @baseLineHeight;
|
23
|
+
}
|
24
|
+
.uneditable-textarea {
|
25
|
+
white-space: pre-wrap;
|
26
|
+
overflow-y: auto;
|
27
|
+
overflow-x: hidden;
|
28
|
+
}
|
29
|
+
|
30
|
+
|
31
|
+
// DISABLED STATE
|
32
|
+
// --------------
|
33
|
+
|
34
|
+
// Disabled and read-only inputs
|
35
|
+
select[disabled],
|
36
|
+
textarea[disabled],
|
37
|
+
input[type="text"][disabled],
|
38
|
+
input[type="password"][disabled],
|
39
|
+
input[type="datetime"][disabled],
|
40
|
+
input[type="datetime-local"][disabled],
|
41
|
+
input[type="date"][disabled],
|
42
|
+
input[type="month"][disabled],
|
43
|
+
input[type="time"][disabled],
|
44
|
+
input[type="week"][disabled],
|
45
|
+
input[type="number"][disabled],
|
46
|
+
input[type="email"][disabled],
|
47
|
+
input[type="url"][disabled],
|
48
|
+
input[type="search"][disabled]
|
49
|
+
{
|
50
|
+
color: #999;
|
51
|
+
}
|
52
|
+
.uneditable-input.disabled,
|
53
|
+
.uneditable-textarea.disabled {
|
54
|
+
background-color: #f5f5f5;
|
55
|
+
border-color: #ddd;
|
56
|
+
cursor: not-allowed;
|
57
|
+
color: #999;
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
// TEXTAREA
|
62
|
+
// --------
|
63
|
+
|
64
|
+
// Make sure textarea has the same size in all browsers
|
65
|
+
textarea,
|
66
|
+
.uneditable-textarea {
|
67
|
+
height: 3 * @baseLineHeight;
|
68
|
+
&[rows="1"] { height: (1 + 1) * @baseLineHeight; }
|
69
|
+
&[rows="2"] { height: (1 + 2) * @baseLineHeight; }
|
70
|
+
&[rows="3"] { height: (1 + 3) * @baseLineHeight; }
|
71
|
+
&[rows="4"] { height: (1 + 4) * @baseLineHeight; }
|
72
|
+
&[rows="5"] { height: (1 + 5) * @baseLineHeight; }
|
73
|
+
&[rows="6"] { height: (1 + 6) * @baseLineHeight; }
|
74
|
+
&[rows="7"] { height: (1 + 7) * @baseLineHeight; }
|
75
|
+
&[rows="8"] { height: (1 + 8) * @baseLineHeight; }
|
76
|
+
&[rows="9"] { height: (1 + 9) * @baseLineHeight; }
|
77
|
+
&[rows="10"] { height: (1 + 10) * @baseLineHeight; }
|
78
|
+
&[rows="11"] { height: (1 + 11) * @baseLineHeight; }
|
79
|
+
&[rows="12"] { height: (1 + 12) * @baseLineHeight; }
|
80
|
+
&[rows="13"] { height: (1 + 13) * @baseLineHeight; }
|
81
|
+
&[rows="14"] { height: (1 + 14) * @baseLineHeight; }
|
82
|
+
&[rows="15"] { height: (1 + 15) * @baseLineHeight; }
|
83
|
+
&[rows="16"] { height: (1 + 16) * @baseLineHeight; }
|
84
|
+
&[rows="17"] { height: (1 + 17) * @baseLineHeight; }
|
85
|
+
&[rows="18"] { height: (1 + 18) * @baseLineHeight; }
|
86
|
+
&[rows="19"] { height: (1 + 19) * @baseLineHeight; }
|
87
|
+
&[rows="20"] { height: (1 + 20) * @baseLineHeight; }
|
88
|
+
&[rows="21"] { height: (1 + 21) * @baseLineHeight; }
|
89
|
+
&[rows="22"] { height: (1 + 22) * @baseLineHeight; }
|
90
|
+
&[rows="23"] { height: (1 + 23) * @baseLineHeight; }
|
91
|
+
&[rows="24"] { height: (1 + 24) * @baseLineHeight; }
|
92
|
+
&[rows="25"] { height: (1 + 25) * @baseLineHeight; }
|
93
|
+
&[rows="26"] { height: (1 + 26) * @baseLineHeight; }
|
94
|
+
&[rows="27"] { height: (1 + 27) * @baseLineHeight; }
|
95
|
+
&[rows="28"] { height: (1 + 28) * @baseLineHeight; }
|
96
|
+
&[rows="29"] { height: (1 + 29) * @baseLineHeight; }
|
97
|
+
&[rows="30"] { height: (1 + 30) * @baseLineHeight; }
|
98
|
+
&[rows="35"] { height: (1 + 35) * @baseLineHeight; }
|
99
|
+
&[rows="40"] { height: (1 + 40) * @baseLineHeight; }
|
100
|
+
&[rows="45"] { height: (1 + 45) * @baseLineHeight; }
|
101
|
+
&[rows="50"] { height: (1 + 50) * @baseLineHeight; }
|
102
|
+
&[rows="55"] { height: (1 + 55) * @baseLineHeight; }
|
103
|
+
&[rows="60"] { height: (1 + 60) * @baseLineHeight; }
|
104
|
+
&[rows="65"] { height: (1 + 65) * @baseLineHeight; }
|
105
|
+
&[rows="70"] { height: (1 + 70) * @baseLineHeight; }
|
106
|
+
&[rows="75"] { height: (1 + 75) * @baseLineHeight; }
|
107
|
+
&[rows="80"] { height: (1 + 80) * @baseLineHeight; }
|
108
|
+
&[rows="85"] { height: (1 + 85) * @baseLineHeight; }
|
109
|
+
&[rows="90"] { height: (1 + 90) * @baseLineHeight; }
|
110
|
+
&[rows="95"] { height: (1 + 95) * @baseLineHeight; }
|
111
|
+
&[rows="100"] { height: (1 + 100) * @baseLineHeight; }
|
112
|
+
}
|
113
|
+
|
114
|
+
.uneditable-textarea {
|
115
|
+
.box-sizing(border-box);
|
116
|
+
}
|
117
|
+
|
118
|
+
|
119
|
+
// SPAN FIX
|
120
|
+
// --------
|
121
|
+
|
122
|
+
.uneditable-input[class*="span"],
|
123
|
+
.uneditable-textarea[class*="span"],
|
124
|
+
// Redeclare since the fluid row class is more specific
|
125
|
+
.row-fluid .uneditable-input[class*="span"],
|
126
|
+
.row-fluid .uneditable-textarea[class*="span"] {
|
127
|
+
float: none;
|
128
|
+
margin-left: 0;
|
129
|
+
}
|
130
|
+
|
131
|
+
.input-append .uneditable-input,
|
132
|
+
.input-prepend .uneditable-input {
|
133
|
+
vertical-align: top;
|
134
|
+
}
|
135
|
+
|
136
|
+
// Ensure input-prepend/append never wraps
|
137
|
+
.input-append .uneditable-input[class*="span"],
|
138
|
+
.input-prepend .uneditable-input[class*="span"] {
|
139
|
+
display: inline-block;
|
140
|
+
}
|
141
|
+
|
142
|
+
|
143
|
+
// UNEDITABLE FORM
|
144
|
+
// ---------------
|
145
|
+
|
146
|
+
.uneditable-form {
|
147
|
+
input[disabled],
|
148
|
+
textarea[disabled],
|
149
|
+
select[disabled] {
|
150
|
+
cursor: auto;
|
151
|
+
}
|
152
|
+
.uneditable-input,
|
153
|
+
.uneditable-textarea {
|
154
|
+
cursor: text;
|
155
|
+
}
|
156
|
+
.form-actions {
|
157
|
+
background-color: transparent;
|
158
|
+
}
|
159
|
+
}
|