n0mbers/src/index.css

165 lines
3.4 KiB
CSS
Raw Normal View History

2022-02-07 22:14:31 +01:00
@tailwind base;
@tailwind components;
@tailwind utilities;
/* https://google-webfonts-helper.herokuapp.com/fonts */
/* manrope-regular - latin */
@font-face {
font-family: 'Manrope';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/manrope-v8-latin-regular.eot');
/* IE9 Compat Modes */
src: local(''),
2022-02-18 10:18:51 +01:00
url('../fonts/manrope-v8-latin-regular.eot?#iefix')
format('embedded-opentype'),
/* IE6-IE8 */ url('../fonts/manrope-v8-latin-regular.woff2') format('woff2'),
/* Super Modern Browsers */ url('../fonts/manrope-v8-latin-regular.woff')
format('woff'),
/* Modern Browsers */ url('../fonts/manrope-v8-latin-regular.ttf')
format('truetype'),
2022-02-07 22:14:31 +01:00
/* Safari, Android, iOS */
2022-02-18 10:18:51 +01:00
url('../fonts/manrope-v8-latin-regular.svg#Manrope') format('svg');
2022-02-07 22:14:31 +01:00
/* Legacy iOS */
}
/* manrope-700 - latin */
@font-face {
font-family: 'Manrope';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../fonts/manrope-v8-latin-700.eot');
/* IE9 Compat Modes */
src: local(''),
url('../fonts/manrope-v8-latin-700.eot?#iefix') format('embedded-opentype'),
2022-02-18 10:18:51 +01:00
/* IE6-IE8 */ url('../fonts/manrope-v8-latin-700.woff2') format('woff2'),
/* Super Modern Browsers */ url('../fonts/manrope-v8-latin-700.woff')
format('woff'),
/* Modern Browsers */ url('../fonts/manrope-v8-latin-700.ttf')
format('truetype'),
/* Safari, Android, iOS */ url('../fonts/manrope-v8-latin-700.svg#Manrope')
format('svg');
2022-02-07 22:14:31 +01:00
/* Legacy iOS */
2022-02-10 22:32:41 +01:00
}
2022-02-20 12:26:57 +01:00
/* Jetbrains mono - latin */
@font-face {
font-family: 'Jetbrains Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/JetBrainsMono-Regular.woff2');
}
2022-02-18 10:18:51 +01:00
/* ROUTE TRANSITION */
.route-move,
.route-enter-active,
.route-leave-active {
2022-02-23 22:39:53 +01:00
transition: all 0.8s ease;
2022-02-18 10:18:51 +01:00
}
.route-enter-from {
opacity: 0;
2022-02-22 21:56:18 +01:00
transform: translateX(100%);
2022-02-18 10:18:51 +01:00
}
.route-leave-to {
opacity: 0;
2022-02-22 21:56:18 +01:00
transform: translateX(-100%);
2022-02-18 10:18:51 +01:00
}
.route-leave-active {
position: absolute;
}
2022-02-18 19:55:51 +01:00
/* ROUTE TRANSITION - BACK */
.route_back-move,
.route_back-enter-active,
.route_back-leave-active {
2022-02-23 22:39:53 +01:00
transition: all 0.8s ease;
2022-02-18 19:55:51 +01:00
}
.route_back-enter-from {
opacity: 0;
2022-02-22 21:56:18 +01:00
transform: translateX(-100%);
2022-02-18 19:55:51 +01:00
}
.route_back-leave-to {
opacity: 0;
2022-02-22 21:56:18 +01:00
transform: translateX(100%);
2022-02-18 19:55:51 +01:00
}
.route_back-leave-active {
position: absolute;
}
2022-02-18 10:18:51 +01:00
/* SLIDE LEFT */
2022-02-15 08:46:15 +01:00
.slide_left-move,
2022-02-10 22:32:41 +01:00
.slide_left-enter-active,
.slide_left-leave-active {
transition: all 0.5s ease;
}
2022-02-17 23:43:52 +01:00
2022-02-10 22:32:41 +01:00
.slide_left-enter-from,
.slide_left-leave-to {
opacity: 0;
transform: translateX(30px);
}
2022-02-18 10:18:51 +01:00
/* .slide_left-leave-active {
position: absolute;
} */
/* SLIDE UP */
2022-02-10 22:32:41 +01:00
.slide_up-enter-active,
.slide_up-leave-active {
transition: all 0.5s ease;
}
2022-02-17 23:43:52 +01:00
2022-02-10 22:32:41 +01:00
.slide_up-enter-from,
.slide_up-leave-to {
opacity: 0;
2022-02-22 21:56:18 +01:00
transform: translateY(60px);
2022-02-15 22:35:30 +01:00
}
2022-02-22 21:56:18 +01:00
/* ZERO HEIGHT */
2022-02-15 22:35:30 +01:00
.zero_height-enter-active,
.zero_height-leave-active {
transition: all 0.5s ease;
}
2022-02-17 23:43:52 +01:00
2022-02-15 22:35:30 +01:00
.zero_height-enter-from,
.zero_height-leave-to {
height: 0;
opacity: 0;
2022-02-17 22:20:09 +01:00
}
2022-02-21 22:52:29 +01:00
@layer utils {
}
2022-02-22 21:56:18 +01:00
2022-02-17 22:20:09 +01:00
@layer components {
.btn {
2022-02-22 21:56:18 +01:00
@apply hover:text-cyan-500 dark:text-stone-400 dark:hover:text-cyan-500;
@apply transition-colors duration-200;
}
.btn-border {
2022-02-17 22:20:09 +01:00
@apply w-fit p-2;
2022-02-20 12:26:57 +01:00
@apply rounded border border-stone-600 transition-opacity;
@apply hover:border-cyan-500 hover:text-cyan-500;
2022-02-22 21:56:18 +01:00
@apply transition-colors duration-200;
}
.btn-disabled {
pointer-events: none;
opacity: 0.5;
2022-02-17 22:20:09 +01:00
}
2022-02-21 22:52:29 +01:00
}