furatto 0.0.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -18
  3. data/furatto.gemspec +4 -0
  4. data/lib/furatto.rb +3 -10
  5. data/lib/furatto/version.rb +1 -1
  6. data/lib/furatto_rails_helpers/furatto_helpers.rb +19 -0
  7. data/lib/generators/furatto/install_generator.rb +46 -0
  8. data/lib/generators/furatto/templates/application.html.erb +28 -0
  9. data/vendor/assets/javascripts/furatto.js +1822 -0
  10. data/vendor/assets/stylesheets/furatto.scss +76 -0
  11. data/vendor/assets/stylesheets/furatto/_alerts.scss +130 -0
  12. data/vendor/assets/stylesheets/furatto/_base.scss +138 -0
  13. data/vendor/assets/stylesheets/furatto/_button-groups.scss +85 -0
  14. data/vendor/assets/stylesheets/furatto/_buttons.scss +266 -0
  15. data/{app → vendor}/assets/stylesheets/furatto/_date_picker.date.scss +0 -0
  16. data/{app → vendor}/assets/stylesheets/furatto/_date_picker.scss +1 -0
  17. data/{app → vendor}/assets/stylesheets/furatto/_dropdown.scss +0 -0
  18. data/vendor/assets/stylesheets/furatto/_experimental.scss +81 -0
  19. data/{app → vendor}/assets/stylesheets/furatto/_footer.scss +0 -0
  20. data/vendor/assets/stylesheets/furatto/_forms.scss +269 -0
  21. data/vendor/assets/stylesheets/furatto/_functions.scss +18 -0
  22. data/vendor/assets/stylesheets/furatto/_global.scss +51 -0
  23. data/vendor/assets/stylesheets/furatto/_grid.scss +142 -0
  24. data/vendor/assets/stylesheets/furatto/_images.scss +122 -0
  25. data/vendor/assets/stylesheets/furatto/_labels.scss +97 -0
  26. data/vendor/assets/stylesheets/furatto/_media_queries.scss +200 -0
  27. data/vendor/assets/stylesheets/furatto/_mixins.scss +143 -0
  28. data/vendor/assets/stylesheets/furatto/_modal.scss +297 -0
  29. data/vendor/assets/stylesheets/furatto/_navigation.scss +127 -0
  30. data/vendor/assets/stylesheets/furatto/_navigation_bar.scss +338 -0
  31. data/vendor/assets/stylesheets/furatto/_off_screen.scss +269 -0
  32. data/vendor/assets/stylesheets/furatto/_pagination.scss +78 -0
  33. data/vendor/assets/stylesheets/furatto/_responsive_utilities.scss +244 -0
  34. data/vendor/assets/stylesheets/furatto/_selectors.scss +44 -0
  35. data/vendor/assets/stylesheets/furatto/_settings.scss +0 -0
  36. data/vendor/assets/stylesheets/furatto/_suraido.scss +214 -0
  37. data/vendor/assets/stylesheets/furatto/_tables.scss +166 -0
  38. data/vendor/assets/stylesheets/furatto/_tabs.scss +26 -0
  39. data/vendor/assets/stylesheets/furatto/_toolbars.scss +199 -0
  40. data/vendor/assets/stylesheets/furatto/_tooltips.scss +92 -0
  41. data/vendor/assets/stylesheets/furatto/_typography.scss +243 -0
  42. data/{app → vendor}/assets/stylesheets/normalize.scss +22 -19
  43. metadata +86 -49
  44. data/app/assets/fonts/fontawesome/FontAwesome.otf +0 -0
  45. data/app/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  46. data/app/assets/fonts/fontawesome/fontawesome-webfont.svg +0 -399
  47. data/app/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  48. data/app/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  49. data/app/assets/fonts/meteocons-webfont.eot +0 -0
  50. data/app/assets/fonts/meteocons-webfont.svg +0 -81
  51. data/app/assets/fonts/meteocons-webfont.ttf +0 -0
  52. data/app/assets/fonts/meteocons-webfont.woff +0 -0
  53. data/app/assets/javascripts/furatto.js +0 -5978
  54. data/app/assets/javascripts/furatto.min.js +0 -3
  55. data/app/assets/stylesheets/font-awesome.css.erb +0 -2495
  56. data/app/assets/stylesheets/furatto.scss +0 -86
  57. data/app/assets/stylesheets/furatto/_alerts.scss +0 -80
  58. data/app/assets/stylesheets/furatto/_base.scss +0 -99
  59. data/app/assets/stylesheets/furatto/_buttons.scss +0 -125
  60. data/app/assets/stylesheets/furatto/_code.scss +0 -67
  61. data/app/assets/stylesheets/furatto/_dashboard.scss +0 -36
  62. data/app/assets/stylesheets/furatto/_fonts.scss +0 -26
  63. data/app/assets/stylesheets/furatto/_forms.scss +0 -307
  64. data/app/assets/stylesheets/furatto/_grid.scss +0 -60
  65. data/app/assets/stylesheets/furatto/_images.scss +0 -64
  66. data/app/assets/stylesheets/furatto/_labels.scss +0 -44
  67. data/app/assets/stylesheets/furatto/_mixins.scss +0 -200
  68. data/app/assets/stylesheets/furatto/_modal.scss +0 -365
  69. data/app/assets/stylesheets/furatto/_nav.scss +0 -104
  70. data/app/assets/stylesheets/furatto/_navbar.scss +0 -216
  71. data/app/assets/stylesheets/furatto/_panel.scss +0 -277
  72. data/app/assets/stylesheets/furatto/_responsive_navbar.scss +0 -195
  73. data/app/assets/stylesheets/furatto/_responsive_tables.scss +0 -28
  74. data/app/assets/stylesheets/furatto/_responsive_utilities.scss +0 -182
  75. data/app/assets/stylesheets/furatto/_responsiveslides.scss +0 -185
  76. data/app/assets/stylesheets/furatto/_tables.scss +0 -90
  77. data/app/assets/stylesheets/furatto/_toolbars.scss +0 -116
  78. data/app/assets/stylesheets/furatto/_tooltips.scss +0 -131
  79. data/app/assets/stylesheets/furatto/_typography.scss +0 -224
  80. data/app/assets/stylesheets/furatto/_variables.scss +0 -625
