moda-themes 4.0.4 → 4.1.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
  SHA256:
3
- metadata.gz: 1022d19b4b5920e5ae18e34bc46b492e834f648ae087204d66283b026978b1b4
4
- data.tar.gz: cc7d85d3f0763dc5c059ed9d737aeebbc5a1a67e085dd89e93310217eacfb80a
3
+ metadata.gz: 8824a3325cf442a95686473c92644707830a9cde1a6d93fd56bd1aae5441647b
4
+ data.tar.gz: 48d7874feb1519767adeb1f3b3d459b763cf7d47a95bfb52e37922186a6ae839
5
5
  SHA512:
6
- metadata.gz: '097890dfef278370b756e4e22eb7f1f881c1660ef48424d352a13abd7b0930c72f9b9787b9ad50ce6d3bb7d2626057babdd6a4ccc7acb9a15a3f44479f482a2a'
7
- data.tar.gz: 4e8c9610af4bc661dad4bb384bf99840fa5b65f29de4600887494a4ef64131c7c230c016cc8102a3bc352f319929de4c6f093023b2c3b97f11c9bdc27f671ba5
6
+ metadata.gz: 9183dde239840645528f693f4d382d7010fa26a301b3eeef6ef075d735eae5137d70afaecc845212fa9c8a48396f8c0ee1b6bfaa0f436bfaf2167d823b9ead0e
7
+ data.tar.gz: 8230cce2ca32a5a50a1ee30d83df5bb4c3fde4535233b47ca9beb8eb0e314de663614c918cd111fc867d2066298d65a0b42479abfcc1ab86eb1a6f30a1fd7088
@@ -47,11 +47,20 @@
47
47
  @return themed-value('font-families', $key);
48
48
  }
49
49
 
50
- @function color($key) {
50
+ @function color($key, $opacity: null) {
51
51
  @if themed-value-exists('colors', $key, $raise: false) {
52
- @return themed-value('colors', $key);
52
+ @if $opacity {
53
+ @return rgba(themed-value('colors', $key), $opacity);
54
+ } @else {
55
+ @return themed-value('colors', $key);
56
+ }
57
+ }
58
+
59
+ @if $opacity {
60
+ @return rgba(__fetch__($colors-flat, $key), $opacity);
61
+ } @else {
62
+ @return __fetch__($colors-flat, $key);
53
63
  }
54
- @return __fetch__($colors-flat, $key);
55
64
  }
56
65
 
57
66
  @function letter-spacing($key) {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModaThemes
4
- VERSION = "4.0.4"
4
+ VERSION = "4.1.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moda-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dzucconi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass