Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
runas24 authored Apr 15, 2024
1 parent d769034 commit 34a1e7d
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,25 @@ button[type="submit"]:hover {
background-color: #ffdb4d;
}

/* Добавляем анимацию для класса "loading" */
button[type="submit"].loading::after {
content: "";
width: 20px;
height: 20px;
border: 2px solid #fff;
border-top: 2px solid #000;
border-radius: 50%;
display: inline-block;
position: relative;
top: 4px;
animation: spin 1s linear infinite;
}

.loading-message {
margin-top: 20px;
font-style: italic;
}

#overlay {
display: none;
position: fixed;
Expand All @@ -75,19 +94,20 @@ button[type="submit"]:hover {
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9999;
justify-content: center;
align-items: center;
flex-direction: column;
}

#progress-bar {
width: 0;
height: 5px;
background-color: #ffcc00;
#progressBar {
width: 50%;
height: 20px;
background-color: #4CAF50;
border-radius: 10px;
margin-bottom: 20px;
}

#overlay-message {
color: white;
#overlayText {
color: #fff;
font-size: 24px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

0 comments on commit 34a1e7d

Please sign in to comment.