all.scss 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. body{
  2. padding: 0 2%;
  3. }
  4. header{
  5. .contact{
  6. z-index: 9999;
  7. position: fixed;
  8. top: 20px;
  9. right: 2%;
  10. transform: scale(1);
  11. transition: transform 0.5s ease;
  12. cursor: pointer;
  13. &:hover{
  14. transition: transform 0.5s ease;
  15. transform: scale(0.9);
  16. }
  17. &.open{
  18. transform: scale(15);
  19. transition: transform 0.5s ease;
  20. h3{
  21. color: transparent;
  22. transition: visibility 0.5 ease;
  23. }
  24. img{
  25. animation: rotation 12s infinite linear;
  26. }
  27. & + .txt{
  28. position: fixed;
  29. top: 190px;
  30. text-align: center;
  31. line-height: 1.5rem;
  32. z-index: 9999;
  33. animation: translateright 1s ease forwards;
  34. }
  35. }
  36. &.close{
  37. transform: scale(1);
  38. transition: transform 0.5s 0.1s ease;
  39. & + .txt{
  40. position: fixed;
  41. top: 190px;
  42. text-align: center;
  43. line-height: 1.5rem;
  44. z-index: 9999;
  45. animation: translateleft 1s ease forwards;
  46. }
  47. h3{
  48. color: white;
  49. transition: color 0.5s 0.4s ease;
  50. }
  51. &:hover{
  52. transition: transform 0.5s ease!important;
  53. transform: scale(0.9)!important;
  54. }
  55. }
  56. img{
  57. animation: rotation 6s infinite linear;
  58. }
  59. h3{
  60. transform: rotate(35deg);
  61. position: absolute;
  62. top: 33px;
  63. left: 20px;
  64. }
  65. & + .txt{
  66. position: fixed;
  67. right: -200px;
  68. p{
  69. }
  70. }
  71. }
  72. h2{
  73. margin-left: 10px;
  74. }
  75. }
  76. .card{
  77. width: calc(100% / 3);
  78. padding: 0 10px;
  79. line-height: 0.8!important;
  80. .card-header{
  81. margin-top: 10px;
  82. display: inline-flex;
  83. & > div{
  84. margin-right: 5px;
  85. & > a{
  86. vertical-align: baseline;
  87. }
  88. & > time{
  89. vertical-align: baseline;
  90. }
  91. }
  92. }
  93. }