@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oardi/css-utils",
3
- "version": "0.22.1",
3
+ "version": "0.23.4",
4
4
  "author": "Ardian Shala",
5
5
  "homepage": "https://css-utils.oardi.com",
6
6
  "description": "Powerful set of semantic css classes with support for breakpoints, directions and spacings",
@@ -1,6 +1,6 @@
1
1
  .card {
2
2
  --card-bg-color: var(--white);
3
- --card-border-color: transparent;
3
+ --card-border-color: var(--gray-90);
4
4
  --card-border-width: 1px;
5
5
  --card-body-padding: 1rem;
6
6
 
@@ -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
+ }
@@ -10,4 +10,5 @@
10
10
  @use './components/navbar.scss';
11
11
  @use './components/overlay.scss';
12
12
  @use './components/tabs.scss';
13
+ @use './components/table.scss';
13
14
  @use './components/toast.scss';
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(210, 10%, 10%),
16
- 20: hsl(210, 10%, 15%),
17
- 30: hsl(210, 10%, 30%),
18
- 40: hsl(210, 10%, 40%),
19
- 50: hsl(210, 10%, 50%),
20
- 60: hsl(210, 10%, 60%),
21
- 70: hsl(210, 10%, 70%),
22
- 80: hsl(210, 10%, 80%),
23
- 90: hsl(210, 10%, 90%),
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,
@@ -84,6 +84,12 @@
84
84
  background-color: var(--white);
85
85
  }
86
86
 
87
+ /**
88
+ bg-dark (bottom -> page background),
89
+ bg (middle),
90
+ bg-light(top)?
91
+ */
92
+
87
93
  .img-responsive {
88
94
  width: 100%;
89
95
  }
@@ -22,7 +22,7 @@
22
22
  --black: #000000;
23
23
 
24
24
  --font-color: var(--gray-10);
25
- --body-bg-color: #f9f9f9;
25
+ --body-bg-color: #ffffff;
26
26
 
27
27
  --highlight: rgba(189, 189, 189, 0.1);
28
28
  --border-radius: 6px;