_header.scss 3.6 KB

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