kentucky 2.2.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/LICENSE +2 -2
  4. data/app/assets/stylesheets/base/_normalize.scss +322 -0
  5. data/app/assets/stylesheets/base/_typography.scss +62 -0
  6. data/app/assets/stylesheets/components/README +9 -0
  7. data/app/assets/stylesheets/layout/README +10 -0
  8. data/app/assets/stylesheets/pages/README +6 -0
  9. data/app/assets/stylesheets/project.scss +18 -0
  10. data/app/assets/stylesheets/utilities/_functions.scss +37 -0
  11. data/app/assets/stylesheets/utilities/_mixins.scss +306 -0
  12. data/app/assets/stylesheets/utilities/_variables.scss +122 -0
  13. data/app/assets/stylesheets/vendors/README +12 -0
  14. data/kentucky.gemspec +3 -3
  15. data/lib/kentucky/generator.rb +1 -1
  16. data/lib/kentucky/version.rb +1 -1
  17. data/readme.md +23 -116
  18. metadata +21 -29
  19. data/app/assets/stylesheets/kentucky/_kentucky.scss +0 -52
  20. data/app/assets/stylesheets/kentucky/addons/_border.scss +0 -30
  21. data/app/assets/stylesheets/kentucky/addons/_clearfix.scss +0 -14
  22. data/app/assets/stylesheets/kentucky/addons/_easings.scss +0 -37
  23. data/app/assets/stylesheets/kentucky/addons/_hide-text.scss +0 -9
  24. data/app/assets/stylesheets/kentucky/addons/_input-types.scss +0 -82
  25. data/app/assets/stylesheets/kentucky/addons/_position.scss +0 -42
  26. data/app/assets/stylesheets/kentucky/addons/_size.scss +0 -47
  27. data/app/assets/stylesheets/kentucky/addons/_truncate.scss +0 -10
  28. data/app/assets/stylesheets/kentucky/base/_buttons.scss +0 -40
  29. data/app/assets/stylesheets/kentucky/base/_forms.scss +0 -86
  30. data/app/assets/stylesheets/kentucky/base/_layouts.scss +0 -13
  31. data/app/assets/stylesheets/kentucky/base/_lists.scss +0 -35
  32. data/app/assets/stylesheets/kentucky/base/_project-settings.scss +0 -112
  33. data/app/assets/stylesheets/kentucky/base/_tables.scss +0 -28
  34. data/app/assets/stylesheets/kentucky/base/_typography.scss +0 -84
  35. data/app/assets/stylesheets/kentucky/functions/_assign.scss +0 -17
  36. data/app/assets/stylesheets/kentucky/functions/_tint-shade.scss +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b7138ab7306cfee167470d1abeb1a473ece5c98
4
- data.tar.gz: 19c9bdbf76be5c3e27f7c6ecf4e3fcc60667de76
3
+ metadata.gz: 4430d0b044035cdcf75eb2096ac3c0e25e1f0a6f
4
+ data.tar.gz: 39d0429d9b2e52c23528ee4e859457b1fb77242f
5
5
  SHA512:
6
- metadata.gz: 61fdd1ba81964451bdd814e7cb3df6cb492c06d4a98f5115ef8bf5162a28ae2ee633d51ff4bfa0a7a35f9b75de52273052f67b3636477cc59a2699007fb78468
7
- data.tar.gz: 9a6c385750ed2e06e4616f90e0de46496f070bd47d8e4b2203233b4ef48d5546509578e7a53c4b82f5ec6dbb4b051a838d727c1528a82639f608613230327f91
6
+ metadata.gz: 95096cf88bf0ffc9aacc36290aac71ab71ea0a4430e8f3d91a74f76cd1e1a99a7f7e78ea3c88ea364a8bd2f2ebe1acd4322b7b4db989dc28d8f1a9b14cafa3a4
7
+ data.tar.gz: 8871674a4eb2df1933d7bfb182e6fb2d97e620ff249a0928010849e080b0e9182d5f44eec2c7c2b56b90199fd75cb9d7eeba0c2d24c01c3e0b92b651cfa546f5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 3.0.0
2
+
3
+ * Full restructuring and rethinking of Kentucky
4
+ * Included project folders to jumpstart proper SCSS organization for projects
5
+ * Updated variables to follow new naming scheme, `coreTarget-type-modifier` (e.g., `font-size-h1`, `border-radius-base`, etc.)
6
+ * Updated normalize to better suit current needs
7
+
8
+ ---
1
9
  # 1.2.1
