less-rails-jasny-bootstrap 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +36 -0
  3. data/CODE_OF_CONDUCT.md +13 -0
  4. data/Gemfile +7 -0
  5. data/LICENSE +22 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +81 -0
  8. data/Rakefile +2 -0
  9. data/app/assets/javascripts/jasny/bootstrap/fileinput.js +198 -0
  10. data/app/assets/javascripts/jasny/bootstrap/inputmask.js +360 -0
  11. data/app/assets/javascripts/jasny/bootstrap/offcanvas.js +318 -0
  12. data/app/assets/javascripts/jasny/bootstrap/rowlink.js +86 -0
  13. data/app/assets/javascripts/jasny/bootstrap/transition.js +50 -0
  14. data/app/assets/javascripts/jasny/jasny-bootstrap.js +5 -0
  15. data/app/assets/stylesheets/jasny/jasny-bootstrap.less +1 -0
  16. data/app/frameworks/jasny/bootstrap/alerts-fixed.less +39 -0
  17. data/app/frameworks/jasny/bootstrap/build/jasny-bootstrap.less +5 -0
  18. data/app/frameworks/jasny/bootstrap/build/mixins.less +61 -0
  19. data/app/frameworks/jasny/bootstrap/build/variables.less +216 -0
  20. data/app/frameworks/jasny/bootstrap/button-labels.less +38 -0
  21. data/app/frameworks/jasny/bootstrap/fileinput.less +122 -0
  22. data/app/frameworks/jasny/bootstrap/grid-container-smooth.less +10 -0
  23. data/app/frameworks/jasny/bootstrap/jasny-bootstrap.less +18 -0
  24. data/app/frameworks/jasny/bootstrap/nav-tab-alignment.less +97 -0
  25. data/app/frameworks/jasny/bootstrap/navmenu.less +273 -0
  26. data/app/frameworks/jasny/bootstrap/offcanvas.less +48 -0
  27. data/app/frameworks/jasny/bootstrap/rowlink.less +22 -0
  28. data/app/frameworks/jasny/bootstrap/variables.less +66 -0
  29. data/less-rails-jasny-bootstrap.gemspec +26 -0
  30. data/lib/less-rails-jasny-bootstrap.rb +11 -0
  31. data/lib/less/rails/jasny/bootstrap.rb +2 -0
  32. data/lib/less/rails/jasny/bootstrap/engine.rb +15 -0
  33. data/lib/less/rails/jasny/bootstrap/version.rb +9 -0
  34. metadata +144 -0
