kickstart_rails 0.1.1410202688028 → 0.2.410370028585

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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails.js +1 -0
  3. data/app/assets/javascripts/kickstart_rails/app.js +8 -0
  4. data/app/assets/javascripts/kickstart_rails/docs.js +108 -0
  5. data/app/assets/javascripts/kickstart_rails/docs/throttler_edge.js +2 -0
  6. data/app/assets/javascripts/kickstart_rails/docs/throttler_edgeActions.js +8 -0
  7. data/app/assets/javascripts/kickstart_rails/docs/throttler_edgePreload.js +18 -0
  8. data/app/assets/javascripts/kickstart_rails/kickstart.js +213 -0
  9. data/app/assets/javascripts/kickstart_rails/ks.js +6 -0
  10. data/app/assets/javascripts/kickstart_rails/modal.js +12 -0
  11. data/app/assets/javascripts/kickstart_rails/test.js +6364 -0
  12. data/app/assets/javascripts/kickstart_rails/tests.js +10 -0
  13. data/app/assets/javascripts/kickstart_rails/throttler_edge.js +2 -0
  14. data/app/assets/javascripts/kickstart_rails/throttler_edgeActions.js +8 -0
  15. data/app/assets/javascripts/kickstart_rails/throttler_edgePreload.js +18 -0
  16. data/app/assets/stylesheets/index.scss +1 -0
  17. data/app/assets/stylesheets/kickstart_rails.scss +1 -0
  18. data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +28 -0
  19. data/app/assets/stylesheets/kickstart_rails/components/_forms.sass +52 -0
  20. data/app/assets/stylesheets/kickstart_rails/components/_modals.sass +27 -0
  21. data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +148 -0
  22. data/app/assets/stylesheets/kickstart_rails/components/_notifications.sass +40 -0
  23. data/app/assets/stylesheets/kickstart_rails/components/_progress.sass +12 -0
  24. data/app/assets/stylesheets/kickstart_rails/components/_root-element.sass +12 -0
  25. data/app/assets/stylesheets/kickstart_rails/components/_status.sass +16 -0
  26. data/app/assets/stylesheets/kickstart_rails/components/_tables.sass +35 -0
  27. data/app/assets/stylesheets/kickstart_rails/components/_tiles.sass +26 -0
  28. data/app/assets/stylesheets/kickstart_rails/components/_typography.sass +124 -0
  29. data/app/assets/stylesheets/kickstart_rails/core/_animations.sass +8 -0
  30. data/app/assets/stylesheets/kickstart_rails/core/_base.sass +11 -0
  31. data/app/assets/stylesheets/kickstart_rails/core/_components.sass +18 -0
  32. data/app/assets/stylesheets/kickstart_rails/core/_grid.sass +76 -0
  33. data/app/assets/stylesheets/kickstart_rails/core/_icons.sass +3 -0
  34. data/app/assets/stylesheets/kickstart_rails/core/_index.sass +6 -0
  35. data/app/assets/stylesheets/kickstart_rails/core/_mixins.sass +79 -0
  36. data/app/assets/stylesheets/kickstart_rails/core/_normalize.sass +339 -0
  37. data/app/assets/stylesheets/kickstart_rails/docs.sass +136 -0
  38. data/app/assets/stylesheets/kickstart_rails/kickstart-semantic.sass +12 -0
  39. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +117 -0
  40. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +209 -0
  41. data/kickstart_rails-0.1.1410202688028.gem +0 -0
  42. data/kickstart_rails-0.1.1410202922510.gem +0 -0
  43. data/kickstart_rails-0.1.410202952463.gem +0 -0
  44. data/kickstart_rails-0.1.410203541952.gem +0 -0
  45. data/kickstart_rails-0.1.410205316740.gem +0 -0
  46. data/kickstart_rails-0.1.410205374218.gem +0 -0
  47. data/kickstart_rails.gemspec +4 -0
  48. data/lib/kickstart_rails/version.mustache +1 -1
  49. metadata +89 -3
  50. data/lib/kickstart_rails/version.rb +0 -3
