Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
@include disabled();

@mixin range-part-base() {
&:before,
&:after {
&::before,
&::after {
@apply absolute pointer-events-none;
inset-block: 0;
content: "";
Expand All @@ -16,10 +16,10 @@
}

@mixin range-part-edge-end() {
&:before {
&::before {
inset-inline-end: 50%;
}
&:after {
&::after {
inset-inline-start: 50%;
border-start-end-radius: var(--calcite-internal-day-size);
border-end-end-radius: var(--calcite-internal-day-size);
Expand All @@ -28,23 +28,23 @@
}

@mixin range-part-edge-start() {
&:before {
&::before {
inset-inline-end: 50%;
border-start-start-radius: var(--calcite-internal-day-size);
border-end-start-radius: var(--calcite-internal-day-size);
inline-size: calc(var(--calcite-internal-day-size) / 2);
}
&:after {
&::after {
inset-inline-start: 50%;
}
}

@mixin range-part-middle() {
&:before {
&::before {
inset-inline-end: 50%;
border-radius: 0;
}
&:after {
&::after {
inset-inline-start: 50%;
border-radius: 0;
}
Expand Down Expand Up @@ -180,17 +180,17 @@
:host([highlighted]),
:host([selected]:not(.hover--outside-range)) {
.day-wrapper {
&:before,
&:after {
&::before,
&::after {
background-color: var(--calcite-color-foreground-current);
}
}
}

:host([range-hover]:not([selected])) {
.day-wrapper {
&:before,
&:after {
&::before,
&::after {
@apply bg-foreground-2;
}
}
Expand Down Expand Up @@ -222,8 +222,8 @@
:host([start-of-range][range-edge="end"].hover--inside-range),
:host([end-of-range]) {
.day-wrapper {
&:after,
&:before {
&::after,
&::before {
content: unset;
}
}
Expand Down Expand Up @@ -257,8 +257,8 @@
:host([highlighted]),
:host([range-hover]:not([selected])) {
.day-wrapper {
&:before,
&:after {
&::before,
&::after {
background-color: highlight;
}
}
Expand All @@ -268,8 +268,8 @@
:host([range][selected][start-of-range]),
:host([range][selected][end-of-range]) {
.day-wrapper {
&:before,
&:after {
&::before,
&::after {
background-color: canvas;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@
calcite-action {
@apply relative h-auto;
border-inline-start: 1px solid var(--calcite-color-foreground-1);
&:after {
&::after {
@apply block w-px absolute -start-px;
content: "";
inset-block: theme("spacing.3");
background-color: var(--calcite-color-border-3);
}
&:hover:after {
&:hover::after {
@apply h-full;
inset-block: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
transition-default;
max-block-size: 0;
text-align: start;
border-inline-start: 0px solid;
border-inline-start: 0 solid;
box-shadow: 0 0 0 0 transparent;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

.icon-dot {
@apply flex w-6 items-center p-2;
&:before {
&::before {
@apply opacity-0;
content: "\2022";
}
Expand All @@ -64,7 +64,7 @@
@apply opacity-0;
}

:host([selected]) .icon-dot:before,
:host([selected]) .icon-dot::before,
:host([selected]) .icon calcite-icon {
transition: opacity var(--calcite-animation-timing);
@apply opacity-100;
Expand Down
8 changes: 4 additions & 4 deletions packages/calcite-components/src/components/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@
}
}

.thumb:hover.thumb--precise:after,
.thumb:focus.thumb--precise:after,
.thumb--active.thumb--precise:after {
.thumb:hover.thumb--precise::after,
.thumb:focus.thumb--precise::after,
.thumb--active.thumb--precise::after {
@apply bg-brand;
}

Expand All @@ -243,7 +243,7 @@
&:hover {
cursor: ew-resize;
}
&:after {
&::after {
@apply absolute w-full;
content: "";
inset-block-start: calc(calc(var(--calcite-slider-full-handle-height) * 0.5) * -1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
}

:host([bordered][selected]) {
box-shadow: inset 0px -2px var(--calcite-color-foreground-1);
box-shadow: inset 0 -2px var(--calcite-color-foreground-1);
}

:host([bordered][selected][position="bottom"]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}

:host([lines]) {
.children-container:after {
.children-container::after {
@apply transition-default
absolute
top-0
Expand All @@ -91,7 +91,7 @@
}
}

:host(:not([lines])) .node-container:after {
:host(:not([lines])) .node-container::after {
@apply hidden;
}

Expand Down