_header.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. body{
  2. display: inline-flex;
  3. }
  4. #header{
  5. z-index: 1;
  6. width: $header-width;
  7. height: 100%;
  8. padding-top: 1.5rem;
  9. padding-left: 30px;
  10. position: fixed;
  11. background: white;
  12. #logo{
  13. padding-bottom: 15px;
  14. }
  15. #navbar{
  16. padding-left: 15px;
  17. .sous-menu{
  18. height: $fonth2;
  19. transition: all 0.3s ease-in-out;
  20. transition-delay: 0.5s;
  21. & > ol{
  22. visibility: hidden;
  23. opacity: 0;
  24. transition: visibility 0.5s, opacity 0.5s linear;
  25. margin-left: 30px;
  26. padding-left: 5px;
  27. }
  28. &:hover{
  29. height: 100px;
  30. transition: all 0.3s ease-in-out;
  31. & > a {
  32. text-decoration: underline;
  33. &::after {
  34. @include background-nav-sm('../images/trait.svg');
  35. }
  36. }
  37. & > ol{
  38. visibility: visible;
  39. transition: all 0.5s linear;
  40. transition-delay: 0.2s;
  41. opacity: 1;
  42. }
  43. }
  44. }
  45. .underline{
  46. &::before{
  47. @include background-nav('../images/point_b.svg');
  48. }
  49. }
  50. .block{
  51. height: 100px;
  52. transition: all 0.3s ease-in-out;
  53. &::before{
  54. @include background-nav('../images/point_b.svg');
  55. }
  56. & > a::after {
  57. @include background-nav-sm('../images/trait.svg');
  58. }
  59. ol{
  60. visibility: visible;
  61. transition: visibility 0.5s, opacity 0.5s linear;
  62. opacity: 1;
  63. }
  64. }
  65. ul > li, ol{
  66. &::before{
  67. @include background-nav-content-b;
  68. @include background-nav-b('../images/point.svg');
  69. }
  70. .underline{
  71. &::before{
  72. @include background-nav('../images/point_b.svg');
  73. }
  74. }
  75. &:hover{
  76. &::before{
  77. @include background-nav('../images/point_b.svg');
  78. }
  79. &> a{
  80. text-decoration: underline;
  81. }
  82. }
  83. }
  84. }
  85. .separation{
  86. position: absolute;
  87. left: 100%;
  88. width: 1px;
  89. height: 100%;
  90. top: 1.5rem;
  91. background: black;
  92. &::before{
  93. @include background-nav-content-s;
  94. @include background-nav('../images/point_b.svg');
  95. }
  96. }
  97. }