VoltageDrop / static /styles.css
Teapack1's picture
Initial commit
deeb85c
raw
history blame
2.97 kB
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
padding: 0;
background-color: #f8f9fa;
}
header {
display: flex;
align-items: center;
justify-content: center;
background-color: #343a40;
color: white;
width: 100%;
padding: 20px 0;
}
.calculator-form {
width: 100%;
display: flex;
flex-direction: column;
}
#logo {
height: 50px;
margin-right: 20px;
}
main {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 30px;
width: 100%;
max-width: 600px;
padding: 20px;
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;
}
.form-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
}
.form-row label {
flex-basis: 30%;
font-weight: bold;
}
.form-row input {
flex-basis: 65%;
padding: 8px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 8px;
}
.form-row select {
flex-basis: 65%;
padding: 8px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 8px;
}
.btn {
padding: 8px 16px;
font-size: 14px;
cursor: pointer;
border: none;
color: white;
border-radius: 4px;
}
.btn-add {
background-color: #28a745;
width: 100%;
}
.btn-save {
background-color: #007bff;
margin-right: 5px;
}
.btn-delete {
background-color: #dc3545;
}
.btn-group {
display: flex;
justify-content: flex-end;
margin-top: 10px;
}
.section-divider {
margin: 40px 0;
border: 0;
border-top: 2px solid #dee2e6;
width: 100%;
}
.cable-divider {
margin: 20px 0;
border: 0;
border-top: 1px solid #dee2e6;
width: 100%;
}
.btn-back {
background-color: #007bff;
color: white;
padding: 10px 20px;
font-size: 16px;
text-align: center;
text-decoration: none;
margin-top: 30px;
display: inline-block;
border-radius: 5px;
width: 100%;
}
.btn-back:hover {
background-color: #0056b3;
}
.btn-calculate {
background-color: #6c757d; /* Disabled state */
color: white;
padding: 10px 20px;
font-size: 18px;
border: none;
cursor: not-allowed;
border-radius: 4px;
margin-top: 20px;
width: 100%;
text-align: center;
transition: background-color 0.3s ease;
}
.btn-calculate.enabled {
background-color: #28a745; /* Enabled state */
cursor: pointer;
}
.btn-calculate:hover.enabled {
background-color: #218838;
}
.result-display {
margin-top: 30px;
font-size: 24px;
color: #28a745;
text-align: center;
padding: 20px;
border-top: 2px solid #dee2e6;
width: 100%;
}