style.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. body {
  7. height: 2800px;
  8. hr{
  9. margin: 20px;
  10. }
  11. }
  12. #banner {
  13. width: 100vw;
  14. height: 500px;
  15. background-image: url("https://fakeimg.pl/1650x600/");
  16. background-size: cover;
  17. background-repeat: no-repeat;
  18. background-position: 40% 50%;
  19. }
  20. .marquee {
  21. margin: 100px auto;
  22. height: 100px;
  23. width: 1000px;
  24. overflow: hidden;
  25. position: relative;
  26. font-size: 48px;
  27. #marquee-box {
  28. display: block;
  29. width: 200%;
  30. height: 75px;
  31. position: absolute;
  32. overflow: hidden;
  33. animation: marquee 5s linear infinite;
  34. .span {
  35. float: left;
  36. width: 50%;
  37. }
  38. @keyframes marquee {
  39. 0% {
  40. left: 0;
  41. }
  42. 100% {
  43. left: -100%;
  44. }
  45. }
  46. }
  47. }
  48. #tag{
  49. width: 100vw;
  50. text-align: center;
  51. .btn{
  52. padding: 15px;
  53. width: 150px;
  54. margin: 10px;
  55. background-color:#CE0000;
  56. border-radius: 10px;;
  57. font-size: 24px;
  58. color:#fff;
  59. border: none;
  60. }
  61. }
  62. #Search-result{
  63. .result-box{
  64. margin: 50px auto;
  65. width: 700px;
  66. display: grid;
  67. grid-template-columns: repeat(2,1fr );
  68. grid-gap:10px;
  69. h1{
  70. margin: 10px;
  71. }
  72. p{
  73. padding: 15px 0;
  74. margin: 10px;
  75. }
  76. span{
  77. padding: 0px 10px;
  78. }
  79. }
  80. }
  81. #logo{
  82. width: 100vw;
  83. text-align: center;
  84. .logo{
  85. padding: 15px;
  86. width: 150px;
  87. margin: 10px;
  88. background-color:#CE0000;
  89. border-radius: 10px;;
  90. font-size: 24px;
  91. color:#fff;
  92. border: none;
  93. }
  94. }
  95. #news{
  96. display: grid;
  97. grid-template-columns: repeat(3,1fr );
  98. margin: 50px;
  99. grid-gap:30px;
  100. h1{
  101. margin-bottom: 10px;
  102. }
  103. a{
  104. margin-top: 20px;
  105. line-height: 1.5;
  106. display: inline-block;
  107. }
  108. }
  109. #footer{
  110. text-align: center;
  111. line-height: 2;
  112. }