dom_limpio 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd6c32608209de4baf452665d6cd00d1a682088d
4
- data.tar.gz: dfc899e28606698dc90f04abf32d59009681c9cb
3
+ metadata.gz: 5f55343d361b33b6ac9dda352152492ef7fe71fa
4
+ data.tar.gz: fbb93a332a2275596ad2d44bfe00e808f9a4639c
5
5
  SHA512:
6
- metadata.gz: 6c54377859cad8fde92f24734374137cabd8fcdd4546c521addfca0d631aa196c428eb88f723fbfbd4389a2fdf4bb886650da9ef1f01bd913515b7eeda5ec69c
7
- data.tar.gz: 1b580c0a99489f7e3950ce34b3a20bfce455a376fe8bd7469a2c9df469629ca6c5686dc5ab52df359815f9f0c3be12fa05bacfdfa1f46d52dc1fc280de7f4b14
6
+ metadata.gz: 85f7faadd36afee52c10c3742faa268f63501f4ae266d058d03672797b41e990a5ce0b426f2482abf0592457c4fb13290265fb2f306368cbf6ce9941fdca2b57
7
+ data.tar.gz: 4e1b2ba000d4d55fa3a55cfffd65757fb4f6d13b6d1ed3551b2626b5d3d6fd68fc7dc7ac9b4dc2e4444f8cbd9629727036db18450c418e007396a8e1c8848084
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  button, input, select, textarea, fieldset, legend, label, select {
6
- font: 400 1em/1.35 serif;
6
+ font: 400 1em/1.35 inherit;
7
7
  text-align: left;
8
8
  text-transform: none;
9
9
  white-space: normal;
@@ -17,6 +17,8 @@ textarea {
17
17
  color: inherit;
18
18
  font: inherit;
19
19
  margin: 0;
20
+ border-radius: 0;
21
+ -webkit-appearance: none;
20
22
  }
21
23
 
22
24
  input, select {
@@ -32,6 +34,11 @@ input[type="search"] {
32
34
  }
33
35
  }
34
36
 
37
+ button,
38
+ input[type="submit"] {
39
+ -webkit-appearance: button;
40
+ }
41
+
35
42
  button::-moz-focus-inner,
36
43
  input::-moz-focus-inner {
37
44
  border: 0;
@@ -28,7 +28,7 @@ p, h1, h2, h3, h4, h5, h6 {
28
28
  line-height: inherit;
29
29
  text-align: inherit;
30
30
  vertical-align: inherit;
31
- color: #333;
31
+ color: inherit;
32
32
  }
33
33
 
34
34
  // Reset of type elements
File without changes
@@ -1,10 +1,9 @@
1
1
  module DomLimpio
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
- initializer 'dom_limpio' do | app |
5
- dl_path = File.expand_path("../../../src/css", __FILE__)
6
- app.config.assets.paths << dl_path
7
- app.middleware.use ::ActionDispatch::Static, "#{root}/src/css"
4
+ initializer 'dom-limpio' do |app|
5
+ app.config.assets.paths << DomLimpio.stylesheets_path
6
+ app.middleware.use ::ActionDispatch::Static, DomLimpio.assets_path
8
7
  end
9
8
  end
10
9
  end
@@ -1,3 +1,3 @@
1
1
  module DomLimpio
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/dom_limpio.rb CHANGED
@@ -1,6 +1,37 @@
1
- require "dom_limpio/version"
2
- require "dom_limpio/engine"
3
-
4
1
  module DomLimpio
5
- # Your code goes here...
2
+ class << self
3
+ def load!
4
+ if defined?(::Rails)
5
+ register_rails_engine
6
+ elsif defined?(::Sprockets)
7
+ register_sprockets
8
+ end
9
+ configure_sass
10
+ end
11
+
12
+ def assets_path
13
+ @gem_path ||= File.expand_path "../assets", File.dirname(__FILE__)
14
+ end
15
+
16
+ def stylesheets_path
17
+ File.join assets_path, 'stylesheets'
18
+ end
19
+
20
+ private
21
+
22
+ def configure_sass
23
+ require 'sass'
24
+ ::Sass.load_paths << stylesheets_path
25
+ end
26
+
27
+ def register_rails_engine
28
+ require "dom_limpio/engine"
29
+ end
30
+
31
+ def register_sprockets
32
+ Sprockets.append_path(stylesheets_path)
33
+ end
34
+ end
6
35
  end
36
+
37
+ DomLimpio.load!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dom_limpio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - carloscabo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-06 00:00:00.000000000 Z
11
+ date: 2016-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,19 +52,19 @@ files:
52
52
  - LICENSE.txt
53
53
  - README.md
54
54
  - Rakefile
55
+ - assets/stylesheets/dom-limpio.scss
56
+ - assets/stylesheets/dom-limpio/_forms.scss
57
+ - assets/stylesheets/dom-limpio/_layout.scss
58
+ - assets/stylesheets/dom-limpio/_type.scss
59
+ - assets/stylesheets/site-type/_sample.scss
60
+ - assets/stylesheets/site-type/_variables.scss
61
+ - assets/stylesheets/site-type/_weft.scss
55
62
  - dom-limpio-logo.png
56
63
  - dom_limpio.gemspec
57
64
  - index.html
58
65
  - lib/dom_limpio.rb
59
66
  - lib/dom_limpio/engine.rb
60
67
  - lib/dom_limpio/version.rb
61
- - src/css/dom-limpio.scss
62
- - src/css/dom-limpio/_forms.scss
63
- - src/css/dom-limpio/_layout.scss
64
- - src/css/dom-limpio/_type.scss
65
- - src/css/site-type/_sample.scss
66
- - src/css/site-type/_variables.scss
67
- - src/css/site-type/_weft.scss
68
68
  homepage: https://github.com/carloscabo/dom-limpio
69
69
  licenses:
70
70
  - MIT