Spaces:
Sleeping
Sleeping
| /* General Styles */ | |
| body { | |
| font-family: Arial, sans-serif; | |
| background-color: #f8f9fa; | |
| margin: 0; | |
| padding: 0; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background-color: #343a40; | |
| color: white; | |
| width: 100%; | |
| padding: 20px 0; | |
| } | |
| #logo { | |
| height: 50px; | |
| margin-right: 20px; | |
| } | |
| h1 { | |
| margin: 0; | |
| } | |
| .content-wrapper { | |
| display: flex; | |
| width: 100%; | |
| max-width: 1200px; | |
| margin-top: 30px; | |
| padding: 0 20px; | |
| box-sizing: border-box; | |
| } | |
| .nav-section { | |
| flex: 0 0 200px; /* Fixed width for the navigation */ | |
| margin-right: 20px; | |
| padding: 20px; | |
| background-color: #fff; | |
| border-radius: 8px; | |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
| box-sizing: border-box; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; /* Spacing between buttons */ | |
| } | |
| .calculator-main { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| background-color: white; | |
| padding: 20px; | |
| border-radius: 8px; | |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
| box-sizing: border-box; | |
| width: 33%; | |
| } | |
| #cable-container { | |
| display: flex; | |
| gap: 10px; /* Reduce gap between tiles */ | |
| justify-content: center; | |
| width: 100%; | |
| margin-bottom: 20px; | |
| flex-wrap: nowrap; /* No wrapping */ | |
| } | |
| .cable-group { | |
| background-color: white; | |
| padding: 20px; | |
| border-radius: 8px; | |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
| box-sizing: border-box; | |
| position: relative; | |
| flex: 1 1 40%; /* Each cable group takes up 30% of the container */ | |
| min-width: 280px; /* Optional minimum width */ | |
| max-width: 40%; /* Ensure the maximum width is constrained */ | |
| } | |
| .cable-group h2 { | |
| text-align: center; | |
| margin-top: 0; | |
| color: #343a40; | |
| } | |
| .form-row { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 15px; | |
| width: 100%; | |
| } | |
| .form-row label { | |
| flex: 0 0 40%; /* Label takes up 40% of the row */ | |
| font-weight: bold; | |
| color: #343a40; | |
| } | |
| .form-row input, | |
| .form-row select { | |
| flex: 1; | |
| padding: 8px; | |
| font-size: 16px; | |
| border: 1px solid #ccc; | |
| border-radius: 4px; | |
| width: 100%; | |
| box-sizing: border-box; | |
| } | |
| /* Dropdown styling */ | |
| .form-row select { | |
| appearance: none; | |
| background-color: #f8f9fa; | |
| padding: 8px; | |
| font-size: 16px; | |
| border: 1px solid #ccc; | |
| border-radius: 4px; | |
| width: 100%; | |
| box-sizing: border-box; | |
| } | |
| .btn-group, .form-group { | |
| display: flex; | |
| justify-content: space-between; | |
| width: 100%; /* Ensure buttons are aligned in one row */ | |
| } | |
| .btn { | |
| padding: 8px 16px; | |
| font-size: 14px; | |
| cursor: pointer; | |
| border: none; | |
| color: white; | |
| border-radius: 4px; | |
| transition: background-color 0.3s ease; | |
| } | |
| .btn:hover { | |
| opacity: 0.9; | |
| } | |
| .btn-add, | |
| .btn-add-cable { | |
| background-color: #007bff; | |
| margin-right: 10px; | |
| } | |
| .btn-add-cable:disabled { | |
| background-color: #6c757d; | |
| cursor: not-allowed; | |
| } | |
| .btn-calculate { | |
| background-color: #6c757d; /* Disabled state */ | |
| cursor: not-allowed; | |
| } | |
| .btn-calculate.enabled { | |
| background-color: #28a745; /* Enabled state */ | |
| cursor: pointer; | |
| } | |
| .btn-cg-calculate { | |
| background-color: #6c757d; /* Disabled state */ | |
| cursor: not-allowed; | |
| } | |
| .btn-cg-calculate.enabled { | |
| background-color: #28a745; /* Enabled state */ | |
| cursor: pointer; | |
| } | |
| .btn-remove-cable { | |
| background-color: #dc3545; | |
| padding: 3px 8px; | |
| font-size: 12px; | |
| position: absolute; | |
| bottom: 10px; | |
| right: 10px; | |
| } | |
| .btn-nav { | |
| background-color: #007bff; | |
| color: white; | |
| padding: 10px 16px; | |
| font-size: 14px; | |
| text-align: center; | |
| border-radius: 4px; | |
| transition: background-color 0.3s ease; | |
| cursor: pointer; | |
| border: none; /* Remove default button border */ | |
| display: block; | |
| width: 100%; /* Full width within the nav section */ | |
| text-align: center; | |
| width: 150px; | |
| margin-top: 20px; | |
| } | |
| .btn-nav:hover { | |
| background-color: #0056b3; | |
| } | |
| .action-buttons { | |
| display: flex; | |
| justify-content: center; | |
| gap: 10px; | |
| width: 100%; | |
| margin-bottom: 20px; | |
| } | |
| .btn-back { | |
| background-color: #007bff; | |
| color: white; | |
| padding: 8px 16px; | |
| font-size: 14px; | |
| text-align: center; | |
| border-radius: 4px; | |
| transition: background-color 0.3s ease; | |
| cursor: pointer; | |
| border: none; | |
| display: block; | |
| text-decoration: none; | |
| text-align: center; | |
| width: 150px; | |
| margin-top: 20px; | |
| } | |
| .btn-back:hover { | |
| background-color: #0056b3; | |
| } | |
| /* Media Queries for Responsiveness */ | |
| @media (max-width: 992px) { | |
| #cable-container .cable-group { | |
| flex: 1 1 48%; /* Two cables per row on medium screens */ | |
| } | |
| #cable-container .cable-group:nth-child(3) { | |
| flex: 1 1 100%; /* Stack the third cable below on medium screens */ | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| .content-wrapper { | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| .nav-section { | |
| flex: 0 0 100%; | |
| margin-bottom: 20px; | |
| } | |
| #cable-container .cable-group { | |
| flex: 1 1 100%; /* Full width for all cables on small screens */ | |
| } | |
| .btn-add-cable, | |
| .btn-calculate { | |
| width: 100%; | |
| margin-right: 0; | |
| } | |
| .action-buttons { | |
| flex-direction: column; | |
| } | |
| } | |
| .btn-save { | |
| background-color: #007bff; | |
| } | |
| .btn-delete { | |
| background-color: #dc3545; | |
| } | |
| /* Adjusted Specific Styles for the Edit Cables Page */ | |
| .edit-cables-main { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| margin: 30px auto; | |
| width: 100%; | |
| max-width: 500px; /* Adjusted width to make it more compact */ | |
| padding: 20px; | |
| box-sizing: border-box; | |
| background-color: white; | |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
| border-radius: 8px; | |
| } | |
| .add-cable-section, .existing-cables-section { | |
| width: 100%; | |
| margin-bottom: 30px; | |
| } | |
| .add-cable-section h2, .existing-cables-section h2 { | |
| margin-bottom: 20px; | |
| color: #343a40; | |
| } | |
| .result-display { | |
| width: 100%; /* Fixed width to ensure consistency */ | |
| font-size: 20px; | |
| color: #28a745; | |
| text-align: center; | |
| background-color: white; | |
| min-height: 300px; /* Ensures the container has a minimum height */ | |
| } | |
| /* CG */ | |
| .result-visual-container { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; | |
| width: 100%; | |
| margin-top: 20px; | |
| gap: 20px; | |
| } | |
| .result-display-cg { | |
| margin-top: 8px; | |
| width: 100%; /* Fixed width to ensure consistency */ | |
| font-size: 20px; | |
| color: #28a745; | |
| text-align: right; | |
| background-color: white; | |
| min-height: 100%; /* Ensures the container has a minimum height */ | |
| } | |
| .fixture-visual { | |
| width: 100%; /* Fixed width to ensure consistency */ | |
| text-align: left; | |
| margin-right: 20px; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .fixture-visual img { | |
| width: 75%; | |
| } | |
| .red-text { | |
| color: red; | |
| } | |
| .orange-text { | |
| color: orange; | |
| } | |