sforkowany z mirror/soapbox
Account for smaller screens
rodzic
825f5566a0
commit
e3d976a2e7
|
@ -9,7 +9,7 @@ interface IBackgroundShapes {
|
||||||
/** Gradient that appears in the background of the UI. */
|
/** Gradient that appears in the background of the UI. */
|
||||||
const BackgroundShapes: React.FC<IBackgroundShapes> = ({ position = 'fixed' }) => (
|
const BackgroundShapes: React.FC<IBackgroundShapes> = ({ position = 'fixed' }) => (
|
||||||
<div className={classNames(position, 'top-0 inset-x-0 flex justify-center overflow-hidden pointer-events-none')}>
|
<div className={classNames(position, 'top-0 inset-x-0 flex justify-center overflow-hidden pointer-events-none')}>
|
||||||
<div className='w-screen h-screen bg-gradient' />
|
<div className='w-screen h-screen bg-gradient-sm lg:bg-gradient-lg' />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
height: 100dvh;
|
height: 100dvh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-gradient {
|
.bg-gradient-lg {
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
112deg,
|
112deg,
|
||||||
rgba(0, 0, 0, 0) 0%,
|
rgba(0, 0, 0, 0) 0%,
|
||||||
|
@ -105,6 +105,14 @@
|
||||||
rgba(0, 0, 0, 0) 100%
|
rgba(0, 0, 0, 0) 100%
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bg-gradient-sm {
|
||||||
|
background: linear-gradient(
|
||||||
|
112deg,
|
||||||
|
rgba(var(--color-gradient-start) / 0.1) 0%,
|
||||||
|
rgba(var(--color-gradient-end) / 0.1) 50%
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@import 'forms';
|
@import 'forms';
|
||||||
|
|
Ładowanie…
Reference in New Issue