_header.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. .layout-container{
  2. position: relative;
  3. }
  4. header{
  5. // display: block;
  6. width: 100%;
  7. position: fixed;
  8. z-index: 99;
  9. }
  10. #header-top {
  11. height: 7rem;
  12. background-color: $white;
  13. box-shadow: 1px 0px 8px $black;
  14. display: flex;
  15. flex-direction: row;
  16. justify-content: space-between;
  17. color: $black;
  18. top:0%;
  19. .region-header-top-left { // logo + menu déroulant
  20. display:flex;
  21. flex-direction: row;
  22. padding: 1rem;
  23. align-items:start;
  24. color: $black;
  25. font-weight: 800;
  26. #block-logogouv{
  27. display: flex;
  28. height: 100%;
  29. align-items: center;
  30. }
  31. #block-logoeql{
  32. display: flex;
  33. height: 100%;
  34. align-items: center;
  35. padding-left: 2rem;
  36. img{
  37. height: 80%;
  38. }
  39. }
  40. ul{
  41. list-style: none;
  42. display: flex;
  43. flex-direction: row;
  44. :is(.sous-liste){
  45. display: flex;
  46. flex-direction: column;
  47. padding: 1rem;
  48. }
  49. .ul1.sous-liste{
  50. padding-right: 2rem;
  51. }
  52. li{
  53. a {
  54. color: $black;
  55. }
  56. .is-active{
  57. color:$blue-light;
  58. }
  59. :hover{
  60. color: $blue-light;
  61. }
  62. }
  63. }
  64. ul:is(.ul1 .sous-liste .ul2){
  65. display: none;
  66. }
  67. :hover {
  68. ul:is(.ul1 .sous-liste .ul2){
  69. display: block;
  70. background-color: $blue-light;
  71. padding: 1rem;
  72. a{
  73. color: $white;
  74. }
  75. }
  76. }
  77. }
  78. #block-burger { // menu burger à droite
  79. z-index: 1;
  80. background-color: $blue-light;
  81. font-size: 0.7rem;
  82. color: $white;
  83. display: block;
  84. width: 7rem;
  85. height: 100%;
  86. margin-top: 0;
  87. :hover{
  88. cursor: pointer;
  89. }
  90. h2{
  91. padding-top: 1rem;
  92. }
  93. h2:after{
  94. display: block;
  95. margin:auto;
  96. // height: 60px;
  97. content:url('data:image/svg+xml,<svg width="100" height="70" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path id="path930" d="M 20,10 H 80" stroke-linecap="round" stroke="white" stroke-width="4"/><path id="path930-3" d="M 20,25 H 80" stroke-linecap="round" stroke="white" stroke-width="4"/><path id="path930-6" d="M 20,40 H 80" stroke-linecap="round" stroke="white" stroke-width="4"/></svg>');
  98. }
  99. #block-burger-menu{
  100. display: block;
  101. margin: 0;
  102. align-self: center;
  103. text-align: center;
  104. // height:7rem;
  105. }
  106. // block menu open fond bleu
  107. .ul1:not(.sous-liste){
  108. width: 300%;
  109. position: relative;
  110. right: 260px;
  111. margin: 0;
  112. padding-top: 2rem;
  113. padding-bottom: 2rem;
  114. z-index: 99;
  115. }
  116. ul {
  117. display: none;
  118. background-color: $blue-light;
  119. line-height: 2rem;
  120. list-style: none;
  121. .ul1 .sous-liste{
  122. a{
  123. opacity: 1;
  124. }
  125. }
  126. a{
  127. opacity: 0.6;
  128. color: $white;
  129. font-weight: 800;
  130. font-size: 1rem;
  131. }
  132. }
  133. &.opened ul {
  134. display: block;
  135. }
  136. }
  137. }