mountain_view 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cda7e43418faaad8fb91df1116e1a2dc913e01f5
4
- data.tar.gz: 2c0606c3dbbedc257d29ddb1c6347012facbe517
3
+ metadata.gz: 86259cf6072bfd97f590766a3f18ea0038ed7c59
4
+ data.tar.gz: f2917121808e91e6b54f72942394f594d2900d02
5
5
  SHA512:
6
- metadata.gz: 5483b8c24577eace9ef92fb789e10956cb61074ae6ca38f9e08236a94faa60b2bffeb75df0d9f0fa6c14b86fb1c8338ed5da565c257f90ef1f59ae73209cc25c
7
- data.tar.gz: 73944e1592079b889702733deb0bd63358cc486f3bd5a019f3bea4747c7324b91265ef8b6377c7837d509f58fa2c0cc2916e8c08320de9fb605a47c2e6f4015f
6
+ metadata.gz: f3fb4d1905196c92cac2dd8cb84688397f161ad2db0d2e97a62e013aa519b1c4bd10a56ae7573a393b5029b0ab6cbe868bd2dcdb39dea889c77d3ab1600b1058
7
+ data.tar.gz: 4472db77cda3efbe8aa51145e9391296cb2659892e7db7ae56ae783fb835e030742a420cf943cf0f72f1580a2c7ce47e3a9bf9ee8a73f0913c8a56c08fe028f9
@@ -1,3 +1,6 @@
1
+ <% MountainView.configuration.included_stylesheets.each do |included_stylesheet| %>
2
+ <%= require_asset included_stylesheet %>
3
+ <% end %>
1
4
  <% if Dir.exists?(Rails.root.join("app", "components") ) %>
2
5
  <% depend_on Rails.root.join('app', 'components').to_s %>
3
6
  <% Dir.glob(Rails.root.join('app', 'components', '*')).each do |component_dir|
@@ -14,4 +17,3 @@
14
17
  <% else %>
15
18
  <% depend_on Rails.root.join('app').to_s %>
16
19
  <% end %>
17
-
@@ -0,0 +1,9 @@
1
+ module MountainView
2
+ class Configuration
3
+ attr_accessor :included_stylesheets
4
+
5
+ def initialize
6
+ @included_stylesheets = []
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module MountainView
2
- VERSION = "0.5.0".freeze
2
+ VERSION = "0.6.0".freeze
3
3
  end
data/lib/mountain_view.rb CHANGED
@@ -1,5 +1,13 @@
1
1
  require "mountain_view/version"
2
+ require "mountain_view/configuration"
2
3
  require 'mountain_view/engine' if defined?(Rails)
3
4
 
4
5
  module MountainView
6
+ def self.configuration
7
+ @configuration ||= Configuration.new
8
+ end
9
+
10
+ def self.configure
11
+ yield(configuration)
12
+ end
5
13
  end
@@ -0,0 +1,11 @@
1
+ /* Global Stylesheet Beginning */
2
+
3
+ body{
4
+ font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
5
+ }
6
+
7
+ h1, a{
8
+ color: #0E8626;
9
+ }
10
+
11
+ /* Global Stylesheet End */
@@ -28,13 +28,11 @@
28
28
  font-size: 17px;
29
29
  margin:0;
30
30
  line-height: 1;
31
- color:#1D7657;
32
31
  font-weight: bold;
33
32
  margin-bottom: 10px;
34
33
  }
35
34
 
36
35
  .card__content__title a{
37
- color:#1D7657;
38
36
  font-size: 17px;
39
37
  margin: 0 0 5px 0;
40
38
  line-height: 1;
@@ -1,12 +1,10 @@
1
1
  .header {
2
2
  margin-bottom: 30px;
3
- font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
4
3
  position: relative;
5
4
  }
6
5
 
7
6
  .header h1{
8
7
  font-size: 30px;
9
- color: #333;
10
8
  margin-bottom: 10px;
11
9
  }
12
10
 
@@ -0,0 +1,3 @@
1
+ MountainView.configure do |config|
2
+ config.included_stylesheets = ["global"]
3
+ end