Skip to content

Commit

Permalink
create a mixin for forced-color-mode / adjust cta colors with
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong committed Dec 1, 2024
1 parent ec27bbe commit a0e3128
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
6 changes: 6 additions & 0 deletions frontend/assets/style/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ $payment-table-desktop-bp: 1290px;
}
}

@mixin forced-color-mode {
@media (forced-colors: active) {
@content;
}
}

%unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
Expand Down
9 changes: 9 additions & 0 deletions frontend/views/components/modal/ModalClose.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export default ({
cursor: pointer;
background-color: $general_1;
@include forced-color-mode {
border: 1px solid $white;
}
@include tablet {
top: 1.5rem;
right: 1.5rem;
Expand Down Expand Up @@ -87,6 +91,11 @@ export default ({
transition: transform 0.15s ease-in;
transform: translateX(-50%) translateY(-50%) rotate(45deg);
transform-origin: center center;
forced-color-adjust: none;
@include forced-color-mode {
background-color: $white;
}
}
&::after {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ img.c-preview-image {
border-radius: 0.5rem;
opacity: 0.675;
@media (forced-colors: active) {
border: 1px solid;
@include forced-color-mode {
border: 1px solid $white;
opacity: 1;
}
}
Expand Down Expand Up @@ -522,6 +522,12 @@ img.c-preview-image {
::v-deep input.sInput {
forced-color-adjust: none;
@include forced-color-mode {
background: none;
border: 1px solid $white;
color: $white;
}
}
}
Expand Down

0 comments on commit a0e3128

Please sign in to comment.