beercss 3.11.3 → 3.11.5

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.
@@ -102,7 +102,7 @@ body.dark {
102
102
  font-display: block;
103
103
  src:
104
104
  url("material-symbols-outlined.woff2") format("woff2"),
105
- url("https://cdn.jsdelivr.net/npm/beercss@3.11.3/dist/cdn/material-symbols-outlined.woff2") format("woff2");
105
+ url("https://cdn.jsdelivr.net/npm/beercss@3.11.5/dist/cdn/material-symbols-outlined.woff2") format("woff2");
106
106
  }
107
107
  /* rounded icons */
108
108
  @font-face {
@@ -112,7 +112,7 @@ body.dark {
112
112
  font-display: block;
113
113
  src:
114
114
  url("material-symbols-rounded.woff2") format("woff2"),
115
- url("https://cdn.jsdelivr.net/npm/beercss@3.11.3/dist/cdn/material-symbols-rounded.woff2") format("woff2");
115
+ url("https://cdn.jsdelivr.net/npm/beercss@3.11.5/dist/cdn/material-symbols-rounded.woff2") format("woff2");
116
116
  }
117
117
  /* sharp icons */
118
118
  @font-face {
@@ -122,7 +122,7 @@ body.dark {
122
122
  font-display: block;
123
123
  src:
124
124
  url("material-symbols-sharp.woff2") format("woff2"),
125
- url("https://cdn.jsdelivr.net/npm/beercss@3.11.3/dist/cdn/material-symbols-sharp.woff2") format("woff2");
125
+ url("https://cdn.jsdelivr.net/npm/beercss@3.11.5/dist/cdn/material-symbols-sharp.woff2") format("woff2");
126
126
  }
127
127
  /* subset of only required icons */
128
128
  @font-face {
@@ -132,7 +132,7 @@ body.dark {
132
132
  font-display: block;
133
133
  src:
134
134
  url("material-symbols-subset.woff2") format("woff2"),
135
- url("https://cdn.jsdelivr.net/npm/beercss@3.11.3/dist/cdn/material-symbols-subset.woff2") format("woff2");
135
+ url("https://cdn.jsdelivr.net/npm/beercss@3.11.5/dist/cdn/material-symbols-subset.woff2") format("woff2");
136
136
  }
137
137
  .beer * {
138
138
  -webkit-tap-highlight-color: transparent;
@@ -348,36 +348,6 @@ body :is(:hover,:focus)::-webkit-scrollbar-thumb {
348
348
  background-color: var(--surface-variant) !important;
349
349
  color: var(--on-surface-variant) !important;
350
350
  }
351
- .beer .primary-container > .active,
352
- .beer .primary-container.active {
353
- background-color: var(--primary) !important;
354
- color: var(--on-primary) !important;
355
- }
356
- .beer .secondary-container > .active,
357
- .beer .secondary-container.active {
358
- background-color: var(--secondary) !important;
359
- color: var(--on-secondary) !important;
360
- }
361
- .beer .tertiary-container > .active,
362
- .beer .tertiary-container.active {
363
- background-color: var(--tertiary) !important;
364
- color: var(--on-tertiary) !important;
365
- }
366
- .beer .primary > .active,
367
- .beer .primary.active {
368
- background-color: var(--primary-container) !important;
369
- color: var(--on-primary-container) !important;
370
- }
371
- .beer .secondary > .active,
372
- .beer .secondary.active {
373
- background-color: var(--secondary-container) !important;
374
- color: var(--on-secondary-container) !important;
375
- }
376
- .beer .tertiary > .active,
377
- .beer .tertiary.active {
378
- background-color: var(--tertiary-container) !important;
379
- color: var(--on-tertiary-container) !important;
380
- }
381
351
  .beer .middle-align {
382
352
  display: flex;
383
353
  align-items: center !important;
@@ -1847,9 +1817,6 @@ body {
1847
1817
  border-color: var(--outline-variant);
1848
1818
  color: var(--primary);
1849
1819
  }
1850
- .beer :is(button, .button):not(.border, .chip):hover {
1851
- box-shadow: var(--elevate1);
1852
- }
1853
1820
  .beer .extend > span {
1854
1821
  display: none;
1855
1822
  }
@@ -3427,6 +3394,10 @@ body {
3427
3394
  padding: 0.25rem 1rem;
3428
3395
  font-variation-settings: "FILL" 1;
3429
3396
  }
3397
+ .beer nav:is(.left, .right, .top, .bottom):not(.drawer) > a:not(.button, .chip).active {
3398
+ background: none !important;
3399
+ color: currentColor !important;
3400
+ }
3430
3401
  .beer :is(nav, .row):is(.left-align, .top-align, .vertical) {
3431
3402
  justify-content: flex-start;
3432
3403
  }
@@ -3536,6 +3507,7 @@ body {
3536
3507
  }
3537
3508
  .beer nav.group {
3538
3509
  gap: 0.125rem;
3510
+ background: none !important;
3539
3511
  }
3540
3512
  .beer nav.group > :is(.button, button):not(.chip, .fill, .border).active {
3541
3513
  background-color: var(--primary);
@@ -3555,6 +3527,48 @@ body {
3555
3527
  outline: 0.125rem solid var(--primary);
3556
3528
  outline-offset: -0.125rem;
3557
3529
  }
3530
+ .beer nav.primary > :is(a, button, .button),
3531
+ .beer nav.primary-container > a:is(:hover, :focus, .active) > i,
3532
+ .beer nav.primary-container > :is(a, button, .button).active,
3533
+ .beer :is(a, button, .button):not(.extend).primary-container.active {
3534
+ background-color: var(--primary) !important;
3535
+ color: var(--on-primary) !important;
3536
+ }
3537
+ .beer nav.primary-container > :is(a, button, .button),
3538
+ .beer nav.primary > a:is(:hover, :focus, .active) > i,
3539
+ .beer nav.primary > :is(a, button, .button).active,
3540
+ .beer :is(a, button, .button):not(.extend).primary.active {
3541
+ background-color: var(--primary-container) !important;
3542
+ color: var(--on-primary-container) !important;
3543
+ }
3544
+ .beer nav.secondary > :is(a, button, .button),
3545
+ .beer nav.secondary-container > a:is(:hover, :focus, .active) > i,
3546
+ .beer nav.secondary-container > :is(a, button, .button).active,
3547
+ .beer :is(a, button, .button):not(.extend).secondary-container.active {
3548
+ background-color: var(--secondary) !important;
3549
+ color: var(--on-secondary) !important;
3550
+ }
3551
+ .beer nav.secondary-container > :is(a, button, .button),
3552
+ .beer nav.secondary > a:is(:hover, :focus, .active) > i,
3553
+ .beer nav.secondary > :is(a, button, .button).active,
3554
+ .beer :is(a, button, .button):not(.extend).secondary.active {
3555
+ background-color: var(--secondary-container) !important;
3556
+ color: var(--on-secondary-container) !important;
3557
+ }
3558
+ .beer nav.tertiary > :is(a, button, .button),
3559
+ .beer nav.tertiary-container > a:is(:hover, :focus, .active) > i,
3560
+ .beer nav.tertiary-container > :is(a, button, .button).active,
3561
+ .beer :is(a, button, .button):not(.extend).tertiary-container.active {
3562
+ background-color: var(--tertiary) !important;
3563
+ color: var(--on-tertiary) !important;
3564
+ }
3565
+ .beer nav.tertiary-container > :is(a, button, .button),
3566
+ .beer nav.tertiary > a:is(:hover, :focus, .active) > i,
3567
+ .beer nav.tertiary > :is(a, button, .button).active,
3568
+ .beer :is(a, button, .button):not(.extend).tertiary.active {
3569
+ background-color: var(--tertiary-container) !important;
3570
+ color: var(--on-tertiary-container) !important;
3571
+ }
3558
3572
  @media only screen and (max-width: 600px) {
3559
3573
  .beer nav.top,
3560
3574
  .beer nav.bottom {
@@ -3991,13 +4005,15 @@ body {
3991
4005
  --_end: 0%;
3992
4006
  --_value1: "";
3993
4007
  --_value2: "";
4008
+ --_track: 1rem;
4009
+ --_thumb: max(2.5rem, calc(var(--_track) + 0.5rem));
3994
4010
  display: flex;
3995
4011
  align-items: center !important;
3996
4012
  inline-size: auto;
3997
- block-size: 1.25rem;
3998
- margin: 1.125rem;
4013
+ block-size: var(--thumb);
3999
4014
  flex: none;
4000
4015
  direction: ltr;
4016
+ margin: 0 1.25rem;
4001
4017
  }
4002
4018
  .beer [dir=rtl] .slider {
4003
4019
  transform: scaleX(-1);
@@ -4009,14 +4025,20 @@ body {
4009
4025
  transform: rotate(-90deg);
4010
4026
  inline-size: 100%;
4011
4027
  }
4028
+ .beer .slider.tiny {
4029
+ --_track: 1rem;
4030
+ }
4012
4031
  .beer .slider.small {
4013
- inline-size: 4rem;
4032
+ --_track: 1.5rem;
4014
4033
  }
4015
4034
  .beer .slider.medium {
4016
- inline-size: 8rem;
4035
+ --_track: 2.5rem;
4017
4036
  }
4018
4037
  .beer .slider.large {
4019
- inline-size: 12rem;
4038
+ --_track: 3.5rem;
4039
+ }
4040
+ .beer .slider.extra {
4041
+ --_track: 6rem;
4020
4042
  }
4021
4043
  .beer .slider > input {
4022
4044
  appearance: none;
@@ -4025,7 +4047,7 @@ body {
4025
4047
  outline: none;
4026
4048
  pointer-events: none;
4027
4049
  inline-size: 100%;
4028
- block-size: 1rem;
4050
+ block-size: var(--_track);
4029
4051
  background: none;
4030
4052
  z-index: 1;
4031
4053
  padding: 0;
@@ -4044,12 +4066,13 @@ body {
4044
4066
  border: none;
4045
4067
  outline: none;
4046
4068
  pointer-events: all;
4047
- block-size: 2.75rem;
4069
+ block-size: var(--_thumb);
4048
4070
  inline-size: 0.25rem;
4049
4071
  border-radius: 0.25rem;
4050
4072
  background: var(--primary);
4051
4073
  cursor: grab;
4052
4074
  margin: 0;
4075
+ z-index: 1;
4053
4076
  }
4054
4077
  .beer .slider > input::-webkit-slider-thumb:active {
4055
4078
  cursor: grabbing;
@@ -4081,23 +4104,24 @@ body {
4081
4104
  opacity: 1;
4082
4105
  }
4083
4106
  .beer .slider > input:disabled::-webkit-slider-thumb {
4084
- background: #9E9E9E;
4107
+ background: var(--outline);
4085
4108
  cursor: not-allowed;
4086
4109
  }
4087
4110
  .beer .slider > input:disabled::-moz-range-thumb {
4088
- background: #9E9E9E;
4111
+ background: var(--outline);
4089
4112
  cursor: not-allowed;
4090
4113
  }
4091
4114
  .beer .slider > input:disabled ~ span {
4092
- background: #9E9E9E;
4115
+ background: var(--outline);
4093
4116
  }
4094
4117
  .beer .slider > span {
4095
4118
  position: absolute;
4096
- block-size: 1rem;
4119
+ block-size: var(--_track);
4097
4120
  border-radius: 1rem 0 0 1rem;
4098
4121
  background: var(--primary);
4122
+ color: var(--on-primary);
4099
4123
  z-index: 0;
4100
- inset: calc(50% - 0.5rem) var(--_end) auto var(--_start);
4124
+ inset: calc(50% - (var(--_track) / 2)) var(--_end) auto var(--_start);
4101
4125
  clip-path: polygon(0 0, calc(100% - 0.5rem) 0, calc(100% - 0.5rem) 100%, 0 100%);
4102
4126
  }
4103
4127
  .beer .slider > input[type=range] + input[type=range] ~ span {
@@ -4111,13 +4135,29 @@ body {
4111
4135
  content: "";
4112
4136
  position: absolute;
4113
4137
  inline-size: 100%;
4114
- block-size: 1rem;
4138
+ block-size: var(--_track);
4115
4139
  border-radius: 1rem;
4116
- background: var(--primary-container);
4140
+ background: var(--secondary-container);
4117
4141
  clip-path: polygon(calc(var(--_start) - 0.5rem) 0, 0 0, 0 100%, calc(var(--_start) - 0.5rem) 100%, calc(var(--_start) - 0.5rem) 0, calc(100% - var(--_end) + 0.5rem) 0, 100% 0, 100% 100%, calc(100% - var(--_end) + 0.5rem) 100%, calc(100% - var(--_end) + 0.5rem) 0);
4118
4142
  }
4119
4143
  .beer .slider:has(> [disabled])::before {
4120
- background: var(--active);
4144
+ background: var(--outline-variant);
4145
+ }
4146
+ .beer .slider:has([disabled]) {
4147
+ opacity: 0.62;
4148
+ }
4149
+ .beer .slider > span > i {
4150
+ position: absolute;
4151
+ block-size: auto;
4152
+ inset: 0 auto 0 0.5rem;
4153
+ color: currentColor;
4154
+ z-index: 1;
4155
+ }
4156
+ .beer .slider:not(.medium, .large, .extra) > span > i {
4157
+ display: none;
4158
+ }
4159
+ .beer .slider.vertical > i {
4160
+ transform: rotate(90deg);
4121
4161
  }
4122
4162
  .beer .slider > .tooltip {
4123
4163
  visibility: hidden !important;
@@ -4150,7 +4190,14 @@ body {
4150
4190
  visibility: visible !important;
4151
4191
  }
4152
4192
  .beer .slider.vertical > .tooltip {
4153
- display: none;
4193
+ inset-block-start: auto !important;
4194
+ margin-block-start: calc(-1 * var(--_thumb)) !important;
4195
+ block-size: 2.5rem;
4196
+ inline-size: 2.5rem;
4197
+ transform: rotate(90deg) translate(-75%, 50%) !important;
4198
+ }
4199
+ .beer .slider.vertical > .tooltip + .tooltip {
4200
+ transform: rotate(90deg) translate(-75%, -50%) !important;
4154
4201
  }
4155
4202
  .beer :is(nav, .row, .field) > .slider:not(.circle, .small, .medium, .large) {
4156
4203
  flex: auto;
@@ -4195,6 +4242,7 @@ body {
4195
4242
  inset: 0 var(--_end) 0 var(--_start);
4196
4243
  clip-path: none;
4197
4244
  background: currentcolor;
4245
+ color: inherit;
4198
4246
  border-radius: 0;
4199
4247
  }
4200
4248
  .beer .slider.max.vertical > span {