kube-rails 0.3.1 → 0.4.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.
@@ -1,59 +1,141 @@
1
1
  // Font
2
- @baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
3
- @headingsFontFamily: @baseFontFamily;
4
- @controlsFontFamily: @baseFontFamily;
5
- @codeFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
2
+ @font-family-base: 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
+ @font-family-code: Menlo, Monaco, Consolas, Courier, monospace;
6
4
 
7
- // Base color
8
- @backgroundBody: #fff;
9
- @colorBody: #333;
10
- @colorHeadings: #222;
5
+ // Breakpoints
6
+ @breakpoint-small: 768px;
7
+ @breakpoint-medium: 1024px;
8
+ @breakpoint-large: 1200px;
9
+
10
+ // Global Radius
11
+ @global-radius: 2px;
12
+
13
+ // Base Colors
14
+ @background-body: #fff;
15
+ @color-body: #202020;
16
+ @color-headings: #000;
17
+
18
+ @color-link: #256bc9;
19
+ @color-link-hover: #e21e3b;
20
+
21
+ // Baseline
22
+ @base-line: 24px; // 24px by default
23
+ @base-line-big: 28px; // 28px by default
24
+ @base-line-small: 20px; // 20px by default
25
+ @base-line-smaller: 16px; // 16px by default
11
26
 
12
27
  // Grid
