vital 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +27 -0
  3. data/.ruby-version +1 -0
  4. data/CHANGELOG.md +18 -0
  5. data/CONTRIBUTING.md +31 -0
  6. data/Gemfile +2 -0
  7. data/Gemfile.lock +42 -0
  8. data/LICENSE.md +13 -0
  9. data/README.md +92 -0
  10. data/Rakefile +41 -0
  11. data/dist/css/vital.css +1355 -0
  12. data/dist/css/vital.css.map +7 -0
  13. data/dist/css/vital.min.css +2 -0
  14. data/dist/css/vital.min.css.map +7 -0
  15. data/dist/fonts/icons.eot +0 -0
  16. data/dist/fonts/icons.svg +50 -0
  17. data/dist/fonts/icons.ttf +0 -0
  18. data/dist/fonts/icons.woff +0 -0
  19. data/fontcustom.yml +24 -0
  20. data/fonts/icons.eot +0 -0
  21. data/fonts/icons.svg +50 -0
  22. data/fonts/icons.ttf +0 -0
  23. data/fonts/icons.woff +0 -0
  24. data/lib/vital/engine.rb +10 -0
  25. data/lib/vital/version.rb +3 -0
  26. data/lib/vital.rb +57 -0
  27. data/releases/v1.0.0/fonts/icons.eot +0 -0
  28. data/releases/v1.0.0/fonts/icons.svg +50 -0
  29. data/releases/v1.0.0/fonts/icons.ttf +0 -0
  30. data/releases/v1.0.0/fonts/icons.woff +0 -0
  31. data/releases/v1.0.0/stylesheets/vital.min.css +1 -0
  32. data/releases/v1.0.1/fonts/icons.eot +0 -0
  33. data/releases/v1.0.1/fonts/icons.svg +50 -0
  34. data/releases/v1.0.1/fonts/icons.ttf +0 -0
  35. data/releases/v1.0.1/fonts/icons.woff +0 -0
  36. data/releases/v1.0.1/stylesheets/vital.min.css +1 -0
  37. data/releases/v1.1.0/fonts/icons.eot +0 -0
  38. data/releases/v1.1.0/fonts/icons.svg +50 -0
  39. data/releases/v1.1.0/fonts/icons.ttf +0 -0
  40. data/releases/v1.1.0/fonts/icons.woff +0 -0
  41. data/releases/v1.1.0/stylesheets/vital.min.css +1 -0
  42. data/sass/vital/_all.sass +21 -0
  43. data/sass/vital/_base.sass +148 -0
  44. data/sass/vital/_buttons.sass +133 -0
  45. data/sass/vital/_custom.sass +4 -0
  46. data/sass/vital/_footer.sass +33 -0
  47. data/sass/vital/_forms.sass +187 -0
  48. data/sass/vital/_grid.sass +47 -0
  49. data/sass/vital/_header.sass +134 -0
  50. data/sass/vital/_helpers.sass +191 -0
  51. data/sass/vital/_heroes.sass +35 -0
  52. data/sass/vital/_icons.sass +80 -0
  53. data/sass/vital/_loaders.sass +82 -0
  54. data/sass/vital/_normalize.sass +325 -0
  55. data/sass/vital/_notice.sass +20 -0
  56. data/sass/vital/_pagination.sass +32 -0
  57. data/sass/vital/_sprockets.sass +7 -0
  58. data/sass/vital/_syntax.sass +159 -0
  59. data/sass/vital/_tables.sass +40 -0
  60. data/sass/vital/_tabs.sass +61 -0
  61. data/sass/vital/_variables.sass +135 -0
  62. data/sass/vital.css.sass +1 -0
  63. data/sass/vital.sass +1 -0
  64. data/vital.gemspec +23 -0
  65. metadata +164 -0
