ff-admin/src/main.css

134 lines
2.8 KiB
CSS
Raw Normal View History

2025-04-12 15:17:44 +02:00
@import "tailwindcss";
@theme {
--color-primary: var(--primary);
--color-secondary: var(--secondary);
--color-accent: var(--accent);
--color-error: var(--error);
--color-warning: var(--warning);
--color-info: var(--info);
--color-success: var(--success);
}
2024-08-22 11:48:04 +02:00
2024-08-23 14:42:32 +02:00
@layer base {
:root {
--primary: #990b00;
--secondary: #0c6672;
--accent: #bb1e10;
--error: #9a0d55;
--warning: #bb6210;
--info: #388994;
--success: #73ad0f;
}
.dark {
--primary: #ff0d00;
--secondary: #0f9aa9;
--accent: #bb1e10;
--error: #9a0d55;
--warning: #bb6210;
--info: #4ccbda;
--success: #73ad0f;
}
}
2024-08-22 11:48:04 +02:00
/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #c9c9c9 transparent;
}
/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 5px;
height: 5px;
}
*::-webkit-scrollbar-track {
background: transparent; /*f1f1f1;*/
}
*::-webkit-scrollbar-thumb {
background-color: #c9c9c9;
border-radius: 12px;
border: 0px solid #ffffff;
}
html,
body {
2024-08-23 14:42:32 +02:00
@apply h-full w-screen m-0 p-0 overflow-hidden bg-gray-100;
2024-08-22 11:48:04 +02:00
height: 100svh;
}
#app {
@apply w-full h-full overflow-hidden flex flex-col;
}
2024-08-23 14:42:32 +02:00
2024-11-27 10:07:46 +01:00
/*:not([headlessui]):not([id*="headlessui"]):not([class*="headlessui"])*/
2024-11-27 17:06:39 +01:00
button:not([class*="ql"] *):not([class*="fc"]):not([id*="headlessui-combobox"]),
2024-10-08 10:43:16 +02:00
a[button] {
2025-04-13 16:28:31 +02:00
@apply cursor-pointer relative box-border h-10 w-full flex justify-center py-2 px-4 text-sm font-medium rounded-md focus:outline-hidden focus:ring-0;
2024-08-23 14:42:32 +02:00
}
button[primary]:not([primary="false"]),
a[button][primary]:not([primary="false"]) {
2025-04-14 09:12:00 +02:00
@apply border-2 border-transparent text-white bg-primary hover:bg-primary;
2024-08-23 14:42:32 +02:00
}
button[primary-outline]:not([primary-outline="false"]),
a[button][primary-outline]:not([primary-outline="false"]) {
@apply border-2 border-primary text-black hover:bg-primary;
}
button:disabled,
a[button]:disabled,
a[button].disabled {
2024-08-23 14:42:32 +02:00
@apply opacity-75 pointer-events-none;
}
input:not([type="checkbox"]),
textarea,
select {
2025-04-13 16:28:31 +02:00
@apply bg-white rounded-md shadow-xs relative block w-full px-3 py-2 border border-gray-300 focus:border-primary placeholder-gray-500 text-gray-900 rounded-b-md focus:outline-hidden focus:ring-0 focus:z-10 sm:text-sm resize-none;
2024-08-23 14:42:32 +02:00
}
2024-09-18 09:28:59 +02:00
input[readonly],
textarea[readonly],
select[readonly] {
2025-02-12 18:01:51 +01:00
@apply select-none;
/* pointer-events-none; */
2024-09-18 09:28:59 +02:00
}
input[disabled],
textarea[disabled],
select[disabled] {
2024-09-18 09:28:59 +02:00
@apply opacity-75 pointer-events-none;
}
2024-10-06 12:02:39 +02:00
2024-10-08 10:43:16 +02:00
details {
user-select: none;
2024-12-26 19:36:00 +01:00
& summary svg[indicator] {
2024-10-08 10:43:16 +02:00
transform: rotate(90deg);
}
}
details[open] {
2024-12-26 19:36:00 +01:00
& summary svg[indicator] {
2024-10-08 10:43:16 +02:00
transform: rotate(-90deg);
}
}
details[open] summary ~ * {
animation: ease-opacity-t-b 0.5s ease;
}
summary {
cursor: pointer;
}
summary > svg {
transition: all 0.3s;
}
summary::-webkit-details-marker {
display: none;
}