13
- @gridWidth: 1000;
14
- @gridGutterWidth: 30;
15
-
16
- // Type
17
- @baseFontSize: 14;
18
- @baseLineHeight: 1.6;
19
- @baseLine: @baseFontSize * @baseLineHeight;
20
- @baseLineInEms: @baseLine / @em;
21
-
22
- // Heading
23
- @h1FontSize: @baseFontSize + 22px; // 36px
24
- @h2FontSize: @baseFontSize + 16px; // 30px
25
- @h3FontSize: @baseFontSize + 10px; // 24px
26
- @h4FontSize: @baseFontSize + 4px; // 18px
27
- @h5FontSize: @baseFontSize + 0px; // 14px
28
- @h6FontSize: @baseFontSize - 2px; // 12px
29
-
30
- @h1SubheadingFontSize: @baseFontSize + 16px; // 30px
31
- @h2SubheadingFontSize: @baseFontSize + 10px; // 24px
32
- @h3SubheadingFontSize: @baseFontSize + 4px; // 18px
33
- @h4SubheadingFontSize: @baseFontSize + 0px; // 14px
34
- @h5SubheadingFontSize: @baseFontSize - 2px; // 12px
35
-
36
- // Font size
37
- @superSmallFontSize: @baseFontSize - 4px; // 10px
38
- @smallFontSize: @baseFontSize - 2px; // 12px
39
- @leadFontSize: @baseFontSize + 4px; // 18px
40
- @bigFontSize: @baseFontSize + 4px; // 18px
41
- @quoteFontSize: @baseFontSize + 2px; // 16px
42
- @buttonsSmallFontSize: @baseFontSize - 3px; // 11px
43
-
44
- // Colors
45
- @colorBlack: #0f0f0f;
46
- @colorBlue: #3d58a8;
47
- @colorRed: #d70a16;
48
- @colorGreen: #159776;
49
- @colorYellow: #fddc43;
50
-
51
- // LinkColor
52
- @colorLink: #3570c3;
53
- @colorLinkHover: @colorRed;
54
-
55
- // Forms
56
- @fieldsBottom: 1.6em;
57
-
58
- // Util
59
- @em: @baseFontSize * 1em; // outputting ems, e.g. 14 / @em
28
+ @grid-columns: 12;
29
+ @grid-width: 1128; // pixels
30
+ @grid-gutter: @base-line;
31
+ @grid-gap: (unit(@grid-gutter)/(@grid-width/100))*1%;
32
+
33
+ // Font Size
34
+ @font-size: 15; // 15 (px) default
35
+ @font-size-big: 120%; // 18px or 120% by default
36
+ @font-size-small: 86%; // 13px or 86% by default
37
+ @font-size-smaller: 74%; // 11px or 74% by default
38
+
39
+ // Table
40
+ @font-size-table: 94%; // 14px or 94% by default
41
+
42
+ // Form Labels
43
+ @font-size-form-label: 94%; // 14px or 94% by default
44
+
45
+ // Labels & Badges
46
+ @font-size-label: 11px;
47
+
48
+ // Tools (dropdown, accordion, navigation, pagination, tabs)
49
+ @font-size-tools: 94%; // 14px or 94% by default
50
+
51
+ // Controls
52
+ @font-size-btn-normal: 1.4rem; // 14px or 94% by default
53
+ @font-size-btn-small: 1.2rem; // 12px or 80% by default
54
+ @font-size-btn-big: 1.8rem; // 18px or 120% by default
55
+ @font-size-btn-upper-normal: 1.1rem; // 11px or 74% by default
56
+ @font-size-btn-upper-small: 1rem; // 10px or 66% by default
57
+ @font-size-btn-upper-big: 1.4rem; // 14px or 94% by default
58
+
59
+ // Headings Size
60
+ @font-size-title: 4.8rem; // 48px by default
61
+ @font-size-h1: 3rem; // 30px
62
+ @font-size-h2: 2.4rem; // 24px
63
+ @font-size-h3: 2rem; // 20px
64
+ @font-size-h4: 1.8rem; // 18px
65
+ @font-size-h5: 1.6rem; // 16px
66
+ @font-size-h6: 1.5rem; // 15px
67
+
68
+ // Half Margin
69
+ @margin-half: 16px;
70
+
71
+ // Mark
72
+ @color-mark: #202020;
73
+ @color-mark-background: #ffd61e;
74
+
75
+ // Dfn
76
+ @color-dfn-border: #202020;
77
+
78
+ // Pre
79
+ @color-pre-background: rgba(0, 0, 0, .03);
80
+
81
+ // Code
82
+ @color-code-background: rgba(0, 0, 0, .07);
83
+
84
+ // Kbd
85
+ @color-kbd: rgba(255, 255, 255, .85);
86
+ @color-kbd-background: #202020;
87
+
88
+ // Samp
89
+ @color-samp: rgba(255, 255, 255, .95);
90
+ @color-samp-background: #46a9fc;
91
+
92
+ // Highlighted
93
+ @color-highlighted-background: #f4f4f4;
94
+
95
+ // Table Colors
96
+ @color-table-stripped: #f8f8f8;
97
+
98
+ // Controls Height
99
+ @input-height: 40px;
100
+ @input-height-small: 32px;
101
+ @input-height-big: 56px;
102
+
103
+ // Button Padding
104
+ @padding-btn: 0 32px;
105
+ @padding-btn-outline: 0 31px;
106
+ @padding-btn-small: 0 20px;
107
+ @padding-btn-small-outline: 0 19px;
108
+ @padding-btn-big: 0 48px;
109
+ @padding-btn-big-outline: 0 47px;
110
+
111
+ // Input Padding
112
+ @padding-input: .9rem 1rem;
113
+ @padding-input-big: 1.5rem 1.2rem;
114
+ @padding-input-small: .7rem 1rem;
115
+
116
+ // Input Border Style
117
+ @input-border-size: 1px;
118
+ @color-input-background: #fff;
119
+ @color-input-border: #dfdfdf;
120
+
121
+ // Input Focus
122
+ @color-input-background-focus: #fff;
123
+ @color-input-border-focus: #222;
124
+
125
+ // Input Color
126
+ @color-input: rgba(0, 0, 0, .85);
127
+
128
+ // Input Append & Prepend
129
+ @background-input-append: #efefef;
130
+ @color-input-append: rgba(0, 0, 0, .6);
131
+
132
+ // Fieldset
133
+ @color-fieldset-border: rgba(0, 0, 0, .1);
134
+ @fieldset-border-size: 1px;
135
+
136
+ // Extra Colors
137
+ @color-default: #e5e5e5;
138
+ @color-primary: #2f77d1;
139
+ @color-success: #0A8754;
140
+ @color-error: #d11149;
141
+ @color-warning: #f4d31e;
metadata CHANGED
@@ -1,72 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kube-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-28 00:00:00.000000000 Z
11
+ date: 2015-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.1'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actionpack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.1'
33
+ version: '4.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.1'
40
+ version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: less-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.4.0
47
+ version: 2.7.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.4.0
54
+ version: 2.7.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: therubyracer
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.12.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.12.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rails
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - '>='
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '3.1'
75
+ version: '4.0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - '>='
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '3.1'
69
- description: kube-rails project integrates Kube for Rails 3.1 Asset Pipeline
82
+ version: '4.0'
83
+ description: |2
84
+ kube-rails project integrates Kube for Rails 4 Asset Pipeline
70
85
  email:
