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.

150 lines
2.3 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;
  76. gap: 0.25rem;
  77. line-height: 1;
  78. min-height: 1em;
  79. }
  80. .btn svg {
  81. height: min(1rem, 18px);
  82. display: inline-block;
  83. aspect-ratio: 1;
  84. }
  85. .btn.btn--primary {
  86. background: #007fff;
  87. color: #fff;
  88. }
  89. .btn.btn--primary:hover {
  90. background: #00ca00;
  91. color: #fff;
  92. }
  93. .btn.btn--cancel {
  94. background: red;
  95. color: #fff;
  96. }
  97. .btn.btn--cancel:hover {
  98. background: rgb(255, 83, 83);
  99. color: #fff;
  100. }
  101. .btn.btn--secondary {
  102. background: #ccc;
  103. color: #000;
  104. }
  105. .btn.btn--secondary:hover {
  106. background: rgb(151, 151, 151);
  107. color: #000;
  108. }
  109. .btn--nav-open {
  110. padding: 1rem;
  111. display: block;
  112. }
  113. .flyout-container {
  114. z-index: 1001;
  115. position: fixed;
  116. bottom: 0;
  117. display: flex;
  118. justify-content: center;
  119. width: 100vw;
  120. transition: all 0.3s;
  121. pointer-events: none;
  122. }
  123. .flyout-container.flyout-container--hide {
  124. transform: translateY(200px);
  125. }
  126. .flyout-container.flyout-container--show {
  127. transform: translateY(0);
  128. }