2
10
 
3
11
  ### Bug Fix
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2013 LookThink, LLC
3
+ Copyright (c) 2015 LookThink, LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
21
+ THE SOFTWARE.
@@ -0,0 +1,322 @@
1
+ ////
2
+ /// Normalize
3
+ ///
4
+ /// @group base
5
+ /// @author Nicolas Gallagher
6
+ ////
7
+
8
+ // 1. Set default box-sizing declaration to border-box.
9
+ // 2. Set default font family to base font family variable.
10
+ // 3. Prevent iOS text size adjust after orientation change, without disabling user zoom.
11
+ html {
12
+ box-sizing: border-box; // 1
13
+ font-family: $font-family-base; // 2
14
+ -ms-text-size-adjust: 100%; // 3
15
+ -webkit-text-size-adjust: 100%; // 3
16
+ }
17
+
18
+ // Set proper element inheritance of box-sizing.
19
+ // https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
20
+ *,
21
+ *:before,
22
+ *:after {
23
+ box-sizing: inherit;
24
+ }
25
+
26
+ // Remove default body margin.
27
+ // Apply user-set site background.
28
+ body {
29
+ margin: 0;
30
+ background-color: $color-background;
31
+ }
32
+
33
+
34
+ /// HTML5 display definitions
35
+
36
+ // Correct `block` display not defined for any HTML5 element in IE 8/9.
37
+ // Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
38
+ // Correct `block` display not defined for `main` in IE 11.
39
+ article,
40
+ aside,
41
+ details,
42
+ figcaption,
43
+ figure,
44
+ footer,
45
+ header,
46
+ hgroup,
47
+ main,
48
+ menu,
49
+ nav,
50
+ section,
51
+ summary {
52
+ display: block;
53
+ }
54
+
55
+ // 1. Correct `inline-block` display not defined in IE 8/9.
56
+ // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
57
+ audio,
58
+ canvas,
59
+ progress,
60
+ video {
61
+ display: inline-block; // 1
62
+ vertical-align: baseline; // 2
63
+ }
64
+
65
+ // Prevent modern browsers from displaying `audio` without controls.
66
+ // Remove excess height in iOS 5 devices.
67
+ audio:not([controls]) {
68
+ display: none;
69
+ height: 0;
70
+ }
71
+
72
+ // Address `[hidden]` styling not present in IE 8/9/10.
73
+ // Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
74
+ [hidden],
75
+ template {
76
+ display: none;
77
+ }
78
+
79
+
80
+ /// Links
81
+
82
+ // Remove the gray background color from active links in IE 10.
83
+ a {
84
+ background-color: transparent;
85
+ }
86
+
87
+ // Improve readability when focused and also mouse hovered in all browsers.
88
+ a:active,
89
+ a:hover {
90
+ outline-offset: -2px;
91
+ }
92
+
93
+
94
+ /// Text-level semantics
95
+
96
+ // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
97
+ abbr[title] {
98
+ border-bottom: 1px dotted;
99
+ }
100
+
101
+ // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
102
+ b,
103
+ strong {
104
+ font-weight: bold;
105
+ }
106
+
107
+ // Address styling not present in Safari and Chrome.
108
+ dfn {
109
+ font-style: italic;
110
+ }
111
+
112
+ // Address variable `h1` font-size and margin within `section` and `article`
113
+ // contexts in Firefox 4+, Safari, and Chrome.
114
+ h1 {
115
+ margin: .67em 0;
116
+ font-size: 2em;
117
+ }
118
+
119
+ // Address styling not present in IE 8/9.
120
+ mark {
121
+ background: #ff0;
122
+ color: #000;
123
+ }
124
+
125
+ // Address inconsistent and variable font size in all browsers.
126
+ small {
127
+ font-size: 80%;
128
+ }
129
+
130
+ // Prevent `sub` and `sup` affecting `line-height` in all browsers.
131
+ sub,
132
+ sup {
133
+ position: relative;
134
+ font-size: 75%;
135
+ line-height: 0;
136
+ vertical-align: baseline;
137
+ }
138
+
139
+ sup {
140
+ top: -.5em;
141
+ }
142
+
143
+ sub {
144
+ bottom: -.25em;
145
+ }
146
+
147
+
148
+ /// Embedded content
149
+
150
+ // Remove border when inside `a` element in IE 8/9/10.
151
+ img {
152
+ border: 0;
153
+ }
154
+
155
+ // Correct overflow not hidden in IE 9/10/11.
156
+ svg:not(:root) {
157
+ overflow: hidden;
158
+ }
159
+
160
+
161
+ /// Grouping content
162
+
163
+ // Address margin not present in IE 8/9 and Safari.
164
+ figure {
165
+ margin: 1em 40px;
166
+ }
167
+
168
+ // Address differences between Firefox and other browsers.
169
+ hr {
170
+ box-sizing: content-box;
171
+ height: 0;
172
+ }
173
+
174
+ // Contain overflow in all browsers.
175
+ pre {
176
+ overflow: auto;
177
+ }
178
+
179
+ // Address odd `em`-unit font size rendering in all browsers.
180
+ code,
181
+ kbd,
182
+ pre,
183
+ samp {
184
+ font-family: monospace, monospace;
185
+ font-size: 1em;
186
+ }
187
+
188
+
189
+ /// Form elements
190
+ /// Known limitation: by default, Chrome and Safari on OS X allow very limited styling
191
+ /// of `select`, unless a `border` property is set.
192
+
193
+ // 1. Address margins set differently in Firefox 4+, Safari, and Chrome.
194
+ // 2. Correct color not being inherited.
195
+ // Known issue: affects color of disabled elements.
196
+ // 3. Correct font properties not being inherited.
197
+
198
+ button,
199
+ input,
200
+ optgroup,
201
+ select,
202
+ textarea {
203
+ margin: 0; // 1
204
+ color: inherit; // 2
205
+ font: inherit; // 3
206
+ }
207
+
208
+ // Address `overflow` set to `hidden` in IE 8/9/10/11.
209
+ button {
210
+ overflow: visible;
211
+ }
212
+
213
+ // Address inconsistent `text-transform` inheritance for `button` and `select`.
214
+ // All other form control elements do not inherit `text-transform` values.
215
+ // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
216
+ // Correct `select` style inheritance in Firefox.
217
+ button,
218
+ select {
219
+ text-transform: none;
220
+ }
221
+
222
+ // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
223
+ // 2. Correct inability to style clickable `input` types in iOS.
224
+ // 3. Improve usability and consistency of cursor style between image-type `input` and others.
225
+ button,
226
+ html input[type="button"], // 1
227
+ input[type="reset"],
228
+ input[type="submit"] {
229
+ -webkit-appearance: button; // 2
230
+ cursor: pointer; // 3
231
+ }
232
+
233
+ // Re-set default cursor for disabled elements.
234
+ button[disabled],
235
+ html input[disabled] {
236
+ cursor: default;
237
+ }
238
+
239
+ // Remove inner padding and border in Firefox 4+.
240
+ button::-moz-focus-inner,
241
+ input::-moz-focus-inner {
242
+ padding: 0;
243
+ border: 0;
244
+ }
245
+
246
+ // Address Firefox 4+ setting `line-height` on `input` using `!important` in
247
+ // the UA stylesheet.
248
+ input {
249
+ line-height: normal;
250
+ }
251
+
252
+ // It's recommended that you don't attempt to style these elements.
253
+ // Firefox's implementation doesn't respect box-sizing, padding, or width.
254
+ //
255
+ // 1. Remove excess padding in IE 8/9/10.
256
+ input[type="checkbox"],
257
+ input[type="radio"] {
258
+ padding: 0; // 1
259
+ }
260
+
261
+ // Fix the cursor style for Chrome's increment/decrement buttons. For certain
262
+ // `font-size` values of the `input`, it causes the cursor style of the
263
+ // decrement button to change from `default` to `text`.
264
+ input[type="number"]::-webkit-inner-spin-button,
265
+ input[type="number"]::-webkit-outer-spin-button {
266
+ height: auto;
267
+ }
268
+
269
+ // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
270
+ // 2. Address `box-sizing` set to `border-box` in Safari and Chrome
271
+ // (include `-moz` to future-proof).
272
+ input[type="search"] {
273
+ -webkit-appearance: textfield; // 1
274
+ box-sizing: content-box; // 2
275
+ }
276
+
277
+ // Remove inner padding and search cancel button in Safari and Chrome on OS X.
278
+ // Safari (but not Chrome) clips the cancel button when the search input has
279
+ // padding (and `textfield` appearance).
280
+ input[type="search"]::-webkit-search-cancel-button,
281
+ input[type="search"]::-webkit-search-decoration {
282
+ -webkit-appearance: none;
283
+ }
284
+
285
+ // Define consistent border, margin, and padding.
286
+ fieldset {
287
+ margin: 0;
288
+ padding: $space-half;
289
+ border: 1px solid $color-border-base;
290
+ }
291
+
292
+ // 1. Remove padding so people aren't caught out if they zero out fieldsets.
293
+ // 2. Remove border.
294
+ legend {
295
+ padding: 0; // 1
296
+ border: 0; // 2
297
+ }
298
+
299
+ // Remove default vertical scrollbar in IE 8/9/10/11.
300
+ textarea {
301
+ overflow: auto;
302
+ }
303
+
304
+ // Don't inherit the `font-weight` (applied by a rule above).
305
+ // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
306
+ optgroup {
307
+ font-weight: bold;
308
+ }
309
+
310
+
311
+ /// Tables
312
+
313
+ // Remove most spacing between table cells.
314
+ table {
315
+ border-collapse: collapse;
316
+ border-spacing: 0;
317
+ }
318
+
319
+ td,
320
+ th {
321
+ padding: 0;
322
+ }
@@ -0,0 +1,62 @@
1
+ ////
2
+ /// Typographic Normalization and variable applications
3
+ ///
4
+ /// @group base
5
+ ////
6
+
7
+ html {
8
+ color: $color-font-base;
9
+ font-family: $font-family-base;
10
+ font-size: $font-size-base;
11
+ line-height: $line-height-base;
12
+ }
13
+  
14
+ h1,
15
+ h2,
16
+ h3,
17
+ h4,
18
+ h5,
19
+ h6 {
20
+ font-family: $font-family-header;
21
+ line-height: $line-height-header;
22
+ }
23
+
24
+ h1 {
25
+ font-size: $font-size-h1;
26
+ }
27
+
28
+ h2 {
29
+ font-size: $font-size-h2;
30
+ }
31
+
32
+ h3 {
33
+ font-size: $font-size-h3;
34
+ }
35
+
36
+ h4 {
37
+ font-size: $font-size-h4;
38
+ }
39
+
40
+ h5 {
41
+ font-size: $font-size-h5;
42
+ }
43
+
44
+ h6 {
45
+ font-size: $font-size-h6;
46
+ }
47
+
48
+ p {
49
+ margin: 0 0 $space-half;
50
+ }
51
+
52
+ a {
53
+ color: $color-link;
54
+ text-decoration: none;
55
+ transition: color .1s;
56
+
57
+ &:hover,
58
+ &:active,
59
+ &:focus {
60
+ color: $color-link-hover;
61
+ }
62
+ }
@@ -0,0 +1,9 @@
1
+ From sass.guidelin.es:
2
+
3
+ For smaller components, there is the components/ folder. While layout/ is macro (defining the global wireframe), components/ is more focused on widgets. It contains all kind of specific modules like a slider, a loader, a widget, and basically anything along those lines. There are usually a lot of files in components/ since the whole site/application should be mostly composed of tiny modules.
4
+
5
+ _buttons.scss
6
+ _dropdown.scss
7
+ _media.scss
8
+ _carousel.scss
9
+ _thumbnails.scss
@@ -0,0 +1,10 @@
1
+ From sass.guidelin.es:
2
+
3
+ The layout/ folder contains everything that takes part in laying out the site or application. This folder could have stylesheets for the main parts of the site (header, footer, navigation, sidebar…), the grid system or even CSS styles for all the forms.
4
+
5
+ _grid.scss
6
+ _header.scss
7
+ _footer.scss
8
+ _sidebar.scss
9
+ _forms.scss
10
+ _navigation.scss