Updated CSS

This commit is contained in:
Henrik Larsson 2023-08-13 22:56:21 +02:00
parent 82350503b4
commit f7129605ec

View File

@ -40,31 +40,20 @@
* { * {
@apply border-border; @apply border-border;
} }
body {
@apply bg-background text-foreground;
}
}
/* BASE */ ::-moz-selection {
*,
*:before,
*:after {
box-sizing: inherit;
}
::-moz-selection {
/* Code for Firefox */ /* Code for Firefox */
color: #ffffff; color: #ffffff;
background: #333333; background: #333333;
} }
::selection { ::selection {
color: #ffffff; color: #ffffff;
background: #333333; background: #333333;
} }
html, html,
body { body {
@apply h-full bg-white font-sans text-high-contrast; @apply h-full bg-white font-sans text-high-contrast;
box-sizing: border-box; box-sizing: border-box;
@ -73,67 +62,73 @@ body {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
overscroll-behavior-x: none; overscroll-behavior-x: none;
}
body {
@apply bg-background text-foreground;
}
} }
/* DYNAMIC CONTENT MANAGER */ @layer components {
.dynamic-content > :not(.hero) { /* DYNAMIC CONTENT MANAGER */
.dynamic-content > :not(.hero) {
@apply my-12 md:my-16 lg:my-24; @apply my-12 md:my-16 lg:my-24;
} }
.dynamic-content > :first-child { .dynamic-content > :first-child {
@apply mt-0 md:mt-0 lg:mt-0; @apply mt-0 md:mt-0 lg:mt-0;
} }
.dynamic-content > :last-child { .dynamic-content > :last-child {
@apply mb-12 md:mb-16 lg:mb-24; @apply mb-12 md:mb-16 lg:mb-24;
} }
.dynamic-content .dynamic-content { .dynamic-content .dynamic-content {
@apply px-0 md:px-0; @apply px-0 md:px-0;
} }
.dynamic-content .dynamic-content > { .dynamic-content .dynamic-content > {
@apply my-0 md:my-0 lg:my-0; @apply my-0 md:my-0 lg:my-0;
} }
.dynamic-content .dynamic-content > :last-child { .dynamic-content .dynamic-content > :last-child {
@apply my-0 md:my-0 lg:my-0; @apply my-0 md:my-0 lg:my-0;
} }
/* GLIDER SLIDER */ /* GLIDER SLIDER */
.glider { .glider {
scrollbar-width: none; scrollbar-width: none;
-ms-overflow-style: none; -ms-overflow-style: none;
} }
.glider::-webkit-scrollbar { .glider::-webkit-scrollbar {
display: none; display: none;
} }
.glider-dots { .glider-dots {
@apply !mt-8 flex !space-x-[2px]; @apply !mt-8 flex !space-x-[2px];
} }
.glider-dot { .glider-dot {
@apply !m-0 !h-4 !w-12 !rounded-none !bg-transparent after:block after:h-[3px] after:w-12 after:bg-ui-border after:content-[''] 2xl:!w-16 2xl:after:w-16; @apply !m-0 !h-4 !w-12 !rounded-none !bg-transparent after:block after:h-[3px] after:w-12 after:bg-ui-border after:content-[''] 2xl:!w-16 2xl:after:w-16;
} }
.glider-dot.active { .glider-dot.active {
@apply after:!bg-high-contrast; @apply after:!bg-high-contrast;
} }
.glider-prev { .glider-prev {
@apply !-top-10 !left-auto !right-12 text-high-contrast !transition-transform !duration-100 hover:scale-110 hover:!text-high-contrast lg:!-top-12 lg:!right-16 2xl:!right-[100px]; @apply !-top-10 !left-auto !right-12 text-high-contrast !transition-transform !duration-100 hover:scale-110 hover:!text-high-contrast lg:!-top-12 lg:!right-16 2xl:!right-[100px];
} }
.glider-next { .glider-next {
@apply !-top-10 !right-4 text-high-contrast !transition-transform !duration-100 hover:scale-110 hover:!text-high-contrast lg:!-top-12 lg:!right-8 2xl:!right-16; @apply !-top-10 !right-4 text-high-contrast !transition-transform !duration-100 hover:scale-110 hover:!text-high-contrast lg:!-top-12 lg:!right-8 2xl:!right-16;
} }
.pdp .glider-prev { .pdp .glider-prev {
@apply absolute !left-4 !top-1/2 text-high-contrast !transition-transform !duration-100 hover:scale-100 hover:!text-high-contrast lg:hidden; @apply absolute !left-4 !top-1/2 text-high-contrast !transition-transform !duration-100 hover:scale-100 hover:!text-high-contrast lg:hidden;
} }
.pdp .glider-next { .pdp .glider-next {
@apply absolute !right-4 !top-1/2 text-high-contrast !transition-transform !duration-100 hover:scale-100 hover:!text-high-contrast lg:hidden; @apply absolute !right-4 !top-1/2 text-high-contrast !transition-transform !duration-100 hover:scale-100 hover:!text-high-contrast lg:hidden;
}
} }