kentucky 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Kentucky.sublime-workspace +556 -0
- data/app/assets/stylesheets/kentucky/_defaults.scss +27 -98
- data/app/assets/stylesheets/kentucky/_kentucky.scss +72 -9
- data/app/assets/stylesheets/kentucky/_shame.scss +1 -1
- data/app/assets/stylesheets/kentucky/base/_headings.scss +72 -0
- data/app/assets/stylesheets/kentucky/base/_lists.scss +21 -0
- data/app/assets/stylesheets/kentucky/base/_main.scss +22 -0
- data/app/assets/stylesheets/kentucky/base/_smallprint.scss +13 -0
- data/app/assets/stylesheets/kentucky/generic/_brand.scss +16 -0
- data/app/assets/stylesheets/kentucky/generic/_clearfix.scss +11 -0
- data/app/assets/stylesheets/kentucky/{_debug.scss → generic/_debug.scss} +0 -0
- data/app/assets/stylesheets/kentucky/generic/_helpers.scss +71 -0
- data/app/assets/stylesheets/kentucky/generic/_mixins.scss +78 -0
- data/app/assets/stylesheets/kentucky/{_normalize.scss → generic/_normalize.scss} +0 -3
- data/app/assets/stylesheets/kentucky/objects/_breadcrumb.scss +22 -0
- data/app/assets/stylesheets/kentucky/objects/_media.scss +30 -0
- data/app/assets/stylesheets/kentucky/objects/_split.scss +18 -0
- data/lib/kentucky/version.rb +1 -1
- data/readme.md +2 -0
- metadata +16 -5
- data/app/assets/stylesheets/kentucky/_helpers.scss +0 -140
@@ -1,19 +1,16 @@
|
|
1
1
|
// ------------------------------------------------------------------- //
|
2
|
+
// Default Kentucky Variables
|
3
|
+
// ------------------------------------------------------------------- //
|
2
4
|
// Project Settings
|
3
5
|
// ------------------------------------------------------------------- //
|
4
6
|
|
5
|
-
|
6
|
-
$
|
7
|
-
|
8
|
-
|
9
|
-
$use-
|
10
|
-
|
11
|
-
// Use sticky footer, if true, alter $footer-height to proper value
|
12
|
-
$sticky-footer: false !default;
|
13
|
-
$footer-height: 60px;
|
7
|
+
$debug-mode: false !default;
|
8
|
+
$use-media: false !default;
|
9
|
+
$use-sprite: false !default;
|
10
|
+
$use-breadcrumb: false !default;
|
11
|
+
$use-split: false !default;
|
14
12
|
|
15
|
-
// If sprite
|
16
|
-
// If not required, feel free to comment these out
|
13
|
+
// If use-sprite is set to true, input relevant values
|
17
14
|
$sprite-sheet-loc: "sprite sheet url.png";
|
18
15
|
$sprite-sheet-grid: 36px;
|
19
16
|
|
@@ -31,12 +28,12 @@ $giga-size: 96px !default;
|
|
31
28
|
$mega-size: 72px !default;
|
32
29
|
$kilo-size: 48px !default;
|
33
30
|
|
34
|
-
$h1-size: 42px !default;
|
35
|
-
$h2-size: 36px !default;
|
36
|
-
$h3-size: 24px !default;
|
37
|
-
$h4-size: 20px !default;
|
38
|
-
$h5-size: 18px !default;
|
39
|
-
$h6-size: 16px !default;
|
31
|
+
$h1-size: 42px !default; // %alpha
|
32
|
+
$h2-size: 36px !default; // %bravo
|
33
|
+
$h3-size: 24px !default; // %charlie
|
34
|
+
$h4-size: 20px !default; // %delta
|
35
|
+
$h5-size: 18px !default; // %echo
|
36
|
+
$h6-size: 16px !default; // %foxtrot
|
40
37
|
|
41
38
|
$milli-size: 12px !default;
|
42
39
|
$micro-size: 10px !default;
|
@@ -47,79 +44,28 @@ $micro-size: 10px !default;
|
|
47
44
|
// ------------------------------------------------------------------- //
|
48
45
|
|
49
46
|
$brand-font-family: $helvetica !default;
|
50
|
-
$brand-color: #333 !default
|
51
|
-
$brand-round: 3px !default;
|
47
|
+
$brand-color: #333 !default;
|
48
|
+
$brand-round: 3px !default; // Used for rounded corners
|
52
49
|
|
53
50
|
$link-color: #bebebe !default;
|
54
51
|
|
55
52
|
|
56
53
|
// ------------------------------------------------------------------- //
|
57
|
-
//
|
54
|
+
// Base Spacing Units
|
58
55
|
// ------------------------------------------------------------------- //
|
59
56
|
|
60
|
-
|
61
|
-
|
62
|
-
// Customized to allow unitless line-height
|
63
|
-
|
64
|
-
html{
|
65
|
-
font: $base-font-size/$base-line-height $base-font-family;
|
66
|
-
}
|
67
|
-
|
68
|
-
%giga{
|
69
|
-
font-size: $giga-size;
|
70
|
-
}
|
71
|
-
%mega{
|
72
|
-
font-size: $mega-size;
|
73
|
-
}
|
74
|
-
%kilo{
|
75
|
-
font-size: $kilo-size;
|
76
|
-
}
|
77
|
-
|
78
|
-
h1, h2, h3, h4, h5, h6{
|
79
|
-
font-family: $brand-font-family;
|
80
|
-
}
|
81
|
-
h1,
|
82
|
-
%alpha{
|
83
|
-
font-size: $h1-size;
|
84
|
-
}
|
85
|
-
h2,
|
86
|
-
%bravo{
|
87
|
-
font-size: $h2-size;
|
88
|
-
}
|
89
|
-
h3,
|
90
|
-
%charlie{
|
91
|
-
font-size: $h3-size;
|
92
|
-
}
|
93
|
-
h4,
|
94
|
-
%delta{
|
95
|
-
font-size: $h4-size;
|
96
|
-
}
|
97
|
-
h5,
|
98
|
-
%echo{
|
99
|
-
font-size: $h5-size;
|
100
|
-
}
|
101
|
-
h6,
|
102
|
-
%foxtrot{
|
103
|
-
font-size: $h6-size;
|
104
|
-
}
|
105
|
-
|
106
|
-
%milli{
|
107
|
-
font-size: $milli-size;
|
108
|
-
}
|
109
|
-
%micro{
|
110
|
-
font-size: $micro-size;
|
111
|
-
}
|
112
|
-
|
113
|
-
a{
|
114
|
-
color: $link-color;
|
115
|
-
@include transition(all .3s linear);
|
116
|
-
|
117
|
-
&:hover, &:focus{
|
118
|
-
color: lighten($link-color, 15%);
|
119
|
-
}
|
120
|
-
}
|
57
|
+
$base-spacing-unit: $base-line-height !default;
|
58
|
+
$half-spacing-unit: $base-spacing-unit / 2 !default;
|
121
59
|
|
122
60
|
|
61
|
+
// ------------------------------------------------------------------- //
|
62
|
+
// Media Query Widths
|
63
|
+
// ------------------------------------------------------------------- //
|
64
|
+
|
65
|
+
$mobile: new-breakpoint(max-width 480px 4);
|
66
|
+
$tablet: new-breakpoint(max-width 990px 8);
|
67
|
+
$laptop: new-breakpoint(max-width 1440px 12);
|
68
|
+
|
123
69
|
// ------------------------------------------------------------------- //
|
124
70
|
// Single Direction Margins
|
125
71
|
//
|
@@ -134,21 +80,4 @@ section, article, p,
|
|
134
80
|
pre, table, fieldset, hr{
|
135
81
|
margin-bottom: ($base-font-size / $base-line-height); // IE8 Fallback
|
136
82
|
margin-bottom: 1rem;
|
137
|
-
}
|
138
|
-
|
139
|
-
// ------------------------------------------------------------------- //
|
140
|
-
// Custom Selection Text
|
141
|
-
// ------------------------------------------------------------------- //
|
142
|
-
|
143
|
-
::selection,
|
144
|
-
::-moz-selection {
|
145
|
-
background: $brand-color;
|
146
|
-
color: #fff;
|
147
|
-
}
|
148
|
-
img::selection,
|
149
|
-
img::moz-selection{
|
150
|
-
background: transparent;
|
151
|
-
}
|
152
|
-
body{
|
153
|
-
-webkit-tap-highlight-color: $brand-color;
|
154
83
|
}
|
@@ -1,20 +1,83 @@
|
|
1
1
|
// ------------------------------------------------------------------- //
|
2
|
-
//
|
2
|
+
// Kentucky.scss
|
3
|
+
//
|
4
|
+
// The goal of Kentucky is to do a majority of the heavy lifting
|
5
|
+
// for you at the very start of a project. The styles and organization
|
6
|
+
// required at the beginning of every project is done for you, just
|
7
|
+
// fill in the variables!
|
8
|
+
//
|
9
|
+
// The table of contents below explains, briefly, what each import
|
10
|
+
// does.
|
11
|
+
//
|
12
|
+
// Kentucky aims to be heavily documented to help you learn why or how
|
13
|
+
// it's pieces work. More complex portions come with implemenation
|
14
|
+
// examples.
|
15
|
+
//
|
16
|
+
// Copyright 2013 LookThink
|
17
|
+
// Developed in part by:
|
18
|
+
// Greg Bruening, Aaron Clemmer, and Chris Brinson
|
19
|
+
//
|
20
|
+
// WARNING: Variables set now are being used throughout the entirety
|
21
|
+
// of Kentucky. Any custom, project-related styles SHOULD NOT be added
|
22
|
+
// or modified in Kentucky diretcly, but added via a separate theme
|
23
|
+
// folder/files.
|
24
|
+
//
|
3
25
|
// ------------------------------------------------------------------- //
|
26
|
+
// Contents
|
27
|
+
// ------------------------------------------------------------------- //
|
28
|
+
|
29
|
+
// Imports Begin importing the sections below
|
30
|
+
|
31
|
+
// Defaults All variable values set here
|
32
|
+
// Normalize Nicolas Gallagher's normalize.css, sassy style
|
33
|
+
// Clearfix Set some defaults
|
34
|
+
// Mixins Super-simple SCSS stuff
|
35
|
+
|
36
|
+
// Main High-level elements like `html`, `body`, etc.
|
37
|
+
// Headings Double-stranded heading hierarchy
|
38
|
+
// Smallprint Smaller text elements like `small`
|
39
|
+
// Lists Basic list styles and extends
|
40
|
+
|
41
|
+
// Abstraction details here
|
42
|
+
|
43
|
+
// Brand Helper class to apply brand treatment to elements
|
44
|
+
// Helpers A series of helper classes to use arbitrarily
|
45
|
+
// Debug Enable to add visual flags for debugging purposes
|
4
46
|
|
5
|
-
@import 'normalize';
|
6
|
-
@import 'defaults';
|
7
|
-
@import 'helpers';
|
8
47
|
|
9
48
|
// ------------------------------------------------------------------- //
|
10
|
-
//
|
49
|
+
// Generic utility styles
|
11
50
|
// ------------------------------------------------------------------- //
|
12
51
|
|
13
|
-
@import
|
52
|
+
@import "defaults";
|
53
|
+
@import "generic/normalize";
|
54
|
+
@import "generic/clearfix";
|
55
|
+
@import "generic/mixins";
|
56
|
+
|
57
|
+
|
58
|
+
// ------------------------------------------------------------------- //
|
59
|
+
// Base styles; unclassed HTML elements
|
60
|
+
// ------------------------------------------------------------------- //
|
61
|
+
|
62
|
+
@import "base/main";
|
63
|
+
@import "base/headings";
|
64
|
+
@import "base/smallprint";
|
65
|
+
@import "base/lists";
|
66
|
+
|
67
|
+
|
68
|
+
// ------------------------------------------------------------------- //
|
69
|
+
// Objects and abstractions
|
70
|
+
// ------------------------------------------------------------------- //
|
71
|
+
|
72
|
+
@import "objects/media";
|
73
|
+
@import "objects/breadcrumb";
|
74
|
+
@import "objects/split";
|
75
|
+
|
14
76
|
|
15
77
|
// ------------------------------------------------------------------- //
|
16
|
-
//
|
17
|
-
// Only loaded if options in _defaults are set to TRUE
|
78
|
+
// Style trumps; helper and brand classes
|
18
79
|
// ------------------------------------------------------------------- //
|
19
80
|
|
20
|
-
@import
|
81
|
+
@import "generic/brand";
|
82
|
+
@import "generic/helpers";
|
83
|
+
@import "generic/debug";
|
@@ -0,0 +1,72 @@
|
|
1
|
+
// ------------------------------------------------------------------- //
|
2
|
+
// Kentucky Headings
|
3
|
+
//
|
4
|
+
// The goal here is to define headings and establish practical
|
5
|
+
// font-sizing from the get go.
|
6
|
+
//
|
7
|
+
// Also includes a "double-stranded hierarchy" allowing you to use HTML
|
8
|
+
// heading elements or the alternate extend included (based on the
|
9
|
+
// military alphabet).
|
10
|
+
// ------------------------------------------------------------------- //
|
11
|
+
|
12
|
+
@include headings(1,6){
|
13
|
+
font-family: $brand-font-family;
|
14
|
+
}
|
15
|
+
|
16
|
+
h1,
|
17
|
+
%alpha{
|
18
|
+
@include font-size($h1-size);
|
19
|
+
}
|
20
|
+
|
21
|
+
h2,
|
22
|
+
%bravo{
|
23
|
+
@include font-size($h2-size);
|
24
|
+
}
|
25
|
+
|
26
|
+
h3,
|
27
|
+
%charlie{
|
28
|
+
@include font-size($h3-size);
|
29
|
+
}
|
30
|
+
|
31
|
+
h4,
|
32
|
+
%delta{
|
33
|
+
@include font-size($h4-size);
|
34
|
+
}
|
35
|
+
|
36
|
+
h5,
|
37
|
+
%echo{
|
38
|
+
@include font-size($h5-size);
|
39
|
+
}
|
40
|
+
|
41
|
+
h6,
|
42
|
+
%foxtrot{
|
43
|
+
@include font-size($h6-size);
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
// ------------------------------------------------------------------- //
|
48
|
+
// Heading Groups
|
49
|
+
//
|
50
|
+
// Target a group of headers stacked together (such as title/subtitle)
|
51
|
+
// ------------------------------------------------------------------- //
|
52
|
+
|
53
|
+
%hgroup{
|
54
|
+
@include headings(1,6){
|
55
|
+
margin-bottom: 0;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
|
60
|
+
// ------------------------------------------------------------------- //
|
61
|
+
// A set of extends for massive type (heroes, mastheads, etc.)
|
62
|
+
// ------------------------------------------------------------------- //
|
63
|
+
|
64
|
+
%giga{
|
65
|
+
@include font-size($giga-size);
|
66
|
+
}
|
67
|
+
%mega{
|
68
|
+
@include font-size($mega-size);
|
69
|
+
}
|
70
|
+
%kilo{
|
71
|
+
@include font-size($kilo-size);
|
72
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// ------------------------------------------------------------------- //
|
2
|
+
// Lists
|
3
|
+
// ------------------------------------------------------------------- //
|
4
|
+
// Remove vertical spacing from nested lists
|
5
|
+
// ------------------------------------------------------------------- //
|
6
|
+
|
7
|
+
li{
|
8
|
+
> ul,
|
9
|
+
> ol{
|
10
|
+
margin-bottom: 0;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
// ------------------------------------------------------------------- //
|
16
|
+
// Enjoy numbered lists without the semantics implied by `ol`
|
17
|
+
// ------------------------------------------------------------------- //
|
18
|
+
|
19
|
+
/*ul*/%numbered-list{
|
20
|
+
list-style-type: decimal;
|
21
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// ------------------------------------------------------------------- //
|
2
|
+
// Main
|
3
|
+
// ------------------------------------------------------------------- //
|
4
|
+
|
5
|
+
html{
|
6
|
+
font: #{($base-font-size/16px)*1em} / #{$base-line-height} $base-font-family;
|
7
|
+
min-height: 100%;
|
8
|
+
overflow-y: scroll;
|
9
|
+
} // END html
|
10
|
+
|
11
|
+
body{
|
12
|
+
background: #fff;
|
13
|
+
} // END body
|
14
|
+
|
15
|
+
a{
|
16
|
+
color: $link-color;
|
17
|
+
@include transition(all .3s linear);
|
18
|
+
|
19
|
+
&:hover, &:focus{
|
20
|
+
color: lighten($link-color, 15%);
|
21
|
+
}
|
22
|
+
} // END a
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// ------------------------------------------------------------------- //
|
2
|
+
// Smallprint
|
3
|
+
// ------------------------------------------------------------------- //
|
4
|
+
// What is this? Type for ants?!
|
5
|
+
// ------------------------------------------------------------------- //
|
6
|
+
|
7
|
+
%milli{
|
8
|
+
@include font-size($milli-size);
|
9
|
+
}
|
10
|
+
|
11
|
+
%micro{
|
12
|
+
@include font-size($micro-size);
|
13
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// ------------------------------------------------------------------- //
|
2
|
+
// Brand extensions
|
3
|
+
// ------------------------------------------------------------------- //
|
4
|
+
|
5
|
+
%brand{
|
6
|
+
font-family: $brand-font-family !important;
|
7
|
+
color: $brand-color !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
%brand-type{
|
11
|
+
font-family: $brand-font-family !important;
|
12
|
+
}
|
13
|
+
|
14
|
+
%brand-color{
|
15
|
+
color: $brand-color !important;
|
16
|
+
}
|
File without changes
|
@@ -0,0 +1,71 @@
|
|
1
|
+
// ------------------------------------------------------------------- //
|
2
|
+
// Kentucky Helper Extensions
|
3
|
+
// ------------------------------------------------------------------- //
|
4
|
+
// Show / Hide Elements
|
5
|
+
// To be used in jQuery
|
6
|
+
// ------------------------------------------------------------------- //
|
7
|
+
|
8
|
+
.is-shown{
|
9
|
+
display: block;
|
10
|
+
}
|
11
|
+
.is-hidden{
|
12
|
+
display: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
// ------------------------------------------------------------------- //
|
17
|
+
// Add / Remove Floats
|
18
|
+
// ------------------------------------------------------------------- //
|
19
|
+
|
20
|
+
%float-left{
|
21
|
+
float: left;
|
22
|
+
}
|
23
|
+
%float-right{
|
24
|
+
float: right;
|
25
|
+
}
|
26
|
+
%float-none{
|
27
|
+
float: none;
|
28
|
+
}
|
29
|
+
|
30
|
+
|
31
|
+
// ------------------------------------------------------------------- //
|
32
|
+
// Text Alignment
|
33
|
+
// ------------------------------------------------------------------- //
|
34
|
+
|
35
|
+
%text-left{
|
36
|
+
text-align: left;
|
37
|
+
}
|
38
|
+
%text-right{
|
39
|
+
text-align: right;
|
40
|
+
}
|
41
|
+
%text-center{
|
42
|
+
text-align: center;
|
43
|
+
}
|
44
|
+
|
45
|
+
|
46
|
+
// ------------------------------------------------------------------- //
|
47
|
+
// Muted
|
48
|
+
// ------------------------------------------------------------------- //
|
49
|
+
|
50
|
+
%muted{
|
51
|
+
opacity: .5;
|
52
|
+
filter: alpha(opacity=50);
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
// ------------------------------------------------------------------- //
|
57
|
+
// "Go" - Add right-facing arrow, indicating movement through site
|
58
|
+
// ------------------------------------------------------------------- //
|
59
|
+
|
60
|
+
%go:after{
|
61
|
+
content: "\00A0" "\OOBB";
|
62
|
+
}
|
63
|
+
|
64
|
+
|
65
|
+
// ------------------------------------------------------------------- //
|
66
|
+
// Caps Lock - Calm down there, champ...
|
67
|
+
// ------------------------------------------------------------------- //
|
68
|
+
|
69
|
+
%caps{
|
70
|
+
text-transform: uppercase;
|
71
|
+
}
|