material_design 0.2.4 → 0.4.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 +4 -4
- data/app/assets/stylesheets/material_design/app_bars.css +19 -0
- data/app/assets/stylesheets/material_design/application.css +104 -98
- data/app/assets/stylesheets/material_design/dividers.css +14 -0
- data/app/assets/stylesheets/material_design/icons.css +8 -0
- data/app/assets/stylesheets/material_design/lists.css +37 -0
- data/app/assets/stylesheets/material_design/navigation.css +12 -6
- data/app/assets/stylesheets/material_design/tabs.css +35 -0
- data/app/assets/stylesheets/material_design/typography.css +56 -19
- data/app/views/material_design/app_bars/_top_bar.html.erb +8 -0
- data/app/views/material_design/dividers/_horizontal.html.erb +1 -0
- data/app/views/material_design/icons/_arrow_back.html.erb +3 -0
- data/app/views/material_design/icons/_icon.html.erb +1 -0
- data/app/views/material_design/lists/_list.html.erb +5 -0
- data/app/views/material_design/lists/_list_item.html.erb +6 -0
- data/app/views/material_design/navigation/navigation_drawer/_headline.html.erb +1 -1
- data/app/views/material_design/tabs/_secondary.html.erb +6 -0
- data/app/views/material_design/tabs/secondary/_tab.html.erb +3 -0
- data/app/views/material_design/typography/_body_large.html.erb +3 -0
- data/app/views/material_design/typography/_body_medium.html.erb +3 -0
- data/app/views/material_design/typography/_headline_medium.html.erb +3 -0
- data/app/views/material_design/typography/_headline_small.html.erb +3 -0
- data/app/views/material_design/typography/_label_large.html.erb +1 -1
- data/app/views/material_design/typography/_title_large.html.erb +3 -0
- data/app/views/material_design/typography/_title_small.html.erb +1 -1
- data/lib/material_design/version.rb +1 -1
- metadata +20 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a029393b64a427515e8fd7a43e20ac3a1d3dab82cc683c79ebac6c79c160a51
|
4
|
+
data.tar.gz: 724754cc148f9de7348a2c829cbc67479c138cc7cf1bafd8368c37d1ca4d423d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e193ffa19cfd6920c5f5ecb359ad18fbc7d90c2715604b98f845a8bd940a101db62c41506139b6c78fcce175ed61e06c2a69269beff2ea19cea5220450de412
|
7
|
+
data.tar.gz: c9ae55ab78644567f8b81da7a912c95c16c28fc03129eba103fc24b6389a713825cf4f2961794d55c36a3295f30e718ed7fbff337ac9e043884db7473a76238f
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.top-bar--container {
|
2
|
+
display: flex;
|
3
|
+
align-items: center;
|
4
|
+
gap: 16px;
|
5
|
+
padding: 20px 16px 24px 16px;
|
6
|
+
width: 100%;
|
7
|
+
height: 112px;
|
8
|
+
}
|
9
|
+
|
10
|
+
.top-bar--container > .typography--title-large {
|
11
|
+
flex: 1 0 auto;
|
12
|
+
line-height: 64px;
|
13
|
+
@media (prefers-color-scheme: light) {
|
14
|
+
color: rgb(var(--md-sys-light-on-surface));
|
15
|
+
}
|
16
|
+
@media (prefers-color-scheme: dark) {
|
17
|
+
color: rgb(var(--md-sys-dark-on-surface));
|
18
|
+
}
|
19
|
+
}
|
@@ -1,105 +1,111 @@
|
|
1
1
|
:root {
|
2
2
|
/* color-scheme: light dark; */
|
3
|
+
--md-sys-light-state-hover-state-layer-opacity: 0.08;
|
4
|
+
--md-sys-dark-state-hover-state-layer-opacity: 0.08;
|
3
5
|
|
4
6
|
/* Light scheme */
|
5
|
-
--md-sys-light-primary:
|
6
|
-
--md-sys-light-surface-tint:
|
7
|
-
--md-sys-light-on-primary:
|
8
|
-
--md-sys-light-primary-container:
|
9
|
-
--md-sys-light-on-primary-container:
|
10
|
-
--md-sys-light-secondary:
|
11
|
-
--md-sys-light-on-secondary:
|
12
|
-
--md-sys-light-secondary-container:
|
13
|
-
--md-sys-light-on-secondary-container:
|
14
|
-
--md-sys-light-tertiary:
|
15
|
-
--md-sys-light-on-tertiary:
|
16
|
-
--md-sys-light-tertiary-container:
|
17
|
-
--md-sys-light-on-tertiary-container:
|
18
|
-
--md-sys-light-error:
|
19
|
-
--md-sys-light-on-error:
|
20
|
-
--md-sys-light-error-container:
|
21
|
-
--md-sys-light-on-error-container:
|
22
|
-
--md-sys-light-background:
|
23
|
-
--md-sys-light-on-background:
|
24
|
-
--md-sys-light-surface:
|
25
|
-
--md-sys-light-on-surface:
|
26
|
-
--md-sys-light-surface-variant:
|
27
|
-
--md-sys-light-on-surface-variant:
|
28
|
-
--md-sys-light-outline:
|
29
|
-
--md-sys-light-outline-variant:
|
30
|
-
--md-sys-light-shadow:
|
31
|
-
--md-sys-light-scrim:
|
32
|
-
--md-sys-light-inverse-surface:
|
33
|
-
--md-sys-light-inverse-on-surface:
|
34
|
-
--md-sys-light-inverse-primary:
|
35
|
-
--md-sys-light-primary-fixed:
|
36
|
-
--md-sys-light-on-primary-fixed:
|
37
|
-
--md-sys-light-primary-fixed-dim:
|
38
|
-
--md-sys-light-on-primary-fixed-variant:
|
39
|
-
--md-sys-light-secondary-fixed:
|
40
|
-
--md-sys-light-on-secondary-fixed:
|
41
|
-
--md-sys-light-secondary-fixed-dim:
|
42
|
-
--md-sys-light-on-secondary-fixed-variant:
|
43
|
-
--md-sys-light-tertiary-fixed:
|
44
|
-
--md-sys-light-on-tertiary-fixed:
|
45
|
-
--md-sys-light-tertiary-fixed-dim:
|
46
|
-
--md-sys-light-on-tertiary-fixed-variant:
|
47
|
-
--md-sys-light-surface-dim:
|
48
|
-
--md-sys-light-surface-bright:
|
49
|
-
--md-sys-light-surface-container-lowest:
|
50
|
-
--md-sys-light-surface-container-low:
|
51
|
-
--md-sys-light-surface-container:
|
52
|
-
--md-sys-light-surface-container-high:
|
53
|
-
--md-sys-light-surface-container-highest:
|
7
|
+
--md-sys-light-primary: 101, 85, 143;
|
8
|
+
--md-sys-light-surface-tint: 101 85 143;
|
9
|
+
--md-sys-light-on-primary: 255 255 255;
|
10
|
+
--md-sys-light-primary-container: 233 221 255;
|
11
|
+
--md-sys-light-on-primary-container: 32 16 71;
|
12
|
+
--md-sys-light-secondary: 98 91 113;
|
13
|
+
--md-sys-light-on-secondary: 255 255 255;
|
14
|
+
--md-sys-light-secondary-container: 232 222 248;
|
15
|
+
--md-sys-light-on-secondary-container: 30 25 43;
|
16
|
+
--md-sys-light-tertiary: 126 82 96;
|
17
|
+
--md-sys-light-on-tertiary: 255 255 255;
|
18
|
+
--md-sys-light-tertiary-container: 255 217 227;
|
19
|
+
--md-sys-light-on-tertiary-container: 49 16 29;
|
20
|
+
--md-sys-light-error: 186 26 26;
|
21
|
+
--md-sys-light-on-error: 255 255 255;
|
22
|
+
--md-sys-light-error-container: 255 218 214;
|
23
|
+
--md-sys-light-on-error-container: 65 0 2;
|
24
|
+
--md-sys-light-background: 253 247 255;
|
25
|
+
--md-sys-light-on-background: 29 27 32;
|
26
|
+
--md-sys-light-surface: 253 247 255;
|
27
|
+
--md-sys-light-on-surface: 29 27 32;
|
28
|
+
--md-sys-light-surface-variant: 231 224 235;
|
29
|
+
--md-sys-light-on-surface-variant: 73 69 78;
|
30
|
+
--md-sys-light-outline: 122 117 127;
|
31
|
+
--md-sys-light-outline-variant: 202 196 207;
|
32
|
+
--md-sys-light-shadow: 0 0 0;
|
33
|
+
--md-sys-light-scrim: 0 0 0;
|
34
|
+
--md-sys-light-inverse-surface: 50 47 53;
|
35
|
+
--md-sys-light-inverse-on-surface: 245 239 247;
|
36
|
+
--md-sys-light-inverse-primary: 207 189 254;
|
37
|
+
--md-sys-light-primary-fixed: 233 221 255;
|
38
|
+
--md-sys-light-on-primary-fixed: 32 16 71;
|
39
|
+
--md-sys-light-primary-fixed-dim: 207 189 254;
|
40
|
+
--md-sys-light-on-primary-fixed-variant: 77 61 117;
|
41
|
+
--md-sys-light-secondary-fixed: 232 222 248;
|
42
|
+
--md-sys-light-on-secondary-fixed: 30 25 43;
|
43
|
+
--md-sys-light-secondary-fixed-dim: 203 194 219;
|
44
|
+
--md-sys-light-on-secondary-fixed-variant: 74 68 88;
|
45
|
+
--md-sys-light-tertiary-fixed: 255 217 227;
|
46
|
+
--md-sys-light-on-tertiary-fixed: 49 16 29;
|
47
|
+
--md-sys-light-tertiary-fixed-dim: 239 184 200;
|
48
|
+
--md-sys-light-on-tertiary-fixed-variant: 99 59 72;
|
49
|
+
--md-sys-light-surface-dim: 222 216 224;
|
50
|
+
--md-sys-light-surface-bright: 253 247 255;
|
51
|
+
--md-sys-light-surface-container-lowest: 255 255 255;
|
52
|
+
--md-sys-light-surface-container-low: 248 242 250;
|
53
|
+
--md-sys-light-surface-container: 242 236 244;
|
54
|
+
--md-sys-light-surface-container-high: 236 230 238;
|
55
|
+
--md-sys-light-surface-container-highest: 230 224 233;
|
54
56
|
|
55
57
|
/* Dark scheme */
|
56
|
-
--md-sys-dark-primary:
|
57
|
-
--md-sys-dark-surface-tint:
|
58
|
-
--md-sys-dark-on-primary:
|
59
|
-
--md-sys-dark-primary-container:
|
60
|
-
--md-sys-dark-on-primary-container:
|
61
|
-
--md-sys-dark-secondary:
|
62
|
-
--md-sys-dark-on-secondary:
|
63
|
-
--md-sys-dark-secondary-container:
|
64
|
-
--md-sys-dark-on-secondary-container:
|
65
|
-
--md-sys-dark-tertiary:
|
66
|
-
--md-sys-dark-on-tertiary:
|
67
|
-
--md-sys-dark-tertiary-container:
|
68
|
-
--md-sys-dark-on-tertiary-container:
|
69
|
-
--md-sys-dark-error:
|
70
|
-
--md-sys-dark-on-error:
|
71
|
-
--md-sys-dark-error-container:
|
72
|
-
--md-sys-dark-on-error-container:
|
73
|
-
--md-sys-dark-background:
|
74
|
-
--md-sys-dark-on-background:
|
75
|
-
--md-sys-dark-surface:
|
76
|
-
--md-sys-dark-on-surface:
|
77
|
-
--md-sys-dark-surface-variant:
|
78
|
-
--md-sys-dark-on-surface-variant:
|
79
|
-
--md-sys-dark-outline:
|
80
|
-
--md-sys-dark-outline-variant:
|
81
|
-
--md-sys-dark-shadow:
|
82
|
-
--md-sys-dark-scrim:
|
83
|
-
--md-sys-dark-inverse-surface:
|
84
|
-
--md-sys-dark-inverse-on-surface:
|
85
|
-
--md-sys-dark-inverse-primary:
|
86
|
-
--md-sys-dark-primary-fixed:
|
87
|
-
--md-sys-dark-on-primary-fixed:
|
88
|
-
--md-sys-dark-primary-fixed-dim:
|
89
|
-
--md-sys-dark-on-primary-fixed-variant:
|
90
|
-
--md-sys-dark-secondary-fixed:
|
91
|
-
--md-sys-dark-on-secondary-fixed:
|
92
|
-
--md-sys-dark-secondary-fixed-dim:
|
93
|
-
--md-sys-dark-on-secondary-fixed-variant:
|
94
|
-
--md-sys-dark-tertiary-fixed:
|
95
|
-
--md-sys-dark-on-tertiary-fixed:
|
96
|
-
--md-sys-dark-tertiary-fixed-dim:
|
97
|
-
--md-sys-dark-on-tertiary-fixed-variant:
|
98
|
-
--md-sys-dark-surface-dim:
|
99
|
-
--md-sys-dark-surface-bright:
|
100
|
-
--md-sys-dark-surface-container-lowest:
|
101
|
-
--md-sys-dark-surface-container-low:
|
102
|
-
--md-sys-dark-surface-container:
|
103
|
-
--md-sys-dark-surface-container-high:
|
104
|
-
--md-sys-dark-surface-container-highest:
|
58
|
+
--md-sys-dark-primary: 207 189 254;
|
59
|
+
--md-sys-dark-surface-tint: 207 189 254;
|
60
|
+
--md-sys-dark-on-primary: 54 39 93;
|
61
|
+
--md-sys-dark-primary-container: 77 61 117;
|
62
|
+
--md-sys-dark-on-primary-container: 233 221 255;
|
63
|
+
--md-sys-dark-secondary: 203 194 219;
|
64
|
+
--md-sys-dark-on-secondary: 51 45 65;
|
65
|
+
--md-sys-dark-secondary-container: 74 68 88;
|
66
|
+
--md-sys-dark-on-secondary-container: 232 222 248;
|
67
|
+
--md-sys-dark-tertiary: 239 184 200;
|
68
|
+
--md-sys-dark-on-tertiary: 74 37 50;
|
69
|
+
--md-sys-dark-tertiary-container: 99 59 72;
|
70
|
+
--md-sys-dark-on-tertiary-container: 255 217 227;
|
71
|
+
--md-sys-dark-error: 255 180 171;
|
72
|
+
--md-sys-dark-on-error: 105 0 5;
|
73
|
+
--md-sys-dark-error-container: 147 0 10;
|
74
|
+
--md-sys-dark-on-error-container: 255 218 214;
|
75
|
+
--md-sys-dark-background: 20 18 24;
|
76
|
+
--md-sys-dark-on-background: 230 224 233;
|
77
|
+
--md-sys-dark-surface: 20 18 24;
|
78
|
+
--md-sys-dark-on-surface: 230 224 233;
|
79
|
+
--md-sys-dark-surface-variant: 73 69 78;
|
80
|
+
--md-sys-dark-on-surface-variant: 202 196 207;
|
81
|
+
--md-sys-dark-outline: 148 143 153;
|
82
|
+
--md-sys-dark-outline-variant: 73 69 78;
|
83
|
+
--md-sys-dark-shadow: 0 0 0;
|
84
|
+
--md-sys-dark-scrim: 0 0 0;
|
85
|
+
--md-sys-dark-inverse-surface: 230 224 233;
|
86
|
+
--md-sys-dark-inverse-on-surface: 50 47 53;
|
87
|
+
--md-sys-dark-inverse-primary: 101 85 143;
|
88
|
+
--md-sys-dark-primary-fixed: 233 221 255;
|
89
|
+
--md-sys-dark-on-primary-fixed: 32 16 71;
|
90
|
+
--md-sys-dark-primary-fixed-dim: 207 189 254;
|
91
|
+
--md-sys-dark-on-primary-fixed-variant: 77 61 117;
|
92
|
+
--md-sys-dark-secondary-fixed: 232 222 248;
|
93
|
+
--md-sys-dark-on-secondary-fixed: 30 25 43;
|
94
|
+
--md-sys-dark-secondary-fixed-dim: 203 194 219;
|
95
|
+
--md-sys-dark-on-secondary-fixed-variant: 74 68 88;
|
96
|
+
--md-sys-dark-tertiary-fixed: 255 217 227;
|
97
|
+
--md-sys-dark-on-tertiary-fixed: 49 16 29;
|
98
|
+
--md-sys-dark-tertiary-fixed-dim: 239 184 200;
|
99
|
+
--md-sys-dark-on-tertiary-fixed-variant: 99 59 72;
|
100
|
+
--md-sys-dark-surface-dim: 20 18 24;
|
101
|
+
--md-sys-dark-surface-bright: 59 56 62;
|
102
|
+
--md-sys-dark-surface-container-lowest: 15 13 19;
|
103
|
+
--md-sys-dark-surface-container-low: 29 27 32;
|
104
|
+
--md-sys-dark-surface-container: 33 31 36;
|
105
|
+
--md-sys-dark-surface-container-high: 43 41 47;
|
106
|
+
--md-sys-dark-surface-container-highest: 54 52 58;
|
107
|
+
}
|
108
|
+
|
109
|
+
.text-center {
|
110
|
+
text-align: center;
|
105
111
|
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
.horizontal-divider {
|
2
|
+
width: 100%;
|
3
|
+
margin-top: 0;
|
4
|
+
@media (prefers-color-scheme: light) {
|
5
|
+
border: 1px solid rgb(var(--md-sys-light-outline-variant));
|
6
|
+
}
|
7
|
+
@media (prefers-color-scheme: dark) {
|
8
|
+
border: 1px solid rgb(var(--md-sys-dark-outline-variant));
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
.divider__inset {
|
13
|
+
margin: 0 16px;
|
14
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.list {}
|
2
|
+
|
3
|
+
.list-item {
|
4
|
+
display: flex;
|
5
|
+
gap: 16px;
|
6
|
+
padding: 8px 16px;
|
7
|
+
@media (prefers-color-scheme: light) {
|
8
|
+
background: rgb(var(--md-sys-light-surface-container));
|
9
|
+
}
|
10
|
+
@media (prefers-color-scheme: dark) {
|
11
|
+
background: rgb(var(--md-sys-dark-surface-container));
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.list-item:hover {
|
16
|
+
cursor: pointer;
|
17
|
+
@media (prefers-color-scheme: light) {
|
18
|
+
background: rgb(var(--md-sys-light-on-surface) / var(--md-sys-light-state-hover-state-layer-opacity));
|
19
|
+
}
|
20
|
+
@media (prefers-color-scheme: dark) {
|
21
|
+
background: rgb(var(--md-sys-dark-on-surface) / var(--md-sys-light-state-hover-state-layer-opacity));
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.list-item--content {}
|
26
|
+
|
27
|
+
.list-item__one-line {
|
28
|
+
height: 56px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.list-item__two-lines {
|
32
|
+
height: 72px;
|
33
|
+
}
|
34
|
+
|
35
|
+
.list-item__three-lines {
|
36
|
+
height: 88px;
|
37
|
+
}
|
@@ -8,10 +8,10 @@
|
|
8
8
|
align-items: flex-start;
|
9
9
|
border-radius: 16px;
|
10
10
|
@media (prefers-color-scheme: light) {
|
11
|
-
background: var(--md-sys-light-surface-container-low);
|
11
|
+
background: rgb(var(--md-sys-light-surface-container-low));
|
12
12
|
}
|
13
13
|
@media (prefers-color-scheme: dark) {
|
14
|
-
background: var(--md-sys-dark-surface-container-low);
|
14
|
+
background: rgb(var(--md-sys-dark-surface-container-low));
|
15
15
|
}
|
16
16
|
@media (max-width: 840px) {
|
17
17
|
display: none;
|
@@ -27,6 +27,12 @@
|
|
27
27
|
align-items: flex-start;
|
28
28
|
gap: 10px;
|
29
29
|
align-self: stretch;
|
30
|
+
@media (prefers-color-scheme: light) {
|
31
|
+
color: rgb(var(--md-sys-light-on-surface-variant));
|
32
|
+
}
|
33
|
+
@media (prefers-color-scheme: dark) {
|
34
|
+
color: rgb(var(--md-sys-dark-on-surface-variant));
|
35
|
+
}
|
30
36
|
}
|
31
37
|
|
32
38
|
.navigation-drawer__secion-header {
|
@@ -48,19 +54,19 @@
|
|
48
54
|
|
49
55
|
.navigation-drawer__nav_item:hover {
|
50
56
|
@media (prefers-color-scheme: light) {
|
51
|
-
background: var(--md-sys-light-secondary-container);
|
57
|
+
background: rgb(var(--md-sys-light-secondary-container));
|
52
58
|
}
|
53
59
|
@media (prefers-color-scheme: dark) {
|
54
|
-
background: var(--md-sys-dark-secondary-container);
|
60
|
+
background: rgb(var(--md-sys-dark-secondary-container));
|
55
61
|
}
|
56
62
|
}
|
57
63
|
|
58
64
|
.navigation-drawer__nav_item.active {
|
59
65
|
@media (prefers-color-scheme: light) {
|
60
|
-
background: var(--md-sys-light-secondary-container);
|
66
|
+
background: rgb(var(--md-sys-light-secondary-container));
|
61
67
|
}
|
62
68
|
@media (prefers-color-scheme: dark) {
|
63
|
-
background: var(--md-sys-dark-secondary-container);
|
69
|
+
background: rgb(var(--md-sys-dark-secondary-container));
|
64
70
|
}
|
65
71
|
}
|
66
72
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.secondary-tabs--container {
|
2
|
+
display: flex;
|
3
|
+
height: 48px;
|
4
|
+
width: 100%;
|
5
|
+
}
|
6
|
+
|
7
|
+
.secondary-tabs--tab {
|
8
|
+
flex: 1;
|
9
|
+
align-self: center;
|
10
|
+
}
|
11
|
+
|
12
|
+
.secondary-tabs--tab:hover {
|
13
|
+
@media (prefers-color-scheme: light) {
|
14
|
+
background: rgb(var(--md-sys-light-primary) / var(--md-sys-light-state-hover-state-layer-opacity));
|
15
|
+
}
|
16
|
+
@media (prefers-color-scheme: dark) {
|
17
|
+
background: rgb(var(--md-sys-dark-primary) / var(--md-sys-dark-state-hover-state-layer-opacity));
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.secondary-tabs--tab.active {
|
22
|
+
flex: 1;
|
23
|
+
align-self: center;
|
24
|
+
@media (prefers-color-scheme: light) {
|
25
|
+
box-shadow: inset 0 -2px 0 rgb(var(--md-sys-light-primary));
|
26
|
+
}
|
27
|
+
@media (prefers-color-scheme: dark) {
|
28
|
+
box-shadow: inset 0 -2px 0 rgb(var(--md-sys-dark-primary));
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.secondary-tabs--tab > .typography__title-small {
|
33
|
+
text-align: center;
|
34
|
+
line-height: 48px;
|
35
|
+
}
|
@@ -1,34 +1,71 @@
|
|
1
|
-
.
|
2
|
-
|
1
|
+
.typography__headline-medium {
|
2
|
+
font-size: 28px;
|
3
|
+
line-height: 36px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.typography__headline-small {
|
7
|
+
font-size: 24px;
|
8
|
+
line-height: 32px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.typography--title-large {
|
12
|
+
font-size: 22px;
|
13
|
+
line-height: 28px;
|
14
|
+
}
|
15
|
+
|
16
|
+
.typography__title-medium {
|
17
|
+
font-size: 16px;
|
18
|
+
font-weight: 500;
|
19
|
+
line-height: 24px;
|
20
|
+
letter-spacing:0.15px;
|
21
|
+
}
|
22
|
+
|
23
|
+
.typography__title-small {
|
24
|
+
font-size: 14px;
|
25
|
+
font-weight: 500;
|
26
|
+
line-height: 20px;
|
27
|
+
letter-spacing: 0.1px;
|
28
|
+
|
3
29
|
@media (prefers-color-scheme: light) {
|
4
|
-
color: var(--md-sys-light-on-surface-variant);
|
30
|
+
color: rgb(var(--md-sys-light-on-surface-variant));
|
5
31
|
}
|
6
32
|
@media (prefers-color-scheme: dark) {
|
7
|
-
color: var(--md-sys-dark-on-surface-variant);
|
33
|
+
color: rgb(var(--md-sys-dark-on-surface-variant));
|
8
34
|
}
|
9
|
-
|
10
|
-
|
11
|
-
|
35
|
+
}
|
36
|
+
|
37
|
+
.typography__label-large {
|
12
38
|
font-size: 14px;
|
13
|
-
font-
|
14
|
-
|
15
|
-
line-height: 20px; /* 142.857% */
|
39
|
+
font-weight: 600;
|
40
|
+
line-height: 20px;
|
16
41
|
letter-spacing: 0.1px;
|
42
|
+
|
43
|
+
@media (prefers-color-scheme: light) {
|
44
|
+
color: rgb(var(--md-sys-light-on-secondary-container));
|
45
|
+
}
|
46
|
+
@media (prefers-color-scheme: dark) {
|
47
|
+
color: rgb(var(--md-sys-dark-on-secondary-container));
|
48
|
+
}
|
17
49
|
}
|
18
50
|
|
19
|
-
.
|
51
|
+
.typography__body-large {
|
52
|
+
font-size: 16px;
|
53
|
+
line-height: 24px;
|
20
54
|
@media (prefers-color-scheme: light) {
|
21
|
-
color: var(--md-sys-light-on-
|
55
|
+
color: rgb(var(--md-sys-light-on-surface));
|
22
56
|
}
|
23
57
|
@media (prefers-color-scheme: dark) {
|
24
|
-
color: var(--md-sys-dark-on-
|
58
|
+
color: rgb(var(--md-sys-dark-on-surface));
|
25
59
|
}
|
60
|
+
}
|
26
61
|
|
27
|
-
|
28
|
-
/* font-family: Roboto; */
|
62
|
+
.typography__body-medium {
|
29
63
|
font-size: 14px;
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
64
|
+
line-height: 20px;
|
65
|
+
@media (prefers-color-scheme: light) {
|
66
|
+
color: rgb(var(--md-sys-light-on-surface-variant));
|
67
|
+
}
|
68
|
+
@media (prefers-color-scheme: dark) {
|
69
|
+
color: rgb(var(--md-sys-dark-on-surface-variant));
|
70
|
+
}
|
34
71
|
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<div class="top-bar--container">
|
2
|
+
<% if locals[:back_path] %>
|
3
|
+
<%= link_to locals[:back_path] do %>
|
4
|
+
<%= render "material_design/icons/icon", locals: { icon: "arrow_back", size: "40" } %>
|
5
|
+
<% end %>
|
6
|
+
<% end %>
|
7
|
+
<%= render "material_design/typography/title_large", locals: { title: locals[:headline], center: locals[:center] } %>
|
8
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<hr class="<%= class_names('horizontal-divider', divider__inset: locals[:inset]) %>">
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render "material_design/icons/#{locals[:icon]}", locals: { size: locals[:size] || "24" } %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<div class="list-item list-item__one-line">
|
2
|
+
<div class="list-item--content">
|
3
|
+
<%= render "material_design/typography/body_large", locals: { body: locals[:headline] } %>
|
4
|
+
<%= render "material_design/typography/body_medium", locals: { body: locals[:supporting_text] } %>
|
5
|
+
</div>
|
6
|
+
</div>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<div class="secondary-tabs--container">
|
2
|
+
<% locals[:tabs].each do |tab| %>
|
3
|
+
<%= render "material_design/tabs/secondary/tab", locals: { label: tab[:label], path: tab[:path], controller: tab[:controller] } %>
|
4
|
+
<% end %>
|
5
|
+
</div>
|
6
|
+
<%= render "material_design/dividers/horizontal", locals: { inset: false } %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material_design
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo Yutaka Nakanishi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -35,8 +35,13 @@ files:
|
|
35
35
|
- MIT-LICENSE
|
36
36
|
- README.md
|
37
37
|
- Rakefile
|
38
|
+
- app/assets/stylesheets/material_design/app_bars.css
|
38
39
|
- app/assets/stylesheets/material_design/application.css
|
40
|
+
- app/assets/stylesheets/material_design/dividers.css
|
41
|
+
- app/assets/stylesheets/material_design/icons.css
|
42
|
+
- app/assets/stylesheets/material_design/lists.css
|
39
43
|
- app/assets/stylesheets/material_design/navigation.css
|
44
|
+
- app/assets/stylesheets/material_design/tabs.css
|
40
45
|
- app/assets/stylesheets/material_design/typography.css
|
41
46
|
- app/controllers/material_design/application_controller.rb
|
42
47
|
- app/helpers/material_design/application_helper.rb
|
@@ -44,10 +49,23 @@ files:
|
|
44
49
|
- app/mailers/material_design/application_mailer.rb
|
45
50
|
- app/models/material_design/application_record.rb
|
46
51
|
- app/views/layouts/material_design/application.html.erb
|
52
|
+
- app/views/material_design/app_bars/_top_bar.html.erb
|
53
|
+
- app/views/material_design/dividers/_horizontal.html.erb
|
54
|
+
- app/views/material_design/icons/_arrow_back.html.erb
|
55
|
+
- app/views/material_design/icons/_icon.html.erb
|
56
|
+
- app/views/material_design/lists/_list.html.erb
|
57
|
+
- app/views/material_design/lists/_list_item.html.erb
|
47
58
|
- app/views/material_design/navigation/_navigation_drawer.html.erb
|
48
59
|
- app/views/material_design/navigation/navigation_drawer/_headline.html.erb
|
49
60
|
- app/views/material_design/navigation/navigation_drawer/_section_header.html.erb
|
61
|
+
- app/views/material_design/tabs/_secondary.html.erb
|
62
|
+
- app/views/material_design/tabs/secondary/_tab.html.erb
|
63
|
+
- app/views/material_design/typography/_body_large.html.erb
|
64
|
+
- app/views/material_design/typography/_body_medium.html.erb
|
65
|
+
- app/views/material_design/typography/_headline_medium.html.erb
|
66
|
+
- app/views/material_design/typography/_headline_small.html.erb
|
50
67
|
- app/views/material_design/typography/_label_large.html.erb
|
68
|
+
- app/views/material_design/typography/_title_large.html.erb
|
51
69
|
- app/views/material_design/typography/_title_small.html.erb
|
52
70
|
- config/routes.rb
|
53
71
|
- lib/material_design.rb
|