components.css 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @layer components {
  2. /* Styles for the Info Panel */
  3. .infopanel {
  4. @apply max-w-sm md:max-w-lg lg:max-w-none my-2 mx-4 rounded bg-white border border-gray-500 absolute right-0;
  5. z-index: 1;
  6. }
  7. .infopanel .infopanel-head {
  8. @apply m-2 grid grid-cols-2 font-bold text-2xl text-black;
  9. }
  10. .infopanel .infopanel-head .infopanel-closer--container {
  11. @apply text-right;
  12. }
  13. .infopanel .infopanel-head .infopanel-closer {
  14. @apply cursor-pointer
  15. }
  16. .infopanel .infopanel-body {
  17. @apply my-2 mx-4;
  18. }
  19. .infopanel .infopanel-body div,
  20. .infopanel .infopanel-body p{
  21. @apply py-2;
  22. }
  23. .infopanel.closed .infopanel-body {
  24. @apply hidden;
  25. }
  26. .infopanel.closed .infopanel-head {
  27. @apply block;
  28. }
  29. .infopanel.closed .infopanel-head .infopanel-title {
  30. @apply hidden;
  31. }
  32. .spoiler {
  33. @apply p-4 bg-black hover:bg-gray-200 transition-colors duration-700 rounded-lg;
  34. }
  35. .spoiler:not(:hover) * {
  36. background-color: inherit;
  37. }
  38. .spoiler a {
  39. @apply text-black;
  40. }
  41. /* Styles for modals */
  42. .modal-overlay {
  43. @apply absolute bg-black bg-opacity-60 bottom-0 left-0 right-0 top-0 z-20;
  44. }
  45. .modal {
  46. @apply w-10/12 md:max-w-lg lg:max-w-3xl p-4 bg-white rounded absolute left-1/2 top-10 transform -translate-x-1/2;
  47. }
  48. .modal .modal-header {
  49. @apply flex justify-between mb-2 pb-2 border-b-2 border-gray-400;
  50. }
  51. .modal .modal-header .modal-title,
  52. .modal .modal-header .modal-closer {
  53. @apply inline-block font-bold text-xl;
  54. }
  55. .modal .modal-header .modal-title {
  56. @apply font-bold text-xl;
  57. }
  58. .modal .modal-header .modal-closer {
  59. @apply cursor-pointer text-right;
  60. }
  61. .modal-body {
  62. @apply overflow-y-auto;
  63. max-height: 60vh;
  64. }
  65. }