kickstart_rails 0.2.410970240580 → 0.3.411400890669

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails/docs.js +2 -2
  3. data/app/assets/javascripts/kickstart_rails/test.js.REMOVED.git-id +1 -0
  4. data/app/assets/stylesheets/kickstart_rails/components/_alerts.sass +12 -0
  5. data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +30 -11
  6. data/app/assets/stylesheets/kickstart_rails/components/_forms.sass +2 -1
  7. data/app/assets/stylesheets/kickstart_rails/components/_growls.sass +0 -0
  8. data/app/assets/stylesheets/kickstart_rails/components/_images.sass +17 -3
  9. data/app/assets/stylesheets/kickstart_rails/components/_labels.sass +10 -0
  10. data/app/assets/stylesheets/kickstart_rails/components/_modals.sass +1 -1
  11. data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +32 -22
  12. data/app/assets/stylesheets/kickstart_rails/components/_notifications.sass +2 -8
  13. data/app/assets/stylesheets/kickstart_rails/components/_progress.sass +2 -2
  14. data/app/assets/stylesheets/kickstart_rails/components/_root-element.sass +1 -1
  15. data/app/assets/stylesheets/kickstart_rails/components/_status.sass +1 -5
  16. data/app/assets/stylesheets/kickstart_rails/components/_tables.sass +5 -5
  17. data/app/assets/stylesheets/kickstart_rails/components/_tabs.sass +0 -0
  18. data/app/assets/stylesheets/kickstart_rails/components/_tiles.sass +4 -4
  19. data/app/assets/stylesheets/kickstart_rails/components/_tooltips.sass +122 -0
  20. data/app/assets/stylesheets/kickstart_rails/components/_typography.sass +12 -3
  21. data/app/assets/stylesheets/kickstart_rails/core/_base_components.sass +17 -0
  22. data/app/assets/stylesheets/kickstart_rails/core/_components.sass +1 -0
  23. data/app/assets/stylesheets/kickstart_rails/core/_dependent_components.sass +12 -0
  24. data/app/assets/stylesheets/kickstart_rails/core/_index.sass +2 -1
  25. data/app/assets/stylesheets/kickstart_rails/core/_mixins.sass +5 -78
  26. data/app/assets/stylesheets/kickstart_rails/core/_root-element.sass +16 -0
  27. data/app/assets/stylesheets/kickstart_rails/core/_typography.sass +162 -0
  28. data/app/assets/stylesheets/kickstart_rails/docs.sass +21 -13
  29. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +89 -9
  30. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +128 -105
  31. data/lib/kickstart_rails/version.mustache +1 -1
  32. data/lib/kickstart_rails/version.rb +1 -1
  33. metadata +12 -3
  34. data/app/assets/javascripts/kickstart_rails/test.js +0 -6280
@@ -1,17 +1,19 @@
1
- =html-default
1
+ =type-default
2
2
  font-family: $default-font
3
3
  font-size: $default-font-size
