_header.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. ul{
  32. list-style: none;
  33. display: flex;
  34. flex-direction: row;
  35. :is(.sous-liste){
  36. display: flex;
  37. flex-direction: column;
  38. padding: 1rem;
  39. }
  40. .ul1.sous-liste{
  41. padding-right: 2rem;
  42. }
  43. li{
  44. a {
  45. color: $black;
  46. }
  47. .is-active{
  48. color:$blue-light;
  49. }
  50. :hover{
  51. color: $blue-light;
  52. }
  53. }
  54. }
  55. ul:is(.ul1 .sous-liste .ul2){
  56. display: none;
  57. }
  58. :hover {
  59. ul:is(.ul1 .sous-liste .ul2){
  60. display: block;
  61. background-color: $blue-light;
  62. padding: 1rem;
  63. a{
  64. color: $white;
  65. }
  66. }
  67. }
  68. }
  69. #block-burger { // menu burger à droite
  70. z-index: 1;
  71. background-color: $blue-light;
  72. font-size: 0.7rem;
  73. color: $white;
  74. display: block;
  75. width: 7rem;
  76. height: 100%;
  77. margin-top: 0;
  78. :hover{
  79. cursor: pointer;
  80. }
  81. h2{
  82. padding-top: 1rem;
  83. }
  84. h2:after{
  85. display: block;
  86. margin:auto;
  87. // height: 60px;
  88. 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>');
  89. }
  90. #block-burger-menu{
  91. display: block;
  92. margin: 0;
  93. align-self: center;
  94. text-align: center;
  95. // height:7rem;
  96. }
  97. // block menu open fond bleu
  98. .ul1:not(.sous-liste){
  99. width: 300%;
  100. position: relative;
  101. right: 260px;
  102. margin: 0;
  103. padding-top: 2rem;
  104. padding-bottom: 2rem;
  105. z-index: 99;
  106. }
  107. ul {
  108. display: none;
  109. background-color: $blue-light;
  110. line-height: 2rem;
  111. list-style: none;
  112. .ul1 .sous-liste{
  113. a{
  114. opacity: 1;
  115. }
  116. }
  117. a{
  118. opacity: 0.6;
  119. color: $white;
  120. font-weight: 800;
  121. font-size: 1rem;
  122. }
  123. }
  124. &.opened ul {
  125. display: block;
  126. }
  127. }
  128. }