furatto 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +102 -17
  3. data/furatto.gemspec +1 -0
  4. data/lib/furatto/version.rb +1 -1
  5. data/vendor/assets/javascripts/furatto.js +5978 -15
  6. data/vendor/assets/javascripts/furatto.min.js +3 -0
  7. data/vendor/assets/stylesheets/font-awesome.scss +2495 -0
  8. data/vendor/assets/stylesheets/furatto.scss +15 -30
  9. data/vendor/assets/stylesheets/furatto/_alerts.scss +5 -6
  10. data/vendor/assets/stylesheets/furatto/_base.scss +33 -121
  11. data/vendor/assets/stylesheets/furatto/_buttons.scss +36 -11
  12. data/vendor/assets/stylesheets/furatto/_code.scss +7 -6
  13. data/vendor/assets/stylesheets/furatto/_dashboard.scss +36 -0
  14. data/vendor/assets/stylesheets/furatto/_dropdown.scss +29 -31
  15. data/vendor/assets/stylesheets/furatto/_fonts.scss +0 -588
  16. data/vendor/assets/stylesheets/furatto/_footer.scss +8 -25
  17. data/vendor/assets/stylesheets/furatto/_forms.scss +80 -63
  18. data/vendor/assets/stylesheets/furatto/_grid.scss +34 -30
  19. data/vendor/assets/stylesheets/furatto/_images.scss +28 -8
  20. data/vendor/assets/stylesheets/furatto/_labels.scss +3 -2
  21. data/vendor/assets/stylesheets/furatto/_mixins.scss +81 -164
  22. data/vendor/assets/stylesheets/furatto/_modal.scss +339 -77
  23. data/vendor/assets/stylesheets/furatto/_nav.scss +43 -45
  24. data/vendor/assets/stylesheets/furatto/_navbar.scss +60 -31
  25. data/vendor/assets/stylesheets/furatto/_panel.scss +277 -0
  26. data/vendor/assets/stylesheets/furatto/_responsive_navbar.scss +37 -26
  27. data/vendor/assets/stylesheets/furatto/_responsive_tables.scss +1 -1
  28. data/vendor/assets/stylesheets/furatto/_responsive_utilities.scss +182 -0
  29. data/vendor/assets/stylesheets/furatto/_responsiveslides.scss +157 -174
  30. data/vendor/assets/stylesheets/furatto/_tooltips.scss +2 -14
  31. data/vendor/assets/stylesheets/furatto/_typography.scss +41 -83
  32. data/vendor/assets/stylesheets/furatto/_variables.scss +241 -244
  33. metadata +14 -81
  34. data/vendor/assets/images/icheck/aero.png +0 -0
  35. data/vendor/assets/images/icheck/aero@2x.png +0 -0
  36. data/vendor/assets/images/icheck/blue.png +0 -0
  37. data/vendor/assets/images/icheck/blue@2x.png +0 -0
  38. data/vendor/assets/images/icheck/flat.png +0 -0
  39. data/vendor/assets/images/icheck/flat@2x.png +0 -0
  40. data/vendor/assets/images/icheck/green.png +0 -0
  41. data/vendor/assets/images/icheck/green@2x.png +0 -0
  42. data/vendor/assets/images/icheck/grey.png +0 -0
  43. data/vendor/assets/images/icheck/grey@2x.png +0 -0
  44. data/vendor/assets/images/icheck/orange.png +0 -0
  45. data/vendor/assets/images/icheck/orange@2x.png +0 -0
  46. data/vendor/assets/images/icheck/pink.png +0 -0
  47. data/vendor/assets/images/icheck/pink@2x.png +0 -0
  48. data/vendor/assets/images/icheck/purple.png +0 -0
  49. data/vendor/assets/images/icheck/purple@2x.png +0 -0
  50. data/vendor/assets/images/icheck/red.png +0 -0
  51. data/vendor/assets/images/icheck/red@2x.png +0 -0
  52. data/vendor/assets/images/icheck/yellow.png +0 -0
  53. data/vendor/assets/images/icheck/yellow@2x.png +0 -0
  54. data/vendor/assets/images/icons/customize-icon150.png +0 -0
  55. data/vendor/assets/images/icons/flexible-icon.png +0 -0
  56. data/vendor/assets/images/icons/github-128-black.png +0 -0
  57. data/vendor/assets/images/icons/iphone-icon150.png +0 -0
  58. data/vendor/assets/images/icons/lock-icon128.png +0 -0
  59. data/vendor/assets/images/icons/rocket-icon128.png +0 -0
  60. data/vendor/assets/images/icons/rocket-icon150.png +0 -0
  61. data/vendor/assets/images/icons/screen-icon.png +0 -0
  62. data/vendor/assets/images/icons/screens-icon.png +0 -0
  63. data/vendor/assets/images/icons/screens2-icon.png +0 -0
  64. data/vendor/assets/images/next.png +0 -0
  65. data/vendor/assets/images/previous.png +0 -0
  66. data/vendor/assets/images/themes.gif +0 -0
  67. data/vendor/assets/images/toggle.png +0 -0
  68. data/vendor/assets/javascripts/dropdown.js +0 -169
  69. data/vendor/assets/javascripts/jpanel.js +0 -547
  70. data/vendor/assets/javascripts/jquery.avgrund.js +0 -127
  71. data/vendor/assets/javascripts/jquery.dropkick-1.0.0.js +0 -400
  72. data/vendor/assets/javascripts/jquery.icheck.js +0 -462
  73. data/vendor/assets/javascripts/jquery.tagsinput.js +0 -354
  74. data/vendor/assets/javascripts/jquery.toolbar.js +0 -242
  75. data/vendor/assets/javascripts/legacy.js +0 -140
  76. data/vendor/assets/javascripts/picker.date.js +0 -957
  77. data/vendor/assets/javascripts/picker.js +0 -785
  78. data/vendor/assets/javascripts/picker.time.js +0 -651
  79. data/vendor/assets/javascripts/rainbow-custom.min.js +0 -13
  80. data/vendor/assets/javascripts/responsive-tables.js +0 -67
  81. data/vendor/assets/javascripts/responsiveslides.js +0 -391
  82. data/vendor/assets/javascripts/tooltip.js +0 -353
  83. data/vendor/assets/stylesheets/furatto/_date_picker.time.scss +0 -122
  84. data/vendor/assets/stylesheets/furatto/_font-awesome-ie7.scss +0 -1953
  85. data/vendor/assets/stylesheets/furatto/_layout.scss +0 -0
  86. data/vendor/assets/stylesheets/furatto/_left_navbar.scss +0 -100
  87. data/vendor/assets/stylesheets/furatto/_pagination.scss +0 -158
  88. data/vendor/assets/stylesheets/furatto/_responsive-1200px-min.scss +0 -21
  89. data/vendor/assets/stylesheets/furatto/_responsive-767px-max.scss +0 -82
  90. data/vendor/assets/stylesheets/furatto/_responsive-768px-979px.scss +0 -23
  91. data/vendor/assets/stylesheets/furatto/_select.scss +0 -191
  92. data/vendor/assets/stylesheets/furatto/_tags.scss +0 -107
  93. data/vendor/assets/stylesheets/furatto/_vrt_navbar.scss +0 -61
  94. data/vendor/assets/stylesheets/furatto/icheck/_aero.scss +0 -64
  95. data/vendor/assets/stylesheets/furatto/icheck/_all.scss +0 -20
  96. data/vendor/assets/stylesheets/furatto/icheck/_blue.scss +0 -64
  97. data/vendor/assets/stylesheets/furatto/icheck/_flat.scss +0 -64
  98. data/vendor/assets/stylesheets/furatto/icheck/_green.scss +0 -64
  99. data/vendor/assets/stylesheets/furatto/icheck/_grey.scss +0 -64
  100. data/vendor/assets/stylesheets/furatto/icheck/_orange.scss +0 -64
  101. data/vendor/assets/stylesheets/furatto/icheck/_pink.scss +0 -64
  102. data/vendor/assets/stylesheets/furatto/icheck/_purple.scss +0 -64
  103. data/vendor/assets/stylesheets/furatto/icheck/_red.scss +0 -64
  104. data/vendor/assets/stylesheets/furatto/icheck/_yellow.scss +0 -64
