/
osysolyatin
/
ToDo-App
Обзор
Документация
Войти
/
osysolyatin
/
ToDo-App
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
css/style.css
149 строк
3 KB
Oleg Sysolyatin
adapt to mobile devices
12 апр 2025, 20:28
12 апр 2025, 20:28
9152695
Код
Авторство
О чём код?
@font-face { font-family: "GoogleSans"; src: url(../fonts/GoogleSans-Regular.woff2) format("woff2"), url(../fonts/GoogleSans-Regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "GoogleSans"; src: url(../fonts/GoogleSans-Bold.woff2) format("woff2"), url(../fonts/GoogleSans-Bold.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; } body { font-family: "Google Sans"; } .list-group-item-success { transition: background-color 0.3s ease-in-out; } /* .item-todo-text { transition: text-decoration, transform 0.3s ease-in-out; } */ .list-group-item.list-group-item-success .item-todo-text { text-decoration: line-through; animation: strike 0.3s linear; } /* .item-todo-text::before { content: ""; position: absolute; left: 0; top: 50%; background-color: currentColor; width: 100%; height: 1px; transform: translateY(-50%); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; } */ /* .list-group-item.list-group-item-success .item-todo-text::before { transform: scale(1); } */ /* .item-todo-text { text-decoration: none; background-image: linear-gradient(black, black); background-repeat: no-repeat; background-position: center left; background-size: 0% 2px; transition: background-size 500ms ease-in-out; overflow-wrap: break-word; } */ /* .list-group-item.list-group-item-success .item-todo-text { background-size: 100% 2px; color: inherit; } */ .form { border-radius: 0.25rem; box-shadow: 4px 4px 5px 0px rgba(43, 43, 46, 0.75); -webkit-box-shadow: 4px 4px 5px 0px rgba(43, 43, 46, 0.75); -moz-box-shadow: 4px 4px 5px 0px rgba(43, 43, 46, 0.75); } .items-list { box-shadow: 4px 4px 5px 0px rgba(43, 43, 46, 0.75); -webkit-box-shadow: 4px 4px 5px 0px rgba(43, 43, 46, 0.75); -moz-box-shadow: 4px 4px 5px 0px rgba(43, 43, 46, 0.75); } .modal.fade .modal-dialog { box-shadow: 6px 6px 5px 0px rgba(43, 43, 46, 0.75); -webkit-box-shadow: 6px 6px 5px 0px rgba(43, 43, 46, 0.75); -moz-box-shadow: 6px 6px 5px 0px rgba(43, 43, 46, 0.75); border-radius: 0.3rem; } .modal-header { border-bottom: none; } .modal-footer { border-top: none; } @keyframes strike { from { text-decoration-color: transparent; } to { text-decoration-color: inherit; } } /* Адаптивные стили для мобильных устройств */ @media (max-width: 768px) { .list-group-item { flex-direction: column !important; align-items: flex-start !important; } .item-todo-text { width: 100%; margin-bottom: 10px; word-break: break-word; } .btn-group { width: 100%; justify-content: flex-end; } .btn-group .btn { padding: 0.25rem 0.5rem; font-size: 0.875rem; } /* Стили для формы ввода на мобильных устройствах */ .form { flex-direction: column !important; width: 100%; } .form-control { width: 100% !important; margin-bottom: 10px; } .input-group-append { width: 100%; margin-top: 0; } .input-group-append .btn { width: 100%; margin-left: 0 !important; } }