Remove "circle reveal" animation on load of sign-in page (#3802)
* Remove "circle reveal" animation on load of sign-in page * Remove CSS selector that broke text rendering when OS was dark and app theme is light
This commit is contained in:
@ -56,11 +56,6 @@ body.dark {
|
|||||||
.dark .body-bg {
|
.dark .body-bg {
|
||||||
@apply bg-chalkboard-100;
|
@apply bg-chalkboard-100;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
|
||||||
scrollbar-color: var(--color-chalkboard-70) var(--color-chalkboard-90);
|
|
||||||
@apply text-chalkboard-10;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
@ -300,32 +295,11 @@ code {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@layer utilities {
|
@layer utilities {
|
||||||
/* Modified from the very helpful https://www.transition.style/#in:circle:hesitate */
|
/*
|
||||||
@keyframes circle-in-hesitate {
|
This is where your own custom Tailwind utility classes can go,
|
||||||
0% {
|
which lets you use them with @apply in your CSS, and get
|
||||||
clip-path: circle(
|
autocomplete in classNames in your JSX.
|
||||||
var(--circle-size-start, 0%) at var(--circle-x, 50%)
|
*/
|
||||||
var(--circle-y, 50%)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
40% {
|
|
||||||
clip-path: circle(
|
|
||||||
var(--circle-size-mid, 40%) at var(--circle-x, 50%) var(--circle-y, 50%)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
clip-path: circle(
|
|
||||||
var(--circle-size-end, 125%) at var(--circle-x, 50%)
|
|
||||||
var(--circle-y, 50%)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.in-circle-hesitate {
|
|
||||||
animation: var(--circle-duration, 2.5s)
|
|
||||||
var(--circle-timing, cubic-bezier(0.25, 1, 0.3, 1)) circle-in-hesitate
|
|
||||||
both;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#code-mirror-override .cm-scroller,
|
#code-mirror-override .cm-scroller,
|
||||||
|
@ -70,17 +70,11 @@ const SignIn = () => {
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style={
|
style={
|
||||||
{
|
isDesktop()
|
||||||
height: 'calc(100vh - 16px)',
|
? ({ '-webkit-app-region': 'no-drag' } as CSSProperties)
|
||||||
'--circle-x': '14%',
|
: {}
|
||||||
'--circle-y': '12%',
|
|
||||||
'--circle-size-mid': '15%',
|
|
||||||
'--circle-size-end': '200%',
|
|
||||||
'--circle-timing': 'cubic-bezier(0.25, 1, 0.4, 0.9)',
|
|
||||||
...(isDesktop() ? { '-webkit-app-region': 'no-drag' } : {}),
|
|
||||||
} as CSSProperties
|
|
||||||
}
|
}
|
||||||
className="in-circle-hesitate body-bg py-5 px-12 rounded-lg grid place-items-center overflow-y-auto"
|
className="body-bg py-5 px-12 rounded-lg grid place-items-center overflow-y-auto"
|
||||||
>
|
>
|
||||||
<div className="max-w-7xl grid gap-5 grid-cols-3 xl:grid-cols-4 xl:grid-rows-5">
|
<div className="max-w-7xl grid gap-5 grid-cols-3 xl:grid-cols-4 xl:grid-rows-5">
|
||||||
<div className="col-span-2 xl:col-span-3 xl:row-span-3 max-w-3xl mr-8 mb-8">
|
<div className="col-span-2 xl:col-span-3 xl:row-span-3 max-w-3xl mr-8 mb-8">
|
||||||
@ -204,7 +198,7 @@ const SignIn = () => {
|
|||||||
<div className="flex gap-4 flex-wrap items-center">
|
<div className="flex gap-4 flex-wrap items-center">
|
||||||
<ActionButton
|
<ActionButton
|
||||||
Element="externalLink"
|
Element="externalLink"
|
||||||
to="https://zoo.dev/docs/kcl-samples/ball-bearing"
|
to="https://zoo.dev/docs/kcl-samples/a-parametric-bearing-pillow-block"
|
||||||
iconStart={{ icon: 'settings' }}
|
iconStart={{ icon: 'settings' }}
|
||||||
className="border-chalkboard-30 dark:border-chalkboard-80"
|
className="border-chalkboard-30 dark:border-chalkboard-80"
|
||||||
>
|
>
|
||||||
|
Reference in New Issue
Block a user