@@ -8,37 +8,20 @@
8
8
  */
9
9
 
10
10
  .footer {
11
- background: $footer-bg;
12
11
  color: $footer-text-color;
13
12
  font-size: $base-font-size;
14
13
  font-weight: lighter;
15
14
  line-height: $base-line-height;
16
- margin-top: 50px;
17
- height: $footer-height;
15
+ margin-top: 60px;
16
+ text-align: center;
18
17
 
19
- .copyright {
20
- margin: 0;
21
- padding: (($footer-height - $base-line-height) / 2) 20px (($footer-height - $base-line-height) / 2);
22
- }
23
-
24
- a {
25
- color: $footer-text-color;
26
- }
27
-
28
- .footer-wrapper {
29
- width: 80%;
30
- margin: 0 auto;
31
-
32
- .hrz-nav {
33
- margin: 0;
34
-
35
- li {
36
- display: inline-block;
37
- padding: (($footer-height - $base-line-height) / 2) 10px (($footer-height - $base-line-height) / 2);
38
- a {
39
- color: $footer-text-color;
40
- }
18
+ ul.inline {
19
+ li {
20
+ a {
21
+ color: $footer-anchor-color;
22
+ font-size: $footer-anchor-size;
41
23
  }
42
24
  }
43
25
  }
26
+
44
27
  }
@@ -37,7 +37,8 @@ input[type="color"],
37
37
  .uneditable-input {
38
38
  display: inline-block;
39
39
  height: $base-line-height;
40
- padding: 4px 6px;
40
+ padding-left: 8px;
41
+ height: 30px;
41
42
  margin-bottom: $base-line-height / 2;
42
43
  font-size: $base-font-size;
43
44
  line-height: $base-line-height;
@@ -82,27 +83,27 @@ input[type="color"],
82
83
 
83
84
  //Input sizes
84
85
  .input-mini {
85
- width: 60px;
86
+ width: 16.667%;
86
87
  }
87
88
 
88
89
  .input-small {
89
- width: 90px;
90
+ width: 33.34%;
90
91
  }
91
92
 
92
93
  .input-medium {
93
- width: 150px;
94
+ width: 50%;
94
95
  }
95
96
 
96
97
  .input-large {
97
- width: 210px;
98
+ width: 66.668%;
98
99
  }
99
100
 
100
101
  .input-xlarge {
101
- width: 270px;
102
+ width: 83.335%;
102
103
  }
103
104
 
104
- .input-xxlarge {
105
- width: 350px;
105
+ .input-block {
106
+ width: 100%;
106
107
  }
107
108
 
108
109
  /* Inline Forms */
@@ -111,12 +112,18 @@ input[type="color"],
111
112
  .horizontal-form {
112
113
  input,
113
114
  textarea,
114
- select {
115
+ select,
116
+ .form-fields,
117
+ .checkbox-fields {
115
118
  display: inline-block;
116
119
  margin-bottom: 0;
117
120
  vertical-align: middle;
118
121
  }
119
122
 
123
+ .form-fields {
124
+ margin-top: 4px;
125
+ }
126
+
120
127
  label {
121
128
  display: inline-block;
122
129
  }
@@ -130,7 +137,7 @@ input[type="color"],
130
137
  /* Horizontal form */
131
138
  /* --------------- */
132
139
  .horizontal-form {
133
- .furatto-controls {
140
+ .form-fields {
134
141
  display: block;
135
142
  margin-bottom: 10px;
136
143
 
@@ -141,54 +148,31 @@ input[type="color"],
141
148
  }
142
149
  }
143
150
 
144
- .furatto-actions {
151
+ .form-actions {
145
152
  margin-left: 184px;
146
153
  }
147
154
  }
148
155
 
149
- /* Login Form */
150
- /* ------------ */
151
- .login-form {
152
- width: 30%;
153
- text-align: center;
154
-
155
- input[type="text"],
156
- input[type="password"],
157
- input[type="email"] {
158
- display: block;
159
- width: 96%;
160
- height: 35px;
161
- padding: 0px 0px 0px 10px;
162
- height: 42px;
163
- background: #fcfcfc;
164
- }
165
-
166
- .furatto-login-icon {
167
- margin-bottom: 20px;
168
- }
169
-
170
- .login-header {
171
- font-size: $base-font-size + 10;
172
- margin: 0;
173
- color: $dark-gray;
174
- }
175
- }
176
-
177
156
  /* Centered forms */
178
157
  /* -------------- */
179
158
  .centered-form {
180
- margin: 0 auto;
159
+ @include center-block;
181
160
  }
182
161
 
183
162
  /* Level up the label on for checkboxes */
184
163
  /* ------------------------------------ */
185
- label.checkbox {
164
+ label.checkbox-label {
165
+ display: inline-block;
186
166
  position: relative;
187
167
  top: -4px;
188
168
  margin-left: 5px;
189
169
  margin-right: 5px;
190
170
  }
191
171
 
172
+ label.radiobutton-label {
173
+ @extend .checkbox-label;
174
+ }
175
+
192
176
  label {
193
177
  @include touch-callout;
194
178
  }
@@ -207,27 +191,12 @@ textarea[disabled] {
207
191
 
208
192
  /* Input states */
209
193
  /* ------------ */
210
- .info {
211
- textarea,
212
- input[type="text"],
213
- input[type="password"],
214
- input[type="datetime"],
215
- input[type="datetime-local"],
216
- input[type="date"],
217
- input[type="month"],
218
- input[type="time"],
219
- input[type="week"],
220
- input[type="number"],
221
- input[type="email"],
222
- input[type="url"],
223
- input[type="search"],
224
- input[type="tel"],
225
- input[type="color"] {
226
- color: $dark-blue;
227
- border: 1px solid $dark-blue;
194
+ .form-fields-success{
195
+
196
+ .form-fields {
197
+ color: $dark-green;
228
198
  }
229
- }
230
- .success{
199
+
231
200
  textarea,
232
201
  input[type="text"],
233
202
  input[type="password"],
@@ -247,7 +216,10 @@ textarea[disabled] {
247
216
  border: 1px solid $dark-green;
248
217
  }
249
218
  }
250
- .warning{
219
+ .form-fields-warning{
220
+ .form-fields {
221
+ color: $dark-orange;
222
+ }
251
223
  textarea,
252
224
  input[type="text"],
253
225
  input[type="password"],
@@ -267,7 +239,11 @@ textarea[disabled] {
267
239
  border: 1px solid $dark-orange;
268
240
  }
269
241
  }
270
- .error{
242
+ .form-fields-error{
243
+ .form-fields {
244
+ color: $dark-red;
245
+ }
246
+
271
247
  textarea,
272
248
  input[type="text"],
273
249
  input[type="password"],
@@ -288,3 +264,44 @@ textarea[disabled] {
288
264
  }
289
265
  }
290
266
 
267
+ /* Form controls */
268
+ /* ------------- */
269
+
270
+ .form-fields {
271
+ margin: 8px 0;
272
+
273
+ .help-hint {
274
+ display: inline-block;
275
+ }
276
+
277
+
278
+ label {
279
+ font-weight: bold;
280
+ }
281
+ }
282
+
283
+ .checkbox-fields {
284
+ vertical-align: middle;
285
+ margin: 8px 0 15px 0;
286
+
287
+
288
+ input[type="checkbox"] {
289
+ margin-right: 5px;
290
+ }
291
+ }
292
+
293
+
294
+ @media only screen and (max-width: 768px) {
295
+ .horizontal-form {
296
+ .form-fields {
297
+ label {
298
+ display: block;
299
+ text-align: left;
300
+ }
301
+ }
302
+
303
+ .form-actions {
304
+ margin-left: 0;
305
+ }
306
+ }
307
+ }
@@ -9,48 +9,52 @@
9
9
  */
10
10
 
11
11
 
12
- // Fixed (940px)
13
- @include grid-core($gridColumnWidth, $gridGutterWidth);
14
-
15
- // Fluid (940px)
16
- @include grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth);
17
-
18
12
  // Reset utility classes due to specificity
19
- [class*="span"].hide,
20
- .row-fluid [class*="span"].hide {
13
+ [class*="col-"].hide,
14
+ .row [class*="col-"].hide {
21
15
  display: none;
22
16
  }
23
17
 
24
- [class*="span"].pull-right,
25
- .row-fluid [class*="span"].pull-right {
18
+ [class*="col-"].pull-right,
19
+ .row [class*="col-"].pull-right {
26
20
  float: right;
27
21
  }
28
22
 
29
- //Adds a background to the columns for demo purposes
30
- .grid-demo {
31
- margin-bottom: 10px;
23
+ .row {
24
+ text-rendering: optimizespeed;
25
+ @include clearfix();
32
26
 
33
- [class*="span"] {
34
- background: $light-gray;
35
- @include border-radius(3px);
36
- text-align: center;
37
- line-height: $base-line-height;
27
+ [class*="col-"]:first-child {
28
+ margin-left: 0px;
38
29
  }
39
30
  }
40
31
 
41
- .nested-grid-demo {
42
- background: $light-gray;
43
- [class*="span"] {
44
- padding-bottom: 10px;
45
- text-align: center;
32
+ .row + .row {
33
+ margin-top: 2px;
34
+ }
35
+
36
+ //Borders and paddings are applied inside the div element
37
+ //This prevents the columns to stack by a border or padding
38
+ [class*="col-"] {
39
+ zoom: 1;
40
+ letter-spacing: normal;
41
+ word-spacing: normal;
42
+ vertical-align: top;
43
+ text-rendering: auto;
44
+ float: left;
45
+ padding: 8px;
46
+ }
47
+
48
+ @include build-column-grids;
49
+
50
+ @media (max-width: 767px) {
51
+ .row > [class *= "col-"] {
52
+ width: 100%;
53
+ margin-left: 0;
54
+ margin-bottom: 2px;
46
55
  }
47
56
 
48
- .row-fluid {
49
- .row-fluid {
50
- [class*="span"] {
51
- background: darken($light-gray, 15%);
52
- @include border-radius(3px);
53
- }
54
- }
57
+ .container-center {
58
+ width: 95%;
55
59
  }
56
60
  }
@@ -9,12 +9,13 @@
9
9
 
10
10
 
11
11
  .img {
12
- width: auto;
13
12
  max-width: 100%;
14
13
  height: auto;
15
14
  vertical-align: middle;
16
- @include box-sizing(border-box);
17
- margin: 10px;
15
+ }
16
+
17
+ .img-block {
18
+ width: 100%;
18
19
  }
19
20
 
20
21
  .img-hover {
@@ -32,13 +33,32 @@
32
33
  @include border-radius(2%);
33
34
  }
34
35
 
35
- .img-selected {
36
- border: 3px solid rgba($img-border, 0.8);
37
- opacity: .9;
38
- }
39
-
40
36
  .img-polaroid {
41
37
  padding: 4px;
42
38
  border: 1px solid rgba(#000, 0.2);
43
39
  background: #FFF;
44
40
  }
41
+
42
+ .img-frame {
43
+ display: inline-block;
44
+ border: 1px solid #ccc;
45
+
46
+ img {
47
+ @extend .img;
48
+ margin: 5px;
49
+ }
50
+
51
+ &.img-circular {
52
+ img {
53
+ @extend .img-circular;
54
+ }
55
+ }
56
+
57
+ &.img-selected {
58
+ @extend .img-selected;
59
+ img {
60
+ margin: 0;
61
+ }
62
+ }
63
+
64
+ }
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  .label, .badge {
11
- display: inline-block;
11
+ @include inline-block;
12
12
  padding: 2px 4px;
13
13
  font-size: $base-font-size * .846;
14
14
  font-weight: bold;
@@ -16,8 +16,9 @@
16
16
  color: #FFF;
17
17
  vertical-align: baseline;
18
18
  white-space: nowrap;
19
- text-shadow: 0 -1px 0 rgba(0,0,0,.20);
19
+ /*text-shadow: 0 -1px 0 rgba(0,0,0,.20);*/
20
20
  background: $gray;
21
+ @include border-radius(2px);
21
22
  }
22
23
 
23
24
  //Badges border radius
@@ -9,8 +9,6 @@
9
9
 
10
10
  //Clears the float from any element
11
11
  @mixin clearfix {
12
- *zoom: 1;
13
-
14
12
  &:before, &:after {
15
13
  display: table;
16
14
  content: "";
@@ -27,6 +25,59 @@
27
25
  *display: inline;
28
26
  }
29
27
 
28
+ @mixin center-block {
29
+ width: 100%;
30
+ margin-left: auto;
31
+ margin-right: auto;
32
+ }
33
+
34
+ @mixin hyphens($mode: auto) {
35
+ word-wrap: break-word;
36
+ -webkit-hyphens: $mode;
37
+ -moz-hyphens: $mode;
38
+ -ms-hyphens: $mode; // IE10+
39
+ -o-hyphens: $mode;
40
+ hyphens: $mode;
41
+ }
42
+
43
+ //Credits to bootstrap
44
+ @mixin responsive-invisibility {
45
+ display: none !important;
46
+
47
+ tr, th, td {
48
+ display: none !important;
49
+ }
50
+ }
51
+
52
+ @mixin responsive-visibility {
53
+ display: block !important;
54
+
55
+ &.btn {
56
+ display: inline-block !important;
57
+ }
58
+
59
+ tr {
60
+ display: table-row !important;
61
+ }
62
+
63
+ th, td {
64
+ display: table-cell !important;
65
+ }
66
+ }
67
+ @mixin opacity ( $opacity ) {
68
+ opacity: $opacity;
69
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=" $opacity * 100 ")";
70
+ filter: alpha(opacity= $opacity* 100 );
71
+ zoom: 1;
72
+ }
73
+
74
+
75
+ @mixin img-responsive {
76
+ display: block;
77
+ max-width: 100%;
78
+ height: auto;
79
+ }
80
+
30
81
  // FORMS
31
82
  // --------------------------------------------------
32
83
 
@@ -34,7 +85,7 @@
34
85
  @mixin input-block-level {
35
86
  display: block;
36
87
  width: 100%;
37
- min-height: $inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
88
+ min-height: $input-height; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
38
89
  @include box-sizing(border-box); // Makes inputs behave like true block-level elements
39
90
  }
40
91
 
@@ -69,167 +120,6 @@
69
120
  border-bottom: 1px solid $bottom;
70
121
  }
71
122
 
72
- // Grid System
73
- // -----------
74
-
75
- // Centered container element
76
- @mixin container-fixed() {
77
- margin-right: auto;
78
- margin-left: auto;
79
- @include clearfix();
80
- }
81
-
82
- // Table columns
83
- @mixin tableColumns($columnSpan: 1) {
84
- float: none; // undo default grid column styles
85
- width: (($gridColumnWidth) * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1)) - 16; // 16 is total padding on left and right of table cells
86
- margin-left: 0; // undo default grid column styles
87
- }
88
-
89
- // Make a Grid
90
- // Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
91
- @mixin makeRow() {
92
- margin-left: $gridGutterWidth * -1;
93
- @include clearfix();
94
- }
95
- @mixin makeColumn($columns: 1, $offset: 0) {
96
- float: left;
97
- margin-left: ($gridColumnWidth * $offset) + ($gridGutterWidth * ($offset - 1)) + ($gridGutterWidth * 2);
98
- width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
99
- }
100
-
101
- // The Grid
102
- @mixin grid-core($gridColumnWidth, $gridGutterWidth) {
103
- .row {
104
- margin-left: $gridGutterWidth * -1;
105
- @include clearfix();
106
- }
107
-
108
- [class*="span"] {
109
- float: left;
110
- min-height: 1px; // prevent collapsing columns
111
- margin-left: $gridGutterWidth;
112
- }
113
-
114
- // generate .spanX and .offsetX
115
- @include grid-core-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth);
116
- @include grid-core-offset-x($gridColumns, $gridColumnWidth, $gridGutterWidth);
117
- }
118
-
119
- @mixin grid-core-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
120
- @for $i from 1 through $gridColumns {
121
- .span#{$i} { @include grid-core-span($i, $gridColumnWidth, $gridGutterWidth); }
122
- }
123
- }
124
-
125
- @mixin grid-core-offset-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
126
- @for $i from 1 through $gridColumns {
127
- .offset#{$i} { @include grid-core-offset($i, $gridColumnWidth, $gridGutterWidth); }
128
- }
129
- }
130
-
131
- @mixin grid-core-span($columns, $gridColumnWidth, $gridGutterWidth) {
132
- width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
133
- }
134
-
135
- @mixin grid-core-offset($columns, $gridColumnWidth, $gridGutterWidth) {
136
- margin-left: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns + 1));
137
- }
138
-
139
- @mixin grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth) {
140
- .row-fluid {
141
- width: 100%;
142
- @include clearfix();
143
- [class*="span"] {
144
- @include input-block-level();
145
- float: left;
146
- margin-left: $fluidGridGutterWidth;
147
- *margin-left: $fluidGridGutterWidth - (.5 / $gridRowWidth * 100px * 1%);
148
- }
149
-
150
- [class*="span"]:nth-of-type(1) {
151
- margin-left: 0px;
152
- }
153
-
154
- [class*="span"]:first-child {
155
- margin-left: 0px;
156
- }
157
-
158
- // Space grid-sized controls properly if multiple per line
159
- .controls-row [class*="span"] + [class*="span"] {
160
- margin-left: $fluidGridGutterWidth;
161
- }
162
-
163
- // generate .spanX and .offsetX
164
- @include grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
165
- @include grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
166
- }
167
- }
168
-
169
- @mixin grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
170
- @for $i from 1 through $gridColumns {
171
- .span#{$i} { @include grid-fluid-span($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
172
- }
173
- }
174
-
175
- @mixin grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
176
- @for $i from 1 through $gridColumns {
177
- .offset#{$i} { @include grid-fluid-offset($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
178
- .offset#{$i}:first-child { @include grid-fluid-offset-first-child($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
179
- }
180
- }
181
-
182
- @mixin grid-fluid-span($columns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
183
- width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1));
184
- *width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) - (.5 / $gridRowWidth * 100px * 1%);
185
- }
186
-
187
- @mixin grid-fluid-offset($columns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
188
- margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) + ($fluidGridGutterWidth * 2);
189
- *margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) - (.5 / $gridRowWidth * 100px * 1%) + ($fluidGridGutterWidth * 2) - (.5 / $gridRowWidth * 100px * 1%);
190
- }
191
-
192
- @mixin grid-fluid-offset-first-child($columns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
193
- margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) + ($fluidGridGutterWidth);
194
- *margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) - (.5 / $gridRowWidth * 100px * 1%) + $fluidGridGutterWidth - (.5 / $gridRowWidth * 100px * 1%);
195
- }
196
-
197
- @mixin grid-input($gridColumnWidth, $gridGutterWidth) {
198
- input,
199
- textarea,
200
- .uneditable-input {
201
- margin-left: 0; // override margin-left from core grid system
202
- }
203
-
204
- // Space grid-sized controls properly if multiple per line
205
- .controls-row [class*="span"] + [class*="span"] {
206
- margin-left: $gridGutterWidth;
207
- }
208
-
209
- // generate .spanX
210
- @include grid-input-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth);
211
- }
212
-
213
- @mixin grid-input-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
214
- @for $i from 1 through $gridColumns {
215
- input.span#{$i},
216
- textarea.span#{$i},
217
- .uneditable-input.span#{$i} {
218
- @include grid-input-span($i, $gridColumnWidth, $gridGutterWidth);
219
- }
220
- }
221
- }
222
-
223
- @mixin grid-input-span($columns, $gridColumnWidth, $gridGutterWidth) {
224
- width: (($gridColumnWidth) * $columns) + ($gridGutterWidth * ($columns - 1)) - 14;
225
- }
226
-
227
- @mixin active-navbar-link-arrow($navbar-height: 40px) {
228
- $default-position: -6px;
229
- $default-navbar-height: 40px;
230
- top: ((($navbar-height - $default-navbar-height) / 5) * -3) + $default-position;
231
- }
232
-
233
123
  @mixin touch-callout {
234
124
  -webkit-touch-callout: none;
235
125
  -webkit-user-select: none;
@@ -281,3 +171,30 @@
281
171
  }
282
172
  }
283
173
  }
174
+
175
+ @mixin build-column-grids($columns: 12) {
176
+ $unit-width: (100 / $columns);
177
+ $column-factor: 0.1833;
178
+
179
+
180
+ @for $i from 1 through $columns {
181
+ .col-#{$i} {
182
+ $current-width: ($unit-width * $i) - $column-factor;
183
+ width: percentage($current-width / 100);
184
+ margin-left: percentage($column-factor / 100);
185
+ }
186
+ }
187
+
188
+ }
189
+
190
+ @mixin backface-visibility($property: hidden) {
191
+ -webkit-backface-visibility: $property;
192
+ -moz-backface-visibility: $property;
193
+ backface-visibility: $property;
194
+ }
195
+
196
+ @mixin perspective($value: 1300px) {
197
+ -webkit-perspective: $value;
198
+ -moz-perspective: $value;
199
+ perspective: $value;
200
+ }