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,199 @@
1
+ //Toolbars
2
+
3
+ @import 'functions';
4
+
5
+ //
6
+ //@variables
7
+ //
8
+
9
+ $toolbar-background-color: #232323 !default;
10
+ $toolbar-border-radius: 0px !default;
11
+ $toolbar-item-height: 34px !default;
12
+ $toolbar-item-line-height: $toolbar-item-height !default;
13
+ $toolbar-item-width: 44px !default;
14
+ $toolbar-item-color: #FFF !default;
15
+ $toolbar-arrow-border-width: 7px !default;
16
+
17
+
18
+ //Toolbar variations
19
+ $include-toolbar-variations: false !default;
20
+ $toolbar-primary-background-color: #3498db !default;
21
+ $toolbar-danger-background-color: #e74c3c !default;
22
+ $toolbar-warning-background-color: #f39c12 !default;
23
+
24
+ //Toolbar positions
25
+ $include-toolbar-top-position: true !default;
26
+ $include-toolbar-bottom-position: true !default;
27
+ $include-toolbar-left-position: true !default;
28
+ $include-toolbar-right-position: true !default;
29
+
30
+ .tool-container {
31
+ background-color: $toolbar-background-color;
32
+ position: absolute;
33
+ @include border-radius($toolbar-border-radius);
34
+
35
+ &.tool-top,
36
+ &.tool-bottom {
37
+ height: $toolbar-item-height;
38
+ }
39
+
40
+ @if($include-toolbar-variations) {
41
+ &.primary {
42
+ background: $toolbar-primary-background-color;
43
+ }
44
+ &.danger {
45
+ background: $toolbar-danger-background-color;
46
+ }
47
+ &.warning {
48
+ background: $toolbar-warning-background-color;
49
+ }
50
+ }
51
+ }
52
+
53
+ .tool-items {
54
+ height: 100%;
55
+
56
+ a {
57
+ color: $toolbar-item-color;
58
+ }
59
+ }
60
+
61
+ .tool-top .tool-item, .tool-bottom .tool-item {
62
+ float: left;
63
+ }
64
+
65
+ .tool-left .tool-item, .tool-right .tool-item {
66
+ height: $toolbar-item-height;
67
+ }
68
+
69
+
70
+ .tool-item {
71
+ height: 100%;
72
+ display: block;
73
+ width: $toolbar-item-width;
74
+ text-align: center;
75
+
76
+ &:hover { text-decoration: none;}
77
+
78
+ i {
79
+ line-height: $toolbar-item-line-height;
80
+ }
81
+ }
82
+
83
+ .tool-item.selected, .tool-item:hover {
84
+ background: darken($toolbar-background-color, 5%);
85
+
86
+ @if($include-toolbar-variations) {
87
+ &.primary {
88
+ background: darken($toolbar-primary-background-color, 5%);
89
+ }
90
+
91
+ &.danger {
92
+ background: darken($toolbar-danger-background-color, 5%);
93
+ }
94
+
95
+ &.warning {
96
+ background: darken($toolbar-warning-background-color, 5%);
97
+ }
98
+ }
99
+ }
100
+
101
+ .tool-container .arrow {
102
+ width:0;
103
+ height:0;
104
+ position: absolute;
105
+ border-width: $toolbar-arrow-border-width;
106
+ border-style: solid;
107
+ }
108
+
109
+ @if ($include-toolbar-top-position) {
110
+ .tool-container.tool-top .arrow {
111
+ border-color: $toolbar-bg-color transparent transparent;
112
+ left: 50%;
113
+ bottom: calculate-toolbar-arrow-position($toolbar-arrow-border-width);
114
+ margin-left: -1 * $toolbar-arrow-border-width;
115
+
116
+ @if($include-toolbar-variations) {
117
+ &.primary {
118
+ border-color: $toolbar-primary-background-color transparent transparent;
119
+ }
120
+
121
+ &.danger {
122
+ border-color: $toolbar-danger-background-color transparent transparent;
123
+ }
124
+
125
+ &.warning {
126
+ border-color: $toolbar-warning-background-color transparent transparent;
127
+ }
128
+ }
129
+ }
130
+ }
131
+
132
+ @if ($include-toolbar-bottom-position) {
133
+ .tool-container.tool-bottom .arrow {
134
+ border-color: transparent transparent $toolbar-background-color;
135
+ left: 50%;
136
+ top: calculate-toolbar-arrow-position($toolbar-arrow-border-width);
137
+ margin-left: -1 * $toolbar-arrow-border-width;
138
+
139
+ @if($include-toolbar-variations) {
140
+ &.primary {
141
+ border-color: transparent transparent $toolbar-primary-background-color;
142
+ }
143
+
144
+ &.danger {
145
+ border-color: transparent transparent $toolbar-danger-background-color;
146
+ }
147
+
148
+ &.warning {
149
+ border-color: transparent transparent $toolbar-warning-background-color;
150
+ }
151
+ }
152
+ }
153
+ }
154
+
155
+ @if ($include-toolbar-left-position) {
156
+ .tool-container.tool-left .arrow {
157
+ border-color: transparent transparent transparent $toolbar-background-color;
158
+ top: 50%;
159
+ right: calculate-toolbar-arrow-position($toolbar-arrow-border-width);
160
+ margin-top: -1 * $toolbar-arrow-border-width;
161
+
162
+ @if($include-toolbar-variations) {
163
+ &.primary {
164
+ border-color: transparent transparent transparent $toolbar-primary-background-color;
165
+ }
166
+
167
+ &.danger {
168
+ border-color: transparent transparent transparent $toolbar-danger-background-color;
169
+ }
170
+
171
+ &.warning {
172
+ border-color: transparent transparent transparent $toolbar-warning-background-color;
173
+ }
174
+ }
175
+ }
176
+ }
177
+
178
+ @if ($include-toolbar-right-position) {
179
+ .tool-container.tool-right .arrow {
180
+ border-color: transparent $toolbar-background-color transparent transparent;
181
+ top: 50%;
182
+ left: calculate-toolbar-arrow-position($toolbar-arrow-border-width);
183
+ margin-top: -1 * $toolbar-arrow-border-width;
184
+
185
+ @if($include-toolbar-variations) {
186
+ &.primary {
187
+ border-color: transparent $toolbar-primary-background-color transparent transparent;
188
+ }
189
+
190
+ &.danger {
191
+ border-color: transparent $toolbar-danger-background-color transparent transparent;
192
+ }
193
+
194
+ &.warning {
195
+ border-color: transparent $toolbar-warning-background-color transparent transparent;
196
+ }
197
+ }
198
+ }
199
+ }
@@ -0,0 +1,92 @@
1
+ //Tooltips
2
+
3
+ //
4
+ //@variables
5
+ //
6
+
7
+ $tooltip-font-size: 0.68571429rem !default;
8
+ $tooltip-z-index: 1030 !default;
9
+ $tooltip-padding: 0.25714286rem !default;
10
+ $tooltip-inner-padding: 0.45714286rem !default;
11
+ $tooltip-in-opacity: 1 !default;
12
+ $tooltip-color: #2E323E !default;
13
+ $tooltip-font-color: #FFF !default;
14
+ $tooltip-alignment: center !default;
15
+ $tooltip-radius: 0rem !default;
16
+ $tooltip-border-width: 0.64285714rem !default;
17
+
18
+ //Tooltip definition
19
+ .tooltip-arrow {
20
+ position: absolute;
21
+ width: 0;
22
+ height: 0;
23
+ border-color: transparent;
24
+ border-style: solid;
25
+ }
26
+
27
+ .tooltip {
28
+ position: absolute;
29
+ z-index: $tooltip-z-index;
30
+ display: block;
31
+ padding: $tooltip-padding;
32
+ font-size: $tooltip-font-size;
33
+
34
+ &.in {
35
+ @include opacity($tooltip-in-opacity);
36
+ }
37
+
38
+ //Tooltip positions
39
+ &.top {
40
+ margin-top: -3px;
41
+ .tooltip-arrow {
42
+ border-top-color: $tooltip-color;
43
+ border-width: $tooltip-border-width $tooltip-border-width 0;
44
+ bottom: 0;
45
+ margin-left: -$tooltip-border-width;
46
+ left: 50%;
47
+ }
48
+ }
49
+
50
+ &.right {
51
+ margin-left: 3px;
52
+ .tooltip-arrow {
53
+ border-right-color: $tooltip-color;
54
+ border-width: $tooltip-border-width $tooltip-border-width $tooltip-border-width 0;
55
+ margin-top: -$tooltip-border-width;
56
+ left: -3px;
57
+ top: 50%;
58
+ }
59
+ }
60
+
61
+ &.bottom {
62
+ margin-top: 3px;
63
+ .tooltip-arrow {
64
+ border-bottom-color: $tooltip-color;
65
+ border-width: 0 $tooltip-border-width $tooltip-border-width;
66
+ margin-left: -$tooltip-border-width;
67
+ top: -1px;
68
+ left: 50%;
69
+ }
70
+ }
71
+
72
+ &.left {
73
+ margin-left: -3px;
74
+ .tooltip-arrow {
75
+ border-left-color: $tooltip-color;
76
+ border-width: $tooltip-border-width 0px $tooltip-border-width $tooltip-border-width;
77
+ margin-top: -$tooltip-border-width;
78
+ right: -3px;
79
+ top: 50%;
80
+ }
81
+ }
82
+ }
83
+
84
+ //Tooltip inner definition
85
+ .tooltip-inner {
86
+ background-color: $tooltip-color;
87
+ padding: $tooltip-inner-padding;
88
+ text-align: $tooltip-alignment;
89
+ color: $tooltip-font-color;
90
+ @include border-radius($tooltip-radius);
91
+ }
92
+
@@ -0,0 +1,243 @@
1
+ //Typography
2
+
3
+ //Reset
4
+
5
+ //
6
+ //@variables
7
+ //
8
+ @import 'functions';
9
+
10
+ $typography-line-height: 1.6 !default;
11
+ $typography-reset: true !default;
12
+
13
+ // Paragraphs settings
14
+ $paragraph-font-weight: inherit !default;
15
+ $paragraph-font-size: px-to-rems(14) !default;
16
+ $paragraph-line-height: 1.5 !default;
17
+ $paragraph-text-rendering: optimizeLegibility !default;
18
+
19
+ //Lists
20
+ $list-font-size: $paragraph-font-size !default;
21
+ $list-line-height: $paragraph-line-height !default;
22
+ $list-margin-bottom: px-to-rems(20) !default;
23
+ $list-margin-left: px-to-rems(15) !default;
24
+
25
+ //Data lists
26
+ $data-list-margin-bottom: px-to-rems(20) !default;
27
+ $data-list-line-height: 1.2 !default;
28
+ $data-list-font-weight: bold !default;
29
+ $data-list-data-margin-left: px-to-rems(10) !default;
30
+
31
+ // Anchors settings
32
+ $anchor-color: #0088cc !default;
33
+ $anchor-text-decoration: none !default;
34
+ $anchor-text-decoration-hover: underline !default;
35
+
36
+ // Headings settings
37
+ $headings-margin-top: 0.35714286rem !default;
38
+ $headings-margin-bottom: px-to-rems(16) !default;
39
+ $headings-font-weight: 400 !default;
40
+ $headings-line-height: 1.4 !default;
41
+ $headings-text-rendering: optimizeLegibility !default;
42
+ $headings-color: #222 !default;
43
+ $h1-font-size: px-to-rems(36) !default;
44
+ $h2-font-size: px-to-rems(28) !default;
45
+ $h3-font-size: px-to-rems(25) !default;
46
+ $h4-font-size: px-to-rems(20) !default;
47
+ $h5-font-size: px-to-rems(16) !default;
48
+ $h6-font-size: px-to-rems(14) !default;
49
+
50
+ //small settings
51
+ $small-color: #ecf0f1 !default;
52
+ $small-font-size: 60% !default;
53
+
54
+ //hr settings
55
+ $hr-color: #DDD !default;
56
+ $hr-style: solid !default;
57
+ $hr-border-width: 0.07142857rem !default;
58
+ $hr-margin-top: px-to-rems(22) !default;
59
+ $hr-margin-bottom: $hr-margin-top !default;
60
+
61
+ //Blockquote
62
+ $blockquote-color: #777 !default;
63
+ $blockquote-background: lighten(#EFEFEF, 5%) !default;
64
+ $blockquote-line-height: 1.8em !default;
65
+ $blockquote-border-width: 5px !default;
66
+ $blockquote-border-style: solid !default;
67
+ $blockquote-border-color: #DDD !default;
68
+ $blockquote-padding-left: 1.5em !default;
69
+ $blockquote-padding-right: $blockquote-padding-left !default;
70
+ $blockquote-padding-top: 1rem !default;
71
+ $blockquote-padding-bottom: $blockquote-padding-top !default;
72
+ $blockquote-border-primary-color: lighten(#3498d9, 20%) !default;
73
+ $blockquote-border-success-color: lighten(#2ECC71, 20%) !default;
74
+ $blockquote-border-danger-color: lighten(#E74C3C, 20%) !default;
75
+
76
+ //Media queries
77
+ $medium-screen: 70.85714286rem !default;
78
+ $medium-screen-max: 70.78571429rem !default;
79
+ $medium-screen-range: "(min-width: #{$medium-screen}) and (max-width: #{$medium-screen-max})" !default;
80
+
81
+ @if ($typography-reset) {
82
+ a, abbr, acronym, address,
83
+ b, big, cite, code, del, em,
84
+ i, ins, kbd, mark, output,
85
+ q, ruby, s, samp, small,
86
+ strong, sub, sup, div,
87
+ time, u, dfn,
88
+ h1, h2, h3, h4, h5, h6, p, pre,
89
+ table, caption, tbody, tfoot,
90
+ thead, tr, th, td, canvas,
91
+ embed, figure, iframe,
92
+ {
93
+ margin: 0;
94
+ padding: 0;
95
+ }
96
+
97
+ p {
98
+ font-weight: $paragraph-font-weight;
99
+ font-size: $paragraph-font-size;
100
+ margin-bottom: px-to-rems(16);
101
+ text-rendering: $paragraph-text-rendering;
102
+ line-height: $paragraph-line-height;
103
+ }
104
+
105
+ a {
106
+ color: $anchor-color;
107
+ line-height: inherit;
108
+ text-decoration: $anchor-text-decoration;
109
+
110
+ &:hover,
111
+ &:focus {
112
+ text-decoration: $anchor-text-decoration-hover;
113
+ }
114
+
115
+ img {
116
+ border: none;
117
+ }
118
+ }
119
+
120
+ h1, h2, h3, h4, h5, h6 {
121
+ margin: $headings-margin-top 0 $headings-margin-bottom 0;
122
+ font-family: inherit;
123
+ font-weight: $headings-font-weight;
124
+ line-height: $headings-line-height;
125
+ text-rendering: $headings-text-rendering; // Fix the character spacing for headings
126
+ font-style: normal;
127
+ color: $headings-color;
128
+
129
+ small {
130
+ font-weight: normal;
131
+ line-height: 0;
132
+ color: $small-color;
133
+ font-size: $small-font-size;
134
+ }
135
+ }
136
+
137
+ h1 { font-size: $h1-font-size }
138
+ h2 { font-size: $h2-font-size }
139
+ h3 { font-size: $h3-font-size }
140
+ h4 { font-size: $h4-font-size }
141
+ h5 { font-size: $h5-font-size; }
142
+ h6 { font-size: $h6-font-size; }
143
+
144
+ hr {
145
+ clear: both;
146
+ margin: $hr-margin-top 0 $hr-margin-bottom;
147
+ height: 0;
148
+ border: $hr-style $hr-color;
149
+ border-width: $hr-border-width 0 0;
150
+ }
151
+
152
+ //Emphasis & miscelaneous
153
+
154
+ em, strong, b, small {
155
+ line-height: inherit;
156
+ }
157
+
158
+ em {
159
+ font-style: italic;
160
+ }
161
+
162
+ strong, b {
163
+ font-weight: bold;
164
+ }
165
+
166
+ small {
167
+ font-size: $small-font-size;
168
+ }
169
+
170
+ //Lists
171
+ ul,
172
+ ol,
173
+ dl {
174
+ font-size: $list-font-size;
175
+ padding: 0;
176
+ margin-bottom: $list-margin-bottom;
177
+ margin-left: $list-margin-left;
178
+ line-height: $list-line-height;
179
+ }
180
+
181
+ ul ul,
182
+ ul ol,
183
+ ol ol,
184
+ ol ul {
185
+ margin-bottom: 0;
186
+ }
187
+
188
+ // Remove default list styles
189
+ ul.no-style,
190
+ ol.no-style {
191
+ margin-left: 0;
192
+ list-style: none;
193
+ }
194
+
195
+ // Description Lists
196
+ dl {
197
+ margin-bottom: $data-list-margin-bottom;
198
+ }
199
+ dt,
200
+ dd {
201
+ line-height: $data-list-line-height;
202
+ }
203
+ dt {
204
+ font-weight: $data-list-font-weight;
205
+ }
206
+ dd {
207
+ margin-left: $data-list-data-margin-left / 2;
208
+ }
209
+ // Horizontal layout (like forms)
210
+ .dl-horizontal {
211
+ @extend %clearfix; // Ensure dl clears floats if empty dd elements present
212
+ dt {
213
+ float: left;
214
+ clear: left;
215
+ text-align: right;
216
+ }
217
+ }
218
+
219
+ //Blockquote
220
+ blockquote {
221
+ color: $blockquote-color;
222
+ font-style: italic;
223
+ line-height: $blockquote-line-height;
224
+ border-left: $blockquote-border-width $blockquote-border-style $blockquote-border-color;
225
+ padding: $blockquote-padding-top 0 $blockquote-padding-bottom $blockquote-padding-left;
226
+ background: $blockquote-background;
227
+
228
+ &.primary { border-color: $blockquote-border-primary-color; }
229
+ &.success { border-color: $blockquote-border-success-color; }
230
+ &.danger { border-color: $blockquote-border-danger-color; }
231
+
232
+ p {
233
+ margin-bottom: 0;
234
+ }
235
+ }
236
+
237
+ @media #{$medium-screen-range} {
238
+ h1 { font-size: $h1-font-size; }
239
+ h2 { font-size: $h2-font-size; }
240
+ h3 { font-size: $h3-font-size; }
241
+ h4 { font-size: $h4-font-size; }
242
+ }
243
+ }