@ngx-stoui/core 13.0.0-BETA.1 → 13.0.2

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/ngx-stoui.css CHANGED
@@ -339,48 +339,6 @@ body .sto-date.sto-date__popout {
339
339
  background: var(--bg-card);
340
340
  }
341
341
 
342
- body .sto-drawer__overlay {
343
- background: var(--text);
344
- }
345
- body .sto-drawer {
346
- background-color: var(--bg-app);
347
- }
348
- body .sto-drawer__footer {
349
- border-top: 1px solid var(--divider);
350
- background-color: var(--bg-card);
351
- color: var(--text);
352
- }
353
- body .sto-drawer__content {
354
- background-color: var(--bg-app);
355
- color: var(--text);
356
- }
357
- body .sto-drawer__header__infix a, body .sto-drawer__header__infix mat-icon {
358
- color: var(--text-secondary);
359
- }
360
- body .sto-drawer__header__infix a:hover, body .sto-drawer__header__infix mat-icon:hover {
361
- color: var(--text-disabled);
362
- }
363
- body .sto-drawer__header__wrapper {
364
- background-color: var(--bg-card);
365
- color: var(--text);
366
- }
367
- body .sto-drawer .sto-slide-panel {
368
- color: var(--text);
369
- background-color: var(--bg-app);
370
- }
371
- body .sto-drawer .sto-slide-panel .mat-list.sto-navigation .mat-list-item {
372
- color: var(--text);
373
- }
374
- body .sto-drawer .sto-slide-panel .mat-list.sto-navigation .mat-list-item .mat-icon {
375
- color: var(--text-secondary);
376
- }
377
- body .sto-drawer .sto-slide-panel .mat-list.sto-navigation .mat-list-item .sto-navigation__item__text {
378
- color: var(--text);
379
- }
380
- body .sto-drawer .sto-slide-panel .mat-list.sto-navigation .mat-list-item .sto-navigation__item__text a {
381
- color: var(--text);
382
- }
383
-
384
342
  body .sto-filter.mat-expansion-panel .mat-expansion-panel-header {
385
343
  background-color: var(--bg-card);
386
344
  }
@@ -1331,11 +1289,15 @@ body .mat-calendar-body-disabled > .mat-calendar-body-selected {
1331
1289
  body .mat-calendar-body-today.mat-calendar-body-selected {
1332
1290
  box-shadow: inset 0 0 0 1px var(--primary-contrast-resting);
1333
1291
  }
1334
- body .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),
1335
1292
  body .cdk-keyboard-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),
1336
1293
  body .cdk-program-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
1337
1294
  background-color: var(--primary-resting);
1338
1295
  }
1296
+ @media (hover: hover) {
1297
+ body .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
1298
+ background-color: var(--primary-resting);
1299
+ }
1300
+ }
1339
1301
  body .mat-datepicker-content {
1340
1302
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
1341
1303
  background-color: var(--bg-card);
@@ -1374,11 +1336,15 @@ body .mat-datepicker-content.mat-accent .mat-calendar-body-disabled > .mat-calen
1374
1336
  body .mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected {
1375
1337
  box-shadow: inset 0 0 0 1px var(--accent-highlight-contrast);
1376
1338
  }
1377
- body .mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),
1378
1339
  body .mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),
1379
1340
  body .mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
1380
1341
  background-color: var(--accent-highlight);
1381
1342
  }
1343
+ @media (hover: hover) {
1344
+ body .mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
1345
+ background-color: var(--accent-highlight);
1346
+ }
1347
+ }
1382
1348
  body .mat-datepicker-content.mat-warn .mat-calendar-body-in-range::before {
1383
1349
  background: rgba(244, 67, 54, 0.2);
1384
1350
  }
@@ -1412,11 +1378,15 @@ body .mat-datepicker-content.mat-warn .mat-calendar-body-disabled > .mat-calenda
1412
1378
  body .mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected {
1413
1379
  box-shadow: inset 0 0 0 1px white;
1414
1380
  }
1415
- body .mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),
1416
1381
  body .mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),
1417
1382
  body .mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
1418
1383
  background-color: rgba(244, 67, 54, 0.3);
1419
1384
  }
1385
+ @media (hover: hover) {
1386
+ body .mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
1387
+ background-color: rgba(244, 67, 54, 0.3);
1388
+ }
1389
+ }
1420
1390
  body .mat-datepicker-content-touch {
1421
1391
  box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
1422
1392
  }