@@ -0,0 +1,10 @@
1
+ // Smooth sizing container
2
+ // -------------------------
3
+
4
+ .container-smooth {
5
+ max-width: @container-lg;
6
+
7
+ @media (min-width: 1px) {
8
+ width: auto;
9
+ }
10
+ }
@@ -0,0 +1,18 @@
1
+ // Twitter Bootstrap's "variables.less" should already be imported
2
+
3
+ // Core variables and mixins
4
+ @import "variables";
5
+
6
+ // Core CSS
7
+ @import "grid-container-smooth.less";
8
+ @import "button-labels.less";
9
+
10
+ // Components
11
+ @import "nav-tab-alignment";
12
+ @import "navmenu";
13
+ @import "alerts-fixed.less";
14
+
15
+ // Components w/ JavaScript
16
+ @import "offcanvas";
17
+ @import "rowlink";
18
+ @import "fileinput.less";
@@ -0,0 +1,97 @@
1
+ // Alignment options
2
+ // -------------------------
3
+
4
+ // bottom
5
+ .nav-tabs-bottom {
6
+ border-bottom: 0;
7
+ border-top: 1px solid @nav-tabs-border-color;
8
+
9
+ > li {
10
+ margin-bottom: 0;
11
+ margin-top: -1px;
12
+
13
+ > a {
14
+ border-radius: 0 0 @border-radius-base @border-radius-base;
15
+ }
16
+
17
+ > a:hover,
18
+ > a:focus,
19
+ &.active > a,
20
+ &.active > a:hover,
21
+ &.active > a:focus {
22
+ border: 1px solid @nav-tabs-active-link-hover-border-color;
23
+ border-top-color: transparent;
24
+ }
25
+ }
26
+ }
27
+
28
+ // left
29
+ .nav-tabs-left {
30
+ border-bottom: 0;
31
+ border-right: 1px solid @nav-tabs-border-color;
32
+
33
+ > li {
34
+ margin-bottom: 0;
35
+ margin-right: -1px;
36
+ float: none;
37
+
38
+ > a {
39
+ border-radius: @border-radius-base 0 0 @border-radius-base;
40
+ margin-right: 0;
41
+ margin-bottom: 2px;
42
+ }
43
+
44
+ > a:hover,
45
+ > a:focus,
46
+ &.active > a,
47
+ &.active > a:hover,
48
+ &.active > a:focus {
49
+ border: 1px solid @nav-tabs-active-link-hover-border-color;
50
+ border-right-color: transparent;
51
+ }
52
+ }
53
+
54
+ .row > & {
55
+ padding-right: 0;
56
+ padding-left: (@grid-gutter-width / 2);
57
+ margin-right: -1px;
58
+ position: relative;
59
+ z-index: 1;
60
+
61
+ & + .tab-content {
62
+ border-left: 1px solid @nav-tabs-active-link-hover-border-color;
63
+ }
64
+ }
65
+ }
66
+
67
+ // right
68
+ .nav-tabs-right {
69
+ border-bottom: 0;
70
+ border-left: 1px solid @nav-tabs-border-color;
71
+
72
+ > li {
73
+ margin-bottom: 0;
74
+ margin-left: -1px;
75
+ float: none;
76
+
77
+ > a {
78
+ border-radius: 0 @border-radius-base @border-radius-base 0;
79
+ margin-left: 0;
80
+ margin-bottom: 2px;
81
+ }
82
+
83
+ > a:hover,
84
+ > a:focus,
85
+ &.active > a,
86
+ &.active > a:hover,
87
+ &.active > a:focus {
88
+ border: 1px solid @nav-tabs-active-link-hover-border-color;
89
+ border-left-color: transparent;
90
+ }
91
+ }
92
+
93
+ .row > & {
94
+ padding-left: 0;
95
+ padding-right: (@grid-gutter-width / 2);
96
+ }
97
+ }
@@ -0,0 +1,273 @@
1
+ // Navmenu and offcanvas navbar
2
+ // --------------------------------------------------
3
+
4
+
5
+ // Wrapper and base class
6
+ //
7
+ // Provide a static navmenu from which we expand to create the fixed navmenu
8
+ // variations.
9
+
10
+ .navmenu,
11
+ .navbar-offcanvas {
12
+ width: @navmenu-width;
13
+ height: auto;
14
+ border-width: 1px;
15
+ border-style: solid;
16
+ border-radius: @border-radius-base;
17
+ }
18
+
19
+ .navmenu-fixed-left,
20
+ .navmenu-fixed-right,
21
+ .navbar-offcanvas {
22
+ position: fixed;
23
+ z-index: @zindex-navmenu-fixed;
24
+ top: 0;
25
+ bottom: 0;
26
+ overflow-y: auto;
27
+ border-radius: 0;
28
+ }
29
+ .navmenu-fixed-left,
30
+ .navbar-offcanvas.navmenu-fixed-left {
31
+ left: 0;
32
+ right: auto;
33
+ border-width: 0 1px 0 0;
34
+ }
35
+ .navmenu-fixed-right,
36
+ .navbar-offcanvas {
37
+ left: auto;
38
+ right: 0;
39
+ border-width: 0 0 0 1px;
40
+ }
41
+
42
+ .navmenu-nav {
43
+ margin-bottom: @navmenu-margin-vertical;
44
+
45
+ &.dropdown-menu {
46
+ position: static;
47
+ margin: 0;
48
+ padding-top: 0;
49
+ float: none;
50
+ border: none;
51
+ .box-shadow(none);
52
+ border-radius: 0;
53
+ }
54
+ }
55
+
56
+ .navbar-offcanvas {
57
+ .navbar-nav {
58
+ margin: 0;
59
+ }
60
+
61
+ @media (min-width: @grid-float-breakpoint) {
62
+ width: auto;
63
+ border-top: 0;
64
+ box-shadow: none;
65
+
66
+ &.offcanvas {
67
+ position: static;
68
+ display: block !important;
69
+ height: auto !important;
70
+ padding-bottom: 0; // Override default setting
71
+ overflow: visible !important;
72
+ }
73
+
74
+ // Account for first and last children spacing
75
+ .navbar-nav.navbar-left:first-child {
76
+ margin-left: -@navbar-padding-horizontal;
77
+ }
78
+ .navbar-nav.navbar-right:last-child {
79
+ margin-right: -@navbar-padding-horizontal;
80
+ }
81
+
82
+ .navmenu-brand {
83
+ display: none;
84
+ }
85
+ }
86
+ }
87
+
88
+ // Brand/project name
89
+
90
+ .navmenu-brand {
91
+ display: block;
92
+ font-size: @font-size-large;
93
+ line-height: @line-height-computed;
94
+ padding: @nav-link-padding;
95
+ &:hover,
96
+ &:focus {
97
+ text-decoration: none;
98
+ }
99
+ margin: @navmenu-margin-vertical 0;
100
+ }
101
+
102
+ // Alternate navmenus
103
+ // --------------------------------------------------
104
+
105
+ // Default navmenu
106
+ .navmenu-default,
107
+ .navbar-default .navbar-offcanvas {
108
+ background-color: @navmenu-default-bg;
109
+ border-color: @navmenu-default-border;
110
+
111
+ .navmenu-brand {
112
+ color: @navmenu-default-brand-color;
113
+ &:hover,
114
+ &:focus {
115
+ color: @navmenu-default-brand-hover-color;
116
+ background-color: @navmenu-default-brand-hover-bg;
117
+ }
118
+ }
119
+
120
+ .navmenu-text {
121
+ color: @navmenu-default-color;
122
+ }
123
+
124
+ .navmenu-nav {
125
+ // Caret should match text color on hover
126
+ > .dropdown > a:hover .caret,
127
+ > .dropdown > a:focus .caret {
128
+ border-top-color: @navmenu-default-link-hover-color;
129
+ border-bottom-color: @navmenu-default-link-hover-color;
130
+ }
131
+
132
+ // Remove background color from open dropdown
133
+ > .open > a {
134
+ &,
135
+ &:hover,
136
+ &:focus {
137
+ background-color: @navmenu-default-link-active-bg;
138
+ color: @navmenu-default-link-active-color;
139
+ .caret {
140
+ border-top-color: @navmenu-default-link-active-color;
141
+ border-bottom-color: @navmenu-default-link-active-color;
142
+ }
143
+ }
144
+ }
145
+ > .dropdown > a .caret {
146
+ border-top-color: @navmenu-default-link-color;
147
+ border-bottom-color: @navmenu-default-link-color;
148
+ }
149
+ &.dropdown-menu {
150
+ background-color: @navmenu-default-link-active-bg;
151
+ & > .divider {
152
+ background-color: @navmenu-default-bg;
153
+ }
154
+ > .active > a {
155
+ &,
156
+ &:hover,
157
+ &:focus {
158
+ background-color: darken(@navmenu-default-link-active-bg, 6.5%);
159
+ }
160
+ }
161
+ }
162
+
163
+ > li > a {
164
+ color: @navmenu-default-link-color;
165
+ &:hover,
166
+ &:focus {
167
+ color: @navmenu-default-link-hover-color;
168
+ background-color: @navmenu-default-link-hover-bg;
169
+ }
170
+ }
171
+ > .active > a {
172
+ &,
173
+ &:hover,
174
+ &:focus {
175
+ color: @navmenu-default-link-active-color;
176
+ background-color: @navmenu-default-link-active-bg;
177
+ }
178
+ }
179
+ > .disabled > a {
180
+ &,
181
+ &:hover,
182
+ &:focus {
183
+ color: @navmenu-default-link-disabled-color;
184
+ background-color: @navmenu-default-link-disabled-bg;
185
+ }
186
+ }
187
+ }
188
+ }
189
+
190
+ // Inverse navmenu
191
+ .navmenu-inverse,
192
+ .navbar-inverse .navbar-offcanvas {
193
+ background-color: @navmenu-inverse-bg;
194
+ border-color: @navmenu-inverse-border;
195
+
196
+ .navmenu-brand {
197
+ color: @navmenu-inverse-brand-color;
198
+ &:hover,
199
+ &:focus {
200
+ color: @navmenu-inverse-brand-hover-color;
201
+ background-color: @navmenu-inverse-brand-hover-bg;
202
+ }
203
+ }
204
+
205
+ .navmenu-text {
206
+ color: @navmenu-inverse-color;
207
+ }
208
+
209
+ .navmenu-nav {
210
+ // Caret should match text color on hover
211
+ > .dropdown > a:hover .caret,
212
+ > .dropdown > a:focus .caret {
213
+ border-top-color: @navmenu-inverse-link-hover-color;
214
+ border-bottom-color: @navmenu-inverse-link-hover-color;
215
+ }
216
+
217
+ // Remove background color from open dropdown
218
+ > .open > a {
219
+ &,
220
+ &:hover,
221
+ &:focus {
222
+ background-color: @navmenu-inverse-link-active-bg;
223
+ color: @navmenu-inverse-link-active-color;
224
+ .caret {
225
+ border-top-color: @navmenu-inverse-link-active-color;
226
+ border-bottom-color: @navmenu-inverse-link-active-color;
227
+ }
228
+ }
229
+ }
230
+ > .dropdown > a .caret {
231
+ border-top-color: @navmenu-inverse-link-color;
232
+ border-bottom-color: @navmenu-inverse-link-color;
233
+ }
234
+ &.dropdown-menu {
235
+ background-color: @navmenu-inverse-link-active-bg;
236
+ & > .divider {
237
+ background-color: @navmenu-inverse-bg;
238
+ }
239
+ > .active > a {
240
+ &,
241
+ &:hover,
242
+ &:focus {
243
+ background-color: darken(@navmenu-inverse-link-active-bg, 6.5%);
244
+ }
245
+ }
246
+ }
247
+
248
+ > li > a {
249
+ color: @navmenu-inverse-link-color;
250
+ &:hover,
251
+ &:focus {
252
+ color: @navmenu-inverse-link-hover-color;
253
+ background-color: @navmenu-inverse-link-hover-bg;
254
+ }
255
+ }
256
+ > .active > a {
257
+ &,
258
+ &:hover,
259
+ &:focus {
260
+ color: @navmenu-inverse-link-active-color;
261
+ background-color: @navmenu-inverse-link-active-bg;
262
+ }
263
+ }
264
+ > .disabled > a {
265
+ &,
266
+ &:hover,
267
+ &:focus {
268
+ color: @navmenu-inverse-link-disabled-color;
269
+ background-color: @navmenu-inverse-link-disabled-bg;
270
+ }
271
+ }
272
+ }
273
+ }
@@ -0,0 +1,48 @@
1
+ // Off canvas navigation
2
+ // --------------------------------------------------
3
+
4
+ .offcanvas {
5
+ display: none;
6
+ &.in {
7
+ display: block;
8
+ }
9
+ }
10
+
11
+ @media (max-width: @screen-xs-max) {
12
+ .offcanvas-xs {
13
+ .offcanvas;
14
+ }
15
+ }
16
+ @media (max-width: @screen-sm-max) {
17
+ .offcanvas-sm {
18
+ .offcanvas;
19
+ }
20
+ }
21
+ @media (max-width: @screen-md-max) {
22
+ .offcanvas-md {
23
+ .offcanvas;
24
+ }
25
+ }
26
+ .offcanvas-lg {
27
+ .offcanvas;
28
+ }
29
+
30
+ .canvas-sliding {
31
+ -webkit-transition: top 0.35s, left 0.35s, bottom 0.35s, right 0.35s;
32
+ transition: top 0.35s, left 0.35s, bottom 0.35s, right 0.35s;
33
+ }
34
+
35
+ .offcanvas-clone {
36
+ height: 0px !important;
37
+ width: 0px !important;
38
+ overflow: hidden !important;
39
+ border: none !important;
40
+ margin: 0px !important;
41
+ padding: 0px !important;
42
+ position: absolute !important;
43
+ top: auto !important;
44
+ left: auto !important;
45
+ bottom: 0px !important;
46
+ right: 0px !important;
47
+ opacity: 0 !important;
48
+ }