71
86
  - mindaugas.mozuras@gmail.com
72
87
  executables: []
@@ -98,16 +113,19 @@ files:
98
113
  - lib/kube/rails/engine.rb
99
114
  - lib/kube/rails/kube.rb
100
115
  - lib/kube/rails/version.rb
116
+ - vendor/kube/alerts.less
101
117
  - vendor/kube/blocks.less
118
+ - vendor/kube/breadcrumbs.less
102
119
  - vendor/kube/buttons.less
103
120
  - vendor/kube/forms.less
104
121
  - vendor/kube/grid.less
105
122
  - vendor/kube/helpers.less
106
123
  - vendor/kube/kube.less
124
+ - vendor/kube/labels.less
125
+ - vendor/kube/messages.less
107
126
  - vendor/kube/mixins.less
108
- - vendor/kube/navigation.less
109
- - vendor/kube/normalize.less
110
- - vendor/kube/prettyprint.less
127
+ - vendor/kube/pagination.less
128
+ - vendor/kube/reset.less
111
129
  - vendor/kube/tables.less
112
130
  - vendor/kube/typography.less
113
131
  - vendor/kube/variables.less
@@ -121,18 +139,18 @@ require_paths:
121
139
  - lib
122
140
  required_ruby_version: !ruby/object:Gem::Requirement
123
141
  requirements:
124
- - - '>='
142
+ - - ">="
125
143
  - !ruby/object:Gem::Version
126
144
  version: '0'
127
145
  required_rubygems_version: !ruby/object:Gem::Requirement
128
146
  requirements:
129
- - - '>='
147
+ - - ">="
130
148
  - !ruby/object:Gem::Version
131
149
  version: '0'
132
150
  requirements: []
133
151
  rubyforge_project: kube-rails
134
- rubygems_version: 2.2.2
152
+ rubygems_version: 2.4.5
135
153
  signing_key:
136
154
  specification_version: 4
137
- summary: Kube for Rails 3.1 Asset Pipeline
155
+ summary: Kube for Rails 4 Asset Pipeline
138
156
  test_files: []
