skyblue_rails 0.1.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/stylesheets/skyblue/_variables.scss +60 -60
- data/lib/skyblue/rails/version.rb +1 -1
- data/readme.md +19 -2
- data/spec/dummy/app/assets/stylesheets/application.scss +1 -0
- data/spec/dummy/log/test.log +21 -28
- data/spec/skyblue/rails/railtie_spec.rb +1 -3
- data/spec/skyblue/rails_spec.rb +2 -2
- metadata +1 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6959ff3c966d9da4329e3e51548d6320b9d184f
|
4
|
+
data.tar.gz: 5dfbeae7e97936bbf8d26a6ad67bb1f45c21d730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22075bd66bd8ad6a61cfe66d5bcef6b225b2b278daa04d3952adedffa9006a2add10972aabb0b6b106b9b74dfeb22a31c5541d3613cf45ade7e001396f5e22f9
|
7
|
+
data.tar.gz: 16e9ead1c4ad1d58dcd7543488c2a88362d01d6691602b64f6879cb91e2000cc4b83583babfa106c94b5ecb5a1f234bfc62125b767672604f100fb537a0211d3
|
@@ -1,11 +1,11 @@
|
|
1
1
|
// Grays
|
2
|
-
$gray7: #111;
|
3
|
-
$gray6: #333;
|
4
|
-
$gray5: #555;
|
5
|
-
$gray4: #777;
|
6
|
-
$gray3: #999;
|
7
|
-
$gray2: #ddd;
|
8
|
-
$gray1: #f7f7f7;
|
2
|
+
$gray7: #111 !default;
|
3
|
+
$gray6: #333 !default;
|
4
|
+
$gray5: #555 !default;
|
5
|
+
$gray4: #777 !default;
|
6
|
+
$gray3: #999 !default;
|
7
|
+
$gray2: #ddd !default;
|
8
|
+
$gray1: #f7f7f7 !default;
|
9
9
|
|
10
10
|
// Maybe use these?
|
11
11
|
// grays
|
@@ -22,79 +22,79 @@ $gray1: #f7f7f7;
|
|
22
22
|
// violet #9b59b6 #8e44ad
|
23
23
|
|
24
24
|
// Colors
|
25
|
-
$body-background: #FbFbFb;
|
26
|
-
$text-color: #555;
|
25
|
+
$body-background: #FbFbFb !default;
|
26
|
+
$text-color: #555 !default;
|
27
27
|
|
28
|
-
$main-color: #4378a7;
|
29
|
-
$success-color: #16b6B6;
|
30
|
-
$error-color: #E74C3C;
|
31
|
-
$warning-color: #F1C000;
|
32
|
-
$light-color: #ecf0f1;
|
33
|
-
$dark-color: #252428;
|
34
|
-
$main-light-color: #72A8D6;
|
35
|
-
$main-grey-color: #7F8184;
|
28
|
+
$main-color: #4378a7 !default;
|
29
|
+
$success-color: #16b6B6 !default;
|
30
|
+
$error-color: #E74C3C !default;
|
31
|
+
$warning-color: #F1C000 !default;
|
32
|
+
$light-color: #ecf0f1 !default;
|
33
|
+
$dark-color: #252428 !default;
|
34
|
+
$main-light-color: #72A8D6 !default;
|
35
|
+
$main-grey-color: #7F8184 !default;
|
36
36
|
|
37
|
-
$navigation-color: #2c3e50;
|
37
|
+
$navigation-color: #2c3e50 !default;
|
38
38
|
|
39
|
-
$color-diff: #151515;
|
39
|
+
$color-diff: #151515 !default;
|
40
40
|
|
41
41
|
// Defaults
|
42
|
-
$font-family: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
|
43
|
-
$font-size: 16px;
|
44
|
-
$font-weight: normal;
|
45
|
-
$line-height: 1.5em;
|
46
|
-
$bold: 700;
|
42
|
+
$font-family: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
43
|
+
$font-size: 16px !default;
|
44
|
+
$font-weight: normal !default;
|
45
|
+
$line-height: 1.5em !default;
|
46
|
+
$bold: 700 !default;
|
47
47
|
|
48
|
-
$transition-time: 0.25s;
|
48
|
+
$transition-time: 0.25s !default;
|
49
49
|
|
50
50
|
// Code
|
51
|
-
$pre-font-family: "Deja-vu Sans Mono", Monaco, Menlo, Consolas, "Courier New", monospace;
|
52
|
-
$pre-font-size: 15px;
|
51
|
+
$pre-font-family: "Deja-vu Sans Mono", Monaco, Menlo, Consolas, "Courier New", monospace !default;
|
52
|
+
$pre-font-size: 15px !default;
|
53
53
|
|
54
54
|
|
55
55
|
// Tables
|
56
|
-
$table-border-color: $gray2;
|
57
|
-
$table-background: $gray1;
|
58
|
-
$table-background-hover:lighten($main-color, 10);
|
59
|
-
$table-color-hover: #fff;
|
56
|
+
$table-border-color: $gray2 !default;
|
57
|
+
$table-background: $gray1 !default;
|
58
|
+
$table-background-hover:lighten($main-color, 10) !default;
|
59
|
+
$table-color-hover: #fff !default;
|
60
60
|
|
61
61
|
// Forms
|
62
|
-
$checkbox-height: 22px;
|
63
|
-
$checkbox-width: 38px;
|
64
|
-
$checkbox-circle-size: $checkbox-height - 2;
|
65
|
-
$checkbox-top: ($font-size * 1.5 - $checkbox-height) / 2;
|
66
|
-
$checkbox-bg: #c3c5c4;
|
67
|
-
$checkbox-checked-bg: $success-color;
|
68
|
-
|
69
|
-
$radio-size: 20px;
|
70
|
-
$radio-circle-size: 10px;
|
71
|
-
$radio-top: ($font-size * 1.5 - $radio-size) / 2;
|
72
|
-
$radio-border-color: #c3c5c4;
|
73
|
-
$radio-checked-bg: $success-color;
|
74
|
-
$radio-circle-left: $radio-size / 2;
|
75
|
-
$radio-circle-top: $radio-circle-left + $radio-top;
|
76
|
-
$radio-circle-active-left: ($radio-size - $radio-circle-size) / 2;
|
77
|
-
$radio-circle-active-top: $radio-circle-active-left + $radio-top;
|
62
|
+
$checkbox-height: 22px !default;
|
63
|
+
$checkbox-width: 38px !default;
|
64
|
+
$checkbox-circle-size: $checkbox-height - 2 !default;
|
65
|
+
$checkbox-top: ($font-size * 1.5 - $checkbox-height) / 2 !default;
|
66
|
+
$checkbox-bg: #c3c5c4 !default;
|
67
|
+
$checkbox-checked-bg: $success-color !default;
|
68
|
+
|
69
|
+
$radio-size: 20px !default;
|
70
|
+
$radio-circle-size: 10px !default;
|
71
|
+
$radio-top: ($font-size * 1.5 - $radio-size) / 2 !default;
|
72
|
+
$radio-border-color: #c3c5c4 !default;
|
73
|
+
$radio-checked-bg: $success-color !default;
|
74
|
+
$radio-circle-left: $radio-size / 2 !default;
|
75
|
+
$radio-circle-top: $radio-circle-left + $radio-top !default;
|
76
|
+
$radio-circle-active-left: ($radio-size - $radio-circle-size) / 2 !default;
|
77
|
+
$radio-circle-active-top: $radio-circle-active-left + $radio-top !default;
|
78
78
|
|
79
79
|
// Grid
|
80
|
-
$grid-columns: 12;
|
81
|
-
$grid-padding-width: 40px;
|
82
|
-
$grid-unit-width: 100% / $grid-columns;
|
80
|
+
$grid-columns: 12 !default;
|
81
|
+
$grid-padding-width: 40px !default;
|
82
|
+
$grid-unit-width: 100% / $grid-columns !default;
|
83
83
|
|
84
84
|
|
85
|
-
$tablet-portrait-breakpoint: 480px;
|
86
|
-
$tablet-breakpoint: 768px;
|
87
|
-
$desktop-breakpoint: 970px;
|
88
|
-
$large-desktop-breakpoint: 1200px;
|
85
|
+
$tablet-portrait-breakpoint: 480px !default;
|
86
|
+
$tablet-breakpoint: 768px !default;
|
87
|
+
$desktop-breakpoint: 970px !default;
|
88
|
+
$large-desktop-breakpoint: 1200px !default;
|
89
89
|
|
90
|
-
$container-width-tablet: 720px;
|
91
|
-
$container-width-desktop: 940px;
|
92
|
-
$container-width-large-desktop: 1150px;
|
90
|
+
$container-width-tablet: 720px !default;
|
91
|
+
$container-width-desktop: 940px !default;
|
92
|
+
$container-width-large-desktop: 1150px !default;
|
93
93
|
|
94
94
|
|
95
95
|
// Helpers
|
96
|
-
$border-radius: 3px;
|
97
|
-
$big-border-radius: 100px;
|
96
|
+
$border-radius: 3px !default;
|
97
|
+
$big-border-radius: 100px !default;
|
98
98
|
|
99
99
|
//Custom colors
|
100
|
-
$white: #fff;
|
100
|
+
$white: #fff !default;
|
data/readme.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# skyblue_rails [![Build Status](https://travis-ci.org/rmosolgo/skyblue-rails.svg?branch=master)](https://travis-ci.org/rmosolgo/skyblue-rails)
|
2
2
|
|
3
|
-
Use [SkyBlue](http://stanko.github.io/skyblue/) Sass framework with Rails.
|
3
|
+
Use [SkyBlue](http://stanko.github.io/skyblue/) Sass framework with Rails. You can [choose your own settings](#overrides), too!
|
4
4
|
|
5
|
-
This gem uses the [master branch](https://github.com/Stanko/skyblue) as a source.
|
5
|
+
This gem uses the [`Stanko/skyblue` master branch](https://github.com/Stanko/skyblue) as a source.
|
6
6
|
|
7
7
|
## Usage
|
8
8
|
|
@@ -39,6 +39,22 @@ This gem uses the [master branch](https://github.com/Stanko/skyblue) as a source
|
|
39
39
|
//= require skyblue/ie
|
40
40
|
```
|
41
41
|
|
42
|
+
## Overrides
|
43
|
+
|
44
|
+
If you use Sass, you can override SkyBlue's defaults. To do this, define any variable before importing SkyBlue:
|
45
|
+
|
46
|
+
```scss
|
47
|
+
// application.scss
|
48
|
+
|
49
|
+
$text-color: #FF22D2;
|
50
|
+
$font-family: "Comic Sans", sans-serif;
|
51
|
+
// D:
|
52
|
+
|
53
|
+
@import 'skyblue';
|
54
|
+
```
|
55
|
+
|
56
|
+
You can see the available variables in [_variables.scss](https://github.com/rmosolgo/skyblue_rails/blob/master/assets/stylesheets/skyblue/_variables.scss).
|
57
|
+
|
42
58
|
|
43
59
|
## Development
|
44
60
|
|
@@ -48,6 +64,7 @@ This gem uses the [master branch](https://github.com/Stanko/skyblue) as a source
|
|
48
64
|
- Copy assets into proper directories
|
49
65
|
- Modify & create some files for Rails-friendliness
|
50
66
|
- Test: `rake test`
|
67
|
+
- Publish: increment version and `rake publish_gem`
|
51
68
|
|
52
69
|
## Contributing
|
53
70
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -1,49 +1,42 @@
|
|
1
1
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
-
[1m[36m (
|
2
|
+
[1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
3
3
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4
|
-
[1m[36m (1.
|
4
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5
5
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6
|
-
[1m[36m (1.
|
7
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.
|
8
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.
|
9
|
-
[1m[36m (
|
6
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
7
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
8
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
10
10
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
11
11
|
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12
12
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
13
13
|
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
14
14
|
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
15
15
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16
|
-
[1m[36m (2.
|
17
|
-
[1m[35m (0.
|
18
|
-
[1m[36m (1.
|
19
|
-
[1m[35m (0.
|
20
|
-
[1m[36m (1.
|
16
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
17
|
+
[1m[35m (0.8ms)[0m select sqlite_version(*)
|
18
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
19
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
20
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
21
21
|
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
22
22
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23
|
-
[1m[36m (
|
23
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
24
24
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
25
|
-
[1m[36m (1.
|
25
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
26
26
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
27
27
|
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
28
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.
|
28
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
29
29
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30
|
-
[1m[36m (
|
31
|
-
[1m[35m (0.
|
32
|
-
[1m[36m (1.
|
30
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
31
|
+
[1m[35m (0.5ms)[0m select sqlite_version(*)
|
32
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
33
33
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
34
34
|
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
35
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.
|
35
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
36
36
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
37
|
-
[1m[36m (3.
|
37
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
38
38
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
39
|
-
[1m[36m (1.
|
39
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
40
40
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
41
|
-
[1m[36m (1.
|
41
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
42
42
|
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
43
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
-
[1m[36m (2.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
45
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
46
|
-
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
47
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
48
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
49
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
@@ -24,6 +24,7 @@ describe Skyblue::Rails::Railtie do
|
|
24
24
|
|
25
25
|
# css
|
26
26
|
assert_match(/margin-top-5/, compiled_css, "it includes Skyblue")
|
27
|
+
assert_match(/\.color-error \{\n color: #0000bb; \}/, compiled_css, "it has overrides")
|
27
28
|
assert_match(%r{/assets/pe-icon/Pe-icon-7-stroke}, compiled_css, "it has slugged font paths")
|
28
29
|
|
29
30
|
# js
|
@@ -32,9 +33,6 @@ describe Skyblue::Rails::Railtie do
|
|
32
33
|
# fonts
|
33
34
|
assert_equal(4, compiled_font_files.length)
|
34
35
|
|
35
|
-
# images
|
36
|
-
assert_equal(2, compiled_image_files.length)
|
37
|
-
|
38
36
|
ensure
|
39
37
|
|
40
38
|
FileUtils.rm_rf [asset_cache_directory, compiled_asset_directory], secure: true
|
data/spec/skyblue/rails_spec.rb
CHANGED
@@ -10,8 +10,8 @@ describe Skyblue::Rails do
|
|
10
10
|
it 'puts skyblue in Sprockets load paths' do
|
11
11
|
environment = Rails.application.assets
|
12
12
|
assert(environment.find_asset('skyblue/ie.js'), "it exposes JS")
|
13
|
-
assert(environment.find_asset('application.js'), "it exposes JS")
|
13
|
+
assert(environment.find_asset('application.js'), "it exposes app JS manifest")
|
14
14
|
assert(environment.find_asset('skyblue.css'), "it exposes CSS")
|
15
|
-
assert(environment.find_asset('application.css'), "it exposes CSS")
|
15
|
+
assert(environment.find_asset('application.css'), "it exposes app CSS manifest")
|
16
16
|
end
|
17
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skyblue_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
@@ -238,4 +238,3 @@ test_files:
|
|
238
238
|
- spec/skyblue/rails/railtie_spec.rb
|
239
239
|
- spec/skyblue/rails_spec.rb
|
240
240
|
- spec/spec_helper.rb
|
241
|
-
has_rdoc:
|