dialog.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /* Styling for the popups */
  2. dialog {
  3. flex-direction: column;
  4. align-items: center;
  5. justify-content: center;
  6. width: 70vw;
  7. height: 70vh;
  8. margin: auto;
  9. margin-top: 23rem;
  10. background: var(--popup-background-color);
  11. border: none;
  12. border-radius: 0.8rem;
  13. @media screen and (max-width: 800px) {
  14. position: fixed;
  15. top: 0;
  16. left: 0;
  17. right: 0;
  18. bottom: 0;
  19. max-width: 100vw; /* We need these overrides of browser defaults*/
  20. max-height: 100vh;
  21. width: auto;
  22. height: auto;
  23. margin: 0;
  24. }
  25. animation: fade-out 0.3s ease-out;
  26. &[open] {
  27. display: flex;
  28. animation: fade-in 0.3s ease-out;
  29. }
  30. & > #results {
  31. max-width: 100%;
  32. max-height: calc(100% - 8rem);
  33. height: auto;
  34. object-fit: contain;
  35. }
  36. & > .close-dialog {
  37. display: flex;
  38. align-items: center;
  39. justify-content: center;
  40. width: 4rem;
  41. height: 4rem;
  42. position: absolute;
  43. top: 3rem;
  44. right: 3rem;
  45. cursor: pointer;
  46. }
  47. & > section {
  48. max-width: 800px;
  49. overflow-y: auto;
  50. margin: 4rem 2rem 2rem 4rem;
  51. padding: 0 2rem 0 0;
  52. & h1,
  53. & h2 {
  54. margin: 3rem 0 2rem 0;
  55. font-size: 3.6rem;
  56. font-weight: 400;
  57. letter-spacing: -0.2rem;
  58. color: var(--primary-text-color);
  59. }
  60. & h2 {
  61. margin: 2rem 0 1rem 0;
  62. font-size: 2.5rem;
  63. }
  64. & p,
  65. & li {
  66. margin: 1rem 0 1rem 0;
  67. font-size: 1.6rem;
  68. line-height: 2.5rem;
  69. font-weight: 400;
  70. letter-spacing: -0.1rem;
  71. color: var(--secondary-text-color);
  72. }
  73. & ul {
  74. list-style-position: inside;
  75. margin: 1rem;
  76. & li {
  77. margin: 0.1rem 0;
  78. }
  79. }
  80. & a {
  81. font-size: 1.6rem;
  82. font-weight: 700;
  83. letter-spacing: -0.1rem;
  84. color: var(--secondary-text-color);
  85. text-underline-offset: 0.3rem;
  86. transition: text-underline-offset 0.2s;
  87. &:hover {
  88. color: var(--theme-green);
  89. text-underline-offset: 0.5rem;
  90. }
  91. }
  92. }
  93. }
  94. @keyframes fade-in {
  95. 0% {
  96. opacity: 0;
  97. transform: scale(0.6);
  98. display: none;
  99. }
  100. 0.1% {
  101. display: flex;
  102. }
  103. 100% {
  104. opacity: 1;
  105. transform: scale(1);
  106. display: flex;
  107. }
  108. }
  109. @keyframes fade-out {
  110. 0% {
  111. opacity: 1;
  112. transform: scale(1);
  113. display: flex;
  114. }
  115. 99.9% {
  116. display: flex;
  117. }
  118. 100% {
  119. opacity: 0;
  120. transform: scale(0.6);
  121. display: none;
  122. }
  123. }