123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- * {
- box-sizing: border-box;
- }
- img {
- max-width: 100%;
- }
- body {
- margin: 0;
- }
- textarea {
- resize: none;
- }
- form {
- margin: 60px auto;
- max-width: 650px;
- }
- input[type="text"],
- input[type="email"] {
- height: 42px;
- width: 260px;
- background: #F5F7F7;
- color: #000;
- font-size: 14px;
- border: none;
- padding: 0 15px;
- border-radius: 0px;
- outline: none;
- margin: 10px;
- }
- select {
- height: 42px;
- width: 260px;
- background: #F5F7F7;
- color: #000;
- font-size: 14px;
- border: none;
- padding: 0 15px;
- border-radius: 0px;
- outline: none;
- }
- .custom-checkbox {
- display: flex;
- align-items: center;
- margin-bottom: 30px;
- }
- .custom-checkbox__box {
- width: 20px;
- height: 20px;
- border: 1px solid #999;
- margin-right: 10px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .custom-checkbox__box::before {
- content: '';
- width: 12px;
- height: 12px;
- background: chartreuse;
- opacity: 0;
- }
- .custom-checkbox__box svg {
- opacity: 0;
- }
- .custom-checkbox input {
- width: 0;
- height: 0;
- opacity: 0;
- }
- .custom-checkbox input:checked + .custom-checkbox__box::before {
- opacity: 1;
- }
- /*
- .custom-checkbox input:checked + .custom-checkbox__box svg path {
- fill: #fff;
- } */
- /* .custom-checkbox input:checked ~ .custom-checkbox__label {
- color: red;
- } */
- .item {
- max-width: 310px;
- margin: 0 auto;
- position: relative;
- overflow: hidden;
- }
- img {
- display: block;
- transition: all .3s ease-in-out;
- position: relative;
- z-index: 1;
- }
- .item:hover img {
- transform: scale(1.2);
- }
- .item::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 2;
- background: linear-gradient(0deg, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
- /* opacity: .; */
- }
- .title {
- position: absolute;
- top: 20px;
- left: 20px;
- font-size: 24px;
- color: #fff;
- z-index: 3;
- }
|