main.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. @import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600&display=swap');
  2. body {
  3. font-family: 'Work Sans', sans-serif;
  4. }
  5. /* body background */
  6. .color__grey {
  7. background-color: #f5f5f5;
  8. }
  9. /* search bar */
  10. .search__form {
  11. width: 40rem;
  12. margin: 3rem auto;
  13. }
  14. .search__btn {
  15. padding: 8px 24px;
  16. }
  17. .search__form .search__bar:focus {
  18. box-shadow: 1px 1px 3px 1px #1266f1;
  19. }
  20. .h3 {
  21. font-size: 2rem;
  22. }
  23. /* card */
  24. .card{
  25. transition: all .3s;
  26. }
  27. .card:hover {
  28. transform: scale(1.05);
  29. }
  30. .card.card__notHover {
  31. transform: scale(1);
  32. }
  33. .card-title {
  34. font-size: 1.3rem;
  35. }
  36. /* top card */
  37. .card__grback {
  38. background-image: linear-gradient(105deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 65%, #1266f1 65%, #1266f1 100%);
  39. }
  40. .card__left {
  41. width: 60%;
  42. }
  43. .card__url {
  44. font-size: 1.8rem;
  45. margin-bottom: 1.5rem;
  46. }
  47. .card__url__icon {
  48. display: inline-block;
  49. margin-right: 1rem;
  50. font-size: 1.4rem;
  51. }
  52. .card__intro {
  53. font-size: .9rem;
  54. line-height: 1.5rem;
  55. }
  56. /* rank card */
  57. .card__rank__title {
  58. font-weight: 500;
  59. }
  60. .card__rank__title i {
  61. display: inline-block;
  62. margin-right: .5rem;
  63. font-size: 1.2rem;
  64. }
  65. .sub__date {
  66. padding: .3rem .75rem;
  67. }
  68. .rank__mark {
  69. font-size: 1.4rem;
  70. line-height: 1.4rem;
  71. }
  72. .rank_num {
  73. font-size: 2rem;
  74. }
  75. /* chart */
  76. .chart {
  77. width: 600px;
  78. height:220px;
  79. margin:1.5rem auto;
  80. }
  81. .add__words {
  82. line-height: 1.3rem;
  83. }
  84. .keyword_total {
  85. font-weight: 500;
  86. text-align: center;
  87. }
  88. .keyword_total > strong {
  89. font-size: 1.6rem;
  90. }
  91. .keyword_add {
  92. margin: 1rem auto;
  93. }
  94. .group__btn {
  95. border-radius: 10px;
  96. margin-bottom: 1rem;
  97. }
  98. .btn-group .btn__benefit {
  99. border: 1px solid grey;
  100. background-color: white;
  101. padding: .5rem;
  102. width: 8rem;
  103. font-size: .9rem;
  104. transition: all .4s;
  105. }
  106. .btn-group .btn__benefit:nth-of-type(1) {
  107. border-radius: 5px 0 0 5px;
  108. }
  109. .btn-group .btn__benefit:nth-of-type(2) {
  110. border-radius: 0 5px 5px 0;
  111. }
  112. .btn-group .btn__benefit:hover {
  113. background-color: grey;
  114. color: white;
  115. }
  116. .btn-group .btn__benefit.active {
  117. background-color: grey;
  118. color: white;
  119. }