fix: firmware page styling

This commit is contained in:
2025-08-29 16:08:54 +02:00
parent 63fa57e666
commit d7c70cf636
5 changed files with 470 additions and 56 deletions

View File

@@ -852,9 +852,9 @@ p {
}
.action-group:hover {
background: rgba(0, 0, 0, 0.25);
border-color: rgba(255, 255, 255, 0.15);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
background: rgba(0, 0, 0, 0.2);
border-color: rgba(255, 255, 255, 0.1);
box-shadow: none;
}
.action-group h3 {
@@ -877,7 +877,7 @@ p {
gap: 1rem;
align-items: center;
padding: 1rem;
background: rgba(0, 0, 0, 0.2);
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
transition: all 0.2s ease;
@@ -886,28 +886,18 @@ p {
}
.compact-upload-row::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.15);
border-radius: 12px;
opacity: 0;
transition: opacity 0.2s ease;
pointer-events: none;
content: none;
}
.compact-upload-row:hover::before {
opacity: 1;
opacity: 0;
}
.compact-upload-row:hover {
background: rgba(0, 0, 0, 0.25);
border-color: rgba(255, 255, 255, 0.15);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
transform: translateY(-2px);
background: transparent;
border-color: rgba(255, 255, 255, 0.1);
box-shadow: none;
transform: none;
}
.file-upload-area {
@@ -995,6 +985,7 @@ p {
gap: 0.75rem;
justify-content: flex-start;
align-items: center;
min-height: 36px;
}
.target-option {
@@ -1010,10 +1001,10 @@ p {
}
.target-option:hover {
background: rgba(0, 0, 0, 0.25);
background: transparent;
border-color: transparent;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
transform: translateY(-1px);
box-shadow: none;
transform: none;
}
.target-option input[type="radio"] {
@@ -1023,18 +1014,17 @@ p {
.radio-custom {
width: 14px;
height: 14px;
border: 2px solid rgba(255, 255, 255, 0.1);
border: 2px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
position: relative;
transition: all 0.2s ease;
background: rgba(0, 0, 0, 0.2);
}
.target-option input[type="radio"]:checked + .radio-custom {
border-color: #667eea;
background: #667eea;
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
transform: scale(1.05);
box-shadow: none;
transform: none;
}
.target-option input[type="radio"]:checked + .radio-custom::after {
@@ -1047,7 +1037,6 @@ p {
height: 5px;
background: white;
border-radius: 50%;
animation: radioPop 0.2s ease-out;
}
@keyframes radioPop {
@@ -1243,6 +1232,7 @@ p {
gap: 0.75rem;
flex-wrap: wrap;
align-items: center;
min-height: 40px;
}
.target-option {
@@ -1271,8 +1261,6 @@ p {
min-width: auto;
width: auto;
padding: 0.4rem 0.6rem;
visibility: visible;
opacity: 1;
font-size: 0.8rem;
flex: 1;
min-width: 120px;
@@ -1741,10 +1729,9 @@ p {
.specific-node-option .node-select {
margin-left: 0.5rem;
visibility: hidden;
opacity: 0;
transition: opacity 0.2s ease;
}
display: none;
}
/* Capabilities Styles */
.capabilities-list {
@@ -2107,4 +2094,213 @@ p {
.cap-call-btn {
padding: 0.35rem 0.75rem;
}
}
}
.label-select {
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #ffffff;
padding: 0.3rem 2rem 0.3rem 0.5rem;
border-radius: 6px;
font-size: 0.8rem;
transition: all 0.2s ease;
cursor: pointer;
min-width: 160px;
font-weight: 500;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
appearance: none;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ecf0f1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
background-repeat: no-repeat;
background-position: right 0.5rem center;
background-size: 12px 12px;
}
.label-select:hover {
background-color: rgba(0, 0, 0, 0.25);
border-color: rgba(255, 255, 255, 0.15);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
transform: translateY(-1px);
}
.label-select:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
background-color: rgba(0, 0, 0, 0.3);
}
.label-select option {
background: #1a202c;
color: #ffffff;
}
.label-select option:hover {
background: #2d3748;
}
.label-select option:checked {
background: #667eea;
color: #ffffff;
font-weight: 600;
}
.label-select:invalid {
color: rgba(255, 255, 255, 0.8);
}
.label-select:valid {
color: #ffffff;
}
.selected-labels {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-left: 0.5rem;
max-width: 100%;
}
.label-chip.removable {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding-right: 0.25rem;
background: rgba(139, 92, 246, 0.15);
border: 1px solid rgba(139, 92, 246, 0.35);
}
.label-chip .chip-remove {
appearance: none;
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.85);
cursor: pointer;
font-size: 0.85rem;
line-height: 1;
padding: 0 0.25rem;
border-radius: 9999px;
transition: background 0.15s ease, transform 0.15s ease;
}
.label-chip .chip-remove:hover {
background: rgba(255, 255, 255, 0.12);
transform: scale(1.05);
}
@media (max-width: 768px) {
.by-label-option {
display: inline-flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
width: 100%;
flex-wrap: wrap;
}
.by-label-option .target-label {
white-space: nowrap;
}
.by-label-option .label-select {
flex: 0 1 55%;
min-width: 120px;
max-width: 60%;
}
#selected-labels-container.selected-labels {
flex: 1 1 100%;
min-width: 0;
margin-left: 0;
}
}
@media (max-width: 480px) {
.label-select {
padding: 0.3rem 1.5rem 0.3rem 0.5rem;
background-position: right 0.4rem center;
background-size: 10px 10px;
}
}
.compact-upload-row,
.file-upload-area,
.file-input-wrapper {
max-width: 100%;
}
.label-select {
max-width: 100%;
}
/* Keep By Label on a single line for the label + select, but allow chips to wrap below */
@media (max-width: 768px) {
.by-label-option {
display: inline-flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
width: 100%;
flex-wrap: wrap;
}
.by-label-option .target-label {
white-space: nowrap;
}
.by-label-option .label-select {
flex: 0 1 55%;
min-width: 120px;
max-width: 60%;
}
#selected-labels-container.selected-labels {
flex: 1 1 100%;
min-width: 0;
margin-left: 0;
}
}
/* Burger menu */
.burger-btn {
display: none;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.15);
color: rgba(255, 255, 255, 0.9);
padding: 0.5rem;
border-radius: 10px;
cursor: pointer;
align-items: center;
justify-content: center;
}
.burger-btn svg {
width: 18px;
height: 18px;
stroke: currentColor;
stroke-width: 2;
}
@media (max-width: 768px) {
.main-navigation {
position: relative;
}
.burger-btn {
display: inline-flex;
margin-right: 0.5rem;
}
.nav-left {
display: none;
}
.main-navigation.mobile-open .nav-left {
display: flex;
flex-direction: column;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.6);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px;
padding: 0.5rem;
gap: 0.25rem;
z-index: 50;
}
.main-navigation.mobile-open .nav-left .nav-tab {
width: 100%;
text-align: left;
}
}