@@ -1,244 +0,0 @@
1
- /* =Navs
2
- -----------------------------------------------------------------------------*/
3
-
4
- /* NavBar */
5
- .navbar {
6
- margin-bottom: @baseLineInEms;
7
- .clearfix;
8
- }
9
- .navbar-left {
10
- float: left;
11
- }
12
- .navbar-right {
13
- float: right;
14
- }
15
- .navbar ul {
16
- list-style: none;
17
- margin: 0;
18
- .clearfix;
19
- }
20
- .navbar ul li {
21
- float: left;
22
- margin-right: @baseLineInEms;
23
- }
24
- .navbar-right ul li {
25
- margin-right: 0;
26
- margin-left: @baseLineInEms;
27
- }
28
- .navbar ul li a,
29
- .navbar ul li span {
30
- display: block;
31
- text-decoration: none;
32
- }
33
- .navbar ul li a:hover {
34
- color: @colorLinkHover;
35
- }
36
- .navbar ul li.active a,
37
- .navbar ul li span {
38
- text-decoration: none;
39
- cursor: text;
40
- color: rgba(0, 0, 0, .4);
41
- }
42
-
43
-
44
- /* Fullwidth */
45
- .fullwidth ul {
46
- width: 100%;
47
- }
48
- .fullwidth li {
49
- float: none !important;
50
- margin: 0;
51
- display: table-cell;
52
- width: 1%;
53
- text-align: center;
54
- }
55
- .fullwidth li a,
56
- .fullwidth li span {
57
- display: block;
58
- }
59
-
60
-
61
- /* Vertical */
62
- .nav {
63
- margin-bottom: @baseLineInEms;
64
- }
65
- .nav ul {
66
- list-style: none;
67
- margin: 0;
68
- }
69
- .nav ul li ul {
70
- margin-left: 2em;
71
- font-size: .95em;
72
- }
73
- .nav ul li a,
74
- .nav ul li span {
75
- display: block;
76
- padding: 5px 0;
77
- }
78
- .nav ul li ul li a,
79
- .nav ul li ul li span {
80
- padding: 4px 0;
81
- }
82
- .nav ul li a {
83
- text-decoration: none;
84
- }
85
- .nav ul li a:hover {
86
- color: @colorLinkHover;
87
- text-decoration: underline;
88
- }
89
- .nav ul li.active a,
90
- .nav ul li span {
91
- text-decoration: none;
92
- cursor: text;
93
- color: rgba(0, 0, 0, .4);
94
- }
95
-
96
- /* Stroked */
97
- .nav-stroked li {
98
- border-bottom: 1px solid #eee;
99
- }
100
- .nav-stroked li:last-child {
101
- border-bottom: none;
102
- }
103
-
104
- /* Stacked */
105
- .nav-stacked ul {
106
- border: 1px solid #eee;
107
- border-bottom: 0;
108
- }
109
- .nav-stacked ul li {
110
- border-bottom: 1px solid #eee;
111
- }
112
- .nav-stacked ul li a,
113
- .nav-stacked ul li span {
114
- padding: 5px 10px;
115
- }
116
- .nav-stacked ul li a:hover {
117
- background-color: #f5f5f5;
118
- }
119
-
120
- /* Stats */
121
- .nav-stats li {
122
- position: relative;
123
- }
124
- .nav-stats li a,
125
- .nav-stats li span {
126
- padding-right: 50px;
127
- }
128
- .nav-stats sup {
129
- position: absolute;
130
- top: 50%;
131
- right: 0;
132
- color: rgba(0, 0, 0, .4);
133
- }
134
- .nav-stats.nav-stacked sup {
135
- right: .5em;
136
- }
137
-
138
-
139
- /* Breadcrumbs */
140
- .breadcrumbs {
141
- margin-bottom: @baseLineInEms;
142
- .clearfix;
143
- }
144
- .breadcrumbs ul {
145
- font-size: .9em;
146
- color: rgba(0, 0, 0, .4);
147
- list-style: none;
148
- margin: 0;
149
- .clearfix;
150
- }
151
- .breadcrumbs ul li {
152
- float: left;
153
- margin-right: 3px;
154
- }
155
- .breadcrumbs li + li:before {
156
- content: " > ";
157
- color: #aaa;
158
- font-size: 12px;
159
- margin: 0 3px;
160
- position: relative;
161
- top: -1px;
162
- }
163
- .breadcrumbs-sections li + li:before {
164
- content: " | ";
165
- top: 0;
166
- }
167
- .breadcrumbs-path li + li:before {
168
- content: " / ";
169
- top: 0;
170
- }
171
- .breadcrumbs ul li a {
172
- color: @colorBlack;
173
- text-decoration: none;
174
- }
175
- .breadcrumbs ul li.active a {
176
- text-decoration: none;
177
- cursor: text;
178
- color: rgba(0, 0, 0, .4);
179
- }
180
- .breadcrumbs ul li a:hover {
181
- color: @colorBlack;
182
- text-decoration: underline;
183
- }
184
-
185
- /* =Pagination
186
- -----------------------------------------------------------------------------*/
187
- .pagination {
188
- position: relative;
189
- left: -9px;
190
- margin-left: 0;
191
- list-style: none;
192
- .clearfix;
193
- }
194
- .pagination li {
195
- float: left;
196
- margin-right: 2px;
197
- }
198
- .pagination li a,
199
- .pagination li span {
200
- display: block;
201
- padding: 7px 9px;
202
- line-height: 1;
203
- border-radius: 3px;
204
- color: @colorBlack;
205
- text-decoration: none;
206
- }
207
- .pagination span {
208
- border: 1px solid #ddd;
209
- }
210
- .pagination li a:focus,
211
- .pagination li a:hover {
212
- text-decoration: none;
213
- background-color: @colorBlack;
214
- color: #fff;
215
- }
216
-
217
- /* =Responsive
218
- -----------------------------------------------------------------------------*/
219
- @media only screen and (max-width: 767px) {
220
- .navbar-left,
221
- .navbar-right,
222
- .navbar ul li,
223
- .navbar-right ul li,
224
- .subnav-right ul,
225
- .subnav ul li,
226
- .subnav-right ul li {
227
- float: none;
228
- text-align: center;
229
- }
230
- .navbar ul li,
231
- .navbar-right ul li,
232
- .subnav ul li,
233
- .subnav-right ul li {
234
- margin-left: 0;
235
- margin-right: 0;
236
- }
237
- .fullwidth ul {
238
- width: auto;
239
- }
240
- .fullwidth li {
241
- display: block;
242
- width: auto;
243
- }
244
- }