_header.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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.5rem;
  78. color: $white;
  79. display: block;
  80. width: 7rem;
  81. height: 100%;
  82. margin-top: 0;
  83. :hover{
  84. cursor: pointer;
  85. }
  86. h2:after{
  87. display: block;
  88. height: 60px;
  89. // font-family: 'Font Awesome';
  90. // content: "\f0c9";
  91. // font-weight: 100;
  92. // font-size: 5rem;
  93. // content:url("../images/pictos/menu.png");
  94. // content: url('data:image/svg+xml; utf8, <svg version="1.1" x="0px" y="0px" viewBox="0 0 52 33" xml:space="preserve" id="svg8" sodipodi:docname="noun_Arrow_3771902.svg" inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)" width="52" height="33" inkscape:export-filename="/home/ouidade/Sites/EQL/docker-eql/src_d9/web/themes/custom/eql/images/pictos/noun_Arrow_3771902.png" inkscape:export-xdpi="300" inkscape:export-ydpi="300" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata id="metadata14"><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/></cc:Work></rdf:RDF></metadata><defs id="defs12"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" inkscape:window-height="1015" id="namedview10" showgrid="false" inkscape:zoom="6.92" inkscape:cx="20.953757" inkscape:cy="38.222543" inkscape:window-x="0" inkscape:window-y="36" inkscape:window-maximized="1" inkscape:current-layer="svg8" inkscape:pagecheckerboard="0" width="99px"/><polygon points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2 " id="polygon2" inkscape:export-filename="/home/ouidade/Sites/EQL/docker-eql/src_d9/web/themes/custom/eql/images/pictos/polygon2.png" inkscape:export-xdpi="300" inkscape:export-ydpi="300" transform="translate(-23.815852,-33.316918)"/></svg>');
  95. // background-image: url('~/web/themes/custom/eql/images/pictos/menu.png');
  96. // height: 2rem;
  97. content:url('data:image/svg+xml,<svg width="160" height="140" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="20" x2="95" y1="20" y2="20" stroke-linecap="round" stroke="white" stroke-width="7"/></svg>');
  98. content:url('data:image/svg+xml,<svg width="160" height="140" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="20" x2="95" y1="50" y2="50" stroke-linecap="round" stroke="white" stroke-width="7"/></svg>');
  99. }
  100. #block-burger-menu{
  101. display: block;
  102. margin: 0;
  103. align-self: center;
  104. text-align: center;
  105. height:7rem;
  106. }
  107. .ul1:not(.sous-liste){
  108. width: 300%;
  109. position: relative;
  110. right: 260px;
  111. margin: 0;
  112. padding-top: 2rem;
  113. z-index: 99;
  114. }
  115. ul {
  116. display: none;
  117. background-color: $blue-light;
  118. line-height: 2rem;
  119. list-style: none;
  120. .ul1 .sous-liste{
  121. a{
  122. opacity: 1;
  123. }
  124. }
  125. a{
  126. opacity: 0.6;
  127. color: $white;
  128. font-weight: 800;
  129. font-size: 1rem;
  130. }
  131. }
  132. &.opened ul {
  133. display: block;
  134. }
  135. }
  136. }