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.

95 lines
1.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: column;
  45. justify-content: flex-end;
  46. }
  47. :root {
  48. --m-s: 0.1s;
  49. --h-s: 0.3s;
  50. --d: calc(var(--h-s) - var(--m-s));
  51. }
  52. .nav--hide {
  53. transition: margin-top var(--m-s) linear var(--h-s), max-height var(--h-s) linear 0s;
  54. margin-top: 0;
  55. max-height: 0;
  56. }
  57. .nav--show {
  58. margin-top: 3.5rem;
  59. max-height: 250px;
  60. transition: margin-top var(--m-s) linear 0s, max-height var(--h-s) linear var(--m-s);
  61. }
  62. .btn--nav-open {
  63. padding: 1rem;
  64. display: block;
  65. }
  66. .flyout-container {
  67. z-index: 1001;
  68. position: fixed;
  69. bottom: 0;
  70. display: flex;
  71. justify-content: center;
  72. width: 100vw;
  73. transition: all 0.3s;
  74. pointer-events: none;
  75. }
  76. .flyout-container.flyout-container--hide {
  77. transform: translateY(200px);
  78. }
  79. .flyout-container.flyout-container--show {
  80. transform: translateY(0);
  81. }