todo
170 строк · 2.9 Кб
1body {2font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;3font-weight: 300;4font-size: 14px;5line-height: 1.4em;6background: #f5f5f5;7color: #4d4d4d;8min-width: 230px;9max-width: 550px;10margin: 0 auto;11-webkit-font-smoothing: antialiased;12-moz-osx-font-smoothing: grayscale;13font-smoothing: antialiased;14}
15
16h1 {17padding-top: 40px;18width: 100%;19font-size: 80px;20font-weight: 100;21text-align: center;22color: rgba(175, 47, 47, 0.15);23
24}
25
26.todo-app {27background: #fff;28margin: 130px 0 40px 0;29position: relative;30box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1);31}
32
33input[type="text"] {34padding: 16px;35border: none;36width: 100%;37font-size: 24px;38box-sizing: border-box;39font-family: inherit;40font-weight: inherit;41line-height: 1.4em;42box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03);43}
44
45input[type="text"]::placeholder {46color: #e6e6e6;47font-style: italic;48}
49
50ul {51margin: 0;52padding: 0;53list-style: none;54}
55
56li {57margin: 10px;58position: relative;59font-size: 24px;60border-bottom: 1px solid #ededed;61display: flex;62align-items: center;63}
64
65li:last-child {66border-bottom: none;67}
68
69input[type="checkbox"] {70margin-right: 10px;71width: 25px;72height: 25px;73position: relative;74cursor: pointer;75-webkit-appearance: none;76appearance: none;77border: 2px solid #d9d9d9;78border-radius: 50%;79outline: none;80transition: background-color 0.3s, border-color 0.3s;81}
82
83input[type="checkbox"]::before {84content: "";85position: absolute;86top: 50%;87left: 50%;88width: 12px;89height: 12px;90border-radius: 50%;91background: #5dc2af;92transform: scale(0) translate(-50%, -50%);93transition: transform 0.3s ease-in-out;94}
95
96input[type="checkbox"]:checked::before {97transform: scale(1) translate(-50%, -50%);98}
99
100input[type="checkbox"]::after {101content: '';102position: absolute;103top: 50%;104left: 50%;105transform: translate(-50%, -50%);106font-size: 16px;107color: white;108opacity: 0;109transition: opacity 0.3s;110}
111
112input[type="checkbox"]:checked::after {113opacity: 1;114}
115
116
117button {118background: none;119border: none;120padding: 0;121cursor: pointer;122font: inherit;123color: inherit;124}
125
126button:hover {127color: #af5b5e;128}
129
130.selected {131border: 1px solid rgba(175, 47, 47, 0.2);132}
133
134.footer {135color: #777;136padding: 10px 15px;137height: 20px;138text-align: center;139border-top: 1px solid #e6e6e6;140}
141
142.footer::before {143content: '';144position: absolute;145right: 0;146bottom: 0;147left: 0;148height: 50px;149overflow: hidden;150box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, 0 17px 2px -6px rgba(0, 0, 0, 0.2);151z-index: -1;152}
153
154@media (max-width: 430px) {155body {156font-size: 12px;157}158
159.todo-app {160margin-top: 40px;161}162
163input[type="text"] {164font-size: 18px;165}166
167li {168font-size: 18px;169}170}
171