$color-background: #dcdde1; $color-text: #2f3640; $color-letter: #f5f6fa; body { background-color: $color-background; color: $color-text; font-size: 16px; line-height: 24px; } .wrapper { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; } .intro p { margin: 30px 0; } .letter { background-color: $color-letter; width: 600px; padding: 48px; position: relative; max-width: 90vw; margin: 5vh auto; } .letter::before, .letter::after { content: ""; position: absolute; bottom: 12px; width: 40%; height: 10px; box-shadow: 0 5px 14px rgba(0, 0, 0, 0.7); z-index: -1; } .letter::before { left: 15px; transform: skew(-5deg) rotate(-5deg); } .letter::after { right: 15px; transform: skew(5deg) rotate(5deg); } * { box-sizing: border-box; } /* Kasuje margin i padding z listy */ ul { margin: 0; padding: 0; list-style: none; } /* Styluje elementy listy zadań */ ul li { cursor: pointer; position: relative; padding: 12px 8px 12px 40px; background: #eee; font-size: 18px; transition: 0.2s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } /* Ustawia nieparzyste elementy listy na inny kolor (efekt zebry) */ ul li:nth-child(odd) { background: #f9f9f9; } /* Ciemniejszy kolor tła po najechaniu myszką */ ul li:nth-child(even):hover { background: #ddd; } /* Efekt wywołany po kliknięciu - zmienia kolor i powoduje przekreślenie tekstu */ ul li.checked { background: #888; color: #fff; text-decoration: line-through; } /* Dodaje znacznik ukończenia zadania */ ul li.checked::before { content: ''; position: absolute; border-color: #fff; border-style: solid; border-width: 0 2px 2px 0; top: 10px; left: 16px; transform: rotate(45deg); height: 15px; width: 7px; } /* Styluje przycisk zamknięcia zadania */ .close { position: absolute; right: 0; top: 0; padding: 12px 16px 12px 16px; } .close:hover { } /* Styl nagłówka */ .header { border-radius: 100px; background-color: #02ac46; padding: 30px 40px; color: white; margin-bottom: 15px; text-align: center; background: rgb(255,0,118); background: linear-gradient(209deg, rgba(255,0,118,1) 0%, rgba(225,3,130,1) 14%, rgba(203,5,139,1) 28%, rgba(200,5,140,1) 41%, rgba(89,15,183,1) 100%); } /* Clear floats after the header */ .header:after { content: ""; display: table; clear: both; } /* Styluje pole do wpisywania treśći */ input { height: 44px; margin: 0; border: none; border-radius: 0; width: 75%; padding: 10px; float: left; font-size: 16px; } /* Styluje przycisk "Dodaj" */ .addBtn { padding: 10px; color: #555; float: left; text-align: center; cursor: pointer; transition: 0.3s; border-radius: 30px; font-size: 45px; color: white; border: 2px solid white; margin-left: 50px; } #myInput{ border-radius: 50px; background-color: rgba(0,0,0,0); border: 2px solid white; color: white; } #myInput::placeholder{ color: white; } .intro{ text-align: center; }