lms-frontend/src/style.css
2025-04-08 00:05:15 +08:00

144 lines
2.6 KiB
CSS

/* Global styles */
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: 0px;
}
body {
margin: 0;
padding: 0;
overflow: hidden;
font-family: sans-serif;
}
.scrolling-background {
position: fixed;
top: 0;
left: 0;
width: 100%; /* Ensure it covers full width */
height: 100vh; /* Full viewport height */
background-image: url('./assets/bg1.jpg');
background-repeat: repeat-x;
background-size: auto 100%; /* Maintain width and fill height */
animation: scroll-bg 30s linear infinite;
z-index: -2;
}
@keyframes scroll-bg {
from {
background-position: 0 0;
}
to {
background-position: -100% 0;
}
}
.color-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(33, 37, 41, 0.925);
z-index: -1;
}
.widget {
border: 1px solid rgb(0, 0, 0, 0.20);
background-color: rgb(31, 35, 39, 0.9);
padding: 15px;
margin-bottom: 15px;
border-radius: 5px;
}
.widget-header {
margin-bottom: 10px;
font-weight: bold;
}
.widget-body {
/* Widget body styles */
}
.icon-widget {
padding: 10px;
text-align: center;
}
/* Layout Specific Styles */
.centered-layout {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.three-column-layout {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
padding: 20px;
}
.split-column-layout {
display: grid;
grid-template-columns: 250px 1fr;
/* Sidebar and content */
gap: 20px;
padding: 20px;
}
.split-column-layout.collapsed-sidebar {
grid-template-columns: 80px 1fr;
/* Collapsed sidebar width */
}
/* Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
/* Semi-transparent overlay */
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
/* Ensure modal is on top */
}
.modal-content {
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
width: 80%;
/* Adjust as needed */
max-width: 800px;
/* Maximum width */
}
/* Responsive adjustments (example) */
@media (max-width: 768px) {
.three-column-layout {
grid-template-columns: 1fr;
/* Stack columns on smaller screens */
}
.split-column-layout {
grid-template-columns: 1fr;
/* Stack sidebar and content */
}
.split-column-layout.collapsed-sidebar {
grid-template-columns: 1fr;
/* Stack even if collapsed */
}
}