lollms-webui/web/src/assets/tailwind.css

289 lines
7.5 KiB
CSS
Raw Normal View History

2023-05-02 22:53:27 +02:00
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html {
@apply scroll-smooth;
}
@font-face {
font-family: 'Roboto';
src: url('./fonts/Roboto/Roboto-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'PTSans';
src: url('./fonts/PTSans/PTSans-Regular.ttf') format('truetype');
}
}
2024-08-06 19:55:23 +02:00
2023-05-02 22:53:27 +02:00
@layer utilities {
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
2024-08-06 19:55:23 +02:00
-ms-overflow-style: none;
scrollbar-width: none;
2023-05-02 22:53:27 +02:00
}
}
2024-08-06 19:55:23 +02:00
2023-05-02 22:53:27 +02:00
.display-none {
@apply hidden;
}
2023-08-23 04:21:58 +02:00
h1 {
2024-08-06 19:55:23 +02:00
@apply text-5xl md:text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400;
2023-08-23 04:21:58 +02:00
}
h2 {
2024-08-06 19:55:23 +02:00
@apply text-3xl font-semibold text-gray-800 dark:text-gray-200;
2023-08-23 04:21:58 +02:00
}
h3 {
2024-08-06 19:55:23 +02:00
@apply text-2xl font-semibold text-gray-700 dark:text-gray-300;
2023-08-23 04:21:58 +02:00
}
h4 {
2024-08-06 19:55:23 +02:00
@apply text-xl font-semibold italic text-gray-600 dark:text-gray-400;
2023-08-23 04:21:58 +02:00
}
2023-10-10 01:47:49 +02:00
p {
2024-08-06 19:55:23 +02:00
@apply text-base text-gray-600 dark:text-gray-300 break-words;
2023-10-10 01:47:49 +02:00
}
2023-08-23 04:21:58 +02:00
ul {
2024-08-06 19:55:23 +02:00
@apply list-disc ml-0;
2023-10-10 01:47:49 +02:00
}
li {
2024-08-06 19:55:23 +02:00
@apply list-disc ml-5;
2023-08-23 04:21:58 +02:00
}
ol {
2024-08-06 19:55:23 +02:00
@apply list-decimal ml-5;
2023-10-20 17:02:56 +02:00
}
2024-03-02 00:41:38 +01:00
:root {
--color-primary: #0e8ef0;
--color-primary-light: #3dabff;
--color-secondary: #0fd974;
--color-accent: #f0700e;
2024-04-21 23:36:08 +02:00
--color-light-text-panel: #ffffff;
--color-dark-text-panel: #ffffff;
2024-04-21 20:48:05 +02:00
--color-bg-light-panel: #7cb5ec;
2024-03-02 00:41:38 +01:00
--color-bg-light: #e2edff;
--color-bg-light-tone: #b9d2f7;
--color-bg-light-code-block: #cad7ed;
--color-bg-light-tone-panel: #8fb5ef;
--color-bg-light-discussion: #c5d8f8;
--color-bg-light-discussion-odd: #d6e7ff;
2024-04-21 20:48:05 +02:00
--color-bg-dark: #132e59;
--color-bg-dark-tone: #25477d;
--color-bg-dark-tone-panel: #4367a3;
--color-bg-dark-code-block: #2254a7;
--color-bg-dark-discussion: #435E8A;
--color-bg-dark-discussion-odd: #284471;
2024-08-06 19:55:23 +02:00
}
.background-color {
@apply bg-gradient-to-br from-blue-100 to-purple-100 dark:from-blue-900 dark:to-purple-900 min-h-screen;
}
.toolbar-color {
@apply text-gray-700 dark:text-gray-50 bg-gradient-to-r from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800 rounded-full shadow-lg
}
.panels-color {
@apply text-gray-700 dark:text-gray-50 bg-gradient-to-r from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800 rounded shadow-lg
}
.unicolor-panels-color {
@apply bg-blue-200 dark:bg-blue-800
}
.chatbox-color {
2024-08-07 01:31:55 +02:00
@apply bg-gradient-to-br from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800
2024-08-06 19:55:23 +02:00
}
.message {
@apply relative w-full rounded-lg m-2 shadow-lg border-2 border-transparent
flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2;
}
.message:hover {
@apply border-primary border-solid;
}
/* Light theme */
.message:nth-child(even) {
2024-08-07 01:31:55 +02:00
@apply bg-gradient-to-br from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800;
2024-08-06 19:55:23 +02:00
}
.message:nth-child(odd) {
2024-08-07 01:31:55 +02:00
@apply bg-gradient-to-br from-blue-300 to-purple-300 dark:from-blue-900 dark:to-purple-900;
}
.discussion{
@apply mr-2 bg-gradient-to-r from-blue-300 to-purple-300 dark:from-blue-900 dark:to-purple-900 hover:from-blue-100 hover:to-purple-100 hover:dark:from-blue-700 hover:dark:to-purple-700
}
.discussion-hilighted{
@apply bg-gradient-to-r from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800 hover:from-blue-100 hover:to-purple-100 hover:dark:from-blue-700 hover:dark:to-purple-700
2024-08-06 19:55:23 +02:00
}
body {
@apply bg-gradient-to-br from-blue-100 to-purple-100 dark:from-blue-900 dark:to-purple-900 min-h-screen;
}
.bg-gradient-welcome {
@apply bg-gradient-to-br from-blue-100 to-purple-100 dark:from-blue-900 dark:to-purple-900;
}
.bg-gradient-progress {
@apply bg-gradient-to-r from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800;
}
.text-gradient-title {
@apply text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400;
}
.text-subtitle {
@apply text-gray-600 dark:text-gray-300;
}
.text-author {
@apply text-gray-500 dark:text-gray-400;
}
.text-loading {
@apply text-gray-700 dark:text-gray-300;
}
.text-progress {
@apply text-blue-600 dark:text-blue-400;
}
.btn-primary {
@apply bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded;
}
.btn-secondary {
@apply bg-purple-500 hover:bg-purple-600 text-white font-bold py-2 px-4 rounded;
}
.card {
@apply bg-white dark:bg-gray-800 rounded-lg shadow-md p-6;
}
.input {
@apply bg-gray-100 dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400;
}
.label {
@apply block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1;
}
.link {
@apply text-blue-500 hover:text-blue-600 dark:text-blue-400 dark:hover:text-blue-300;
}
2024-08-07 02:49:51 +02:00
.navbar-container {
@apply text-gray-700 dark:text-gray-50 bg-gradient-to-r from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800 rounded shadow-lg
}
2024-08-06 19:55:23 +02:00
2024-08-07 02:49:51 +02:00
.game-menu {
@apply flex justify-center items-center relative;
}
.menu-item {
@apply px-4 py-2 text-gray-800 dark:text-gray-100 font-bold text-lg transition-all duration-300 ease-in-out;
@apply hover:text-gray-500 hover:dark:text-gray-50 hover:transform hover:-translate-y-1;
}
.menu-item.active-link {
@apply px-4 py-2 text-gray-800 dark:text-gray-100 font-bold text-lg transition-all duration-300 ease-in-out scale-105;
@apply hover:text-gray-500 hover:dark:text-gray-50 hover:transform hover:-translate-y-1;
/* Glow effect on text */
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
2024-08-07 03:00:42 +02:00
}
.menu-item.active-link::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 5px;
/* Lightsaber colors */
z-index: 10000;
background: linear-gradient(to right, #00ff00, #00ff00, #00ff00); /* Normal mode */
border-radius: 10px;
animation: lightsaber 2s infinite;
2024-08-06 19:55:23 +02:00
}
2024-08-07 02:49:51 +02:00
.dark .menu-item.active-link::after {
2024-08-07 03:00:42 +02:00
background: linear-gradient(to right, #ff0000, #ff0000, #ff0000); /* Dark mode */
2024-08-06 19:55:23 +02:00
}
2024-08-07 02:49:51 +02:00
@keyframes lightsaber {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
2024-08-07 03:00:42 +02:00
2024-08-07 02:49:51 +02:00
.app-card {
@apply transition-all duration-300 ease-in-out bg-gradient-to-br from-blue-200 to-purple-300 dark:from-blue-800 dark:to-purple-800 text-gray-800 dark:text-gray-100 shadow-md hover:shadow-lg;
}
.app-card:hover {
2024-08-06 19:55:23 +02:00
@apply transform -translate-y-1;
}
2024-08-07 02:49:51 +02:00
button {
@apply transition-all duration-300 ease-in-out;
}
button:hover {
@apply transform -translate-y-0.5;
}
.scrollbar-thin {
scrollbar-width: thin;
scrollbar-color: theme('colors.blue.300') theme('colors.blue.100');
}
.dark .scrollbar-thin {
scrollbar-color: theme('colors.blue.700') theme('colors.blue.900');
2024-08-06 19:55:23 +02:00
}
2024-08-07 02:49:51 +02:00
.scrollbar-thin::-webkit-scrollbar {
@apply w-2;
}
.scrollbar-thin::-webkit-scrollbar-track {
@apply bg-blue-100 dark:bg-blue-900 rounded-full;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
@apply bg-blue-300 dark:bg-blue-700 rounded-full;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
@apply bg-blue-400 dark:bg-blue-600;
}
.btn {
@apply font-semibold py-2 px-4 rounded-lg transition-all duration-300 ease-in-out shadow-md flex items-center;
}
.btn-primary {
@apply bg-blue-500 text-white hover:bg-blue-600 focus:ring-4 focus:ring-blue-300 dark:focus:ring-blue-800;
}
.btn-secondary {
@apply bg-blue-200 text-gray-700 hover:bg-blue-300 focus:ring-4 focus:ring-blue-200 dark:bg-blue-700 dark:text-gray-200 dark:hover:bg-blue-600 dark:focus:ring-blue-600;
}
.search-input {
@apply w-full border-b-2 border-blue-200 dark:border-blue-700 py-2 px-4 pl-10 transition-colors duration-300 ease-in-out focus:outline-none focus:border-blue-500 dark:focus:border-blue-400 bg-transparent text-gray-800 dark:text-gray-100;
}