_header.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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.5rem;
  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. .menuOpen:first-of-type{
  78. width: 500%;
  79. position: relative;
  80. right: 0;
  81. }
  82. ul {
  83. display: none;
  84. // width: 100vw;
  85. // position: relative;
  86. // bottom:8%;;
  87. // left: calc(-30vw + 50%);
  88. // height: fit-content;
  89. // padding-bottom: 1rem;
  90. // padding-top: 1rem;
  91. background-color: $blue-light;
  92. line-height: 2rem;
  93. list-style: none;
  94. .ul1 .sous-liste{
  95. // left: calc(-50vw + 50%);
  96. // padding-top: 0;
  97. a{
  98. opacity: 1;
  99. }
  100. }
  101. a{
  102. color: $white;
  103. font-weight: 800;
  104. font-size: 1rem;
  105. }
  106. }
  107. &.opened ul {
  108. display: block;
  109. }
  110. }
  111. }