traefik-frontend/static/css/components.css
2024-07-26 15:54:03 -03:00

123 lines
2.3 KiB
CSS

.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
}
.header h1 {
margin: 0;
flex-grow: 1;
text-align: center;
}
.settings {
position: relative;
}
.icon-button {
font-size: 24px;
cursor: pointer;
margin: 5px;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s, border-color 0.3s;
}
.settings-menu {
display: none;
position: absolute;
top: 50px;
right: 0;
flex-direction: column;
}
.settings-menu.visible {
display: flex;
}
.group {
margin-bottom: 20px; /* Reduced margin between groups */
}
.group-title {
display: inline-block;
cursor: pointer;
margin-top: 10px; /* Reduced margin above group title */
}
.group-icon {
margin-right: 8px;
}
.router-container {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
.router {
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 20px 15px; /* Added padding top and bottom */
margin: 15px; /* Added margin between boxes */
flex: 1 1 calc(33.333% - 40px); /* Adjusted for new margin */
max-width: calc(33.333% - 40px); /* Adjusted for new margin */
text-align: left;
cursor: pointer;
transition: box-shadow 0.3s ease;
box-sizing: border-box;
display: flex;
align-items: center;
}
.router svg {
font-size: 32px; /* Made the icon bigger */
margin-right: 15px; /* Added padding between icon and text */
}
.router:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.router h2 {
font-size: 18px;
margin: 0;
}
.router p {
font-size: 14px;
margin: 5px 0 0;
}
.content {
padding: 20px; /* Added padding to the left and right of the webpage */
}
/* Responsive Design */
@media (max-width: 1024px) {
.router {
flex: 1 1 calc(50% - 40px); /* Adjusted for new margin */
max-width: calc(50% - 40px); /* Adjusted for new margin */
}
}
@media (max-width: 768px) {
.router {
flex: 1 1 calc(50% - 40px); /* Adjusted for new margin */
max-width: calc(50% - 40px); /* Adjusted for new margin */
}
}
@media (max-width: 480px) {
.router {
flex: 1 1 100%;
max-width: 100%;
}
}