meilisearch-admin/app/assets/styles.css
Stanislav Romanov 3bf9c5f2ff Add css mixins
2022-09-08 19:09:06 +03:00

88 lines
1.4 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
@define-mixin light-vars {
--color-gray-darkest: 36 36 36;
--color-gray-dark: 66 66 66;
--color-gray: 97 97 97;
--color-gray-light: 199 199 199;
--color-gray-lighter: 209 209 209;
--color-gray-lightest: 245 245 245;
}
@define-mixin dark-vars {
--color-gray-darkest: 245 245 245;
--color-gray-dark: 209 209 209;
--color-gray: 199 199 199;
--color-gray-light: 97 97 97;
--color-gray-lighter: 66 66 66;
--color-gray-lightest: 36 36 36;
}
:root {
@mixin light-vars;
}
@media (prefers-color-scheme: dark) {
:root {
@mixin dark-vars;
}
}
:root[data-theme='light'] {
@mixin light-vars;
}
:root[data-theme='dark'] {
@mixin dark-vars;
}
body {
@apply text-gray-dark;
}
p {
@apply mb-4;
}
}
.royal-table {
@apply table-auto border text-left mb-4;
thead {
@apply bg-gray-light;
tr {
@apply border-b;
th {
@apply px-4 py-4 text-gray-dark font-normal whitespace-nowrap;
&[type='button'] {
@apply cursor-pointer select-none;
}
svg {
width: 1em;
height: 1em;
bottom: 0.1em;
position: relative;
}
}
}
}
tbody {
tr {
&:nth-child(even) {
@apply bg-gray-light;
}
td {
@apply px-4 py-2 text-gray-darkest align-top;
}
}
}
}