main.css 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @import "tailwindcss/base";
  2. @import "tailwindcss/components";
  3. @import "tailwindcss/utilities";
  4. body {
  5. @apply .bg-gray-900 .text-white .font-sans;
  6. }
  7. .shadow-big {
  8. box-shadow: 3px 3px 10px -1px rgba(0, 0, 0, 0.75);
  9. }
  10. .nav-content {
  11. & h1 {
  12. @apply .text-4xl .font-bold;
  13. }
  14. }
  15. table {
  16. @apply .border-gray-900 .rounded-sm .border .w-full;
  17. & thead tr {
  18. @apply .bg-gray-900;
  19. }
  20. th, td {
  21. @apply .p-1 .border-gray-900 .border-r .border-b;
  22. }
  23. tbody tr.entry[data-nth="even"] {
  24. @apply .bg-gray-800;
  25. }
  26. tbody tr.entry[data-nth="odd"] {
  27. @apply .bg-gray-700;
  28. }
  29. }
  30. .btn {
  31. @apply .px-2 .py-1 .bg-blue-700 .rounded-sm .font-normal .border .border-blue-700;
  32. &:hover {
  33. @apply .bg-blue-600;
  34. }
  35. &[disabled] {
  36. @apply .bg-transparent .border .border-blue-700 .text-gray-400 .cursor-not-allowed;
  37. }
  38. }
  39. .input-ctrl {
  40. @apply .bg-gray-800 .py-1 .px-1 .rounded .border .border-gray-900;
  41. }
  42. .input-ctrl-hover {
  43. @apply .border-blue-500 .shadow;
  44. }
  45. input, select {
  46. @apply .input-ctrl;
  47. &:focus {
  48. @apply .input-ctrl-hover;
  49. }
  50. }
  51. form.form-ctrl > div {
  52. @apply .flex .py-1 .items-center;
  53. & > *:nth-child(1) {
  54. @apply .flex-grow-0 w-1/6;
  55. }
  56. & > *:nth-child(2) {
  57. @apply .flex-grow-0 w-1/3;
  58. }
  59. }