beercss 3.11.4 → 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.4/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.4/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.4/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.4/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;
@@ -3424,6 +3394,10 @@ body {
3424
3394
  padding: 0.25rem 1rem;
3425
3395
  font-variation-settings: "FILL" 1;
3426
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
+ }
3427
3401
  .beer :is(nav, .row):is(.left-align, .top-align, .vertical) {
3428
3402
  justify-content: flex-start;
3429
3403
  }
@@ -3533,6 +3507,7 @@ body {
3533
3507
  }
3534
3508
  .beer nav.group {
3535
3509
  gap: 0.125rem;
3510
+ background: none !important;
3536
3511
  }
3537
3512
  .beer nav.group > :is(.button, button):not(.chip, .fill, .border).active {
3538
3513
  background-color: var(--primary);
@@ -3552,6 +3527,48 @@ body {
3552
3527
  outline: 0.125rem solid var(--primary);
3553
3528
  outline-offset: -0.125rem;
3554
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
+ }
3555
3572
  @media only screen and (max-width: 600px) {
3556
3573
  .beer nav.top,
3557
3574
  .beer nav.bottom {
@@ -3988,13 +4005,15 @@ body {
3988
4005
  --_end: 0%;
3989
4006
  --_value1: "";
3990
4007
  --_value2: "";
4008
+ --_track: 1rem;
4009
+ --_thumb: max(2.5rem, calc(var(--_track) + 0.5rem));
3991
4010
  display: flex;
3992
4011
  align-items: center !important;
3993
4012
  inline-size: auto;
3994
- block-size: 1.25rem;
3995
- margin: 1.125rem;
4013
+ block-size: var(--thumb);
3996
4014
  flex: none;
3997
4015
  direction: ltr;
4016
+ margin: 0 1.25rem;
3998
4017
  }
3999
4018
  .beer [dir=rtl] .slider {
4000
4019
  transform: scaleX(-1);
@@ -4006,14 +4025,20 @@ body {
4006
4025
  transform: rotate(-90deg);
4007
4026
  inline-size: 100%;
4008
4027
  }
4028
+ .beer .slider.tiny {
4029
+ --_track: 1rem;
4030
+ }
4009
4031
  .beer .slider.small {
4010
- inline-size: 4rem;
4032
+ --_track: 1.5rem;
4011
4033
  }
4012
4034
  .beer .slider.medium {
4013
- inline-size: 8rem;
4035
+ --_track: 2.5rem;
4014
4036
  }
4015
4037
  .beer .slider.large {
4016
- inline-size: 12rem;
4038
+ --_track: 3.5rem;
4039
+ }
4040
+ .beer .slider.extra {
4041
+ --_track: 6rem;
4017
4042
  }
4018
4043
  .beer .slider > input {
4019
4044
  appearance: none;
@@ -4022,7 +4047,7 @@ body {
4022
4047
  outline: none;
4023
4048
  pointer-events: none;
4024
4049
  inline-size: 100%;
4025
- block-size: 1rem;
4050
+ block-size: var(--_track);
4026
4051
  background: none;
4027
4052
  z-index: 1;
4028
4053
  padding: 0;
@@ -4041,12 +4066,13 @@ body {
4041
4066
  border: none;
4042
4067
  outline: none;
4043
4068
  pointer-events: all;
4044
- block-size: 2.75rem;
4069
+ block-size: var(--_thumb);
4045
4070
  inline-size: 0.25rem;
4046
4071
  border-radius: 0.25rem;
4047
4072
  background: var(--primary);
4048
4073
  cursor: grab;
4049
4074
  margin: 0;
4075
+ z-index: 1;
4050
4076
  }
4051
4077
  .beer .slider > input::-webkit-slider-thumb:active {
4052
4078
  cursor: grabbing;
@@ -4078,23 +4104,24 @@ body {
4078
4104
  opacity: 1;
4079
4105
  }
4080
4106
  .beer .slider > input:disabled::-webkit-slider-thumb {
4081
- background: #9E9E9E;
4107
+ background: var(--outline);
4082
4108
  cursor: not-allowed;
4083
4109
  }
4084
4110
  .beer .slider > input:disabled::-moz-range-thumb {
4085
- background: #9E9E9E;
4111
+ background: var(--outline);
4086
4112
  cursor: not-allowed;
4087
4113
  }
4088
4114
  .beer .slider > input:disabled ~ span {
4089
- background: #9E9E9E;
4115
+ background: var(--outline);
4090
4116
  }
4091
4117
  .beer .slider > span {
4092
4118
  position: absolute;
4093
- block-size: 1rem;
4119
+ block-size: var(--_track);
4094
4120
  border-radius: 1rem 0 0 1rem;
4095
4121
  background: var(--primary);
4122
+ color: var(--on-primary);
4096
4123
  z-index: 0;
4097
- inset: calc(50% - 0.5rem) var(--_end) auto var(--_start);
4124
+ inset: calc(50% - (var(--_track) / 2)) var(--_end) auto var(--_start);
4098
4125
  clip-path: polygon(0 0, calc(100% - 0.5rem) 0, calc(100% - 0.5rem) 100%, 0 100%);
4099
4126
  }
4100
4127
  .beer .slider > input[type=range] + input[type=range] ~ span {
@@ -4108,13 +4135,29 @@ body {
4108
4135
  content: "";
4109
4136
  position: absolute;
4110
4137
  inline-size: 100%;
4111
- block-size: 1rem;
4138
+ block-size: var(--_track);
4112
4139
  border-radius: 1rem;
4113
- background: var(--primary-container);
4140
+ background: var(--secondary-container);
4114
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);
4115
4142
  }
4116
4143
  .beer .slider:has(> [disabled])::before {
4117
- 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);
4118
4161
  }
4119
4162
  .beer .slider > .tooltip {
4120
4163
  visibility: hidden !important;
@@ -4147,7 +4190,14 @@ body {
4147
4190
  visibility: visible !important;
4148
4191
  }
4149
4192
  .beer .slider.vertical > .tooltip {
4150
- 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;
4151
4201
  }
4152
4202
  .beer :is(nav, .row, .field) > .slider:not(.circle, .small, .medium, .large) {
4153
4203
  flex: auto;
@@ -4192,6 +4242,7 @@ body {
4192
4242
  inset: 0 var(--_end) 0 var(--_start);
4193
4243
  clip-path: none;
4194
4244
  background: currentcolor;
4245
+ color: inherit;
4195
4246
  border-radius: 0;
4196
4247
  }
4197
4248
  .beer .slider.max.vertical > span {