Skip to content

Instantly share code, notes, and snippets.

@Ajai-Suvendran
Created May 16, 2025 05:37
Show Gist options
  • Save Ajai-Suvendran/c24475c31481e0a5f0fdb1ed06e0a95a to your computer and use it in GitHub Desktop.
Save Ajai-Suvendran/c24475c31481e0a5f0fdb1ed06e0a95a to your computer and use it in GitHub Desktop.
$border-radius: 0.375rem;
$toggle-height: 1.5rem;
$padding-x: 0.625rem;
$font-size: 0.75rem;
.toggle-bar {
display: flex;
border-radius: $border-radius;
overflow: hidden;
background-color: #ffffff;
height: $toggle-height;
.toggle-button {
background: none;
border: none;
padding: 0 $padding-x;
font-size: $font-size;
cursor: pointer;
height: 100%;
}
}
.spinner {
width: 30px;
height: 30px;
border: 3px solid rgba(0, 0, 0, 0.1);
border-top-color: #060707;
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin-bottom: 10px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.loading-indicator {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1.5rem;
margin-top: 2rem;
height: 150px;
}
.error-message {
color: #e74c3c;
text-align: center;
margin-top: 7rem;
}
.error-message button {
background: #f10707;
color: white;
border: none;
padding: 5px 15px;
border-radius: 4px;
cursor: pointer;
margin-top: 10px;
}
.error-message button:hover {
background: #3f4041;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment