flatui-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +32 -0
  5. data/Rakefile +1 -0
  6. data/flatui-rails.gemspec +26 -0
  7. data/lib/flatui/rails.rb +8 -0
  8. data/lib/flatui/rails/version.rb +5 -0
  9. data/vendor/assets/fonts/Flat-UI-Icons-16.dev.svg +112 -0
  10. data/vendor/assets/fonts/Flat-UI-Icons-16.eot +0 -0
  11. data/vendor/assets/fonts/Flat-UI-Icons-16.svg +112 -0
  12. data/vendor/assets/fonts/Flat-UI-Icons-16.ttf +0 -0
  13. data/vendor/assets/fonts/Flat-UI-Icons-16.woff +0 -0
  14. data/vendor/assets/fonts/Flat-UI-Icons-24.dev.svg +111 -0
  15. data/vendor/assets/fonts/Flat-UI-Icons-24.eot +0 -0
  16. data/vendor/assets/fonts/Flat-UI-Icons-24.svg +111 -0
  17. data/vendor/assets/fonts/Flat-UI-Icons-24.ttf +0 -0
  18. data/vendor/assets/fonts/Flat-UI-Icons-24.woff +0 -0
  19. data/vendor/assets/images/checkbox-2x.png +0 -0
  20. data/vendor/assets/images/checkbox.png +0 -0
  21. data/vendor/assets/images/favicon.ico +0 -0
  22. data/vendor/assets/images/illustrations/bag.png +0 -0
  23. data/vendor/assets/images/illustrations/book.png +0 -0
  24. data/vendor/assets/images/illustrations/calendar.png +0 -0
  25. data/vendor/assets/images/illustrations/clipboard.png +0 -0
  26. data/vendor/assets/images/illustrations/colors.png +0 -0
  27. data/vendor/assets/images/illustrations/compass.png +0 -0
  28. data/vendor/assets/images/illustrations/gift.png +0 -0
  29. data/vendor/assets/images/illustrations/infinity.png +0 -0
  30. data/vendor/assets/images/illustrations/mail.png +0 -0
  31. data/vendor/assets/images/illustrations/map.png +0 -0
  32. data/vendor/assets/images/illustrations/paper.png +0 -0
  33. data/vendor/assets/images/illustrations/retina.png +0 -0
  34. data/vendor/assets/images/illustrations/share.png +0 -0
  35. data/vendor/assets/images/illustrations/time.png +0 -0
  36. data/vendor/assets/images/login/icon.png +0 -0
  37. data/vendor/assets/images/login/imac-2x.png +0 -0
  38. data/vendor/assets/images/login/imac.png +0 -0
  39. data/vendor/assets/images/pager/next.png +0 -0
  40. data/vendor/assets/images/pager/previous.png +0 -0
  41. data/vendor/assets/images/radio-2x.png +0 -0
  42. data/vendor/assets/images/radio.png +0 -0
  43. data/vendor/assets/images/select/toggle.png +0 -0
  44. data/vendor/assets/images/tile/ribbon-2x.png +0 -0
  45. data/vendor/assets/images/tile/ribbon.png +0 -0
  46. data/vendor/assets/images/todo/done-2x.png +0 -0
  47. data/vendor/assets/images/todo/done.png +0 -0
  48. data/vendor/assets/images/todo/search-2x.png +0 -0
  49. data/vendor/assets/images/todo/search.png +0 -0
  50. data/vendor/assets/images/todo/todo-2x.png +0 -0
  51. data/vendor/assets/images/todo/todo.png +0 -0
  52. data/vendor/assets/images/toggle/block-off.png +0 -0
  53. data/vendor/assets/images/toggle/block-on.png +0 -0
  54. data/vendor/assets/images/toggle/icon-off-2x.png +0 -0
  55. data/vendor/assets/images/toggle/icon-off.png +0 -0
  56. data/vendor/assets/images/toggle/icon-on-2x.png +0 -0
  57. data/vendor/assets/images/toggle/icon-on.png +0 -0
  58. data/vendor/assets/images/video/fullscreen-2x.png +0 -0
  59. data/vendor/assets/images/video/fullscreen.png +0 -0
  60. data/vendor/assets/images/video/pause-2x.png +0 -0
  61. data/vendor/assets/images/video/pause.png +0 -0
  62. data/vendor/assets/images/video/play-2x.png +0 -0
  63. data/vendor/assets/images/video/play.png +0 -0
  64. data/vendor/assets/images/video/poster.jpg +0 -0
  65. data/vendor/assets/images/video/volume-full-2x.png +0 -0
  66. data/vendor/assets/images/video/volume-full.png +0 -0
  67. data/vendor/assets/images/video/volume-off-2x.png +0 -0
  68. data/vendor/assets/images/video/volume-off.png +0 -0
  69. data/vendor/assets/stylesheets/flat-ui/_config.sass +16 -0
  70. data/vendor/assets/stylesheets/flat-ui/_icon-font-24.sass +93 -0
  71. data/vendor/assets/stylesheets/flat-ui/_icon-font.sass +91 -0
  72. data/vendor/assets/stylesheets/flat-ui/_mixins.sass +96 -0
  73. data/vendor/assets/stylesheets/flat-ui/_spaces.sass +129 -0
  74. data/vendor/assets/stylesheets/flat-ui/flat-ui.sass +39 -0
  75. data/vendor/assets/stylesheets/flat-ui/modules/_btn.sass +73 -0
  76. data/vendor/assets/stylesheets/flat-ui/modules/_checkbox-and-radio.sass +86 -0
  77. data/vendor/assets/stylesheets/flat-ui/modules/_demo.sass +228 -0
  78. data/vendor/assets/stylesheets/flat-ui/modules/_footer.sass +57 -0
  79. data/vendor/assets/stylesheets/flat-ui/modules/_input.sass +66 -0
  80. data/vendor/assets/stylesheets/flat-ui/modules/_login.sass +95 -0
  81. data/vendor/assets/stylesheets/flat-ui/modules/_navbar.sass +149 -0
  82. data/vendor/assets/stylesheets/flat-ui/modules/_pager.sass +56 -0
  83. data/vendor/assets/stylesheets/flat-ui/modules/_pagination.sass +75 -0
  84. data/vendor/assets/stylesheets/flat-ui/modules/_palette.sass +88 -0
  85. data/vendor/assets/stylesheets/flat-ui/modules/_progress.sass +29 -0
  86. data/vendor/assets/stylesheets/flat-ui/modules/_select.sass +163 -0
  87. data/vendor/assets/stylesheets/flat-ui/modules/_share.sass +34 -0
  88. data/vendor/assets/stylesheets/flat-ui/modules/_tagsinput.sass +91 -0
  89. data/vendor/assets/stylesheets/flat-ui/modules/_tile.sass +42 -0
  90. data/vendor/assets/stylesheets/flat-ui/modules/_todo.sass +77 -0
  91. data/vendor/assets/stylesheets/flat-ui/modules/_toggle.sass +85 -0
  92. data/vendor/assets/stylesheets/flat-ui/modules/_tooltip.sass +45 -0
  93. data/vendor/assets/stylesheets/flat-ui/modules/_type.sass +43 -0
  94. data/vendor/assets/stylesheets/flat-ui/modules/_ui-slider.sass +44 -0
  95. data/vendor/assets/stylesheets/flat-ui/modules/_video.sass +358 -0
  96. metadata +211 -0
@@ -0,0 +1,129 @@
1
+ // Should be used to modify the default spacing between objects (not between nodes of * the same object)
2
+ // p,m = padding,margin
3
+ // a,t,r,b,l,h,v = all,top,right,bottom,left,horizontal,vertical
4
+ // x,s,m,l,n = extra-small($x),small($s),medium($m),large($l),none(0px)
5
+ $x: 3px
6
+ $s: 5px
7
+ $m: 10px
8
+ $l: 20px
9
+
10
+ .ptn, .pvn, .pan
11
+ padding-top: 0
12
+
13
+ .ptx, .pvx, .pax
14
+ padding-top: $x
15
+
16
+ .pts, .pvs, .pas
17
+ padding-top: $s
18
+
19
+ .ptm, .pvm, .pam
20
+ padding-top: $m
21
+
22
+ .ptl, .pvl, .pal
23
+ padding-top: $l
24
+
25
+ .prn, .phn, .pan
26
+ padding-right: 0
27
+
28
+ .prx, .phx, .pax
29
+ padding-right: $x
30
+
31
+ .prs, .phs, .pas
32
+ padding-right: $s
33
+
34
+ .prm, .phm, .pam
35
+ padding-right: $m
36
+
37
+ .prl, .phl, .pal
38
+ padding-right: $l
39
+
40
+ .pbn, .pvn, .pan
41
+ padding-bottom: 0
42
+
43
+ .pbx, .pvx, .pax
44
+ padding-bottom: $x
45
+
46
+ .pbs, .pvs, .pas
47
+ padding-bottom: $s
48
+
49
+ .pbm, .pvm, .pam
50
+ padding-bottom: $m
51
+
52
+ .pbl, .pvl, .pal
53
+ padding-bottom: $l
54
+
55
+ .pln, .phn, .pan
56
+ padding-left: 0
57
+
58
+ .plx, .phx, .pax
59
+ padding-left: $x
60
+
61
+ .pls, .phs, .pas
62
+ padding-left: $s
63
+
64
+ .plm, .phm, .pam
65
+ padding-left: $m
66
+
67
+ .pll, .phl, .pal
68
+ padding-left: $l
69
+
70
+ .mtn, .mvn, .man
71
+ margin-top: 0px
72
+
73
+ .mtx, .mvx, .max
74
+ margin-top: $x
75
+
76
+ .mts, .mvs, .mas
77
+ margin-top: $s
78
+
79
+ .mtm, .mvm, .mam
80
+ margin-top: $m
81
+
82
+ .mtl, .mvl, .mal
83
+ margin-top: $l
84
+
85
+ .mrn, .mhn, .man
86
+ margin-right: 0px
87
+
88
+ .mrx, .mhx, .max
89
+ margin-right: $x
90
+
91
+ .mrs, .mhs, .mas
92
+ margin-right: $s
93
+
94
+ .mrm, .mhm, .mam
95
+ margin-right: $m
96
+
97
+ .mrl, .mhl, .mal
98
+ margin-right: $l
99
+
100
+ .mbn, .mvn, .man
101
+ margin-bottom: 0px
102
+
103
+ .mbx, .mvx, .max
104
+ margin-bottom: $x
105
+
106
+ .mbs, .mvs, .mas
107
+ margin-bottom: $s
108
+
109
+ .mbm, .mvm, .mam
110
+ margin-bottom: $m
111
+
112
+ .mbl, .mvl, .mal
113
+ margin-bottom: $l
114
+
115
+ .mln, .mhn, .man
116
+ margin-left: 0px
117
+
118
+ .mlx, .mhx, .max
119
+ margin-left: $x
120
+
121
+ .mls, .mhs, .mas
122
+ margin-left: $s
123
+
124
+ .mlm, .mhm, .mam
125
+ margin-left: $m
126
+
127
+ .mll, .mhl, .mal
128
+ margin-left: $l
129
+
@@ -0,0 +1,39 @@
1
+ // Flat UI main stylesheet that aggregates all modules
2
+
3
+ // Loading custom fonts
4
+ @import url('http://fonts.googleapis.com/css?family=Lato:400,700,900,400italic')
5
+ @import 'icon-font'
6
+ @import 'icon-font-24'
7
+
8
+ // Loading config with variables (changing them leads to changing a color scheme)
9
+ @import 'config'
10
+
11
+ // Utility mixins for greater good
12
+ @import 'mixins'
13
+
14
+ // Modules
15
+ @import 'modules/type'
16
+ @import 'modules/btn'
17
+ @import 'modules/demo'
18
+ @import 'modules/navbar'
19
+ @import 'modules/select'
20
+ @import 'modules/input'
21
+ @import 'modules/checkbox-and-radio'
22
+ @import 'modules/toggle'
23
+ @import 'modules/tagsinput'
24
+ @import 'modules/progress'
25
+ @import 'modules/ui-slider'
26
+ @import 'modules/pager'
27
+ @import 'modules/pagination'
28
+ @import 'modules/share'
29
+ @import 'modules/tooltip'
30
+ @import 'modules/palette'
31
+ @import 'modules/tile'
32
+ @import 'modules/todo'
33
+ @import 'modules/footer'
34
+ @import 'modules/video'
35
+ @import 'modules/login'
36
+
37
+ // Spaces
38
+ @import 'spaces'
39
+
@@ -0,0 +1,73 @@
1
+ =button-states($color)
2
+ background-color: $color
3
+ &:hover,
4
+ &:focus
5
+ background-color: scale-color($color, $lightness: 20%)
6
+ &:active,
7
+ &.active
8
+ background-color: scale-color($color, $lightness: -15%)
9
+
10
+ // Buttons -----------------------
11
+ .btn
12
+ border: none
13
+ background: $base
14
+ color: $inverse
15
+ font-size: 16.5px
16
+ text-decoration: none
17
+ text-shadow: none
18
+ +box-shadow(none)
19
+ +transition(.25s)
20
+
21
+ &:hover,
22
+ &:focus
23
+ background-color: scale-color($base, $lightness: 20%)
24
+ color: $inverse
25
+ +transition(.25s)
26
+
27
+ &:active,
28
+ &.active
29
+ background-color: scale-color($base, $lightness: -15%)
30
+ color: rgba($inverse, .75)
31
+ +box-shadow(none)
32
+
33
+ &.disabled,
34
+ &[disabled]
35
+ background-color: $gray
36
+ color: $inverse
37
+
38
+ // Sizes -----------------------
39
+ &.btn-large
40
+ padding-bottom: 12px
41
+ padding-top: 13px
42
+
43
+ // Colors -----------------------
44
+ &.btn-primary
45
+ +button-states($firm)
46
+
47
+ &.btn-info
48
+ +button-states($info)
49
+
50
+ &.btn-danger
51
+ +button-states($danger)
52
+
53
+ &.btn-success
54
+ +button-states($success)
55
+
56
+ &.btn-warning
57
+ +button-states($warning)
58
+
59
+ // Button with icon inside
60
+ .btn-toolbar &
61
+ font-size: 18px
62
+ padding: 10px 14px 9px
63
+
64
+ &:first-child
65
+ +border-radius(6px 0 0 6px)
66
+
67
+ &:last-child
68
+ +border-radius(0 6px 6px 0)
69
+
70
+ .btn-toolbar
71
+ .btn.active
72
+ color: $inverse
73
+
@@ -0,0 +1,86 @@
1
+ // Checkbox & Radio
2
+ .checkbox,
3
+ .radio
4
+ margin-bottom: 12px
5
+ padding-left: 32px
6
+ position: relative
7
+ +transition(.25s)
8
+
9
+ &:hover
10
+ color: $firm
11
+
12
+ input
13
+ outline: none !important
14
+ +opacity(0)
15
+
16
+ &.checked
17
+ .icon
18
+ background-position: -60px -30px
19
+ opacity: 1
20
+ display: block\9
21
+
22
+ .icon-to-fade
23
+ opacity: 0
24
+ display: none\9
25
+
26
+ // Disabled state
27
+ &.disabled
28
+ color: scale-color($gray, $lightness: 62%)
29
+ cursor: default
30
+
31
+ .icon
32
+ opacity: 0
33
+ display: none\9
34
+
35
+ .icon-to-fade
36
+ background-position: -30px -60px
37
+ opacity: 1
38
+ display: block\9
39
+
40
+ &.checked
41
+ .icon
42
+ background-position: 0 -90px
43
+ opacity: 1
44
+ display: block\9
45
+
46
+ .icon-to-fade
47
+ opacity: 0
48
+ display: none\9
49
+
50
+ // Icon
51
+ .icon,
52
+ .icon-to-fade
53
+ background: url('../images/checkbox.png') -90px 0 no-repeat
54
+ display: block
55
+ height: 20px
56
+ left: 0
57
+ opacity: 1
58
+ position: absolute
59
+ top: -1px
60
+ width: 20px
61
+ +transition(opacity .1s linear)
62
+
63
+ .icon
64
+ opacity: 0
65
+ top: 0
66
+ z-index: 2
67
+ display: none\9
68
+
69
+ // Radio
70
+ .radio
71
+ .icon,
72
+ .icon-to-fade
73
+ background-image: url('../images/radio.png')
74
+
75
+ // Serving 2x images
76
+ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 2)
77
+ .checkbox
78
+ .icon
79
+ background-image: url('../images/checkbox-2x.png')
80
+ background-size: 110px 110px
81
+
82
+ .radio
83
+ .icon
84
+ background-image: url('../images/radio-2x.png')
85
+ background-size: 110px 110px
86
+
@@ -0,0 +1,228 @@
1
+ // For demo purposes only
2
+ .demo-headline
3
+ padding: 73px 0 110px
4
+ text-align: center
5
+
6
+ .demo-logo
7
+ font-size: 90px
8
+ font-weight: 900
9
+ letter-spacing: -2px
10
+ line-height: 100px
11
+
12
+ .logo
13
+ background: url('../images/demo/logo-mask.png') center 0 no-repeat
14
+ background-size: 256px 186px
15
+ height: 186px
16
+ margin: 0 auto 26px
17
+ overflow: hidden
18
+ text-indent: -9999em
19
+ width: 256px
20
+
21
+ small
22
+ color: rgba($base, .3)
23
+ display: block
24
+ font-size: 22px
25
+ font-weight: 700
26
+ letter-spacing: -1px
27
+ padding-top: 5px
28
+
29
+ // Panels delimiter
30
+ .demo-row
31
+ margin-bottom: 20px
32
+
33
+ .demo-panel-title
34
+ margin-bottom: 20px
35
+ padding-top: 20px
36
+
37
+ small
38
+ color: scale-color(desaturate($base, 25%), $lightness: 66%)
39
+ font-size: inherit
40
+ font-weight: 400
41
+
42
+ // Shift blocks to fit design
43
+ .demo-navigation
44
+ margin-bottom: -4px
45
+ margin-top: -10px
46
+
47
+ .demo-pager
48
+ margin-top: -10px
49
+
50
+ .demo-tooltips
51
+ height: 126px
52
+
53
+ // Needed just for the demo. Don't use it in producion ;)
54
+ .tooltip
55
+ left: -8px !important
56
+ position: relative !important
57
+ top: -8px !important
58
+
59
+ .demo-headings
60
+ margin-bottom: 12px
61
+
62
+ .demo-tiles
63
+ margin-bottom: 46px
64
+
65
+ .demo-icons
66
+ margin-bottom: 115px
67
+
68
+ .demo-icons-24
69
+ font-size: 24px
70
+ margin-bottom: 38px
71
+ position: relative
72
+ span
73
+ margin: 0 0 0 18px
74
+ &:first-child
75
+ margin-left: 0
76
+
77
+ .demo-icons-16
78
+ font-size: 16px
79
+ margin: 0 0 38px 5px
80
+ position: relative
81
+ span
82
+ margin: 0 0 0 28px
83
+ &:first-child
84
+ margin-left: 0
85
+
86
+ .demo-icons-tooltip
87
+ bottom: 0
88
+ color: scale-color($base, $lightness: 70%)
89
+ font-size: 12px
90
+ left: 100%
91
+ margin-left: 0 !important
92
+ position: absolute
93
+ width: 80px
94
+
95
+ .demo-illustrations
96
+ margin-bottom: 45px
97
+
98
+ img
99
+ height: 100px
100
+ margin-left: 35px
101
+ width: 100px
102
+ vertical-align: bottom
103
+
104
+ &:first-child
105
+ margin-left: 0
106
+
107
+ &.big-illustration
108
+ height: 111px
109
+ width: 112px
110
+
111
+ &.big-retina-illustration
112
+ height: 104px
113
+ margin-right: -24px
114
+ width: 117px
115
+
116
+ &.big-illustration-pusher
117
+ margin-right: 12px
118
+
119
+ .demo-samples
120
+ margin-bottom: 46px
121
+
122
+ .demo-video
123
+ border-radius: 6px
124
+ padding-top: 95px
125
+
126
+ .demo-download-section
127
+ float: none
128
+ margin: 0 auto
129
+ padding: 60px 0 90px 20px
130
+ text-align: center
131
+
132
+ [class*='fui-']
133
+ margin: 3px 0 -3px
134
+
135
+ .demo-download
136
+ background-color: scale-color($base, $lightness: 90%)
137
+ border-radius: 50%
138
+ height: 120px
139
+ margin: 0 auto 32px
140
+ padding: 40px 28px 30px 32px
141
+ text-align: center
142
+ width: 130px
143
+
144
+ img
145
+ height: 104px
146
+ width: 82px
147
+
148
+ .demo-download-text
149
+ font-size: 15px
150
+ padding: 20px 0
151
+ text-align: center
152
+
153
+ .demo-text-box
154
+ a:hover
155
+ color: $firm
156
+
157
+ .demo-browser
158
+ background: scale-color($base, $lightness: -15%) url('../images/demo/browser.png') 0 0 no-repeat
159
+ background-size: 659px 42px
160
+ border-radius: 0 0 6px 6px
161
+ color: $inverse
162
+ margin: 0 41px 140px 0
163
+ padding-top: 42px
164
+
165
+ .demo-browser-side
166
+ float: left
167
+ padding: 22px 20px
168
+ width: 111px
169
+
170
+ > h5
171
+ margin-bottom: 3px
172
+ text-transform: none
173
+
174
+ > h6
175
+ font-size: 11px
176
+ font-weight: 300
177
+ line-height: 18px
178
+ margin-top: 3px
179
+ text-transform: none
180
+
181
+ .demo-browser-author
182
+ background: url('../images/demo/browser-author.jpg') center center no-repeat
183
+ border: 3px solid $inverse
184
+ display: block
185
+ height: 84px
186
+ margin: 0 auto
187
+ width: 84px
188
+ +border-radius(50%)
189
+
190
+ .demo-browser-action
191
+ padding: 30px 0 12px
192
+
193
+ > .btn
194
+ padding: 9px 0 10px 11px
195
+ text-align: left
196
+ +border-radius(3px)
197
+
198
+ &:before
199
+ color: $inverse
200
+ content: '\e004'
201
+ font-size: 16px
202
+ font-family: 'Flat-UI-Icons-16'
203
+ font-weight: 300
204
+ margin-right: 12px
205
+ position: relative
206
+ top: 1px
207
+ -webkit-font-smoothing: antialiased
208
+
209
+ .demo-browser-content
210
+ background-color: $base
211
+ border-radius: 0 0 6px
212
+ overflow: hidden
213
+ padding: 21px 0 0 20px
214
+
215
+ > img
216
+ border: 6px solid $inverse
217
+ float: left
218
+ margin: 0 15px 20px 0
219
+ width: 134px
220
+
221
+ // Serving 2x images
222
+ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 2)
223
+ .logo
224
+ background-image: url('../images/demo/logo-mask-2x.png')
225
+
226
+ .demo-browser
227
+ background-image: url('../images/demo/browser-2x.png')
228
+