4
4
  font-size: calc(#{$default-font-size - 2} + #{$scalingFactor})
5
5
  line-height: $default-line-height
6
6
  line-height: calc(#{$default-line-height} + #{$scalingFactor})
7
7
 
8
+ html
9
+ color: map-get($black, lighter)
10
+
8
11
  ul
9
12
  margin-bottom: $space
10
13
 
11
14
  h1, h2, h3, h4, h5, h6, p
12
15
  margin: 0
13
16
  line-height: normal
14
- color: $lighter-black
15
17
 
16
18
  p
17
19
  margin: 0
@@ -80,7 +82,7 @@ a
80
82
 
81
83
  =page-heading-default
82
84
  h1, h2, h3, h4, h5, h6
83
- border-bottom: 1px solid $darker-white
85
+ border-bottom: 1px solid map-get($white, darker)
84
86
  padding-bottom: $space/2
85
87
 
86
88
  =xxl-heading-default
@@ -130,3 +132,10 @@ a
130
132
  margin:
131
133
  bottom: 0.5rem
132
134
  +heading-break
135
+
136
+ // Lists
137
+
138
+ =list-unstyled-default
139
+ padding: 0
140
+ margin: 0
141
+ list-style: none
@@ -0,0 +1,17 @@
1
+ //
2
+ // Base Components
3
+ // ===============
4
+ // These are the base components from which dependent components can extend.
5
+ //
6
+
7
+ // Components
8
+ @import ../components/_alerts
9
+ @import ../components/_buttons
10
+ @import ../components/_forms
11
+ @import ../components/_images
12
+ @import ../components/_labels
13
+ @import ../components/_modals
14
+ @import ../components/_nav
15
+ @import ../components/_progress
16
+ @import ../components/_tables
17
+ @import ../components/_tiles
@@ -16,4 +16,5 @@
16
16
  @import ../components/_notifications
17
17
  @import ../components/_tables
18
18
  @import ../components/_tiles
19
+ @import ../components/_tooltips
19
20
  @import ../components/_typography
@@ -0,0 +1,12 @@
1
+ //
2
+ // Dependent Components
3
+ // ====================
4
+ // These components extend the core and base components.
5
+ //
6
+
7
+ // Components
8
+ @import ../components/_growls
9
+ @import ../components/_modals
10
+ @import ../components/_notifications
11
+ @import ../components/_tabs
12
+ @import ../components/_tooltips
@@ -2,5 +2,6 @@
2
2
  @import _icons
3
3
  @import _mixins
4
4
  @import _animations
5
- @import _components
6
5
  @import _grid
6
+ @import _typography
7
+ @import _root-element
@@ -1,79 +1,6 @@
1
- =animation-delay($time)
2
- animation-delay: $time
3
- -webkit-animation-delay: $time
4
- -moz-animation-delay: $time
1
+ =alternate-headings
2
+ h1
3
+ +xs-heading
5
4
 
6
- =animation-duration($time)
7
- animation-duration: $time
8
- -webkit-animation-duration: $time
9
- -moz-animation-duration: $time
10
-
11
- =animation-fill-mode($mode)
12
- animation-fill-mode: $mode
13
- -webkit-animation-fill-mode: $mode
14
- -moz-animation-fill-mode: $mode
15
-
16
- =animation-name($name)
17
- animation-name: $name
18
- -webkit-animation-name: $name
19
- -moz-animation-name: $name
20
-
21
- =animation-timing-function($fn)
22
- animation-timing-function: $fn
23
- -webkit-animation-timing-function: $fn
24
- -moz-animation-timing-function: $fn
25
-
26
- =border-radius($radius)
27
- border-radius: $radius
28
- -webkit-border-radius: $radius
29
- -moz-border-radius: $radius
30
-
31
- =box-shadow($prop1, $prop2: '')
32
- @if $prop2 != ''
33
- $prop2: ',' + $prop2
34
- $propTotal: unquote($prop1 + $prop2)
35
- box-shadow: $propTotal
36
- -webkit-box-shadow: $propTotal
37
- -moz-box-shadow: $propTotal
38
-
39
- =box-sizing($prop: border-box)
40
- box-sizing: $prop
41
- -webkit-box-sizing: $prop
42
- -moz-box-sizing: $prop
43
-
44
- =transform($prop)
45
- transform: $prop
46
- -moz-transform: $prop
47
- -webkit-transform: $prop
48
-
49
- =flex($type: flex)
50
- display: -moz-box
51
- display: -webkit-box
52
- display: -webkit-flex
53
- display: -ms-flexbox
54
- display: $type
55
-
56
- =align-items
57
- -webkit-align-items: flex-start
58
- -moz-align-items: flex-start
59
- align-items: flex-start
60
-
61
- =flex-wrap($kind: wrap)
62
- -webkit-flex-wrap: $kind
63
- -moz-flex-wrap: $kind
64
- flex-wrap: $kind
65
-
66
- =justify-content($justification)
67
- -webkit-justify-content: $justification
68
- -moz-justify-content: $justification
69
- justify-content: $justification
70
-
71
- =align-content($justification)
72
- -webkit-align-content: $justification
73
- -moz-align-content: $justification
74
- align-content: $justification
75
-
76
- =align-items($justification)
77
- -webkit-align-items: $justification
78
- -moz-align-items: $justification
79
- align-items: $justification
5
+ h2, h3, h4, h5
6
+ +xxs-heading
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Root Element
3
+ * =========
4
+ * The root element is a base for several many elements in the library
5
+ * To ensure consistent spacing when mixed into blocks.
6
+ */
7
+
8
+ =root-element($size: 1)
9
+ padding: ($size * $size * map-get($rootElement, paddingV)) ($size * $size * map-get($rootElement, paddingV))
10
+ border-radius: 3px
11
+ border: 1px solid transparent
12
+ outline: none
13
+ margin-bottom: $space
14
+ @if $size != 1
15
+ font-size: #{$size}rem
16
+ line-height: $size * $default-line-height
@@ -0,0 +1,162 @@
1
+ =type-default
2
+ font-family: $default-font
3
+ font-size: $default-font-size
4
+ font-size: calc(#{$default-font-size - 2} + #{$scalingFactor})
5
+ line-height: $default-line-height
6
+ line-height: calc(#{$default-line-height} + #{$scalingFactor})
7
+
8
+ html
9
+ color: map-get($black, lightest)
10
+
11
+ ul
12
+ margin-bottom: $space
13
+
14
+ h1, h2, h3, h4, h5, h6, p
15
+ margin: 0
16
+ line-height: normal
17
+
18
+ p
19
+ margin: 0
20
+ bottom: $space
21
+
22
+ a
23
+ text-decoration: none
24
+ color: $blue
25
+
26
+ &:hover
27
+ text-decoration: underline
28
+
29
+ =pre-default
30
+ color: darken($blue, 25%)
31
+ border-radius: $space/5
32
+ padding: ($space/5)
33
+ font-family: monospace
34
+ word-break: break-all
35
+ word-wrap: break-word
36
+ border: 0px !important
37
+ margin: 0
38
+ bottom: $space
39
+
40
+ =code-default
41
+ margin-bottom: 0px
42
+ padding: 0 (($space/5)/3)
43
+
44
+ =p-default($content-optimized)
45
+ font-size: 1rem
46
+ margin-bottom: $space
47
+ line-height: $default-line-height
48
+
49
+ @if ($content-optimized)
50
+ font-size: 1.25rem
51
+ line-height: 1.85rem
52
+ margin-bottom: 2.5rem
53
+
54
+ =hero-default
55
+ padding:
56
+ top: $space
57
+ top: 2vw
58
+ bottom: $space
59
+ bottom: 2vw
60
+ min-height: 450px
61
+ min-height: 35vw
62
+ background: $primary-color
63
+ margin-bottom: $space
64
+ box-shadow: inset 0px -30px 100px -20px hsla(0, 0%, 0%, 0.15), inset 0px 40px 90px -20px rgba(255, 255, 255, 0.15)
65
+ display: flex
66
+ flex-direction: column
67
+ justify-content: center
68
+ align-items: center
69
+
70
+ > h1, > h2, > h3, > h4, > h5, > h6, > p
71
+ text-align: center
72
+ font-weight: 300
73
+
74
+ h1, h2, h3, h4, h5, h6, p
75
+ color: white
76
+
77
+ h1
78
+ +xxl-heading
79
+ h2
80
+ +xl-heading
81
+ h3
82
+ +lg-heading
83
+ h4
84
+ +md-heading
85
+ h5
86
+ +rg-heading
87
+ h6
88
+ +sm-heading
89
+
90
+ > img
91
+ margin: 0px auto
92
+ display: block
93
+
94
+ =heading-break
95
+ margin:
96
+ top: 2rem
97
+ &:first-child
98
+ margin-top: 0
99
+
100
+ =page-heading-default
101
+ h1, h2, h3, h4, h5, h6
102
+ border-bottom: 1px solid map-get($white, darker)
103
+ padding-bottom: $space/2
104
+
105
+ =xxl-heading-default
106
+ font-size: 3rem
107
+ margin:
108
+ bottom: 1.65rem
109
+ +heading-break
110
+
111
+ =xl-heading-default
112
+ font-size: 2.7rem
113
+ margin:
114
+ bottom: 1.5rem
115
+ +heading-break
116
+
117
+ =lg-heading-default
118
+ font-size: 2.4rem
119
+ margin:
120
+ bottom: 1.25rem
121
+ +heading-break
122
+
123
+ =md-heading-default
124
+ font-size: 2.1rem
125
+ margin:
126
+ bottom: 1.15rem
127
+ +heading-break
128
+
129
+ =rg-heading-default
130
+ font-size: 1.8rem
131
+ margin:
132
+ bottom: 1rem
133
+ +heading-break
134
+
135
+ =sm-heading-default
136
+ font-size: 1.5rem
137
+ margin:
138
+ bottom: 0.85rem
139
+ +heading-break
140
+
141
+ =xs-heading-default
142
+ font-size: 1.2rem
143
+ margin:
144
+ bottom: 0.7rem
145
+ +heading-break
146
+
147
+ =xxs-heading-default
148
+ font-size: 0.9rem
149
+ margin:
150
+ bottom: 0.5rem
151
+ +heading-break
152
+
153
+ =list-unstyled-default
154
+ padding: 0
155
+ margin: 0
156
+ bottom: $space
157
+ list-style: none
158
+
159
+ =list-horizontal-default
160
+ > li
161
+ display: inline-block
162
+ margin-right: 5px
@@ -38,7 +38,7 @@
38
38
  opacity: 0.8
39
39
 
40
40
  .docs-nav
41
- +navbar($bleed-container: true, $background: $lightest-black)
41
+ +navbar($bleed-container: true, $background: map-get($black, lightest))
42
42
 
43
43
  // Colors
44
44
  // Kind of shitty, but there is a colors page that directly relies on this.
@@ -48,22 +48,22 @@
48
48
 
49
49
  .color-
50
50
  &black
51
- background-color: $black
51
+ background-color: black
52
52
 
53
53
  &light-black
54
- background-color: $light-black
54
+ background-color: map-get($black, light)
55
55
 
56
56
  &lighter-black
57
- background-color: $lighter-black
57
+ background-color: map-get($black, lighter)
58
58
 
59
59
  &lightest-black
60
- background-color: $lightest-black
60
+ background-color: map-get($black, lightest)
61
61
 
62
62
  &gray
63
- background-color: $gray
63
+ background-color: gray
64
64
 
65
65
  &white
66
- background-color: $white
66
+ background-color: white
67
67
 
68
68
  &yellow
69
69
  background-color: $yellow
@@ -75,12 +75,12 @@
75
75
  text-align: center
76
76
 
77
77
  .gray
78
- background: $dark-white
78
+ background: map-get($white, dark)
79
79
 
80
80
  .example
81
81
  padding: $space
82
82
  margin-bottom: $space
83
- background: $dark-white
83
+ background: map-get($white, dark)
84
84
 
85
85
  > *:last-child
86
86
  margin-bottom: 0
@@ -116,15 +116,18 @@ h1.example-
116
116
  width: 600px
117
117
  max-width: 95%
118
118
 
119
+ a
120
+ color: white
121
+
119
122
  form, table, .tile
120
123
  text-align: left
121
124
  max-width: 360px
122
125
  margin: 0px auto
123
- color: $light-black
126
+ color: map-get($black, light)
124
127
 
125
128
  .tile
126
129
  h1
127
- color: $light-black
130
+ color: map-get($black, light)
128
131
  font-weight: 400
129
132
  font-size: 1.1rem
130
133
 
@@ -134,14 +137,19 @@ h1.example-
134
137
  max-width: 600px
135
138
 
136
139
  // Iframes
137
- iframe
140
+ iframe.animation
138
141
  max-width: 500px
139
142
  height: 200px
143
+ display: block
144
+ margin:
145
+ left: auto
146
+ right: auto
147
+ bottom: $space
140
148
 
141
149
  // Grid
142
150
 
143
151
  .example-column
144
- background-color: $darkest-white
152
+ background-color: map-get($white, darkest)
145
153
  color: white
146
154
 
147
155
  // Modal