mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:56:28 +00:00
cf9e36f10a
Add calendar authentication and event/task actions, plus rich-description styling and setup documentation.
379 lines
9.9 KiB
CSS
379 lines
9.9 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import 'tailwind-scrollbar-hide/v4';
|
|
@plugin "@tailwindcss/typography";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--color-his: #EA512C;
|
|
--color-soft: #f6f6f6;
|
|
|
|
/* --type-memo: #925cf0;
|
|
--type-wo: #fa832e; */
|
|
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-geist-sans);
|
|
--font-mono: var(--font-geist-mono);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
}
|
|
|
|
:root {
|
|
--type-memo: hsl(262 83% 65%);
|
|
--type-wo: hsl(25 95% 58%);
|
|
|
|
--radius: 0.625rem;
|
|
--background: oklch(1 0 0);
|
|
--foreground: oklch(0.141 0.005 285.823);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.141 0.005 285.823);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
--primary: oklch(0.21 0.006 285.885);
|
|
--primary-foreground: oklch(0.985 0 0);
|
|
--secondary: oklch(0.967 0.001 286.375);
|
|
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
--muted: oklch(0.967 0.001 286.375);
|
|
--muted-foreground: oklch(0.552 0.016 285.938);
|
|
--accent: oklch(0.967 0.001 286.375);
|
|
--accent-foreground: oklch(0.21 0.006 285.885);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.92 0.004 286.32);
|
|
--input: oklch(0.92 0.004 286.32);
|
|
--ring: oklch(0.705 0.015 286.067);
|
|
--chart-1: oklch(0.646 0.222 41.116);
|
|
--chart-2: oklch(0.6 0.118 184.704);
|
|
--chart-3: oklch(0.398 0.07 227.392);
|
|
--chart-4: oklch(0.828 0.189 84.429);
|
|
--chart-5: oklch(0.769 0.188 70.08);
|
|
--sidebar: oklch(0.985 0 0);
|
|
--sidebar-foreground: oklch(0.141 0.005 285.823);
|
|
--sidebar-primary: oklch(0.21 0.006 285.885);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.967 0.001 286.375);
|
|
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
|
|
--sidebar-border: oklch(0.92 0.004 286.32);
|
|
--sidebar-ring: oklch(0.705 0.015 286.067);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.141 0.005 285.823);
|
|
--foreground: oklch(0.985 0 0);
|
|
--card: oklch(0.21 0.006 285.885);
|
|
--card-foreground: oklch(0.985 0 0);
|
|
--popover: oklch(0.21 0.006 285.885);
|
|
--popover-foreground: oklch(0.985 0 0);
|
|
--primary: oklch(0.92 0.004 286.32);
|
|
--primary-foreground: oklch(0.21 0.006 285.885);
|
|
--secondary: oklch(0.274 0.006 286.033);
|
|
--secondary-foreground: oklch(0.985 0 0);
|
|
--muted: oklch(0.274 0.006 286.033);
|
|
--muted-foreground: oklch(0.705 0.015 286.067);
|
|
--accent: oklch(0.274 0.006 286.033);
|
|
--accent-foreground: oklch(0.985 0 0);
|
|
--destructive: oklch(0.704 0.191 22.216);
|
|
--border: oklch(1 0 0 / 10%);
|
|
--input: oklch(1 0 0 / 15%);
|
|
--ring: oklch(0.552 0.016 285.938);
|
|
--chart-1: oklch(0.488 0.243 264.376);
|
|
--chart-2: oklch(0.696 0.17 162.48);
|
|
--chart-3: oklch(0.769 0.188 70.08);
|
|
--chart-4: oklch(0.627 0.265 303.9);
|
|
--chart-5: oklch(0.645 0.246 16.439);
|
|
--sidebar: oklch(0.21 0.006 285.885);
|
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.274 0.006 286.033);
|
|
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
--sidebar-ring: oklch(0.552 0.016 285.938);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply dark:bg-zinc-950 text-foreground md:overflow-hidden;
|
|
}
|
|
}
|
|
|
|
|
|
@layer components{
|
|
.input {
|
|
@apply flex h-10 w-full rounded-lg border border-zinc-200 bg-white px-3 py-2 text-sm! ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-zinc-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-zinc-800 dark:bg-zinc-950 dark:ring-offset-zinc-950 dark:placeholder:text-zinc-500 dark:focus-visible:ring-zinc-800 caret-his
|
|
}
|
|
.text-muted-foreground {
|
|
@apply text-zinc-500 dark:text-zinc-400
|
|
}
|
|
.icon{
|
|
@apply flex justify-center items-center text-lg
|
|
}
|
|
.btn-outline {
|
|
@apply border border-zinc-200 bg-white hover:bg-zinc-100 hover:text-zinc-900 dark:border-zinc-800 dark:bg-zinc-950 dark:hover:bg-zinc-800 dark:hover:text-zinc-50
|
|
}
|
|
|
|
.custom-modal {
|
|
/* @apply fixed top-1/2 left-1/2 w-[91.6%] md:w-[62%] 2xl:w-1/2 bg-gray-800 border-gray-700 text-white rounded-xl opacity-0 invisible duration-300 z-50 */
|
|
@apply fixed top-1/2 left-1/2 w-[91.6%] md:w-[62%] 2xl:w-1/2 bg-zinc-950 border-gray-700 rounded-xl opacity-0 invisible duration-300 z-50
|
|
}
|
|
}
|
|
|
|
|
|
@media only screen and (min-width: 600px) {
|
|
/* SCROLLBAR */
|
|
/* width */
|
|
::-webkit-scrollbar {
|
|
width: 12px;
|
|
height: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Track */
|
|
::-webkit-scrollbar-track {
|
|
box-shadow: inset 0 0 5px gray;
|
|
border-radius: 50px;
|
|
}
|
|
|
|
/* Handle */
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgb(113 113 122 / 1);
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Handle on hover */
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #EA512C;
|
|
cursor: pointer;
|
|
}
|
|
/* END SCROLLBAR */
|
|
}
|
|
|
|
.ant-select:not(.ant-select-multiple) {
|
|
font-size: 0.875rem !important/* 14px */;
|
|
line-height: 1.25rem !important/* 20px */;
|
|
height: 40px !important;
|
|
}
|
|
|
|
.ant-select-multiple {
|
|
font-size: 0.875rem !important;
|
|
line-height: 1.25rem !important;
|
|
min-height: 40px !important;
|
|
height: auto !important;
|
|
}
|
|
|
|
.ant-select-multiple .ant-select-selector {
|
|
min-height: 40px !important;
|
|
height: auto !important;
|
|
padding-top: 4px !important;
|
|
padding-bottom: 4px !important;
|
|
}
|
|
|
|
/* .ant-select-selection-search{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
} */
|
|
|
|
.ant-picker {
|
|
@apply h-10! text-lg!;
|
|
}
|
|
|
|
.ant-picker-input > input{
|
|
@apply text-sm!;
|
|
}
|
|
|
|
.ant-picker-panel{
|
|
@apply bg-white! dark:bg-zinc-950! z-100000!
|
|
}
|
|
|
|
.ant-picker-panel-container{
|
|
@apply border dark:border-zinc-800 z-1000000!
|
|
}
|
|
|
|
.ant-table-thead .ant-table-cell {
|
|
@apply h-[54px]!
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.ant-picker-panels {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.ant-btn-primary {
|
|
@apply bg-his! text-white! hover:bg-his/80! duration-300!
|
|
}
|
|
|
|
/*** MODAL STYLE ***/
|
|
@keyframes background-in {
|
|
0% {
|
|
scale: 0 0.005;
|
|
}
|
|
|
|
33% {
|
|
scale: 1 0.005;
|
|
}
|
|
|
|
66%,
|
|
100% {
|
|
scale: 1 1;
|
|
}
|
|
}
|
|
|
|
.custom-modal-background {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: grid;
|
|
place-items: center;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: scale(1, 1);
|
|
background: rgba(0, 0, 0, 0.6);
|
|
transition: 0.5s;
|
|
z-index: 50;
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.custom-modal-background {
|
|
background: rgba(0, 0, 0, 0.8);
|
|
}
|
|
}
|
|
|
|
.open.custom-modal-background {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
animation: background-in 1s both;
|
|
}
|
|
|
|
@keyframes custom-modal-in {
|
|
0%,
|
|
66% {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
translate: -50% -30%;
|
|
}
|
|
|
|
100% {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
|
|
.open.custom-modal {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
animation: custom-modal-in 1s;
|
|
}
|
|
|
|
.closed.custom-modal {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
translate: -50% -50%;
|
|
}
|
|
/*** END MODAL STYLE ***/
|
|
|
|
|
|
|
|
.animated-tada {
|
|
animation-duration: 1.5s;
|
|
animation-iteration-count: infinite;
|
|
}
|
|
|
|
@keyframes tada {
|
|
0% {
|
|
transform: scale3d(1.2, 1.2, 1.2);
|
|
}
|
|
|
|
10%, 20% {
|
|
transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
|
|
}
|
|
|
|
30%, 50%, 70%, 90% {
|
|
transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
|
|
}
|
|
|
|
40%, 60%, 80% {
|
|
transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
|
|
}
|
|
|
|
100% {
|
|
transform: scale3d(1.2, 1.2, 1.2);
|
|
}
|
|
}
|
|
|
|
.tada {
|
|
animation-name: tada;
|
|
}
|
|
|
|
|
|
/* Google Calendar Rich Description Styles */
|
|
.gcal-rich-content ul {
|
|
list-style-type: disc !important;
|
|
padding-left: 1.75rem !important;
|
|
margin: 0.35rem 0 !important;
|
|
}
|
|
|
|
.gcal-rich-content ol {
|
|
list-style-type: decimal !important;
|
|
padding-left: 1.75rem !important;
|
|
margin: 0.35rem 0 !important;
|
|
}
|
|
|
|
.gcal-rich-content li {
|
|
display: list-item !important;
|
|
margin: 0.15rem 0 !important;
|
|
}
|
|
|
|
.gcal-rich-content a,
|
|
.gcal-rich-content a * {
|
|
color: #1a73e8 !important;
|
|
text-decoration: underline !important;
|
|
text-underline-offset: 2px !important;
|
|
cursor: pointer !important;
|
|
}
|
|
|
|
.dark .gcal-rich-content a,
|
|
.dark .gcal-rich-content a * {
|
|
color: #8ab4f8 !important;
|
|
} |