styles.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. * {
  2. box-sizing: border-box;
  3. }
  4. img {
  5. max-width: 100%;
  6. }
  7. body {
  8. margin: 0;
  9. }
  10. textarea {
  11. resize: none;
  12. }
  13. form {
  14. margin: 60px auto;
  15. max-width: 650px;
  16. }
  17. input[type="text"],
  18. input[type="email"] {
  19. height: 42px;
  20. width: 260px;
  21. background: #F5F7F7;
  22. color: #000;
  23. font-size: 14px;
  24. border: none;
  25. padding: 0 15px;
  26. border-radius: 0px;
  27. outline: none;
  28. margin: 10px;
  29. }
  30. select {
  31. height: 42px;
  32. width: 260px;
  33. background: #F5F7F7;
  34. color: #000;
  35. font-size: 14px;
  36. border: none;
  37. padding: 0 15px;
  38. border-radius: 0px;
  39. outline: none;
  40. }
  41. .custom-checkbox {
  42. display: flex;
  43. align-items: center;
  44. margin-bottom: 30px;
  45. }
  46. .custom-checkbox__box {
  47. width: 20px;
  48. height: 20px;
  49. border: 1px solid #999;
  50. margin-right: 10px;
  51. display: flex;
  52. align-items: center;
  53. justify-content: center;
  54. }
  55. .custom-checkbox__box::before {
  56. content: '';
  57. width: 12px;
  58. height: 12px;
  59. background: chartreuse;
  60. opacity: 0;
  61. }
  62. .custom-checkbox__box svg {
  63. opacity: 0;
  64. }
  65. .custom-checkbox input {
  66. width: 0;
  67. height: 0;
  68. opacity: 0;
  69. }
  70. .custom-checkbox input:checked + .custom-checkbox__box::before {
  71. opacity: 1;
  72. }
  73. /*
  74. .custom-checkbox input:checked + .custom-checkbox__box svg path {
  75. fill: #fff;
  76. } */
  77. /* .custom-checkbox input:checked ~ .custom-checkbox__label {
  78. color: red;
  79. } */
  80. .item {
  81. max-width: 310px;
  82. margin: 0 auto;
  83. position: relative;
  84. overflow: hidden;
  85. }
  86. img {
  87. display: block;
  88. transition: all .3s ease-in-out;
  89. position: relative;
  90. z-index: 1;
  91. }
  92. .item:hover img {
  93. transform: scale(1.2);
  94. }
  95. .item::before {
  96. content: '';
  97. position: absolute;
  98. top: 0;
  99. left: 0;
  100. width: 100%;
  101. height: 100%;
  102. z-index: 2;
  103. background: linear-gradient(0deg, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
  104. /* opacity: .; */
  105. }
  106. .title {
  107. position: absolute;
  108. top: 20px;
  109. left: 20px;
  110. font-size: 24px;
  111. color: #fff;
  112. z-index: 3;
  113. }