You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
2.4 KiB

  1. html,
  2. body,
  3. #__nuxt,
  4. #__layout,
  5. .page-container,
  6. main {
  7. height: 100%;
  8. }
  9. html {
  10. font-size: min(3vmin, 18px);
  11. }
  12. header {
  13. position: fixed;
  14. top: 0;
  15. width: 100vw;
  16. z-index: 403;
  17. display: grid;
  18. grid-template-columns: 1fr 1fr 1fr;
  19. padding: 1rem 1rem 0.75rem 1rem;
  20. pointer-events: none;
  21. }
  22. .white-bkg header {
  23. background-color: white;
  24. }
  25. header button {
  26. pointer-events: all;
  27. }
  28. .header__col:nth-child(2) {
  29. display: flex;
  30. justify-content: center;
  31. align-items: flex-start;
  32. }
  33. .header__col:nth-child(3) {
  34. text-align: right;
  35. }
  36. main {
  37. display: flex;
  38. flex-direction: column;
  39. }
  40. .nav {
  41. flex: 0 0 auto;
  42. background: white;
  43. display: flex;
  44. flex-direction: row;
  45. justify-content: center;
  46. align-items: flex-end;
  47. flex-wrap: wrap;
  48. overflow: hidden;
  49. }
  50. :root {
  51. --m-s: 0.1s;
  52. --h-s: 0.3s;
  53. --d: calc(var(--h-s) - var(--m-s));
  54. }
  55. .nav--hide {
  56. transition: padding-top var(--m-s) linear var(--h-s), max-height var(--h-s) linear 0s;
  57. padding-top: 0;
  58. max-height: 0;
  59. overflow: hidden;
  60. }
  61. .nav--show {
  62. padding-top: 3.5rem;
  63. max-height: 18rem;
  64. transition: padding-top var(--m-s) linear 0s, max-height var(--h-s) linear var(--m-s);
  65. overflow: visible;
  66. }
  67. .btn {
  68. border-radius: 999px;
  69. padding: 0.5em 0.8em;
  70. font-size: min(1rem, 18px);
  71. white-space: nowrap;
  72. transition: 0.2s all;
  73. display: flex;
  74. align-items: center;
  75. /* justify-content: space-around; what was this for? */
  76. justify-content: center;
  77. gap: 0.25rem;
  78. line-height: 1;
  79. min-height: 1em;
  80. }
  81. .btn svg {
  82. height: min(1rem, 18px);
  83. display: inline-block;
  84. aspect-ratio: 1;
  85. transition: 0.2s all;
  86. }
  87. .btn.btn--primary {
  88. background: #007fff;
  89. color: #fff;
  90. }
  91. .btn.btn--primary:hover {
  92. background: #00ca00;
  93. color: #fff;
  94. }
  95. .btn.btn--primary:hover svg {
  96. stroke: #ffffff;
  97. }
  98. .btn.btn--cancel {
  99. background: red;
  100. color: #fff;
  101. }
  102. .btn.btn--cancel:hover {
  103. background: rgb(255, 83, 83);
  104. color: #fff;
  105. }
  106. .btn.btn--secondary {
  107. background: #ccc;
  108. color: #000;
  109. }
  110. .btn.btn--secondary:hover {
  111. background: rgb(151, 151, 151);
  112. color: #000;
  113. }
  114. .btn--nav-open {
  115. padding: 1rem;
  116. display: block;
  117. }
  118. .flyout-container {
  119. z-index: 1001;
  120. position: fixed;
  121. bottom: 0;
  122. display: flex;
  123. justify-content: center;
  124. width: 100vw;
  125. transition: all 0.3s;
  126. pointer-events: none;
  127. }
  128. .flyout-container.flyout-container--hide {
  129. transform: translateY(200px);
  130. }
  131. .flyout-container.flyout-container--show {
  132. transform: translateY(0);
  133. }