_header.scss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // home
  2. body{
  3. &> .blog{
  4. header{
  5. width: 100%;
  6. height: 100vh;
  7. display: inline-flex;
  8. flex-direction: column;
  9. & > section{
  10. position: relative;
  11. height: 50vh;
  12. min-height: 250px;
  13. &.works-mea{
  14. display: inline-flex;
  15. flex-wrap: wrap;
  16. // margin-bottom: 70px;
  17. align-items: flex-end;
  18. height: 100%;
  19. .card{
  20. line-height: 0.8!important;
  21. .card-header{
  22. margin-top: 10px;
  23. }
  24. }
  25. }
  26. }
  27. h1{
  28. font-size: 11.2vw;
  29. line-height: 7vw!important;
  30. }
  31. h2{
  32. font-size: 3.7vw;
  33. }
  34. nav{
  35. margin-top: 25vh; /* poussé de la moitié de hauteur de viewport */
  36. transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
  37. }
  38. .scroll{
  39. width: 50px;
  40. height: 15px;
  41. margin: 0 auto 10px auto;
  42. overflow: hidden;
  43. position: relative;
  44. & > p:nth-child(1){
  45. text-align: center;
  46. position: absolute;
  47. top: -20px;
  48. animation: translatep1 2s infinite linear;
  49. }
  50. & > p:nth-child(2){
  51. text-align: center;
  52. position: absolute;
  53. top: -20px;
  54. animation: translatep1 2s infinite linear;
  55. animation-delay: 1s;
  56. }
  57. }
  58. }
  59. }
  60. }
  61. // page
  62. body{
  63. & > .item{
  64. header{
  65. height: 100px;
  66. position: relative;
  67. nav{
  68. position: absolute;
  69. margin-top: 50px; /* poussé de la moitié de hauteur de viewport */
  70. transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
  71. }
  72. h1{
  73. color: black;
  74. }
  75. h2{
  76. display: none;
  77. }
  78. .scroll{
  79. display: none;
  80. }
  81. }
  82. }
  83. }