style.css 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @tailwind base;
  2. @tailwind components;
  3. body {
  4. display: grid;
  5. grid-template-columns: auto 1fr;
  6. grid-template-rows: auto 1fr;
  7. grid-template-areas:
  8. "header header"
  9. "nav main";
  10. min-height: 100vh;
  11. }
  12. header {
  13. @apply bg-gray-800 text-gray-50 flex justify-between items-center select-none;
  14. grid-area: header;
  15. box-shadow: 0 -3px 10px 3px black;
  16. z-index: 1;
  17. }
  18. header > * {
  19. @apply p-3;
  20. }
  21. a.brand {
  22. @apply flex items-center;
  23. }
  24. a.brand:hover {
  25. @apply bg-gray-900;
  26. }
  27. a.brand span {
  28. @apply mx-2 font-sans text-sm text-gray-100;
  29. }
  30. a.brand img {
  31. @apply h-7 w-auto;
  32. }
  33. aside.menu {
  34. @apply bg-gray-700 text-white p-2 w-72 select-none;
  35. grid-area: nav;
  36. box-shadow: -3px 0 10px 2px black;
  37. }
  38. .menu .menu-view {
  39. @apply sticky top-0;
  40. }
  41. .menu .menu-title {
  42. @apply text-gray-200 uppercase text-xs font-sans py-2;
  43. }
  44. .menu .menu-list a {
  45. @apply py-1 px-2 rounded-sm text-white block;
  46. }
  47. .menu .menu-list a:hover {
  48. @apply text-gray-700 bg-white;
  49. }
  50. .menu .menu-list a.is-active {
  51. @apply bg-blue-500 text-white;
  52. }
  53. main {
  54. @apply p-8;
  55. grid-area: main;
  56. }
  57. @tailwind utilities;