@@ -1646,8 +1616,9 @@ body .mat-list-base .mat-list-option {
1646
1616
  body .mat-list-base .mat-subheader {
1647
1617
  color: var(--text-secondary);
1648
1618
  }
1649
- body .mat-list-item-disabled {
1619
+ body .mat-list-base .mat-list-item-disabled {
1650
1620
  background-color: var(--bg-disabled);
1621
+ color: var(--text-disabled);
1651
1622
  }
1652
1623
  body .mat-list-option:hover, body .mat-list-option:focus,
1653
1624
  body .mat-nav-list .mat-list-item:hover,
@@ -1893,73 +1864,73 @@ body .mat-slide-toggle-bar {
1893
1864
  body .mat-slider-track-background {
1894
1865
  background-color: var(--text-disabled);
1895
1866
  }
1896
- body .mat-primary .mat-slider-track-fill,
1897
- body .mat-primary .mat-slider-thumb,
1898
- body .mat-primary .mat-slider-thumb-label {
1867
+ body .mat-slider.mat-primary .mat-slider-track-fill,
1868
+ body .mat-slider.mat-primary .mat-slider-thumb,
1869
+ body .mat-slider.mat-primary .mat-slider-thumb-label {
1899
1870
  background-color: var(--primary-resting);
1900
1871
  }
1901
- body .mat-primary .mat-slider-thumb-label-text {
1872
+ body .mat-slider.mat-primary .mat-slider-thumb-label-text {
1902
1873
  color: var(--primary-contrast-resting);
1903
1874
  }
1904
- body .mat-primary .mat-slider-focus-ring {
1875
+ body .mat-slider.mat-primary .mat-slider-focus-ring {
1905
1876
  background-color: var(--primary-resting);
1906
1877
  opacity: 0.2;
1907
1878
  }
1908
- body .mat-accent .mat-slider-track-fill,
1909
- body .mat-accent .mat-slider-thumb,
1910
- body .mat-accent .mat-slider-thumb-label {
1879
+ body .mat-slider.mat-accent .mat-slider-track-fill,
1880
+ body .mat-slider.mat-accent .mat-slider-thumb,
1881
+ body .mat-slider.mat-accent .mat-slider-thumb-label {
1911
1882
  background-color: var(--accent-highlight);
1912
1883
  }
1913
- body .mat-accent .mat-slider-thumb-label-text {
1884
+ body .mat-slider.mat-accent .mat-slider-thumb-label-text {
1914
1885
  color: var(--accent-highlight-contrast);
1915
1886
  }
1916
- body .mat-accent .mat-slider-focus-ring {
1887
+ body .mat-slider.mat-accent .mat-slider-focus-ring {
1917
1888
  background-color: var(--accent-highlight);
1918
1889
  opacity: 0.2;
1919
1890
  }
1920
- body .mat-warn .mat-slider-track-fill,
1921
- body .mat-warn .mat-slider-thumb,
1922
- body .mat-warn .mat-slider-thumb-label {
1891
+ body .mat-slider.mat-warn .mat-slider-track-fill,
1892
+ body .mat-slider.mat-warn .mat-slider-thumb,
1893
+ body .mat-slider.mat-warn .mat-slider-thumb-label {
1923
1894
  background-color: #f44336;
1924
1895
  }
1925
- body .mat-warn .mat-slider-thumb-label-text {
1896
+ body .mat-slider.mat-warn .mat-slider-thumb-label-text {
1926
1897
  color: white;
1927
1898
  }
1928
- body .mat-warn .mat-slider-focus-ring {
1899
+ body .mat-slider.mat-warn .mat-slider-focus-ring {
1929
1900
  background-color: rgba(244, 67, 54, 0.2);
1930
1901
  }
1931
1902
  body .mat-slider:hover .mat-slider-track-background,
1932
1903
  body .mat-slider.cdk-focused .mat-slider-track-background {
1933
1904
  background-color: var(--text-disabled);
1934
1905
  }
1935
- body .mat-slider-disabled .mat-slider-track-background,
1936
- body .mat-slider-disabled .mat-slider-track-fill,
1937
- body .mat-slider-disabled .mat-slider-thumb {
1906
+ body .mat-slider.mat-slider-disabled .mat-slider-track-background,
1907
+ body .mat-slider.mat-slider-disabled .mat-slider-track-fill,
1908
+ body .mat-slider.mat-slider-disabled .mat-slider-thumb {
1938
1909
  background-color: var(--text-disabled);
1939
1910
  }
1940
- body .mat-slider-disabled:hover .mat-slider-track-background {
1911
+ body .mat-slider.mat-slider-disabled:hover .mat-slider-track-background {
1941
1912
  background-color: var(--text-disabled);
1942
1913
  }
1943
- body .mat-slider-min-value .mat-slider-focus-ring {
1914
+ body .mat-slider.mat-slider-min-value .mat-slider-focus-ring {
1944
1915
  background-color: var(--text);
1945
1916
  opacity: 0.12;
1946
1917
  }
1947
- body .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,
1948
- body .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label {
1918
+ body .mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,
1919
+ body .mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label {
1949
1920
  background-color: var(--text-secondary);
1950
1921
  }
1951
- body .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,
1952
- body .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label {
1922
+ body .mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,
1923
+ body .mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label {
1953
1924
  background-color: var(--text-disabled);
1954
1925
  }
1955
- body .mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb {
1926
+ body .mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb {
1956
1927
  border-color: var(--text-disabled);
1957
1928
  background-color: transparent;
1958
1929
  }
1959
- body .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb, body .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb {
1930
+ body .mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb, body .mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb {
1960
1931
  border-color: var(--text-disabled);
1961
1932
  }
1962
- body .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb, body .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb {
1933
+ body .mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb, body .mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb {
1963
1934
  border-color: var(--text-disabled);
1964
1935
  }
1965
1936
  body .mat-slider-has-ticks .mat-slider-wrapper::after {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngx-stoui/core",
3
- "version": "13.0.0-BETA.1",
3
+ "version": "13.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0",
package/style/grid.scss CHANGED
@@ -8,9 +8,13 @@
8
8
  display: block;
9
9
  grid-column: span 1;
10
10
  }
11
- @for $i from 1 through $col-count {
11
+ @for $i from 1 through 12 {
12
12
  .#{$child-selector}-#{$i} {
13
- grid-column: span $i;
13
+ @if $i > $col-count {
14
+ grid-column: span $col-count;
15
+ } @else {
16
+ grid-column: span $i;
17
+ }
14
18
  }
15
19
  }
16
20
  }
@@ -1,101 +0,0 @@
1
- @use '@angular/material' as mat;
2
- @import "theme";
3
- @import "typography";
4
-
5
- @mixin sto-drawer-theme($theme, $variables) {
6
- $color: map_get($variables, color);
7
- $secondary: map_get($variables, secondary);
8
- $border-color: map_get($variables, border-color);
9
- $background-color: map_get($variables, background);
10
- $header-color: map_get($variables, app-bar);
11
- $hover-bg-color: map_get($variables, hover-bg);
12
- $selected-color: map_get($variables, selected-bg);
13
- $icon-color: map_get($variables, icon);
14
- $hover-color: map_get($variables, hover-color);
15
-
16
- .sto-drawer__overlay {
17
- background: $color;
18
- }
19
-
20
- .sto-drawer {
21
- background-color: $background-color;
22
-
23
- &__footer {
24
- border-top: 1px solid $border-color;
25
- background-color: $header-color;
26
- color: $color;
27
- }
28
-
29
- &__content {
30
- background-color: $background-color;
31
- color: $color;
32
- }
33
-
34
- &__header {
35
- &__infix {
36
- a, mat-icon {
37
- color: $secondary;
38
-
39
- &:hover {
40
- color: $hover-color;
41
- }
42
- }
43
- }
44
- &__wrapper {
45
- background-color: $header-color;
46
- color: $color;
47
- }
48
- }
49
-
50
- // navigation, TODO Rename
51
- .sto-slide-panel {
52
- color: $color;
53
- background-color: $background-color;
54
-
55
- .mat-list.sto-navigation {
56
- .mat-list-item {
57
- color: $color;
58
-
59
- .mat-icon {
60
- color: $icon-color;
61
- }
62
-
63
- .sto-navigation__item__text {
64
- color: $color;
65
-
66
- a {
67
- color: $color;
68
- }
69
- }
70
- }
71
- }
72
- }
73
- }
74
-
75
- }
76
-
77
- @mixin sto-drawer-typography($config) {
78
- .sto-drawer .sto-drawer__header {
79
- &__title, h1, h2, h3, h4, h5 {
80
- // Per Christian needs to look at what size this should be.
81
- // font-size: mat.font-size($config, subheading-1);
82
- }
83
- }
84
- }
85
-
86
- // Include theme styles for your custom components.
87
- body {
88
- @include sto-drawer-theme($sto-theme, $variables);
89
- }
90
-
91
- .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
92
- @include sto-drawer-typography($sto-typography);
93
- }
94
-
95
- .mat-typography.sto-sm-typography {
96
- @include sto-drawer-typography($sto-sm-typography);
97
- }
98
-
99
- .mat-typography.sto-l-typography {
100
- @include sto-drawer-typography($sto-l-typography);
101
- }