active_material 2.1.2 → 2.1.4

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: 0befeef9159040b47e03da4f2d258451c580a0d9ab33b2e0c10e249e8a7ac556
4
- data.tar.gz: 550bc54c62434b4c81b1156a7d402283f22e497051b4d47a660ae5631be40790
3
+ metadata.gz: 57e58dae3f73f0308e4935e1b0078161bc076f0f2be4825ea4b813e2493f6201
4
+ data.tar.gz: 4cb54741e561f31f23f223824f5a664dbcc2ce84e709e4475d15ef4de2709a98
5
5
  SHA512:
6
- metadata.gz: d0d4ed26ce6857b0837e759b8113e3a6f598a80b6880b79669d9303fdf3f8d320366f2618048ebead4452c0c27cf09490c704c3a0d7fa89edce07c93bcf3a2d6
7
- data.tar.gz: 9174bfa663d0b9ae7718de7558883adc9ff8df4c82dc7195e1fa0ee7c1b5fa5dfd3e95e42c25cf872d2a75092ac4f9594614b856b067798291c3ef9d46b999e3
6
+ metadata.gz: 3782d0505b11d62f092118c0fbe8f56a8b01bfa0606c34ecbbf4f917f18310bf5bd4cc00b18b46d451e47dd04b8c002d1afa9434367c326175a509839a013436
7
+ data.tar.gz: 7db1546ea81b7587c2c8822b9469fac6211bce15de377bf96e150b37701d7e1b1fb3a4eba2ff1b1f09725ed0aeb28816d27512ce6999e32c93c755bed72c62ed
@@ -1,33 +1,36 @@
1
- /**
2
- * Dropdowns
3
- */
4
-
5
- .dropdown_menu {
6
- @include am-menu;
7
- }
8
-
9
- .dropdown_menu_button {
10
- @include am-menu-button;
11
-
12
- &:after {
13
- @include am-menu-carat;
14
- }
15
-
16
- &.disabled {
17
- @include am-btn-disabled;
18
- }
19
- }
20
-
21
- .dropdown_menu_list {
22
- @include am-menu-list;
23
- @include am-menu-list-open;
24
-
25
- li {
26
- @include am-menu-item;
27
- }
28
-
29
- li a {
30
- @include am-menu-link;
31
- @include am-menu-item-open;
32
- }
33
- }
1
+ /**
2
+ * Dropdowns
3
+ */
4
+
5
+ .dropdown_menu {
6
+ @include am-menu;
7
+ }
8
+
9
+ .dropdown_menu_button {
10
+ @include am-menu-button;
11
+
12
+ &:after {
13
+ @include am-menu-carat;
14
+ }
15
+
16
+ &.disabled {
17
+ @include am-btn-disabled;
18
+ }
19
+ }
20
+
21
+ .dropdown_menu_list {
22
+ @include am-menu-list;
23
+ @include am-menu-list-open;
24
+
25
+ li {
26
+ @include am-menu-item;
27
+ }
28
+
29
+ li a {
30
+ @include am-menu-link;
31
+
32
+ & {
33
+ @include am-menu-item-open;
34
+ }
35
+ }
36
+ }
@@ -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,14 +1,14 @@
1
- /// Standard logic for management of breakpoints
2
- @mixin am-min-breakpoint($breakpoint) {
3
- @media screen and (min-width: $breakpoint) {
4
- @content;
5
- }
6
- }
7
-
8
- /// Assign a given font size in rems, falling back to pixel values
9
- /// in older browsers.
10
- /// @param {number} $size - Font size in pixels
11
- @mixin am-font-size($size) {
12
- font-size: $size;
13
- font-size: am-sp($size);
14
- }
1
+ /// Standard logic for management of breakpoints
2
+ @mixin am-min-breakpoint($breakpoint) {
3
+ @media screen and (min-width: $breakpoint) {
4
+ @content;
5
+ }
6
+ }
7
+
8
+ /// Assign a given font size in rems, falling back to pixel values
9
+ /// in older browsers.
10
+ /// @param {number} $size - Font size in pixels
11
+ @mixin am-font-size($size) {
12
+ font-size: $size;
13
+ font-size: am-sp($size);
14
+ }
@@ -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.4"
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.4",
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.4
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-17 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.