scooter-sass 0.9.1

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 (61) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +4 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +46 -0
  7. data/Rakefile +1 -0
  8. data/app/assets/stylesheets/scooter.scss +38 -0
  9. data/app/assets/stylesheets/scooter/base/__all.scss +12 -0
  10. data/app/assets/stylesheets/scooter/base/_base.scss +23 -0
  11. data/app/assets/stylesheets/scooter/base/_reset.scss +55 -0
  12. data/app/assets/stylesheets/scooter/base/_typography.scss +91 -0
  13. data/app/assets/stylesheets/scooter/components/__all.scss +21 -0
  14. data/app/assets/stylesheets/scooter/components/_arrow.scss +25 -0
  15. data/app/assets/stylesheets/scooter/components/_avatar.scss +191 -0
  16. data/app/assets/stylesheets/scooter/components/_badge.scss +46 -0
  17. data/app/assets/stylesheets/scooter/components/_banners.scss +68 -0
  18. data/app/assets/stylesheets/scooter/components/_buttons.scss +152 -0
  19. data/app/assets/stylesheets/scooter/components/_calendar.scss +97 -0
  20. data/app/assets/stylesheets/scooter/components/_cards.scss +146 -0
  21. data/app/assets/stylesheets/scooter/components/_inputs.scss +91 -0
  22. data/app/assets/stylesheets/scooter/components/_loading-indicator.scss +69 -0
  23. data/app/assets/stylesheets/scooter/components/_modal.scss +74 -0
  24. data/app/assets/stylesheets/scooter/components/_tab-nav.scss +70 -0
  25. data/app/assets/stylesheets/scooter/components/_tables.scss +66 -0
  26. data/app/assets/stylesheets/scooter/components/_title-bubble.scss +137 -0
  27. data/app/assets/stylesheets/scooter/components/_tokens.scss +116 -0
  28. data/app/assets/stylesheets/scooter/components/_typeahead.scss +77 -0
  29. data/app/assets/stylesheets/scooter/functions/__all.scss +11 -0
  30. data/app/assets/stylesheets/scooter/functions/_colors.scss +104 -0
  31. data/app/assets/stylesheets/scooter/functions/_maths.scss +21 -0
  32. data/app/assets/stylesheets/scooter/functions/_units.scss +10 -0
  33. data/app/assets/stylesheets/scooter/helpers/__all.scss +13 -0
  34. data/app/assets/stylesheets/scooter/helpers/_accessibility.scss +28 -0
  35. data/app/assets/stylesheets/scooter/helpers/_clearfix.scss +23 -0
  36. data/app/assets/stylesheets/scooter/helpers/_inputs.scss +22 -0
  37. data/app/assets/stylesheets/scooter/helpers/_layout.scss +112 -0
  38. data/app/assets/stylesheets/scooter/helpers/_typography.scss +88 -0
  39. data/app/assets/stylesheets/scooter/mixins/__all.scss +11 -0
  40. data/app/assets/stylesheets/scooter/mixins/_accessibility.scss +22 -0
  41. data/app/assets/stylesheets/scooter/mixins/_arrow.scss +53 -0
  42. data/app/assets/stylesheets/scooter/mixins/_debug.scss +83 -0
  43. data/app/assets/stylesheets/scooter/mixins/_image.scss +15 -0
  44. data/app/assets/stylesheets/scooter/mixins/_properties.scss +16 -0
  45. data/app/assets/stylesheets/scooter/objects/__all.scss +11 -0
  46. data/app/assets/stylesheets/scooter/objects/_flag.scss +88 -0
  47. data/app/assets/stylesheets/scooter/objects/_grid.scss +295 -0
  48. data/app/assets/stylesheets/scooter/objects/_list-ui.scss +23 -0
  49. data/app/assets/stylesheets/scooter/objects/_media.scss +33 -0
  50. data/app/assets/stylesheets/scooter/objects/_wrap.scss +12 -0
  51. data/app/assets/stylesheets/scooter/variables/__all.scss +10 -0
  52. data/app/assets/stylesheets/scooter/variables/_colors.scss +72 -0
  53. data/app/assets/stylesheets/scooter/variables/_config.scss +5 -0
  54. data/app/assets/stylesheets/scooter/variables/_units.scss +8 -0
  55. data/bin/console +14 -0
  56. data/bin/setup +8 -0
  57. data/lib/scooter-sass.rb +52 -0
  58. data/lib/scooter-sass/engine.rb +11 -0
  59. data/lib/scooter-sass/version.rb +5 -0
  60. data/scooter-sass.gemspec +26 -0
  61. metadata +132 -0
