@geoffcox/sterling-svelte-themes 1.0.3 → 1.0.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.
@@ -40,7 +40,8 @@
40
40
  overflow: hidden;
41
41
  }
42
42
 
43
- .sterling-dropdown .button {
43
+ .sterling-dropdown .button,
44
+ .sterling-dropdown .icon {
44
45
  align-self: center;
45
46
  cursor: pointer;
46
47
  }
@@ -82,7 +83,8 @@
82
83
  transform-origin: 50% 50%;
83
84
  }
84
85
 
85
- .sterling-dropdown-popup-content {
86
+ .sterling-dropdown-popup-content,
87
+ .sterling-dropdown-content {
86
88
  background-color: var(--stsv-common__background-color);
87
89
  border-color: var(--stsv-common__border-color);
88
90
  border-radius: 0;
@@ -1 +1,3 @@
1
1
  @import url('./MenuItem.base.css');
2
+ @import url('./MenuItem.defaultItem.css');
3
+ @import url('./MenuItem.defaultItem.disabled.css');
@@ -0,0 +1,18 @@
1
+ .sterling-pagination {
2
+ box-sizing: border-box;
3
+ column-gap: 3px;
4
+ display: grid;
5
+ grid-template-columns: repeat(7, 1fr);
6
+ justify-self: center;
7
+ place-content: center;
8
+ place-items: stretch;
9
+ width: min-content;
10
+ overscroll-behavior: contain;
11
+ }
12
+
13
+ .sterling-pagination .page-number {
14
+ display: grid;
15
+ place-items: stretch;
16
+ place-content: stretch;
17
+ min-width: calc(var(--page-number-width, 1ch) + 1em);
18
+ }
@@ -0,0 +1,60 @@
1
+ .sterling-pagination button {
2
+ align-content: center;
3
+ align-items: center;
4
+ appearance: none;
5
+ background-color: transparent;
6
+ border-color: transparent;
7
+ border-radius: 0;
8
+ border-style: solid;
9
+ border-width: 2px;
10
+ box-sizing: border-box;
11
+ color: var(--stsv-button__color);
12
+ cursor: pointer;
13
+ display: inline-flex;
14
+ flex-direction: row;
15
+ font: inherit;
16
+ justify-content: center;
17
+ justify-items: center;
18
+ column-gap: 0.25em;
19
+ overflow: hidden;
20
+ outline: none;
21
+ padding: 0.5em 1em;
22
+ padding: 0;
23
+ text-decoration: none;
24
+ text-overflow: ellipsis;
25
+ transition:
26
+ background-color 250ms,
27
+ color 250ms,
28
+ border-color 250ms;
29
+ white-space: nowrap;
30
+ user-select: none;
31
+ }
32
+
33
+ .sterling-pagination button:not(:disabled):hover {
34
+ background-color: var(--stsv-button__background-color--hover);
35
+ border-color: transparent;
36
+ color: var(--stsv-button__color--hover);
37
+ }
38
+
39
+ .sterling-pagination button:not(:disabled):active {
40
+ background-color: var(--stsv-button__background-color--active);
41
+ border-color: transparent;
42
+ color: var(--stsv-button__color--active);
43
+ }
44
+
45
+ .sterling-pagination button:not(:disabled):focus-visible {
46
+ border-color: var(--stsv-button__border-color--focus);
47
+ }
48
+
49
+ .sterling-pagination button:disabled {
50
+ cursor: not-allowed;
51
+ position: relative;
52
+ pointer-events: none;
53
+ color: var(--stsv-common__color--faint);
54
+ }
55
+
56
+ @media (prefers-reduced-motion) {
57
+ .sterling-pagination button {
58
+ transition: none;
59
+ }
60
+ }
@@ -0,0 +1,3 @@
1
+ @import url('./Pagination.base.css');
2
+ @import url('./Pagination.button.css');
3
+ @import url('./Pagination.input.css');
@@ -0,0 +1,50 @@
1
+ .sterling-pagination input {
2
+ appearance: none;
3
+ background-color: var(--stsv-input__background-color);
4
+ border-color: transparent;
5
+ border-bottom-color: var(--stsv-input__border-color);
6
+ border-radius: 3px;
7
+ border-style: solid;
8
+ border-width: 2px;
9
+ box-sizing: border-box;
10
+ color: var(--stsv-input__color);
11
+ display: block;
12
+ font: inherit;
13
+ height: 100%;
14
+ margin: 0;
15
+ outline: none;
16
+ padding: 0;
17
+ text-align: center;
18
+ transition:
19
+ background-color 250ms,
20
+ color 250ms,
21
+ border-color 250ms;
22
+ width: 100%;
23
+ min-width: calc(var(--page-number-width, 1ch) + 1em);
24
+ }
25
+
26
+ .sterling-pagination input:not(:disabled) {
27
+ background-color: var(--stsv-input__background-color--hover);
28
+ border-bottom-color: var(--stsv-input__border-color--hover);
29
+ color: var(--stsv-input__color--hover);
30
+ }
31
+
32
+ .sterling-pagination input:focus,
33
+ .sterling-pagination input:focus {
34
+ background-color: var(--stsv-input__background-color--focus);
35
+ border-bottom-color: var(--stsv-input__border-color--focus);
36
+ color: var(--stsv-input__color--focus);
37
+ }
38
+
39
+ .sterling-pagination input:focus-visible {
40
+ outline-color: var(--stsv-common__outline-color);
41
+ outline-offset: 0;
42
+ outline-style: solid;
43
+ outline-width: 2px;
44
+ outline: none;
45
+ }
46
+ @media (prefers-reduced-motion) {
47
+ .sterling-pagination input {
48
+ transition: none;
49
+ }
50
+ }
@@ -78,7 +78,8 @@
78
78
  transform-origin: 50% 50%;
79
79
  }
80
80
 
81
- .sterling-select-popup-content {
81
+ .sterling-select-popup-content,
82
+ .sterling-select-content {
82
83
  background-color: var(--stsv-common__background-color);
83
84
  border-color: var(--stsv-common__border-color);
84
85
  border-radius: 0;
package/css/sterling.css CHANGED
@@ -15,8 +15,8 @@
15
15
  @import url("./sterling/MenuBar.css");
16
16
  @import url("./sterling/MenuButton.css");
17
17
  @import url("./sterling/MenuItem.css");
18
- @import url("./sterling/MenuItemDisplay.css");
19
18
  @import url("./sterling/MenuSeparator.css");
19
+ @import url("./sterling/Pagination.css");
20
20
  @import url("./sterling/Popover.css");
21
21
  @import url("./sterling/Progress.css");
22
22
  @import url("./sterling/Radio.css");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geoffcox/sterling-svelte-themes",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "author": "Geoff Cox",
5
5
  "description": "A modern theme for the sterling-svelte component library.",
6
6
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- @import url('./MenuItemDisplay.base.css');
2
- @import url('./MenuItemDisplay.disabled.css');