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.

147 lines
2.2 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: baseline;
  47. flex-wrap: wrap;
  48. }
  49. :root {
  50. --m-s: 0.1s;
  51. --h-s: 0.3s;
  52. --d: calc(var(--h-s) - var(--m-s));
  53. }
  54. .nav--hide {
  55. transition: margin-top var(--m-s) linear var(--h-s), max-height var(--h-s) linear 0s;
  56. margin-top: 0;
  57. max-height: 0;
  58. }
  59. .nav--show {
  60. margin-top: 3.5rem;
  61. max-height: 250px;
  62. transition: margin-top var(--m-s) linear 0s, max-height var(--h-s) linear var(--m-s);
  63. }
  64. .btn {
  65. border-radius: 999px;
  66. padding: 0.5em 0.8em;
  67. font-size: min(1rem, 18px);
  68. white-space: nowrap;
  69. transition: 0.2s all;
  70. display: flex;
  71. align-items: center;
  72. justify-content: space-around;
  73. gap: 0.25rem;
  74. line-height: 1;
  75. min-height: 1em;
  76. }
  77. .btn svg {
  78. height: min(1rem, 18px);
  79. display: inline-block;
  80. aspect-ratio: 1;
  81. }
  82. .btn.btn--primary {
  83. background: #007fff;
  84. color: #fff;
  85. }
  86. .btn.btn--primary:hover {
  87. background: #00ca00;
  88. color: #fff;
  89. }
  90. .btn.btn--cancel {
  91. background: red;
  92. color: #fff;
  93. }
  94. .btn.btn--cancel:hover {
  95. background: rgb(255, 83, 83);
  96. color: #fff;
  97. }
  98. .btn.btn--secondary {
  99. background: #ccc;
  100. color: #000;
  101. }
  102. .btn.btn--secondary:hover {
  103. background: rgb(151, 151, 151);
  104. color: #000;
  105. }
  106. .btn--nav-open {
  107. padding: 1rem;
  108. display: block;
  109. }
  110. .flyout-container {
  111. z-index: 1001;
  112. position: fixed;
  113. bottom: 0;
  114. display: flex;
  115. justify-content: center;
  116. width: 100vw;
  117. transition: all 0.3s;
  118. pointer-events: none;
  119. }
  120. .flyout-container.flyout-container--hide {
  121. transform: translateY(200px);
  122. }
  123. .flyout-container.flyout-container--show {
  124. transform: translateY(0);
  125. }