navigation-panel.component.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @import "../../../../responsive";
  2. .backdrop {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. right: 0;
  7. bottom: 0;
  8. visibility: hidden;
  9. background: rgba(0, 0, 0, 0.2);
  10. z-index: 1000;
  11. cursor: pointer;
  12. }
  13. .backdrop--open {
  14. visibility: visible;
  15. }
  16. .panel {
  17. position: fixed;
  18. top: 0;
  19. left: 0;
  20. bottom: 0;
  21. width: 25rem;
  22. background-image: url("/assets/images/background-40.jpg");
  23. z-index: 1001;
  24. padding: 1.5rem;
  25. transform: translateX(-100%);
  26. transition: transform 0.3s ease-in-out;
  27. overflow: hidden;
  28. border-right: var(--gold-3);
  29. box-shadow: var(--shadow-right);
  30. }
  31. .panel--open {
  32. transform: translateX(0);
  33. }
  34. ul {
  35. padding: 0;
  36. list-style: none;
  37. }
  38. .navigation-entry {
  39. font-size: 1.25rem;
  40. font-weight: 500;
  41. margin-bottom: 1rem;
  42. padding: 0.25rem 0 0.25rem 2rem;
  43. @include height-small {
  44. padding: 0.5rem 0 0.5rem 2rem;
  45. }
  46. border: var(--gold-3);
  47. background-image: url("/assets/images/texture-30.jpg");
  48. box-shadow: var(--shadow);
  49. border-radius: 10px;
  50. cursor: pointer;
  51. &:hover {
  52. background-image: url("/assets/images/texture-20.jpg");
  53. }
  54. &.active {
  55. background-image: url("/assets/images/texture-0.jpg");
  56. }
  57. }
  58. .settings-container {
  59. display: flex;
  60. justify-content: space-between;
  61. position: absolute;
  62. bottom: 2rem;
  63. width: 22rem;
  64. }
  65. .settings-button {
  66. font-size: 1.25rem;
  67. width: 9rem;
  68. font-weight: 500;
  69. padding: 0.5rem;
  70. border: solid 1px var(--border-color);
  71. box-shadow: var(--shadow);
  72. border-radius: 10px;
  73. border: var(--gold-3);
  74. background-image: url("/assets/images/texture-30.jpg");
  75. &:hover {
  76. background-image: url("/assets/images/texture-20.jpg");
  77. }
  78. &.active {
  79. background-image: url("/assets/images/texture-0.jpg");
  80. }
  81. }