/
creemer
/
file-upload
Обзор
Документация
Войти
/
creemer
/
file-upload
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/App.css
141 строка
2 KB
akolpakov
Init commit
05 май 2021, 13:54
05 май 2021, 13:54
3fd192b
Код
Авторство
О чём код?
.container { width: 500px; margin: 100px auto; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; border: 2px solid black; border-radius: 5px; background-color: #eceded; padding: 20px; box-sizing: border-box; } .container > input { width: 100%; height: 30px; } #loadingProgress { width: 100%; border: 1px solid black; border-radius: 4px; margin: 5px; background-color: #ddd; } #loadingBar { width: 1%; height: 30px; background-color: #4CAF50; } .show { display: block !important; } .button { border-radius: 4px; background-color: #4CAF50; border: none; color: #FFFFFF; text-align: center; font-size: 28px; padding: 20px; width: 200px; transition: all 0.5s; cursor: pointer; margin: 5px; } .button span { cursor: pointer; display: inline-block; position: relative; transition: 0.5s; } .button span:after { content: '\00bb'; position: absolute; opacity: 0; top: 0; right: -20px; transition: 0.5s; } .button:hover span { padding-right: 25px; } .button:hover span:after { opacity: 1; right: 0; } .file { opacity: 0; width: 0.1px; height: 0.1px; position: absolute; } .file-input { margin: 5px; } .file-input label { position: relative; width: 200px; height: 50px; border-radius: 4px; background: #4CAF50; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; cursor: pointer; transition: transform .2s ease-out; } .file-name { position: absolute; bottom: -35px; left: 10px; font-size: 0.85rem; color: #555; } input:hover + label, input:focus + label { transform: scale(1.02); } /* Adding an outline to the label on focus */ input:focus + label { outline: 1px solid #000; outline: -webkit-focus-ring-color auto 2px; } .loader { border: 6px solid #f3f3f3; border-radius: 50%; border-top: 6px solid #3498db; width: 50px; height: 50px; -webkit-animation: spin 2s linear infinite; /* Safari */ animation: spin 2s linear infinite; } /* Safari */ @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }