Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug: disable i18n module #11260

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
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
207 changes: 0 additions & 207 deletions assets/styles/components/_carousel-arrows.scss
Original file line number Diff line number Diff line change
@@ -1,207 +0,0 @@


.arrow {
$side-y: 32px;
$side-x: 55px;

width: $side-x;
height: $side-x;
@apply absolute -translate-y-2/4 cursor-pointer top-2/4;
-webkit-transform: translateY(-50%);

&-left {
left: -30px;

@include ktheme() {
border-right: solid $side-x theme('black');
}
&::after {
content: '';
width: 0;
height: 0;

position: absolute;
top: -($side-y - 2);
right: -($side-x - 1);
transition-duration: 0.2s;
}

&::before {
content: '';
width: 0;
height: 0;

position: absolute;

top: -($side-y - 6);
right: -($side-x + 4);
}
}

&-right {
left: auto;
right: -30px;

&::after {
content: '';
width: 0;
height: 0;

position: absolute;
top: -($side-y - 2);
left: -($side-x - 1);
transition-duration: 0.2s;
}

&::before {
content: '';
width: 0;
height: 0;

position: absolute;
top: -($side-y - 6);
left: -($side-x - 4);
}
}


@media screen and (max-width: 640px) {
display: none;
}

&.arrow-icon {
@include ktheme() {
box-shadow: theme('primary-shadow');
border: 1px solid theme('border-color');
color: theme('text-color');
background: theme('background-color');
&:hover {
background: theme('k-accentHover');
.icon {
color: theme('black') !important;
}
}
}
}
}



// We have to duplicate this block to use variables properly unless upgrade to sass 3.x version
// red: https://stackoverflow.com/questions/12365703/scss-variable-scope

.arrow-small-size {
$side-y-small: 20px;
$side-x-small: 32px;
&.arrow {

width: $side-x-small;
height: $side-x-small;

@apply absolute -translate-y-2/4 cursor-pointer top-2/4;
-webkit-transform: translateY(-50%);

&-left {
left: -30px;

border-bottom: solid $side-y-small transparent;
border-top: solid $side-y-small transparent;
@include ktheme() {
border-right: solid $side-x-small theme('black');
}
&::after {
content: '';
width: 0;
height: 0;

position: absolute;
border-bottom: solid $side-y-small - 2 transparent;
border-top: solid $side-y-small - 2 transparent;
@include ktheme() {
border-right: solid $side-x-small - 2 theme('white');
}
top: -($side-y-small - 2);
right: -($side-x-small - 1);
transition-duration: 0.2s;
}

&::before {
content: '';
width: 0;
height: 0;

position: absolute;
border-bottom: solid $side-y-small transparent;
border-top: solid $side-y-small transparent;
@include ktheme() {
border-right: solid $side-x-small theme('black');
}

top: -($side-y-small - 6);
right: -($side-x-small + 4);
}
}

&-right {
left: auto;
right: -30px;

border-bottom: solid $side-y-small transparent;
border-top: solid $side-y-small transparent;
@include ktheme() {
border-left: solid $side-x-small theme('black');
}
&::after {
content: '';
width: 0;
height: 0;

position: absolute;
border-bottom: solid $side-y-small - 2 transparent;
border-top: solid $side-y-small - 2 transparent;
@include ktheme() {
border-left: solid $side-x-small - 2 theme('white');
}
top: -($side-y-small - 2);
left: -($side-x-small - 1);
transition-duration: 0.2s;
}

&::before {
content: '';
width: 0;
height: 0;

position: absolute;
border-bottom: solid $side-y-small transparent;
border-top: solid $side-y-small transparent;
@include ktheme() {
border-left: solid $side-x-small theme('black');
}
top: -($side-y-small - 6);
left: -($side-x-small - 4);
}
}

&:hover {
&.arrow-left::after {
@include ktheme() {
border-right: solid $side-x-small - 2 theme('k-accentlight');
}
}

&.arrow-right::after {
@include ktheme() {
border-left: solid $side-x-small - 2 theme('k-accentlight');
}
}
}

@media screen and (max-width: 640px) {
display: none;
}
}

}


76 changes: 0 additions & 76 deletions assets/styles/components/_carousel.scss
Original file line number Diff line number Diff line change
@@ -1,76 +0,0 @@
.carousel-agnostic {
@import './carousel-arrows';
.keen-slider {
padding-bottom: 16px;
}

.carousel-item {
a:hover {
color: unset !important;
}
@include ktheme() {
background: theme('background-color');
border: 1px solid theme('card-border-color');
&:hover {
border-color: theme('border-color');
.carousel-media {
opacity: theme('card-hover-opacity');
}
}
}
}

.carousel-media {
display: grid;
align-items: center;
@include ktheme() {
border-bottom: 1px solid theme('card-border-color');
}
&-collection {
border-bottom: none !important;
padding: 16px 16px 0 16px;

a {
@include ktheme() {
border: 1px solid theme('card-border-color');
}

display: block;
}
}

&-wrapper {
box-shadow: none !important;
border: none !important;
}
}

.carousel-info-arrow {
font-family: 'Fira Code', monospace;
}

.dots {
display: flex;
padding: 32px 0;
justify-content: center;

@media screen and (max-width: 640px) {
display: none;
}
}

.dot {
@apply w-2.5 h-2.5 cursor-pointer mx-3 my-0 p-[5px] border-[none];

&:focus {
outline: none;
}

@include ktheme() {
background: theme('k-shade');
&.active {
background: theme('k-grey');
}
}
}
}
Loading
Loading