_header.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // home
  2. body {
  3. .blog {
  4. header {
  5. height:100vh;
  6. width: 100%;
  7. display: inline-flex;
  8. flex-direction: column;
  9. align-content: space-around;
  10. & > div{
  11. position: fixed;
  12. &.head{
  13. width: 100%;
  14. z-index: 999;
  15. padding-top: 70px;
  16. h2 {
  17. margin-left: 8px;
  18. position: absolute;
  19. }
  20. &::after {
  21. display: block;
  22. content: " ";
  23. width: 0%;
  24. height: 1px;
  25. background: black;
  26. }
  27. }
  28. &.works-mea {
  29. display: -webkit-inline-box;
  30. display: -ms-inline-flexbox;
  31. display: inline-flex;
  32. align-self: flex-end;
  33. height: calc(100% - 20px);
  34. align-items: flex-end;
  35. .card{
  36. &:nth-child(2){
  37. margin:0 10px;
  38. }
  39. &:not(:nth-child(2)){
  40. margin: 0;
  41. }
  42. }
  43. }
  44. &.scroll{
  45. width: 100%;
  46. bottom: 0;
  47. text-align: center;
  48. }
  49. }
  50. }
  51. &.down{
  52. header{
  53. height: 5rem;
  54. .head{
  55. padding:0;
  56. transition: all 1s 0.9s ease;
  57. &::after{
  58. animation: showborder 2.5s 1.5s ease forwards;
  59. }
  60. h2{
  61. opacity: 0;
  62. margin-left: -100px;
  63. transition: all 1s ease;
  64. left: -50%;
  65. }
  66. }
  67. .card{
  68. &:nth-child(1){
  69. animation: translateY 1s ease forwards;
  70. }
  71. &:nth-child(2){
  72. animation: translateY 1.3s ease forwards;
  73. }
  74. &:nth-child(3){
  75. animation: translateY 1.6s ease forwards;
  76. }
  77. }
  78. .scroll{
  79. opacity: 0;
  80. transition: all 1s ease;
  81. }
  82. }
  83. }
  84. }
  85. }
  86. // page
  87. body {
  88. #page-wrapper.item {
  89. header {
  90. border-bottom: 1px solid black;
  91. position: fixed;
  92. height: 112px;
  93. top: 0;
  94. left: 10px;
  95. right: 10px;
  96. background: white;
  97. z-index: 999;
  98. nav {
  99. margin-top: 25px;
  100. }
  101. h1 {
  102. color: black;
  103. }
  104. h2, .scroll {
  105. display: none;
  106. }
  107. }
  108. }
  109. }