traefik-frontend/app/static/css/components.css

230 lines
4.5 KiB
CSS
Raw Normal View History

2024-07-23 17:32:12 -03:00
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
}
.header h1 {
margin: 0;
flex-grow: 1;
text-align: center;
2024-08-05 10:58:57 -03:00
font-size: 2em;
2024-07-23 17:32:12 -03:00
}
.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 {
2024-08-05 10:58:57 -03:00
margin-bottom: 15px; /* Reduced margin between groups */
2024-07-23 17:32:12 -03:00
}
.group-title {
display: inline-block;
cursor: pointer;
2024-07-26 15:54:03 -03:00
margin-top: 10px; /* Reduced margin above group title */
2024-08-05 10:58:57 -03:00
margin-left: 15px;
2024-07-23 17:32:12 -03:00
}
.group-icon {
margin-right: 8px;
}
2024-07-26 15:54:03 -03:00
.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;
}
2024-08-05 10:58:57 -03:00
.router div {
overflow: hidden;
}
2024-07-26 15:54:03 -03:00
.router p {
font-size: 14px;
margin: 5px 0 0;
2024-08-05 10:58:57 -03:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2024-07-26 15:54:03 -03:00
}
.content {
padding: 20px; /* Added padding to the left and right of the webpage */
2024-08-05 10:58:57 -03:00
padding-bottom: 60px
}
/* List mode styles */
.list-mode .content {
display: flex;
flex-wrap: wrap;
}
.list-mode .group {
display: flex;
flex-direction: column;
flex: 1 1 calc(33.333% - 40px); /* Adjusted for new margin */
max-width: calc(33.333% - 40px); /* Adjusted for new margin */
margin: 0 15px 15px 15px;
}
.list-mode .group-title {
margin-left: 0;
}
.list-mode .router-container {
flex-direction: column;
flex-wrap: nowrap;
}
.list-mode .router {
max-width: 100%;
margin: 1px 0; /* Adjusted margin between routers */
}
.router:first-child {
margin-top: 15px; /* Adjusted margin between routers */
}
.footer {
position: fixed;
bottom: 0;
width: 100%;
padding: 10px 0;
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.search-bar {
display: flex;
align-items: center;
width: 100%;
max-width: 600px;
border-radius: 20px;
padding: 5px 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin: 0 20px;
}
.search-bar i {
margin-right: 10px;
}
#clear-search, #start-search {
cursor: pointer;
}
.search-bar input {
width: 100%;
border: none;
background: none;
outline: none;
text-align: center;
font-weight: bold;
2024-07-26 15:54:03 -03:00
}
2024-07-23 17:32:12 -03:00
/* Responsive Design */
@media (max-width: 1024px) {
2024-08-05 10:58:57 -03:00
body:not(.list-mode) .router {
flex: 1 1 calc(50% - 40px); /* Adjusted for new margin */
max-width: calc(50% - 40px); /* Adjusted for new margin */
}
.list-mode .group {
2024-07-26 15:54:03 -03:00
flex: 1 1 calc(50% - 40px); /* Adjusted for new margin */
max-width: calc(50% - 40px); /* Adjusted for new margin */
2024-07-23 17:32:12 -03:00
}
}
@media (max-width: 768px) {
2024-08-05 10:58:57 -03:00
body:not(.list-mode) .router {
2024-07-26 15:54:03 -03:00
flex: 1 1 calc(50% - 40px); /* Adjusted for new margin */
max-width: calc(50% - 40px); /* Adjusted for new margin */
2024-07-23 17:32:12 -03:00
}
2024-08-05 10:58:57 -03:00
.list-mode .group {
flex: 1 1 calc(50% - 40px); /* Adjusted for new margin */
max-width: calc(50% - 40px); /* Adjusted for new margin */
}
.header h1 {
font-size: 1.8em;
}
2024-07-23 17:32:12 -03:00
}
@media (max-width: 480px) {
2024-08-05 10:58:57 -03:00
body:not(.list-mode) .router {
2024-07-23 17:32:12 -03:00
flex: 1 1 100%;
max-width: 100%;
}
2024-08-05 10:58:57 -03:00
.list-mode .group {
flex: 1 1 100%;
max-width: 100%;
}
.router:first-child {
margin-top: 1px; /* Adjusted margin between routers */
}
.header h1 {
font-size: 1.5em;
}
2024-07-23 17:32:12 -03:00
}