@@ -0,0 +1,23 @@
1
+ //-----------------------------
2
+ //
3
+ // List UI
4
+ //
5
+ //-----------------------------
6
+
7
+ $DBlist-ui-namespace: "o-list-ui" !default;
8
+
9
+ .#{$DBlist-ui-namespace} {
10
+ margin: 0;
11
+ padding: 0;
12
+
13
+ list-style: none;
14
+
15
+ &--dividers > li + li {
16
+ border-top: 1px solid;
17
+ border-color: color(gray, x-dark, 0.1);
18
+ }
19
+
20
+ &--inline > li {
21
+ display: inline-block;
22
+ }
23
+ }
@@ -0,0 +1,33 @@
1
+ //-----------------------------
2
+ //
3
+ // Media
4
+ //
5
+ //-----------------------------
6
+
7
+ $DBmedia-namespace: "o-media" !default;
8
+
9
+ .#{$DBmedia-namespace} {
10
+ @extend %clearfix;
11
+ display: block;
12
+ }
13
+
14
+ .#{$DBmedia-namespace}__img {
15
+ margin-right: half($DBbaseline);
16
+ float: left;
17
+
18
+ > img {
19
+ display: block;
20
+ }
21
+
22
+ }
23
+
24
+ .#{$DBmedia-namespace}__body {
25
+ display: block;
26
+ overflow: hidden;
27
+
28
+ &,
29
+ > :last-child {
30
+ margin-bottom: 0;
31
+ }
32
+
33
+ }
@@ -0,0 +1,12 @@
1
+ //-----------------------------
2
+ // Object: Wrap
3
+ //-----------------------------
4
+
5
+ $DBwrap-namespace: "o-wrap" !default;
6
+ $DBwrap-width: 990px !default;
7
+
8
+ .#{$DBwrap-namespace} {
9
+ display: block;
10
+ max-width: $DBwrap-width;
11
+ margin: 0 auto;
12
+ }
@@ -0,0 +1,10 @@
1
+ //---------------------------
2
+ //
3
+ // Variables
4
+ // =========
5
+ //
6
+ //---------------------------
7
+
8
+ @import "config";
9
+ @import "colors";
10
+ @import "units";
@@ -0,0 +1,72 @@
1
+ //---------------------------
2
+ //
3
+ // Color variables
4
+ //
5
+ // Inspired by/based on Erskine's color palette structure:
6
+ // http://erskinedesign.com/blog/friendlier-colour-names-sass-maps/
7
+ //
8
+ //---------------------------
9
+
10
+ $DBglobalColors: (
11
+ white: #ffffff,
12
+
13
+ black: #000000,
14
+
15
+ gray: (
16
+ base: #47525d,
17
+ x-dark: #25282b,
18
+ dark: #3d464d,
19
+ medium: #7b8994,
20
+ light: #d0d4d9,
21
+ x-light: #f7f9fa,
22
+ ),
23
+
24
+ blue: (
25
+ base: #007ee5,
26
+ x-dark: #004c8a,
27
+ dark: #0071ce,
28
+ medium: #72b6ec,
29
+ light: #cce6fa,
30
+ x-light: #f4faff,
31
+ ),
32
+
33
+ red: (
34
+ base: #e82110,
35
+ x-dark: #921515,
36
+ dark: #c21c1c,
37
+ medium: #ed7a6f,
38
+ light: #fcbdbd,
39
+ x-light: #ffe3e3,
40
+ ),
41
+
42
+ green: (
43
+ base: #48ac68,
44
+ x-dark: #2c683f,
45
+ dark: #3a8a54,
46
+ medium: #86c49a,
47
+ light: #ddf0e2,
48
+ x-light: #edfaf1,
49
+ ),
50
+
51
+ yellow: (
52
+ base: #fcca00,
53
+ x-dark: #996e00,
54
+ dark: #c99700,
55
+ medium: #fce897,
56
+ light: #fff5cc,
57
+ x-light: #fffdec,
58
+ ),
59
+ ) !default;
60
+
61
+ $DBgrayscaleColors: (
62
+ 1: #171717,
63
+ 2: #2e2e2e,
64
+ 3: #454545,
65
+ 4: #5c5c5c,
66
+ 5: #737373,
67
+ 6: #8a8a8a,
68
+ 7: #a1a1a1,
69
+ 8: #b8b8b8,
70
+ 9: #cfcfcf,
71
+ 10: #e8e8e8,
72
+ ) !default;
@@ -0,0 +1,5 @@
1
+ //-----------------------------------
2
+ // Config variables
3
+ //-----------------------------------
4
+
5
+ $DBimage-path: "../images/" !default;
@@ -0,0 +1,8 @@
1
+ //---------------------------
2
+ //
3
+ // Units variables
4
+ //
5
+ //---------------------------
6
+
7
+ $DBbaseline: 23px !default;
8
+ $DBfont-size: 13px !default;
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "scooter/sass"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,52 @@
1
+ require "scooter-sass/version"
2
+
3
+ module Scooter
4
+ module Sass
5
+ class << self
6
+ def load!
7
+ # register_compass_ext if compas?
8
+ if rails?
9
+ register_rails_engine
10
+ elsif sprockets?
11
+ register_sprockets
12
+ end
13
+ configure_sass
14
+ end
15
+
16
+ def gem_path
17
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
18
+ end
19
+
20
+ def stylesheets_path
21
+ File.join assets_path, 'stylesheets'
22
+ end
23
+
24
+ def assets_path
25
+ defined?(::Sprockets)
26
+ end
27
+
28
+ def compas?
29
+ defined?(::Compass)
30
+ end
31
+
32
+ def rails?
33
+ defined?(::Rails)
34
+ end
35
+
36
+ def configure_sass
37
+ require 'sass'
38
+ ::Sass.load_paths << stylesheets_path
39
+ end
40
+
41
+ def register_rails_engine
42
+ require 'scooter-sass/engine'
43
+ end
44
+
45
+ def register_sprockets
46
+ Sprockets.append_path(stylesheets_path)
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ Scooter::Sass.load!
@@ -0,0 +1,11 @@
1
+ module Scooter
2
+ module Sass
3
+ class Engine < ::Rails::Engine
4
+ initializer 'scooter-sass.assets.precompile' do |app|
5
+ %w(stylesheets).each do |sub|
6
+ app.config.assets.paths << root.join('app/assets', sub).to_s
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Scooter
2
+ module Sass
3
+ VERSION = "0.9.1"
4
+ end
5
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'scooter-sass/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "scooter-sass"
8
+ spec.version = Scooter::Sass::VERSION
9
+ spec.authors = ["Peter Boriskin"]
10
+ spec.email = ["x66w@yandex.ru"]
11
+
12
+ spec.summary = %q{Scooter sass for rails.}
13
+ spec.description = %q{Use scooter in your rails asset pipeline.}
14
+ spec.homepage = "https://github.com/sanata-/scooter-sass"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.11"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+
25
+ #spec.add_dependency "sass", "~>3.3"
26
+ end
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scooter-sass
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.1
5
+ platform: ruby
6
+ authors:
7
+ - Peter Boriskin
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Use scooter in your rails asset pipeline.
42
+ email:
43
+ - x66w@yandex.ru
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".travis.yml"
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - app/assets/stylesheets/scooter.scss
55
+ - app/assets/stylesheets/scooter/base/__all.scss
56
+ - app/assets/stylesheets/scooter/base/_base.scss
57
+ - app/assets/stylesheets/scooter/base/_reset.scss
58
+ - app/assets/stylesheets/scooter/base/_typography.scss
59
+ - app/assets/stylesheets/scooter/components/__all.scss
60
+ - app/assets/stylesheets/scooter/components/_arrow.scss
61
+ - app/assets/stylesheets/scooter/components/_avatar.scss
62
+ - app/assets/stylesheets/scooter/components/_badge.scss
63
+ - app/assets/stylesheets/scooter/components/_banners.scss
64
+ - app/assets/stylesheets/scooter/components/_buttons.scss
65
+ - app/assets/stylesheets/scooter/components/_calendar.scss
66
+ - app/assets/stylesheets/scooter/components/_cards.scss
67
+ - app/assets/stylesheets/scooter/components/_inputs.scss
68
+ - app/assets/stylesheets/scooter/components/_loading-indicator.scss
69
+ - app/assets/stylesheets/scooter/components/_modal.scss
70
+ - app/assets/stylesheets/scooter/components/_tab-nav.scss
71
+ - app/assets/stylesheets/scooter/components/_tables.scss
72
+ - app/assets/stylesheets/scooter/components/_title-bubble.scss
73
+ - app/assets/stylesheets/scooter/components/_tokens.scss
74
+ - app/assets/stylesheets/scooter/components/_typeahead.scss
75
+ - app/assets/stylesheets/scooter/functions/__all.scss
76
+ - app/assets/stylesheets/scooter/functions/_colors.scss
77
+ - app/assets/stylesheets/scooter/functions/_maths.scss
78
+ - app/assets/stylesheets/scooter/functions/_units.scss
79
+ - app/assets/stylesheets/scooter/helpers/__all.scss
80
+ - app/assets/stylesheets/scooter/helpers/_accessibility.scss
81
+ - app/assets/stylesheets/scooter/helpers/_clearfix.scss
82
+ - app/assets/stylesheets/scooter/helpers/_inputs.scss
83
+ - app/assets/stylesheets/scooter/helpers/_layout.scss
84
+ - app/assets/stylesheets/scooter/helpers/_typography.scss
85
+ - app/assets/stylesheets/scooter/mixins/__all.scss
86
+ - app/assets/stylesheets/scooter/mixins/_accessibility.scss
87
+ - app/assets/stylesheets/scooter/mixins/_arrow.scss
88
+ - app/assets/stylesheets/scooter/mixins/_debug.scss
89
+ - app/assets/stylesheets/scooter/mixins/_image.scss
90
+ - app/assets/stylesheets/scooter/mixins/_properties.scss
91
+ - app/assets/stylesheets/scooter/objects/__all.scss
92
+ - app/assets/stylesheets/scooter/objects/_flag.scss
93
+ - app/assets/stylesheets/scooter/objects/_grid.scss
94
+ - app/assets/stylesheets/scooter/objects/_list-ui.scss
95
+ - app/assets/stylesheets/scooter/objects/_media.scss
96
+ - app/assets/stylesheets/scooter/objects/_wrap.scss
97
+ - app/assets/stylesheets/scooter/variables/__all.scss
98
+ - app/assets/stylesheets/scooter/variables/_colors.scss
99
+ - app/assets/stylesheets/scooter/variables/_config.scss
100
+ - app/assets/stylesheets/scooter/variables/_units.scss
101
+ - bin/console
102
+ - bin/setup
103
+ - lib/scooter-sass.rb
104
+ - lib/scooter-sass/engine.rb
105
+ - lib/scooter-sass/version.rb
106
+ - scooter-sass.gemspec
107
+ homepage: https://github.com/sanata-/scooter-sass
108
+ licenses:
109
+ - MIT
110
+ metadata: {}
111
+ post_install_message:
112
+ rdoc_options: []
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ requirements: []
126
+ rubyforge_project:
127
+ rubygems_version: 2.6.2
128
+ signing_key:
129
+ specification_version: 4
130
+ summary: Scooter sass for rails.
131
+ test_files: []
132
+ has_rdoc: