mango-v4-ui/styles/globals.css

256 lines
5.0 KiB
CSS
Raw Normal View History

2022-05-03 21:20:14 -07:00
@tailwind base;
@tailwind components;
2022-07-05 20:37:49 -07:00
@tailwind utilities;
2022-07-14 16:36:31 -07:00
/* Reset */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-weight: normal;
}
ul {
list-style: none;
}
button,
input,
select {
margin: 0;
}
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
img,
video {
height: auto;
max-width: 100%;
}
iframe {
border: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
2022-07-05 20:37:49 -07:00
/* Theme */
:root {
--primary: theme('colors.light-theme.orange.DEFAULT');
--primary-dark: theme('colors.light-theme.orange.dark');
--red: theme('colors.light-theme.red.DEFAULT');
--red-dark: theme('colors.light-theme.red.dark');
--red-muted: theme('colors.light-theme.red.muted');
--green: theme('colors.light-theme.green.DEFAULT');
--green-dark: theme('colors.light-theme.green.dark');
--green-muted: theme('colors.light-theme.green.muted');
--orange: theme('colors.light-theme.orange.DEFAULT');
--bkg-1: theme('colors.light-theme.bkg-1');
--bkg-2: theme('colors.light-theme.bkg-2');
--bkg-3: theme('colors.light-theme.bkg-3');
--bkg-4: theme('colors.light-theme.bkg-4');
--fgd-1: theme('colors.light-theme.fgd-1');
--fgd-2: theme('colors.light-theme.fgd-2');
--fgd-3: theme('colors.light-theme.fgd-3');
--fgd-4: theme('colors.light-theme.fgd-4');
--bkg-button: theme('colors.light-theme.bkg-button');
}
[data-theme='Dark'] {
--primary: theme('colors.dark-theme.yellow.DEFAULT');
--primary-dark: theme('colors.dark-theme.yellow.dark');
--red: theme('colors.dark-theme.red.DEFAULT');
--red-dark: theme('colors.dark-theme.red.dark');
--red-muted: theme('colors.dark-theme.red.muted');
--green: theme('colors.dark-theme.green.DEFAULT');
--green-dark: theme('colors.dark-theme.green.dark');
--green-muted: theme('colors.dark-theme.green.muted');
--orange: theme('colors.dark-theme.orange.DEFAULT');
--bkg-1: theme('colors.dark-theme.bkg-1');
--bkg-2: theme('colors.dark-theme.bkg-2');
--bkg-3: theme('colors.dark-theme.bkg-3');
--bkg-4: theme('colors.dark-theme.bkg-4');
--fgd-1: theme('colors.dark-theme.fgd-1');
--fgd-2: theme('colors.dark-theme.fgd-2');
--fgd-3: theme('colors.dark-theme.fgd-3');
--fgd-4: theme('colors.dark-theme.fgd-4');
--bkg-button: theme('colors.dark-theme.bkg-button');
}
[data-theme='Mango'] {
--primary: theme('colors.mango-theme.yellow.DEFAULT');
--primary-dark: theme('colors.mango-theme.yellow.dark');
--red: theme('colors.mango-theme.red.DEFAULT');
--red-dark: theme('colors.mango-theme.red.dark');
--red-muted: theme('colors.mango-theme.red.muted');
--green: theme('colors.mango-theme.green.DEFAULT');
--green-dark: theme('colors.mango-theme.green.dark');
--green-muted: theme('colors.mango-theme.green.muted');
--orange: theme('colors.mango-theme.orange.DEFAULT');
--bkg-1: theme('colors.mango-theme.bkg-1');
--bkg-2: theme('colors.mango-theme.bkg-2');
--bkg-3: theme('colors.mango-theme.bkg-3');
--bkg-4: theme('colors.mango-theme.bkg-4');
--fgd-1: theme('colors.mango-theme.fgd-1');
--fgd-2: theme('colors.mango-theme.fgd-2');
--fgd-3: theme('colors.mango-theme.fgd-3');
--fgd-4: theme('colors.mango-theme.fgd-4');
--bkg-button: theme('colors.mango-theme.bkg-button');
}
2022-07-14 18:46:34 -07:00
/* Base */
2022-07-05 20:37:49 -07:00
body {
2022-07-14 16:36:31 -07:00
@apply font-body text-sm tracking-wider;
2022-07-10 19:01:16 -07:00
}
2022-07-14 20:38:02 -07:00
button {
2022-07-14 22:20:20 -07:00
@apply tracking-wider transition-all duration-500 ease-out focus:outline-none focus:brightness-[1.5] focus:filter;
2022-07-14 20:38:02 -07:00
}
svg {
@apply transition-all duration-500 ease-out;
}
2022-07-16 04:22:59 -07:00
.default-transition {
@apply transition-all duration-500 ease-out;
}
2022-07-14 18:46:34 -07:00
/* Type */
h1,
h2,
h3 {
@apply font-bold;
}
h1 {
@apply text-2xl;
}
h2 {
@apply text-xl;
}
h3 {
@apply text-lg;
}
2022-07-14 20:38:02 -07:00
p {
@apply text-th-fgd-2;
}
2022-07-14 18:46:34 -07:00
/* Slider */
2022-07-14 16:36:31 -07:00
input[type='range']::-webkit-slider-thumb {
2022-07-10 19:01:16 -07:00
-webkit-appearance: none;
height: 16px;
width: 16px;
border-radius: 100%;
background: var(--primary);
cursor: pointer;
margin-top: -1px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}
/* All the same stuff for Firefox */
2022-07-14 16:36:31 -07:00
input[type='range']::-moz-range-thumb {
2022-07-10 19:01:16 -07:00
height: 16px;
width: 16px;
border-radius: 100%;
background: var(--primary);
cursor: pointer;
}
/* All the same stuff for IE */
2022-07-14 16:36:31 -07:00
input[type='range']::-ms-thumb {
2022-07-10 19:01:16 -07:00
height: 16px;
width: 16px;
border-radius: 100%;
background: var(--primary);
cursor: pointer;
2022-07-14 16:36:31 -07:00
}
/* Animations */
@keyframes sideways-bounce {
0%,
100% {
transform: translateX(-25%);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
50% {
transform: translateX(0);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
}
.sideways-bounce {
animation: sideways-bounce 1s infinite;
}
2022-07-14 18:46:34 -07:00
/* Table */
table {
@apply m-0 w-full table-fixed p-0;
}
table caption {
@apply my-2;
}
table tr {
@apply border-y border-th-bkg-3 p-2;
}
2022-07-15 04:09:23 -07:00
thead tr {
@apply border-0;
}
2022-07-14 18:46:34 -07:00
table th,
table td {
@apply p-4;
}
table th {
2022-07-15 04:09:23 -07:00
@apply text-xs font-normal text-th-fgd-3;
2022-07-14 18:46:34 -07:00
}