_header.scss 3.4 KB

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