active_material 2.1.2 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/active_material/components/dropdown.scss +36 -33
- data/app/assets/stylesheets/active_material/components/header.scss +3 -2
- data/app/assets/stylesheets/active_material/components/title_bar.scss +3 -2
- data/app/assets/stylesheets/active_material/generators/functions.scss +9 -6
- data/app/assets/stylesheets/active_material/generators/mixins.scss +14 -14
- data/app/assets/stylesheets/active_material/prototypes/table.scss +4 -2
- data/app/assets/stylesheets/active_material/values/colors.scss +4 -2
- data/lib/active_material/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57e58dae3f73f0308e4935e1b0078161bc076f0f2be4825ea4b813e2493f6201
|
4
|
+
data.tar.gz: 4cb54741e561f31f23f223824f5a664dbcc2ce84e709e4475d15ef4de2709a98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
+
}
|
@@ -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
|
55
|
-
@return map
|
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
|
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
|
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
|
88
|
-
@return map
|
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
|
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
|
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 :
|
87
|
-
accent-hover :
|
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,
|
data/package.json
CHANGED
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.
|
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:
|
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.
|
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.
|