@@ -0,0 +1,134 @@
1
+ @import variables
2
+
3
+ // Header
4
+
5
+ .header
6
+ background: $header
7
+ height: $header-height
8
+ transform: $translate
9
+ .section
10
+ padding: 0
11
+ position: relative
12
+ .logo
13
+ border: 0
14
+ color: $red
15
+ float: left
16
+ line-height: 1
17
+ padding: 0.6em 1em
18
+ max-height: $header-height
19
+ overflow: hidden
20
+ &:hover
21
+ background: none
22
+ i
23
+ color: $red-bright
24
+ transition: $all
25
+
26
+ nav
27
+ a
28
+ display: block
29
+ padding: 1.3em
30
+ &:hover
31
+ background: $header-link-hover
32
+ ul
33
+ padding: 0
34
+ margin: 0
35
+ li
36
+ background: $header
37
+ display: inline
38
+ float: left
39
+ position: relative
40
+ ul
41
+ left: 0
42
+ top: 100%
43
+ ul
44
+ display: none
45
+ li:hover > ul
46
+ display: block
47
+ position: absolute
48
+ width: 12.5em
49
+ z-index: 9000
50
+ li
51
+ width: 100%
52
+ ul ul li:hover > ul
53
+ left: auto
54
+ right: -12.5em
55
+ top: 0
56
+
57
+ #menu-toggle, #menu-toggle-label
58
+ cursor: pointer
59
+ display: none
60
+ height: $header-height
61
+ position: absolute
62
+ right: 0
63
+ user-select: none
64
+ width: $header-height
65
+
66
+ #menu-toggle
67
+ border-radius: 0
68
+ border: 0
69
+ box-shadow: none
70
+ margin: 0
71
+ outline: none
72
+ padding: 0
73
+ z-index: -1
74
+ &:hover
75
+ background: $header-link-hover
76
+ &:before
77
+ content: $font-icons-icon-menu
78
+ font-family: $icons
79
+ font-size: 2em
80
+ padding: 0.24em 0.5em
81
+ position: absolute
82
+ right: 0
83
+ &:checked
84
+ background: $header-link-hover
85
+ &:before
86
+ bottom: 0
87
+ color: $text
88
+ content: $font-icons-icon-close-empty
89
+ font-size: 3em
90
+ left: 0
91
+ line-height: 0
92
+ padding: 0.7em 0
93
+ position: absolute
94
+ right: 0
95
+ top: 0
96
+
97
+ @media screen and (max-width: $phablet)
98
+
99
+ .header
100
+ .logo
101
+ padding: 0.6em
102
+
103
+ nav
104
+ a
105
+ border-top: 1px solid #eee
106
+ padding: 1em
107
+ ul
108
+ li ul
109
+ display: block
110
+ li
111
+ border-right: none
112
+ display: block
113
+ float: left
114
+ width: 100%
115
+ text-align: center
116
+ a
117
+ background: $header-link-hover
118
+ >
119
+ ul
120
+ clear: both
121
+ display: none
122
+ input:checked + ul
123
+ display: block
124
+ li:hover ul
125
+ position: relative
126
+ width: auto
127
+ ul ul
128
+ li:hover > ul
129
+ left: auto
130
+ right: auto
131
+ top: auto
132
+
133
+ #menu-toggle, #menu-toggle-label
134
+ display: block
@@ -0,0 +1,191 @@
1
+ @import variables
2
+
3
+ // Helpers
4
+ // These helpers are here for quick adjustments. Add small reusable classes here.
5
+
6
+ // Text, Typography
7
+
8
+ ul, ol
9
+ &.list
10
+ margin-left: 1em
11
+ padding-left: 1em
12
+
13
+ ul.list li
14
+ list-style: disc
15
+
16
+ ol.list li
17
+ list-style: decimal
18
+
19
+ .align-left
20
+ text-align: left
21
+
22
+ .align-right
23
+ text-align: right
24
+
25
+ .break-word
26
+ word-break: break-all
27
+
28
+ .no-wrap
29
+ white-space: nowrap
30
+
31
+ .thin
32
+ font-weight: 100
33
+
34
+ .uppercase
35
+ text-transform: uppercase
36
+
37
+ // Lighten all typography for dark backgrounds
38
+
39
+ .light-text
40
+ *, a
41
+ color: white
42
+ a
43
+ text-decoration: underline
44
+
45
+ // Alignment
46
+
47
+ .auto
48
+ margin: 0 auto
49
+
50
+ .block
51
+ display: block
52
+
53
+ .center
54
+ text-align: center
55
+
56
+ .clear
57
+ clear: both
58
+
59
+ .float-left
60
+ float: left
61
+
62
+ .float-right
63
+ float: right
64
+
65
+ .inline
66
+ display: inline
67
+
68
+ .inline-block
69
+ display: inline-block
70
+
71
+ // Forms
72
+
73
+ .checkbox, .radio
74
+ display: block
75
+ line-height: 2.2
76
+
77
+ // Styled Elements
78
+
79
+ .box
80
+ border-radius: $radius
81
+ border: $border-width solid #ddd
82
+ margin: 1em 0
83
+ padding: 1em
84
+
85
+ .disabled
86
+ color: $gray-light
87
+
88
+ .radius
89
+ border-radius: $radius
90
+
91
+ .round
92
+ border-radius: $round
93
+
94
+ // Opacities
95
+
96
+ .opacity-half
97
+ opacity: 0.5
98
+
99
+ // Colors
100
+
101
+ .gray
102
+ color: $gray
103
+
104
+ .gray-medium
105
+ color: $gray-medium
106
+
107
+ .gray-light
108
+ color: $gray-light
109
+
110
+ .gray-lighter
111
+ color: $gray-lighter
112
+
113
+ .gray-lightest
114
+ color: $gray-lightest
115
+
116
+ // Backgrounds
117
+
118
+ .bg
119
+ background: $gray-lightest
120
+
121
+ // Backgrounds (Gradients)
122
+
123
+ .bg-black
124
+ background: $bg-black-fallback
125
+ background: $bg-black
126
+
127
+ .bg-gray
128
+ background: $bg-gray-fallback
129
+ background: $bg-gray
130
+
131
+ .bg-blue
132
+ background: $bg-blue-fallback
133
+ background: $bg-blue
134
+
135
+ .bg-red
136
+ background: $bg-red-fallback
137
+ background: $bg-red
138
+
139
+ .bg-green
140
+ background: $bg-green-fallback
141
+ background: $bg-green
142
+
143
+ // Hide / Show
144
+
145
+ .hide
146
+ display: none
147
+
148
+ .show
149
+ display: block
150
+
151
+ // Widths
152
+
153
+ .full
154
+ width: 100%
155
+
156
+ // Manually inserting a space into an empty element
157
+
158
+ .space
159
+ &:after
160
+ content: $non-breaking-space
161
+
162
+ // Font sizing
163
+
164
+ .i2x
165
+ font-size: 2em
166
+ .i3x
167
+ font-size: 3em
168
+ .i4x
169
+ font-size: 4em
170
+ .i5x
171
+ font-size: 5em
172
+
173
+ .same-width
174
+ text-align: center
175
+ width: 2em
176
+ display: inline-block
177
+
178
+ @media screen and (max-width: $handheld)
179
+
180
+ // Hide these classes on the $handheld breakpoint
181
+
182
+ .space, .hide-on-mobile
183
+ display: none
184
+
185
+ .responsive
186
+ width: 100%
187
+
188
+ @media screen and (max-width: $handheld-portrait)
189
+
190
+ .responsive-portrait
191
+ width: 100%
@@ -0,0 +1,35 @@
1
+ @import variables
2
+
3
+ // Heroes
4
+
5
+ .hero
6
+ color: $white
7
+ background: $bg-red-fallback
8
+ background: $bg-red
9
+
10
+ h1, h2, h3, h4, h5, h6
11
+ margin: 0
12
+ line-height: 1.3
13
+ h1
14
+ font-size: 3em
15
+ h2
16
+ font-size: 1.8em
17
+ h3
18
+ font-size: 1.6em
19
+ h4
20
+ font-size: 1.4em
21
+ h5
22
+ font-size: 1.2em
23
+ h6
24
+ font-size: 1.0em
25
+
26
+ .section
27
+ padding: 5em 1.5em
28
+
29
+ @media screen and (max-width: $handheld)
30
+
31
+ .hero
32
+ .section
33
+ padding: 4em 1em
34
+ h1
35
+ font-size: 2.4em
@@ -0,0 +1,80 @@
1
+ //
2
+ // Icon Font: icons
3
+ //
4
+
5
+ // https://github.com/sass/sass/issues/659#issuecomment-64819075
6
+ @function char($character-code)
7
+ @if function-exists("selector-append")
8
+ @return unquote('"\\#{$character-code}"')
9
+
10
+ @return str-slice("x", 1, 1) + $character-code
11
+
12
+ @font-face
13
+ font-family: "icons"
14
+ src: url(if($vital-sass-asset-helper, vital-font-path("icons.eot"), "../fonts/icons.eot"))
15
+ src: url(if($vital-sass-asset-helper, vital-font-path("icons.eot?#iefix"), "../fonts/icons.eot?#iefix")) format("embedded-opentype"), url(if($vital-sass-asset-helper, vital-font-path("icons.woff"), "../fonts/icons.woff")) format("woff"), url(if($vital-sass-asset-helper, vital-font-path("icons.ttf"), "../fonts/icons.ttf")) format("truetype"), url(if($vital-sass-asset-helper, vital-font-path("icons.svg#icons"), "../fonts/icons.svg#icons")) format("svg")
16
+ font-weight: normal
17
+ font-style: normal
18
+
19
+ @media screen and (-webkit-min-device-pixel-ratio: 0)
20
+ @font-face
21
+ font-family: "icons"
22
+ src: url(if($vital-sass-asset-helper, vital-font-path("icons.svg#icons"), "../fonts/icons.svg#icons")) format("svg")
23
+
24
+ [data-icon]:before
25
+ content: attr(data-icon)
26
+
27
+ [data-icon]:before,
28
+ .icon-arrow-updown:before,
29
+ .icon-check:before,
30
+ .icon-clock:before,
31
+ .icon-close:before,
32
+ .icon-close-empty:before,
33
+ .icon-close-outline:before,
34
+ .icon-menu:before,
35
+ .icon-vital:before
36
+ display: inline-block
37
+ font-family: "icons"
38
+ font-style: normal
39
+ font-weight: normal
40
+ font-variant: normal
41
+ line-height: 1
42
+ text-decoration: inherit
43
+ text-rendering: optimizeLegibility
44
+ text-transform: none
45
+ -moz-osx-font-smoothing: grayscale
46
+ -webkit-font-smoothing: antialiased
47
+ font-smoothing: antialiased
48
+
49
+ .icon-arrow-updown:before
50
+ content: char("f100")
51
+
52
+ .icon-check:before
53
+ content: char("f101")
54
+
55
+ .icon-clock:before
56
+ content: char("f102")
57
+
58
+ .icon-close:before
59
+ content: char("f103")
60
+
61
+ .icon-close-empty:before
62
+ content: char("f104")
63
+
64
+ .icon-close-outline:before
65
+ content: char("f105")
66
+
67
+ .icon-menu:before
68
+ content: char("f106")
69
+
70
+ .icon-vital:before
71
+ content: char("f107")
72
+
73
+ $font-icons-icon-arrow-updown: char("f100")
74
+ $font-icons-icon-check: char("f101")
75
+ $font-icons-icon-clock: char("f102")
76
+ $font-icons-icon-close: char("f103")
77
+ $font-icons-icon-close-empty: char("f104")
78
+ $font-icons-icon-close-outline: char("f105")
79
+ $font-icons-icon-menu: char("f106")
80
+ $font-icons-icon-vital: char("f107")
@@ -0,0 +1,82 @@
1
+ @import variables
2
+
3
+ // Loaders
4
+
5
+ .load
6
+ -webkit-animation-duration: 1s
7
+ -webkit-animation-iteration-count: infinite
8
+ -webkit-animation-name: loading
9
+ -webkit-animation-timing-function: linear
10
+ -moz-animation-duration: 1s
11
+ -moz-animation-iteration-count: infinite
12
+ -moz-animation-name: loading
13
+ -moz-animation-timing-function: linear
14
+ animation-duration: 1s
15
+ animation-iteration-count: infinite
16
+ animation-name: loading
17
+ animation-timing-function: linear
18
+ border-radius: $round
19
+ border: $border-width * 3 solid #DDD
20
+ border-left-color: #666
21
+ display: inline-block
22
+ height: 2em
23
+ width: 2em
24
+ &.smallest
25
+ width: $loader-smallest
26
+ height: $loader-smallest
27
+ border-width: $border-width
28
+ &.small
29
+ width: $loader-small
30
+ height: $loader-small
31
+ border-width: $border-width * 2
32
+ &.large
33
+ width: $loader-large
34
+ height: $loader-large
35
+ border-width: $border-width * 4
36
+
37
+ @keyframes loading
38
+ from
39
+ transform: rotate(0deg)
40
+ to
41
+ transform: rotate(360deg)
42
+
43
+ @-webkit-keyframes loading
44
+ from
45
+ -webkit-transform: rotate(0deg)
46
+ to
47
+ -webkit-transform: rotate(360deg)
48
+
49
+ @-moz-keyframes loading
50
+ from
51
+ -moz-transform: rotate(0deg)
52
+ to
53
+ -moz-transform: rotate(360deg)
54
+
55
+ // Adjustments for IE 8/9
56
+
57
+ .ie8, .ie9
58
+
59
+ .load
60
+ border-color: transparent
61
+ line-height: 1
62
+ font-size: $loader
63
+ width: $loader
64
+ height: $loader
65
+ display: inline
66
+ &:after
67
+ content: $font-icons-icon-clock
68
+ font-family: $icons
69
+ &.smallest
70
+ font-size: $loader-smallest
71
+ width: $loader-smallest
72
+ height: $loader-smallest
73
+ border-width: 0.1em
74
+ &.small
75
+ font-size: $loader-small
76
+ width: $loader-small
77
+ height: $loader-small
78
+ border-width: 0.1em
79
+ &.large
80
+ font-size: $loader-large
81
+ width: $loader-large
82
+ height: $loader-large