_header.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #header-top {
  2. height: 7rem;
  3. background-color: $white;
  4. box-shadow: 1px 0px 8px $black;
  5. display: flex;
  6. flex-direction: row;
  7. justify-content: space-between;
  8. color: $black;
  9. position: sticky;
  10. .region-header-top-left {
  11. display:flex;
  12. flex-direction: row;
  13. padding: 1rem;
  14. align-items: center;
  15. color: $black;
  16. font-weight: 800;
  17. position: sticky;
  18. ul{
  19. list-style: none;
  20. display: flex;
  21. flex-direction: row;
  22. li {
  23. padding-right: 1rem;
  24. a {
  25. color: $black;
  26. .is-active {
  27. color: $blue-light;
  28. }
  29. }
  30. }
  31. .ul2{
  32. flex-direction: column;
  33. }
  34. }
  35. :hover{
  36. color: $blue-light;
  37. }
  38. // :visited {
  39. // color: $blue-light;
  40. // }
  41. }
  42. li ul {
  43. display: flex;
  44. flex-direction: column;
  45. }
  46. // .region-header-top-rigth {
  47. // width: 7rem;
  48. // height: 7rem;
  49. // }
  50. #block-burger {
  51. z-index: 1;
  52. background-color: $blue-light;
  53. font-size: 0.7rem;
  54. color: $white;
  55. display: block;
  56. width: 7rem;
  57. height: 7rem;
  58. margin-top: 0;
  59. :hover{
  60. cursor: pointer;
  61. }
  62. h2::after{
  63. display: block;
  64. font-family: 'Font Awesome';
  65. content: "\f0c9";
  66. height: 60px;
  67. font-size: 1rem;
  68. }
  69. #block-burger-menu{
  70. display: block;
  71. margin: 0;
  72. align-self: center;
  73. text-align: center;
  74. height:7rem;
  75. }
  76. // ul {display: none;}
  77. ul {
  78. display: none;
  79. width: 100vw;
  80. position: relative;
  81. bottom:8%;;
  82. left: calc(-30vw + 50%);
  83. height: fit-content;
  84. padding-bottom: 1rem;
  85. padding-top: 1rem;
  86. background-color: $blue-light;
  87. line-height: 2rem;
  88. list-style: none;
  89. .ul1 .sous-liste{
  90. left: calc(-50vw + 50%);
  91. padding-top: 0;
  92. a{
  93. opacity: 1;
  94. }
  95. }
  96. a{
  97. color: $white;
  98. font-weight: 800;
  99. font-size: 1.7rem;
  100. opacity: 0.7;
  101. }
  102. }
  103. &.opened ul {
  104. display: block;
  105. }
  106. }
  107. }