@@ -0,0 +1,44 @@
1
+ //Selectors
2
+
3
+ %text-truncate {
4
+ overflow: hidden;
5
+ text-overflow: ellipsis;
6
+ white-space: nowrap;
7
+ vertical-align: top;
8
+ display: inline-block; //ensures element has block properties
9
+ }
10
+
11
+ //Clears the float from any element
12
+ %clearfix {
13
+ &:before, &:after {
14
+ display: table;
15
+ content: "";
16
+ }
17
+
18
+ &:after {
19
+ clear: both;
20
+ }
21
+ }
22
+
23
+ // Centers a block
24
+ %center-block {
25
+ display: block;
26
+ margin-left: auto;
27
+ margin-right: auto;
28
+ }
29
+
30
+ // Aligns the content vertically speaking
31
+ %vertical-alignment {
32
+ position: relative;
33
+ top: 50%;
34
+ @include transform(translateY(-50%));
35
+ margin: 0;
36
+ }
37
+
38
+ // Wrap words
39
+ %word-wrap {
40
+ -ms-word-break: break-all;
41
+ word-break: break-all;
42
+ word-break: break-word;
43
+ @include hyphens;
44
+ }
File without changes
@@ -0,0 +1,214 @@
1
+ //Suraido slider
2
+ //
3
+
4
+ //
5
+ //@variables
6
+ //
7
+
8
+ //General
9
+ $suraido-slider-min-height: 330px !default;
10
+
11
+ $suraido-item-min-height: 25rem !default;
12
+
13
+ //Pagination
14
+ $suraido-pagination-position: 0 !default;
15
+ $suraido-list-width: 300% !default;
16
+ $suraido-list-item-width: 33% !default;
17
+ $suraido-pagination-z-index: 20 !default;
18
+
19
+ //Dots
20
+ $suraido-dot-size: 0.71428571rem !default;
21
+ $suraido-dot-separation: 0.28571429rem !default;
22
+ $suraido-dot-border-width: 0.14285714rem !default;
23
+ $suraido-dot-border-style: solid !default;
24
+ $suraido-dot-border-color: #CCC !default;
25
+ $suraido-dot-radius: 0.42857143rem !default;
26
+ $suraido-dot-opacity: 0.4 !default;
27
+ $suraido-include-dot-transition: true !default;
28
+ $suraido-dot-transition: background 0.5s, opacity 0.5s !default;
29
+ $suraido-dot-active-background-color: #444 !default;
30
+ $suraido-dot-active-opacity: 1 !default;
31
+ $suraido-dot-background: #CCC;
32
+
33
+ //Arrows
34
+ $suraido-arrows-color: #FFF !default;
35
+ $suraido-arrows-z-index: $suraido-pagination-z-index - 10 !default;
36
+ $suraido-arrow-height: 60px !default;
37
+ $suraido-arrow-line-height: $suraido-arrow-height !default;
38
+ $suraido-next-arrow-padding: 15px !default;
39
+ $suraido-prev-arrow-padding: 15px !default;
40
+
41
+ //Caption
42
+ $suraido-caption-font-size: 14px !default;
43
+ $suraido-caption-bottom-position: 30px !default;
44
+ $suraido-caption-height: 50px !default;
45
+ $suraido-caption-color: #FFF !default;
46
+ $suraido-caption-font-weight: lighter !default;
47
+ $suraido-caption-padding-top: 10px !default;
48
+ $suraido-caption-padding-left: 10px !default;
49
+ $suraido-caption-background: #000 !default;
50
+ $suraido-caption-background-alpha: 0.5 !default;
51
+
52
+
53
+
54
+ //
55
+ //@mixin slider-base
56
+ //
57
+ @mixin slider-base($list-width: $suraido-list-width,
58
+ $list-item-width: $suraido-list-item-width,
59
+ $list-item-min-height: $suraido-item-min-height,
60
+ $slider-min-height: $suraido-slider-min-height) {
61
+ position: relative;
62
+ overflow: auto;
63
+ width: 100%;
64
+ @include backface-visibility(hidden);
65
+ min-height: $slider-min-height;
66
+
67
+ ul {
68
+ margin: 0;
69
+ width: $list-width;
70
+ list-style: none;
71
+
72
+ li {
73
+ display: block;
74
+ float: left;
75
+ width: $list-item-width;
76
+ min-height: $list-item-min-height;
77
+ @include background-size(100% 100%);
78
+ }
79
+ }
80
+ }
81
+
82
+ //
83
+ //@mixin slider-pagination
84
+ //
85
+ @mixin slider-pagination($pagination-position: $suraido-pagination-position) {
86
+ position: absolute;
87
+ left: 0;
88
+ right: 0;
89
+ bottom: $pagination-position;
90
+ margin: 0;
91
+ text-align: center;
92
+ z-index: $suraido-pagination-z-index;
93
+ }
94
+
95
+ //
96
+ //@mixin slider-dot
97
+ //
98
+ @mixin slider-pagination-dot($dot-size: $suraido-dot-size, $dot-separation: $suraido-dot-separation,
99
+ $dot-border-width: $suraido-dot-border-width,
100
+ $dot-border-style: $suraido-dot-border-style,
101
+ $dot-border-color: $suraido-dot-border-color,
102
+ $dot-radius: $suraido-dot-radius,
103
+ $dot-opacity: $suraido-dot-opacity,
104
+ $include-dot-transition: $suraido-include-dot-transition,
105
+ $dot-active-background-color: $suraido-dot-active-background-color,
106
+ $dot-active-opacity: $suraido-dot-active-opacity,
107
+ $dot-background: $suraido-dot-background) {
108
+
109
+ display: inline-block;
110
+ width: $dot-size;
111
+ height: $dot-size;
112
+ margin: 0 $dot-separation;
113
+ text-indent: -999em;
114
+ @include border-radius($dot-radius);
115
+ @include opacity($dot-opacity);
116
+ cursor: pointer;
117
+ background: $dot-background;
118
+ @if($include-dot-transition) {
119
+ @include transition($suraido-dot-transition);
120
+ }
121
+
122
+ &.active {
123
+ background: $dot-active-background-color;
124
+ @include opacity($dot-active-opacity);
125
+ }
126
+ }
127
+
128
+ //
129
+ //@mixin
130
+ //
131
+ @mixin slider-arrows($arrows-color: $suraido-arrows-color,
132
+ $arrows-z-index: $suraido-arrows-z-index) {
133
+ position: absolute;
134
+ top: 0;
135
+ color: $arrows-color;
136
+ display: block;
137
+ width: 100%;
138
+ height: 100%;
139
+ z-index: $arrows-z-index;
140
+ }
141
+
142
+ //
143
+ //@mixin
144
+ //
145
+ @mixin slider-arrow($arrow-height: $suraido-arrow-height,
146
+ $arrow-line-height: $suraido-arrow-line-height,
147
+ $prev-arrow-padding: $suraido-prev-arrow-padding,
148
+ $next-arrow-padding: $suraido-next-arrow-padding) {
149
+ display: inline;
150
+ cursor: pointer;
151
+ position: relative;
152
+ height: $arrow-height;
153
+ line-height: $arrow-line-height;
154
+ top: 45%;
155
+
156
+ &.prev {
157
+ float: left;
158
+ padding-left: $prev-arrow-padding;
159
+ }
160
+
161
+ &.next {
162
+ padding-right: $next-arrow-padding;
163
+ float: right;
164
+ }
165
+ }
166
+
167
+ //
168
+ //@mixin
169
+ //
170
+ @mixin slider-caption($caption-font-size: $suraido-caption-font-size,
171
+ $caption-bottom-position: $suraido-caption-bottom-position,
172
+ $caption-height: $suraido-caption-height,
173
+ $caption-color: $suraido-caption-color,
174
+ $caption-font-weight: $suraido-caption-font-weight,
175
+ $caption-padding-top: $suraido-caption-padding-top,
176
+ $caption-padding-left: $suraido-caption-padding-left,
177
+ $caption-background: $suraido-caption-background,
178
+ $caption-background-alpha: $suraido-caption-background-alpha) {
179
+ font-size: $caption-font-size;
180
+ position: absolute;
181
+ bottom: $caption-bottom-position;
182
+ height: $caption-height;
183
+ overflow: hidden;
184
+ background: rgba($caption-background, $caption-background-alpha);
185
+ color: $caption-color;
186
+ width: 100%;
187
+ padding-top: $caption-padding-top;
188
+ padding-left: $caption-padding-left;
189
+ font-weight: $caption-font-weight;
190
+ }
191
+
192
+ .suraido-container {
193
+ @include slider-base;
194
+
195
+ .caption {
196
+ @include slider-caption;
197
+ }
198
+
199
+ .pagination {
200
+ @include slider-pagination;
201
+
202
+ .dot {
203
+ @include slider-pagination-dot;
204
+ }
205
+ }
206
+
207
+ .arrows {
208
+ @include slider-arrows;
209
+
210
+ .arrow {
211
+ @include slider-arrow;
212
+ }
213
+ }
214
+ }
@@ -0,0 +1,166 @@
1
+ //Tables
2
+
3
+ //
4
+ //@variables
5
+ //
6
+ @import "functions";
7
+
8
+ //General settings
9
+ $table-background-color: #FFF !default;
10
+ $table-margin-bottom: px-to-rems(20) !default;
11
+ $table-cell-padding: px-to-rems(10) !default;
12
+ $table-line-height: px-to-rems(18) !default;
13
+ $table-cell-alignment: left !default;
14
+ $table-border-color: #d2d2d2 !default;
15
+ $table-border-width: 1px !default;
16
+ $table-border-style: solid !default;
17
+ $table-color: #666 !default;
18
+ $table-font-weight: 300 !default;
19
+
20
+ $table-head-font-weight: 500 !default;
21
+ $table-head-letter-spacing: 1px !default;
22
+ $headers-with-uppercase: false !default;
23
+
24
+ //Variations
25
+ $table-condensed-padding: 0.28571429rem 0.35714286rem !default;
26
+ $table-striped-background-color: #f9f9f9 !default;
27
+ $table-bordered-border-width: 1px !default;
28
+ $table-bordered-border-style: solid !default;
29
+
30
+ //Media queries
31
+ $media-display: "only screen" !default;
32
+ $media-max-width: 768px !default; //~ 768px
33
+ $media-table-responsive-query: "#{$media-display} and (max-width: #{$media-max-width})" !default;
34
+
35
+ //Responsive tables
36
+ $include-responsive-tables: true !default;
37
+ $table-responsive-pinned-background: #FFF !default;
38
+ $table-responsive-pinned-border-right: 1px solid #CCC !default;
39
+ $table-responsive-pinned-border-left: $table-responsive-pinned-border-right !default;
40
+ $table-responsive-wrapper-border-right: $table-responsive-pinned-border-right !default;
41
+
42
+ //Base table style
43
+ table {
44
+ background-color: $table-background-color;
45
+ margin-bottom: $table-margin-bottom;
46
+ color: $table-color;
47
+ font-weight: $table-font-weight;
48
+ max-width: 100%;
49
+ width: 100%;
50
+ background-color: transparent;
51
+ border-collapse: collapse;
52
+ border-spacing: 0;
53
+ border: none;
54
+
55
+ thead {
56
+ border-bottom: $table-border-width $table-border-style $table-border-color;
57
+ }
58
+
59
+ tr {
60
+ //Cells
61
+ th, td {
62
+ border-top: $table-border-width $table-border-style $table-border-color;
63
+ padding: $table-cell-padding;
64
+ line-height: $table-line-height;
65
+ text-align: $table-cell-alignment;
66
+ vertical-align: top;
67
+ }
68
+
69
+ th {
70
+ font-weight: $table-head-font-weight;
71
+ letter-spacing: $table-head-letter-spacing;
72
+ @if($headers-with-uppercase) {
73
+ text-transform: uppercase;
74
+ }
75
+ }
76
+ }
77
+
78
+ thead tr th { vertical-align: bottom; }
79
+
80
+ //Remove border top from thead
81
+ thead:first-child tr:first-child th,
82
+ thead:first-child tr:first-child td {
83
+ border-top: 0;
84
+ }
85
+
86
+ //Table striped
87
+ &.striped {
88
+ tbody {
89
+ > tr:nth-child(odd) > td,
90
+ > tr:nth-child(odd) > th {
91
+ background-color: $table-striped-background-color;
92
+ }
93
+ }
94
+ }
95
+
96
+ //Table bordered
97
+ &.bordered {
98
+ border: $table-bordered-border-width $table-bordered-border-style $table-border-color;
99
+
100
+ th, td {
101
+ border: $table-bordered-border-width $table-bordered-border-style $table-border-color;
102
+ }
103
+ }
104
+ }
105
+
106
+ @if($include-responsive-tables) {
107
+ //Responsive tables
108
+ @media #{$media-table-responsive-query} {
109
+ table.responsive {
110
+ margin-bottom: 0;
111
+
112
+ td, th {
113
+ position: relative;
114
+ white-space: nowrap;
115
+ overflow: hidden;
116
+ }
117
+
118
+ th:first-child,
119
+ td:first-child,
120
+ &.pinned td {
121
+ display: none;
122
+ }
123
+ }
124
+
125
+ .pinned {
126
+ position: absolute;
127
+ left: 0;
128
+ top: 0;
129
+ background: $table-responsive-pinned-background;
130
+ width: 35%;
131
+ overflow: hidden;
132
+ overflow-x: scroll;
133
+ border-right: $table-responsive-pinned-border-right;
134
+ border-left: $table-responsive-pinned-border-left;
135
+
136
+ table {
137
+ border-right: none;
138
+ border-left: none;
139
+ width: 100%;
140
+
141
+ th,
142
+ td {
143
+ white-space: nowrap;
144
+ }
145
+ }
146
+
147
+ td:last-child {
148
+ border-bottom: 0;
149
+ }
150
+ }
151
+
152
+ div.table-wrapper {
153
+ position: relative;
154
+ margin-bottom: 20px;
155
+ overflow: hidden;
156
+ border-right: $table-responsive-wrapper-border-right;
157
+
158
+ div.scrollable {
159
+ margin-left: 35%;
160
+ overflow: scroll;
161
+ overflow-y: hidden;
162
+ }
163
+ }
164
+ }
165
+ }
166
+
@@ -0,0 +1,26 @@
1
+ //Tabs
2
+
3
+ //
4
+ //@variables
5
+ //
6
+
7
+ $tabu-content-margin-left: $navigation-inline-list-item-margin-left !default;
8
+
9
+ //
10
+ //@mixin tabu
11
+ //
12
+ @mixin tab-content($content-margin-left: $tabu-content-margin-left,
13
+ $content-class-name: "content") {
14
+ margin-left: $content-margin-left;
15
+ .#{$content-class-name} {
16
+ display: none;
17
+
18
+ &.active {
19
+ display: block;
20
+ }
21
+ }
22
+ }
23
+
24
+ .tabu-content {
25
+ @include tab-content;
26
+ }