l4d.tools/app/assets/stylesheets/application.css
2026-01-18 17:42:32 +01:00

280 lines
4.4 KiB
CSS

/*
* This is a manifest file that'll be compiled into application.css.
*
* With Propshaft, assets are served efficiently without preprocessing steps. You can still include
* application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
* cascading order, meaning styles declared later in the document or manifest will override earlier ones,
* depending on specificity.
*
* Consider organizing styles into separate files for maintainability.
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
color: #333;
background-color: #f5f5f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
header.navbar {
background-color: #222;
color: white;
padding: 15px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header.navbar h1 {
margin-bottom: 10px;
}
header.navbar nav ul {
list-style: none;
display: flex;
gap: 20px;
}
header.navbar nav a {
color: white;
text-decoration: none;
}
header.navbar nav a:hover {
color: #ccc;
}
main {
padding: 30px 0;
}
h1, h2, h3, h4, h5, h6 {
margin-bottom: 15px;
color: #222;
}
p {
margin-bottom: 10px;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
background: white;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
thead {
background-color: #f0f0f0;
border-bottom: 2px solid #ddd;
}
th, td {
padding: 12px 15px;
text-align: left;
}
tbody tr:hover {
background-color: #f9f9f9;
}
tbody tr:nth-child(even) {
background-color: #fafafa;
}
.btn {
display: inline-block;
padding: 10px 15px;
background-color: #ddd;
color: #333;
text-decoration: none;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
margin-right: 5px;
}
.btn:hover {
background-color: #ccc;
}
.btn--primary {
background-color: #007bff;
color: white;
}
.btn--primary:hover {
background-color: #0056b3;
}
.btn--success {
background-color: #28a745;
color: white;
}
.btn--success:hover {
background-color: #1e7e34;
}
.btn--danger {
background-color: #dc3545;
color: white;
}
.btn--danger:hover {
background-color: #c82333;
}
.btn--warning {
background-color: #ffc107;
color: #333;
}
.btn--warning:hover {
background-color: #e0a800;
}
.btn--small {
padding: 6px 10px;
font-size: 12px;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0,123,255,0.25);
}
.form-actions {
margin-top: 20px;
}
.alert {
padding: 15px;
margin-bottom: 20px;
border-radius: 4px;
border-left: 4px solid;
}
.alert--success {
background-color: #d4edda;
border-color: #28a745;
color: #155724;
}
.alert--error {
background-color: #f8d7da;
border-color: #dc3545;
color: #721c24;
}
.status {
padding: 5px 10px;
border-radius: 3px;
font-size: 12px;
font-weight: 600;
display: inline-block;
}
.status--stopped {
background-color: #e9ecef;
color: #6c757d;
}
.status--starting {
background-color: #fff3cd;
color: #856404;
}
.status--running {
background-color: #d4edda;
color: #155724;
}
.status--failed {
background-color: #f8d7da;
color: #721c24;
}
section {
background: white;
padding: 20px;
margin: 20px 0;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
#log-output {
background: #1e1e1e;
color: #00ff00;
padding: 15px;
border-radius: 4px;
font-family: "Courier New", monospace;
font-size: 13px;
max-height: 400px;
overflow-y: auto;
white-space: pre-wrap;
word-wrap: break-word;
}
.server-info p {
margin-bottom: 10px;
}
.overlays-list {
list-style: decimal;
padding-left: 20px;
}
.overlays-list li {
padding: 8px 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.template-preview {
background: #f9f9f9;
padding: 15px;
border-radius: 4px;
margin: 15px 0;
border-left: 4px solid #007bff;
}