_header copy.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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: column;
  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. // .ul:not(:-moz-first-node){
  58. // display: none;
  59. // }
  60. :hover {
  61. .ul2{
  62. display: block;
  63. background-color: $white;
  64. padding: 1rem;
  65. }
  66. }
  67. }
  68. li .ul1 {
  69. display: flex;
  70. flex-direction: column;
  71. }
  72. #block-burger { // menu burger à droite
  73. z-index: 1;
  74. background-color: $blue-light;
  75. font-size: 0.7rem;
  76. color: $white;
  77. display: block;
  78. width: 7rem;
  79. height: 100%;
  80. margin-top: 0;
  81. :hover{
  82. cursor: pointer;
  83. }
  84. h2{
  85. padding-top: 1rem;
  86. }
  87. h2:after{
  88. display: block;
  89. margin:auto;
  90. height: 60px;
  91. 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>');
  92. }
  93. #block-burger-menu{
  94. display: block;
  95. margin: 0;
  96. align-self: center;
  97. text-align: center;
  98. height:7rem;
  99. }
  100. .ul1:not(.sous-liste){
  101. width: 300%;
  102. position: relative;
  103. right: 260px;
  104. margin: 0;
  105. padding-top: 2rem;
  106. z-index: 99;
  107. }
  108. ul {
  109. display: none;
  110. background-color: $blue-light;
  111. line-height: 2rem;
  112. list-style: none;
  113. .ul1 .sous-liste{
  114. a{
  115. opacity: 1;
  116. }
  117. }
  118. a{
  119. opacity: 0.6;
  120. color: $white;
  121. font-weight: 800;
  122. font-size: 1rem;
  123. }
  124. }
  125. &.opened ul {
  126. display: block;
  127. }
  128. }
  129. }