|
| 1 | +.habbit-days__list { |
| 2 | + display: flex; |
| 3 | + flex-direction: column; |
| 4 | + row-gap: 12px; |
| 5 | + width: 100%; |
| 6 | +} |
| 7 | + |
| 8 | +.habbit-days__item { |
| 9 | + display: flex; |
| 10 | + justify-content: flex-start; |
| 11 | + align-items: center; |
| 12 | + border-radius: var(--default-br, 10px); |
| 13 | + min-height: 60px; |
| 14 | + background: var(--add-color-0, #fff); |
| 15 | + overflow: hidden; |
| 16 | +} |
| 17 | + |
| 18 | +.habbit-days__label { |
| 19 | + display: flex; |
| 20 | + justify-content: center; |
| 21 | + align-items: center; |
| 22 | + align-self: stretch; |
| 23 | + flex-shrink: 0; |
| 24 | + border-right: 1px solid var(--add-color-8, #E7EBFB); |
| 25 | + padding: 15px; |
| 26 | + width: 100%; |
| 27 | + max-width: 130px; |
| 28 | + font-weight: var(--medium, 500); |
| 29 | + text-align: center; |
| 30 | + background: var(--add-color-10, #FBFAFF); |
| 31 | +} |
| 32 | + |
| 33 | +.habbit-days__comment-wrap { |
| 34 | + display: flex; |
| 35 | + justify-content: space-between; |
| 36 | + align-items: center; |
| 37 | + align-self: stretch; |
| 38 | + padding: 15px 10px 15px 25px; |
| 39 | + width: 100%; |
| 40 | +} |
| 41 | + |
| 42 | +.habbit-days__comment { |
| 43 | + font-weight: var(--medium, 500); |
| 44 | + font-size: 16px; |
| 45 | + line-height: 130%; |
| 46 | + color: var(--secondary-color, #23235F); |
| 47 | +} |
| 48 | + |
| 49 | +.habbit-days__delete-btn { |
| 50 | + display: flex; |
| 51 | + justify-content: center; |
| 52 | + align-items: center; |
| 53 | + flex-shrink: 0; |
| 54 | + border: none; |
| 55 | + border-radius: var(--main-br-radius, 10px); |
| 56 | + width: 40px; |
| 57 | + height: 30px; |
| 58 | + background: transparent; |
| 59 | + overflow: hidden; |
| 60 | + cursor: pointer; |
| 61 | + transition-property: border-radius, background; |
| 62 | + transition-duration: var(--short, 0.3s); |
| 63 | + transition-timing-function: ease-in-out; |
| 64 | + will-change: border-radius, background; |
| 65 | +} |
| 66 | + |
| 67 | +.habbit-days__delete-btn:focus-visible { |
| 68 | + outline-color: var(--add-color-11, #a87ae4); |
| 69 | +} |
| 70 | + |
| 71 | +.habbit-days__form { |
| 72 | + display: flex; |
| 73 | + align-items: center; |
| 74 | + align-self: stretch; |
| 75 | + gap: 15px 10px; |
| 76 | + padding: 10px 15px 10px 25px; |
| 77 | + width: 100%; |
| 78 | +} |
| 79 | + |
| 80 | +.habbit-days__form-input { |
| 81 | + flex: 1; |
| 82 | + border: 1px solid var(--main-border-color, #E7EBFB); |
| 83 | + border-radius: var(--main-br-radius, 10px); |
| 84 | + padding-right: 15px; |
| 85 | + padding-left: 50px; |
| 86 | + height: 100%; |
| 87 | + font-family: var(--default-ff), sans-serif; |
| 88 | + font-weight: var(--medium, 500); |
| 89 | + font-size: 16px; |
| 90 | + color: var(--secondary-color, #23235F); |
| 91 | + background: url('../images/comment-icon.svg') no-repeat 22px center / 18px 18px; |
| 92 | + caret-color: var(--add-color-11, #a87ae4); |
| 93 | +} |
| 94 | + |
| 95 | +.habbit-days__form-input::placeholder { |
| 96 | + font-weight: var(--regular, 400); |
| 97 | + font-size: 14px; |
| 98 | + color: var(--add-color-1, #8899A8); |
| 99 | +} |
| 100 | + |
| 101 | +.habbit-days__form-input:focus-visible { |
| 102 | + outline-color: var(--add-color-11, #a87ae4); |
| 103 | +} |
| 104 | + |
| 105 | +.comment-error { |
| 106 | + outline: 2px solid var(--add-color-12, #bd0b22); |
| 107 | +} |
| 108 | + |
| 109 | +.habbit-days__form-btn { |
| 110 | + display: flex; |
| 111 | + justify-content: center; |
| 112 | + align-items: center; |
| 113 | + align-self: stretch; |
| 114 | + border: none; |
| 115 | + border-radius: var(--main-br-radius, 10px); |
| 116 | + padding: 10px 20px; |
| 117 | + width: 100%; |
| 118 | + max-width: 120px; |
| 119 | + font-family: var(--default-ff), sans-serif; |
| 120 | + font-weight: var(--medium, 500); |
| 121 | + font-size: 13px; |
| 122 | + line-height: normal; |
| 123 | + text-align: center; |
| 124 | + color: var(--add-color-5, #5051F9); |
| 125 | + background: var(--add-color-4, #EDECFE); |
| 126 | + cursor: pointer; |
| 127 | + transition-property: color, background; |
| 128 | + transition-duration: var(--short, 0.3s); |
| 129 | + transition-timing-function: ease-in-out; |
| 130 | + will-change: color, background; |
| 131 | +} |
| 132 | + |
| 133 | +.habbit-days__form-btn:focus-visible { |
| 134 | + outline-color: var(--add-color-11, #a87ae4); |
| 135 | +} |
| 136 | + |
| 137 | +/* media queries, any-hover */ |
| 138 | + |
| 139 | +@media (max-width: 992px) { |
| 140 | + .habbit-days__label { |
| 141 | + padding-right: 10px; |
| 142 | + padding-left: 10px; |
| 143 | + max-width: 110px; |
| 144 | + } |
| 145 | + |
| 146 | + .habbit-days__comment { |
| 147 | + font-size: 14px; |
| 148 | + } |
| 149 | +} |
| 150 | + |
| 151 | +@media (max-width: 768px) { |
| 152 | + .habbit-days__item { |
| 153 | + flex-direction: column; |
| 154 | + } |
| 155 | + |
| 156 | + .habbit-days__label { |
| 157 | + border-right: none; |
| 158 | + border-bottom: 1px solid var(--add-color-8, #E7EBFB); |
| 159 | + max-width: 100%; |
| 160 | + } |
| 161 | + |
| 162 | + .habbit-days__form-input { |
| 163 | + min-height: 40px; |
| 164 | + } |
| 165 | +} |
| 166 | + |
| 167 | +@media (any-hover: hover) { |
| 168 | + .habbit-days__delete-btn:hover { |
| 169 | + border-radius: var(--main-br-radius, 10px); |
| 170 | + background: var(--add-color-8, #E7EBFB); |
| 171 | + } |
| 172 | + |
| 173 | + .habbit-days__form-btn:hover { |
| 174 | + color: var(--add-color-0, #fff); |
| 175 | + background: var(--add-color-11, #a87ae4); |
| 176 | + } |
| 177 | +} |
0 commit comments