@@ -0,0 +1,136 @@
1
+ /*
2
+ * Docs
3
+ * ====
4
+ * Generation of css for the getkickstart.com homepage.
5
+ */
6
+
7
+ // Choose your theme
8
+ @import themes/_default
9
+
10
+ // Now write your own Sass
11
+
12
+ .mainpane
13
+ +column('twothirds')
14
+
15
+ .sidebar
16
+ +column('third')
17
+
18
+ h1
19
+ +xs-heading
20
+
21
+ h2
22
+ +xxs-heading
23
+
24
+ .fullpane
25
+ +column(12)
26
+
27
+ @media screen and (min-width: $tablet-landscape)
28
+ +column(8, 2)
29
+
30
+ .main-navigation
31
+ +navbar($bleed-container: true)
32
+
33
+ .logo
34
+ height: 30px
35
+ margin:
36
+ top: 5px
37
+ bottom: -5px
38
+ opacity: 0.8
39
+
40
+ .docs-nav
41
+ +navbar($bleed-container: true, $background: $lightest-black)
42
+
43
+ // Colors
44
+ // Kind of shitty, but there is a colors page that directly relies on this.
45
+
46
+ // TODO: Use map functions to get colors and make this a loop
47
+ // http://sass-lang.com/documentation/Sass/Script/Functions.html
48
+
49
+ .color-
50
+ &black
51
+ background-color: $black
52
+
53
+ &light-black
54
+ background-color: $light-black
55
+
56
+ &lighter-black
57
+ background-color: $lighter-black
58
+
59
+ &lightest-black
60
+ background-color: $lightest-black
61
+
62
+ &gray
63
+ background-color: $gray
64
+
65
+ &white
66
+ background-color: $white
67
+
68
+ &yellow
69
+ background-color: $yellow
70
+
71
+ .example
72
+ padding: $space
73
+ margin-bottom: $space
74
+ background: $dark-white
75
+
76
+ > *:last-child
77
+ margin-bottom: 0
78
+
79
+ // Also shitty
80
+
81
+ h1.example-
82
+ &xxl
83
+ +xxl-heading
84
+ &xl
85
+ +xl-heading
86
+ &lg
87
+ +lg-heading
88
+ &md
89
+ +md-heading
90
+ &rg
91
+ +rg-heading
92
+ &sm
93
+ +sm-heading
94
+ &xs
95
+ +xs-heading
96
+ &xxs
97
+ +xxs-heading
98
+
99
+ .if-jquery, .ifnot-jquery, .if-semantic, .ifnot-semantic
100
+ display: none
101
+
102
+ .hero
103
+ ul, ul li, .navbar
104
+ text-align: left
105
+
106
+ .logo
107
+ width: 600px
108
+ max-width: 95%
109
+
110
+ form, table, .tile
111
+ text-align: left
112
+ max-width: 360px
113
+ margin: 0px auto
114
+ color: $light-black
115
+
116
+ .tile
117
+ h1
118
+ color: $light-black
119
+ font-weight: 400
120
+ font-size: 1.1rem
121
+
122
+ // Images
123
+
124
+ .logo
125
+ max-width: 600px
126
+
127
+ // Iframes
128
+ iframe
129
+ max-width: 500px
130
+ height: 200px
131
+
132
+ // Grid
133
+
134
+ .example-column
135
+ background-color: $darkest-white
136
+ color: white
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Kickstart Semantic
3
+ * ==================
4
+ * This is just a starter file for using Kickstrap via Sass
5
+ * Rename this file to something you like (e.g. style.sass) and import it by
6
+ * the same .css name from your html/jade file.
7
+ */
8
+
9
+ // Choose your theme
10
+ @import themes/_default
11
+
12
+ // Now write your own Sass
@@ -0,0 +1,117 @@
1
+ /*
2
+ * Kickstart
3
+ * =========
4
+ * For users who prefer to not use Sass, this will generate a CSS file with
5
+ * classes for all the components.
6
+ */
7
+
8
+ // Import the semantic index
9
+ @import kickstart-semantic
10
+
11
+ // Assign mixins to static classes
12
+
13
+ // BUTTONS
14
+ // -------
15
+ .button, button, input[type=submit]
16
+ +button
17
+ // TODO: Make loop
18
+ &.primary
19
+ +button($primary-color)
20
+
21
+ &.secondary
22
+ +button($secondary-color)
23
+
24
+ &.red
25
+ +button($red)
26
+
27
+ &.orange
28
+ +button($orange)
29
+
30
+ &.yellow
31
+ +button($yellow)
32
+
33
+ &.green
34
+ +button($green)
35
+
36
+ &.blue
37
+ +button($blue)
38
+
39
+ &.violet
40
+ +button($violet)
41
+
42
+ // FORMS
43
+ // -----
44
+ .form-horizontal
45
+ +form-horizontal
46
+
47
+ .form-left
48
+ +form-left
49
+
50
+ .form-group
51
+ +form-group
52
+
53
+ // GRID
54
+ // ----
55
+ .container
56
+ +container
57
+
58
+ .row
59
+ +row
60
+
61
+ @for $i from 1 through 12
62
+ .col-#{$i}
63
+ +column($i)
64
+
65
+ .col-half
66
+ +column('half')
67
+
68
+ .col-third
69
+ +column('third')
70
+
71
+ .col-twothirds
72
+ +column('twothirds')
73
+
74
+ // MODALS
75
+ // ------
76
+
77
+ .modal
78
+ +modal
79
+
80
+ // NAVIGATION
81
+ // ----------
82
+
83
+ .navbar
84
+ +navbar
85
+
86
+ .navbar-dark
87
+ +navbar($background: $lighter-black)
88
+
89
+ // STATUS
90
+ // ------
91
+
92
+ .status-bar
93
+ +statusBar
94
+
95
+ // TABLES
96
+ // ------
97
+ table
98
+ +table
99
+
100
+ // TILES
101
+ // -----
102
+ .tile
103
+ +tile
104
+
105
+ // TYPOGRAPHY
106
+ // ----------
107
+ .readable
108
+ +p(true)
109
+
110
+ p, ul li, table, table td, table th
111
+ +p(true)
112
+
113
+ .page-heading
114
+ +page-heading
115
+
116
+ .hero
117
+ +hero
@@ -0,0 +1,209 @@
1
+ /*
2
+ * Theme: Default
3
+ * ==============
4
+ * Theme files wrap Kickstart's mixins into duplicate mixins without the
5
+ * "-default". This allows theme artists to insert their own styles by
6
+ * extending the default ones. Because the default theme just does direct
7
+ * assignment to the final namespaces, it overrides without actually
8
+ * changing anything.
9
+ */
10
+
11
+ // TODO: This would be the second time importing in rails. prepend this line
12
+ // via gulp.
13
+
14
+ @import ../core/_normalize
15
+
16
+ // VARIABLES
17
+ // ---------
18
+
19
+ // Grayscale
20
+
21
+ $black: #111
22
+ $light-black: #222
23
+ $lighter-black: #333
24
+ $lightest-black: #444
25
+ $darkest-gray: #555
26
+ $darker-gray: #666
27
+ $dark-gray: #777
28
+ $gray: #888
29
+ $light-gray: #999
30
+ $lighter-gray: #AAA
31
+ $lightest-gray: #BBB
32
+ $darkest-white: #CCC
33
+ $darker-white: #DDD
34
+ $dark-white: #EEE
35
+ $white: #FFF
36
+
37
+ // Rainbow
38
+
39
+ $red: #CA3518
40
+ $orange: darkorange
41
+ $yellow: rgb(255, 250, 14)
42
+ $green: #58AA00
43
+ $blue: cornflowerblue
44
+ $violet: darkmagenta
45
+
46
+ // Ten point design variables
47
+ // --------------------------
48
+ // Modifying just these ten variables will take care of 90% of your theme
49
+
50
+ $primary-color: $blue
51
+ $secondary-color: $darker-white
52
+ $space: 25px
53
+ $heading-font-family: 'Lato', helvetica neue, sans-serif
54
+ $body-font-family: 'Lato', helvetica neue, sans-serif
55
+ $base-font-size: 16px
56
+ $black-augment: 0
57
+ $white-augment: 0
58
+ $saturation-augment: 0
59
+ $luminosity-augment: 0
60
+
61
+ // --------------------------
62
+
63
+ $scalingFactor: 0.2vw
64
+
65
+ $rootElement: (paddingV: 5px, paddingH: 12px)
66
+
67
+ $default-font: $body-font-family
68
+ $default-font-size: $base-font-size
69
+ $default-line-height: 1.4rem
70
+
71
+ @import ../core/index
72
+
73
+ // BUTTONS
74
+ // -------
75
+
76
+ =button($color: transparent)
77
+ +button-default($color)
78
+
79
+ // FORMS
80
+ // -----
81
+
82
+ =form-horizontal()
83
+ +form-horizontal-default()
84
+
85
+ =form-left
86
+ +form-left-default()
87
+
88
+ =form-group()
89
+ +form-group-default()
90
+
91
+ // MODALS
92
+ // ------
93
+
94
+ =modal()
95
+ +modal-default()
96
+
97
+ // NAVIGATION
98
+ // ----------
99
+
100
+ =navbar($bleed-container: false, $background: $dark-white)
101
+ +navbar-default($bleed-container, $background)
102
+
103
+ // STATUSES
104
+ // --------
105
+
106
+ .status-bar
107
+ +statusBar()
108
+
109
+ // TABLE
110
+ // -----
111
+
112
+ =table()
113
+ +table-default()
114
+
115
+ // TILES
116
+ // -----
117
+
118
+ =tile($color: $dark-gray)
119
+ +tile-default($color)
120
+
121
+ // TYPOGRAPHY
122
+ // ----------
123
+
124
+ =pre
125
+ +pre-default
126
+
127
+ pre
128
+ +pre
129
+
130
+ =code
131
+ +code-default
132
+
133
+ =p($content-optimized)
134
+ +p-default($content-optimized)
135
+
136
+ =page-heading
137
+ +page-heading-default
138
+ h1, h2, h3, h4, h5, h6
139
+ // Styles should go here.
140
+
141
+ =hero
142
+ +hero-default
143
+ h1, h2, h3, h4, h5, h6, p
144
+ color: white
145
+ font-weight: 300
146
+
147
+ h1
148
+ +xxl-heading
149
+ h2
150
+ +xl-heading
151
+ h3
152
+ +lg-heading
153
+ h4
154
+ +md-heading
155
+ h5
156
+ +rg-heading
157
+ h6
158
+ +sm-heading
159
+
160
+ =xxl-heading
161
+ +xxl-heading-default
162
+
163
+ =xl-heading
164
+ +xl-heading-default
165
+
166
+ =lg-heading
167
+ +lg-heading-default
168
+
169
+ =md-heading
170
+ +md-heading-default
171
+
172
+ =rg-heading
173
+ +rg-heading-default
174
+
175
+ =sm-heading
176
+ +sm-heading-default
177
+
178
+ =xs-heading
179
+ +xs-heading-default
180
+
181
+ =xxs-heading
182
+ +xxs-heading-default
183
+
184
+ h1, h2, h3, h4, h5, h6
185
+ font-family: $heading-font-family
186
+
187
+ h1
188
+ +lg-heading
189
+
190
+ h2
191
+ +md-heading
192
+
193
+ h3
194
+ +rg-heading
195
+
196
+ h4
197
+ +sm-heading
198
+
199
+ h5
200
+ +xs-heading
201
+
202
+ h6
203
+ +xxs-heading
204
+
205
+ =html
206
+ +html-default
207
+
208
+ html, li, p, table
209
+ +html