@oardi/css-utils 0.22.1 → 0.23.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.
- package/package.json +1 -1
- package/scss/components/card.scss +1 -1
- package/scss/components/navbar.scss +2 -0
- package/scss/components/table.scss +43 -0
- package/scss/components.scss +1 -0
- package/scss/reboot.scss +19 -0
- package/scss/theme.scss +9 -9
- package/scss/utilities.scss +6 -0
- package/scss/variables.scss +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.navbar {
|
|
2
2
|
--nav-bg-color: #ffffff;
|
|
3
|
+
--nav-border-bottom: var(--gray-90);
|
|
3
4
|
|
|
4
5
|
padding-top: 0.6rem;
|
|
5
6
|
padding-bottom: 0.6rem;
|
|
@@ -7,6 +8,7 @@
|
|
|
7
8
|
min-height: 60px;
|
|
8
9
|
display: flex;
|
|
9
10
|
align-items: center;
|
|
11
|
+
border-bottom: 1px solid var(--nav-border-bottom);
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
.navbar .logo:hover {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.table {
|
|
2
|
+
--table-color-type: initial;
|
|
3
|
+
--table-bg-type: initial;
|
|
4
|
+
--table-color-state: initial;
|
|
5
|
+
--table-bg-state: initial;
|
|
6
|
+
--table-color: var(--font-color);
|
|
7
|
+
--table-bg: var(--body-bg-color);
|
|
8
|
+
--table-border-color: var(--gray-80);
|
|
9
|
+
--table-accent-bg: transparent;
|
|
10
|
+
--table-striped-color: var(--font-color);
|
|
11
|
+
--table-striped-bg: rgba(var(--font-color-rgb), 0.05); // TODO
|
|
12
|
+
--table-active-color: var(--font-color);
|
|
13
|
+
--table-active-bg: rgba(var(--font-color-rgb), 0.1); // TODO
|
|
14
|
+
--table-hover-color: var(--font-color);
|
|
15
|
+
--table-hover-bg: rgba(var(--font-color-rgb), 0.075); // TODO
|
|
16
|
+
--table-border-width: 1px;
|
|
17
|
+
|
|
18
|
+
width: 100%;
|
|
19
|
+
margin-bottom: 1rem;
|
|
20
|
+
vertical-align: top;
|
|
21
|
+
border-color: var(--table-border-color);
|
|
22
|
+
|
|
23
|
+
& > thead {
|
|
24
|
+
vertical-align: bottom;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& > :not(caption) > * > * {
|
|
28
|
+
padding: 0.5rem 0.5rem;
|
|
29
|
+
color: var(--table-color-state, var(--table-color-type, var(--table-color)));
|
|
30
|
+
background-color: var(--table-bg);
|
|
31
|
+
border-bottom-width: var(--table-border-width);
|
|
32
|
+
box-shadow: inset 0 0 0 9999px var(--table-bg-state, var(--table-bg-type, var(--table-accent-bg)));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
& > tbody {
|
|
36
|
+
vertical-align: inherit;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.table-striped > tbody > tr:nth-of-type(odd) > * {
|
|
40
|
+
--table-color-type: var(--table-striped-color);
|
|
41
|
+
--table-bg-type: var(--table-striped-bg);
|
|
42
|
+
}
|
|
43
|
+
}
|
package/scss/components.scss
CHANGED
package/scss/reboot.scss
CHANGED
|
@@ -50,6 +50,23 @@ sup {
|
|
|
50
50
|
|
|
51
51
|
table {
|
|
52
52
|
border-color: currentcolor;
|
|
53
|
+
caption-side: bottom;
|
|
54
|
+
border-collapse: collapse;
|
|
55
|
+
|
|
56
|
+
th {
|
|
57
|
+
text-align: -webkit-match-parent;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
tbody,
|
|
62
|
+
td,
|
|
63
|
+
tfoot,
|
|
64
|
+
th,
|
|
65
|
+
thead,
|
|
66
|
+
tr {
|
|
67
|
+
border-color: inherit;
|
|
68
|
+
border-style: solid;
|
|
69
|
+
border-width: 0;
|
|
53
70
|
}
|
|
54
71
|
|
|
55
72
|
button,
|
|
@@ -68,6 +85,7 @@ textarea {
|
|
|
68
85
|
[type='submit'],
|
|
69
86
|
button {
|
|
70
87
|
-webkit-appearance: button;
|
|
88
|
+
appearance: button;
|
|
71
89
|
}
|
|
72
90
|
|
|
73
91
|
legend {
|
|
@@ -85,6 +103,7 @@ progress {
|
|
|
85
103
|
|
|
86
104
|
[type='search'] {
|
|
87
105
|
-webkit-appearance: textfield;
|
|
106
|
+
appearance: textfield;
|
|
88
107
|
outline-offset: -2px;
|
|
89
108
|
}
|
|
90
109
|
|
package/scss/theme.scss
CHANGED
|
@@ -12,15 +12,15 @@ $theme: (
|
|
|
12
12
|
error: #ffffff,
|
|
13
13
|
),
|
|
14
14
|
grays: (
|
|
15
|
-
10: hsl(
|
|
16
|
-
20: hsl(
|
|
17
|
-
30: hsl(
|
|
18
|
-
40: hsl(
|
|
19
|
-
50: hsl(
|
|
20
|
-
60: hsl(
|
|
21
|
-
70: hsl(
|
|
22
|
-
80: hsl(
|
|
23
|
-
90: hsl(
|
|
15
|
+
10: hsl(0, 0%, 10%),
|
|
16
|
+
20: hsl(0, 0%, 20%),
|
|
17
|
+
30: hsl(0, 0%, 30%),
|
|
18
|
+
40: hsl(0, 0%, 40%),
|
|
19
|
+
50: hsl(0, 0%, 50%),
|
|
20
|
+
60: hsl(0, 0%, 60%),
|
|
21
|
+
70: hsl(0, 0%, 70%),
|
|
22
|
+
80: hsl(0, 0%, 80%),
|
|
23
|
+
90: hsl(0, 0%, 90%),
|
|
24
24
|
),
|
|
25
25
|
directions: (
|
|
26
26
|
t: top,
|
package/scss/utilities.scss
CHANGED