skyblue_rails 0.1.6 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdea0182bfec5bead356c1ff530aa56925512610
4
- data.tar.gz: f2f20812518e972a194acf4b914fc82597c31bb0
3
+ metadata.gz: b6959ff3c966d9da4329e3e51548d6320b9d184f
4
+ data.tar.gz: 5dfbeae7e97936bbf8d26a6ad67bb1f45c21d730
5
5
  SHA512:
6
- metadata.gz: 3d9a0b623fe32d5add3c87fe1d9b9ae92b1352b8809a61cddb9e29144c7f7fa7feb3ac09de681fde6f83a8f587209b10021e628863cf2c9a7ed99ccf28097843
7
- data.tar.gz: 0722bc2e17f621f075ed526b165c2e5154a341b305a1e57913722c285929db6b523d34317e0d0bce9248fbad95b857e248dc895e0f94dc56d56b146c8cf3a6fb
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;
@@ -1,5 +1,5 @@
1
1
  module Skyblue
2
2
  module Rails
3
- VERSION = "0.1.6"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
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
 
@@ -12,4 +12,5 @@
12
12
  *
13
13
  */
14
14
 
15
+ $error-color: #0000bb;
15
16
  @import 'skyblue';
@@ -1,49 +1,42 @@
1
1
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
3
3
   (0.1ms) select sqlite_version(*)
4
-  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
5
   (0.1ms) SELECT version FROM "schema_migrations"
6
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
7
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
-  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
6
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
7
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
10
10
   (0.1ms) select sqlite_version(*)
11
11
   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12
12
   (0.1ms) SELECT version FROM "schema_migrations"
13
13
   (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
14
14
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15
15
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
-  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
17
-  (0.5ms) select sqlite_version(*)
18
-  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
19
-  (0.1ms) SELECT version FROM "schema_migrations"
20
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
16
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
17
+  (0.8ms) select sqlite_version(*)
18
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
19
+  (0.2ms) SELECT version FROM "schema_migrations"
20
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
21
21
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
22
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
-  (2.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
23
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
24
24
   (0.1ms) select sqlite_version(*)
25
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
26
26
   (0.1ms) SELECT version FROM "schema_migrations"
27
27
   (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
28
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
29
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
30
-  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
31
-  (0.1ms) select sqlite_version(*)
32
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
31
+  (0.5ms) select sqlite_version(*)
32
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
33
33
   (0.1ms) SELECT version FROM "schema_migrations"
34
34
   (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
35
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
36
36
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37
-  (3.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
37
+  (3.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
38
38
   (0.1ms) select sqlite_version(*)
39
-  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
39
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40
40
   (0.1ms) SELECT version FROM "schema_migrations"
41
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
41
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
42
42
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
43
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
-  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
45
-  (0.1ms) select sqlite_version(*)
46
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
47
-  (0.1ms) SELECT version FROM "schema_migrations"
48
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
49
- ActiveRecord::SchemaMigration Load (0.2ms) 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
@@ -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.1.6
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: