active_material 2.1.2 → 2.1.3

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
  SHA256:
3
- metadata.gz: 0befeef9159040b47e03da4f2d258451c580a0d9ab33b2e0c10e249e8a7ac556
4
- data.tar.gz: 550bc54c62434b4c81b1156a7d402283f22e497051b4d47a660ae5631be40790
3
+ metadata.gz: 913aad7bacde055046b86a4c9a367a210be9691a0cea4f49cfd31c607bbca61c
4
+ data.tar.gz: 554042092bc2aac01c813bd5c33b404f4d5a3464793cd982b0040f82905c272c
5
5
  SHA512:
6
- metadata.gz: d0d4ed26ce6857b0837e759b8113e3a6f598a80b6880b79669d9303fdf3f8d320366f2618048ebead4452c0c27cf09490c704c3a0d7fa89edce07c93bcf3a2d6
7
- data.tar.gz: 9174bfa663d0b9ae7718de7558883adc9ff8df4c82dc7195e1fa0ee7c1b5fa5dfd3e95e42c25cf872d2a75092ac4f9594614b856b067798291c3ef9d46b999e3
6
+ metadata.gz: 9efb49ee22c6d4be69bf446e1ff9ac308b7fef4b6f63a9c57584ddebbfa2d2f43043edde9dc1f7cb5ce21f7533e3a1466a98acbd10e695f64e8165b71c47fcfd
7
+ data.tar.gz: 25829e8b755101d24805a4d94174d300e636c7b0acd790fa03ce786a433e8ef720e93b23d107a664b178f9248d7c8f9183daf8ec7cde5b4430812b0f973f0e81
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  li a {
30
- @include am-menu-link;
31
30
  @include am-menu-item-open;
31
+ @include am-menu-link;
32
32
  }
33
33
  }
@@ -11,9 +11,10 @@
11
11
  }
12
12
 
13
13
  .site_title {
14
- @include am-toolbar-title;
15
- @include am-color(text-light);
16
14
  text-shadow: 0 1px 2px rgba(#000, 0.15);
15
+
16
+ @include am-color(text-light);
17
+ @include am-toolbar-title;
17
18
  }
18
19
 
19
20
  #tabs {
@@ -3,13 +3,14 @@
3
3
  */
4
4
 
5
5
  .title_bar {
6
- @include am-toolbar-title;
7
- @include am-fill(white);
8
6
  box-shadow: 0 1px 2px rgba(#000, 0.24);
9
7
  align-items: center;
10
8
  display: flex;
11
9
  position: relative;
12
10
  z-index: 1;
11
+
12
+ @include am-fill(white);
13
+ @include am-toolbar-title;
13
14
  }
14
15
 
15
16
  #titlebar_left {
@@ -1,3 +1,6 @@
1
+ @use "sass:color";
2
+ @use "sass:map";
3
+
1
4
  /// Emulates letter tracking in Adobe Photoshop, which is used for
2
5
  /// adjusting the space between letters in text.
3
6
  ///
@@ -51,8 +54,8 @@
51
54
  /// @param {any} $key - The desired key in $am-colors.
52
55
  /// @return {color} A color value from $am-colors.
53
56
  @function am-color ($key) {
54
- @if map-has-key($am-colors, $key) {
55
- @return map-get($am-colors, $key);
57
+ @if map.has-key($am-colors, $key) {
58
+ @return map.get($am-colors, $key);
56
59
  }
57
60
 
58
61
  @error "Unknown color value '#{$key}'";
@@ -66,7 +69,7 @@
66
69
  /// @param {number} $amount - The degree of lightness.
67
70
  /// @return {color} A lightened color value from $am-colors.
68
71
  @function am-lighten ($color, $amount) {
69
- @return lighten(am-color($color), $amount);
72
+ @return color.adjust(am-color($color), $lightness: $amount, $space: hsl);
70
73
  }
71
74
 
72
75
 
@@ -76,7 +79,7 @@
76
79
  /// @param {number} $amount - The degree of darkness.
77
80
  /// @return {color} A darkened color value from $am-colors.
78
81
  @function am-darken ($color, $amount) {
79
- @return darken(am-color($color), $amount);
82
+ @return color.adjust(am-color($color), $lightness: -$amount, $space: hsl);
80
83
  }
81
84
 
82
85
  /// Extracts a font family out of the $am-fonts map. Throws an error if that key is not defined.
@@ -84,8 +87,8 @@
84
87
  /// @param {any} $key - The desired key in $am-colors.
85
88
  /// @return {font} A font family from $am-colors.
86
89
  @function am-font-family ($key) {
87
- @if map-has-key($am-fonts, $key) {
88
- @return map-get($am-fonts, $key);
90
+ @if map.has-key($am-fonts, $key) {
91
+ @return map.get($am-fonts, $key);
89
92
  }
90
93
 
91
94
  @error "Unknown font value '#{$key}'";
@@ -1,3 +1,5 @@
1
+ @use "sass:color";
2
+
1
3
  /**
2
4
  * Tables
3
5
  */
@@ -69,7 +71,7 @@ $am-table-border-color: am-color(divider);
69
71
  td,
70
72
  th {
71
73
  box-shadow: 0 -1px 0 rgba(#000, 0.05);
72
- border-bottom: 1px solid darken($am-table-border-color, 5%);
74
+ border-bottom: 1px solid color.adjust($am-table-border-color, $lightness: -5%, $space: hsl);
73
75
  }
74
76
  }
75
77
 
@@ -79,7 +81,7 @@ $am-table-border-color: am-color(divider);
79
81
  td,
80
82
  th {
81
83
  box-shadow: 0 -1px 0 rgba(#000, 0.15);
82
- border-bottom: 1px solid darken($am-table-border-color, 15%);
84
+ border-bottom: 1px solid color.adjust($am-table-border-color, $lightness: -15%, $space: hsl);
83
85
  }
84
86
  }
85
87
 
@@ -1,3 +1,5 @@
1
+ @use "sass:color";
2
+
1
3
  ////
2
4
  /// @group colors
3
5
  ////
@@ -83,8 +85,8 @@ $theme-error: $am-theme-error !default;
83
85
 
84
86
  $am-colors: (
85
87
  accent : $am-theme-accent,
86
- accent-active : lighten($am-theme-accent, 2%),
87
- accent-hover : lighten($am-theme-accent, 5%),
88
+ accent-active : color.adjust($am-theme-accent, $lightness: 2%, $space: hsl),
89
+ accent-hover : color.adjust($am-theme-accent, $lightness: 5%, $space: hsl),
88
90
  backdrop : $am-theme-backdrop,
89
91
  black : black,
90
92
  divider : $am-theme-divider,
@@ -1,3 +1,3 @@
1
1
  module ActiveMaterial
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "active_material",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "ActiveAdmin skin based on Google's Material Design.",
5
5
  "main": "src/javascripts/active_material.js",
6
6
  "directories": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_material
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Kniffin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-07 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
- rubygems_version: 3.3.26
157
+ rubygems_version: 3.5.11
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: ActiveAdmin skin based on Google's Material Design.