timetracker/common/input.css

114 lines
2.1 KiB
CSS
Raw Normal View History

2022-12-31 13:18:27 +00:00
@tailwind base;
@tailwind components;
2023-01-03 18:01:10 +00:00
@tailwind utilities;
2023-09-30 14:24:54 +00:00
@font-face {
font-family: "IBM Plex Mono";
2023-10-01 17:53:07 +00:00
src: url("fonts/IBMPlexMono-regular.woff2") format("woff2");
2023-09-30 14:24:54 +00:00
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "IBM Plex Sans";
2023-10-01 17:53:07 +00:00
src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "IBM Plex Serif";
src: url("fonts/IBMPlexSerif-Regular.woff2") format("woff2");
2023-09-30 14:24:54 +00:00
font-weight: 400;
font-style: normal;
}
2023-01-03 18:01:10 +00:00
form label {
2023-01-05 21:00:08 +00:00
@apply dark:text-slate-400;
2023-01-03 18:01:10 +00:00
}
2023-09-30 14:24:54 +00:00
.responsive-table {
@apply dark:text-white mx-auto;
}
.responsive-table tr:nth-child(even) {
@apply bg-slate-800
}
.responsive-table tbody tr:nth-child(odd) {
@apply bg-slate-900
}
.responsive-table thead th {
@apply text-left border-b-2 border-b-slate-500 text-xl;
}
.responsive-table thead th:not(:first-child),
.responsive-table td:not(:first-child) {
@apply border-l border-l-slate-500;
}
2023-09-30 17:44:35 +00:00
@layer utilities {
.max-w-20char {
2023-09-30 14:24:54 +00:00
max-width: 20ch;
}
2023-09-30 17:44:35 +00:00
.max-w-35char {
max-width: 40ch;
}
.max-w-40char {
max-width: 40ch;
}
2023-09-30 14:24:54 +00:00
}
2023-01-05 21:00:08 +00:00
form input,
select,
textarea {
@apply dark:border dark:border-slate-900 dark:bg-slate-500 dark:text-slate-100;
2023-01-03 18:01:10 +00:00
}
2023-11-14 18:27:00 +00:00
form input:disabled,
select:disabled,
textarea:disabled {
@apply dark:bg-slate-700 dark:text-slate-400;
}
.errorlist {
@apply mt-4 mb-1 pl-3 py-2 bg-red-600 text-slate-200 w-[300px];
}
2023-09-30 14:24:54 +00:00
@media screen and (min-width: 768px) {
form input,
select,
textarea {
width: 300px;
}
}
2023-09-30 14:24:54 +00:00
@media screen and (max-width: 768px) {
form input,
select,
textarea {
width: 150px;
}
}
2023-01-05 21:00:08 +00:00
#button-container button {
@apply mx-1;
}
2023-02-18 21:36:26 +00:00
th {
@apply text-right;
2023-02-18 21:36:26 +00:00
}
th label {
@apply mr-4;
}
.basic-button-container {
2023-09-30 14:24:54 +00:00
@apply flex space-x-2 justify-center;
}
.basic-button {
@apply inline-block px-6 py-2.5 bg-blue-600 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out;
}