Files
formeleon/static/css/style.css
T

358 lines
6.5 KiB
CSS

/* =============================================================================
Formeleon - Multi-tenant Form Generator
Author: Björn Runden <br@runden.net>
Script: style.css
Description: Custom styles for Formeleon admin interface.
=============================================================================
*/
/* Global Styles */
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background-color: #f8f9fa;
}
/* Card Styles */
.card {
border: none;
border-radius: 0.5rem;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.card-header {
background-color: rgba(0, 0, 0, 0.03);
border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.card-footer {
background-color: rgba(0, 0, 0, 0.03);
border-top: 1px solid rgba(0, 0, 0, 0.125);
}
/* Badge Styles */
.badge {
font-weight: 500;
padding: 0.35em 0.65em;
border-radius: 0.25rem;
}
/* Button Styles */
.btn {
border-radius: 0.375rem;
font-weight: 500;
transition: all 0.2s;
}
.btn-outline-* {
border-width: 2px;
}
/* Form Control Styles */
.form-control, .form-select {
border-radius: 0.375rem;
padding: 0.5rem 0.75rem;
border: 1px solid #ced4da;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
border-color: #80bdff;
box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}
/* Table Styles */
.table {
margin-bottom: 0;
}
.table th {
font-weight: 600;
border-bottom: 2px solid #dee2e6;
padding: 0.75rem 1rem;
}
.table td {
padding: 0.75rem 1rem;
vertical-align: middle;
}
.table-hover tbody tr:hover {
background-color: rgba(0, 0, 0, 0.05);
}
/* Dev Mode Banner */
.dev-mode-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(90deg, #ffc107, #ff8c00);
color: #000;
padding: 12px 20px;
font-size: 0.9rem;
font-weight: 500;
z-index: 1000;
box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
gap: 10px;
}
.dev-mode-banner i {
font-size: 1.2rem;
}
/* NavBar Styles */
.navbar {
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
padding: 0.5rem 1rem;
}
.navbar-brand {
font-weight: 700;
font-size: 1.25rem;
}
.navbar-nav .nav-link {
padding: 0.5rem 1rem;
font-weight: 500;
}
.navbar-nav .nav-link:hover {
color: #0d6efd;
}
.dropdown-menu {
border-radius: 0.5rem;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
border: none;
padding: 0.5rem 0;
}
.dropdown-item {
padding: 0.5rem 1.5rem;
font-weight: 500;
}
.dropdown-item:hover, .dropdown-item:focus {
background-color: #f8f9fa;
color: #0d6efd;
}
/* Input Group Styles */
.input-group-text {
border-radius: 0.375rem;
}
/* Alert Styles */
.alert {
border-radius: 0.375rem;
border: none;
padding: 1rem 1.25rem;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.alert-heading {
font-weight: 600;
}
/* Code Blocks */
code {
background-color: rgba(0, 0, 0, 0.05);
padding: 0.125rem 0.375rem;
border-radius: 0.25rem;
font-size: 0.875em;
}
pre {
background-color: #f8f9fa;
padding: 1rem;
border-radius: 0.375rem;
border: 1px solid #dee2e6;
overflow-x: auto;
}
/* Utility Classes */
.text-truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.py-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.display-4 {
font-size: calc(1.525rem + 3.3vw);
font-weight: 300;
line-height: 1.2;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.navbar-collapse {
background-color: rgba(0, 0, 0, 0.1);
}
.dropdown-menu {
position: static;
float: none;
}
.dev-mode-banner {
flex-direction: column;
text-align: center;
padding: 8px;
font-size: 0.8rem;
}
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* Form Builder Specific Styles */
.form-builder {
background: #fff;
border-radius: 0.5rem;
padding: 1.5rem;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.form-field {
border: 1px dashed #ced4da;
padding: 1rem;
margin-bottom: 1rem;
border-radius: 0.375rem;
transition: all 0.2s;
}
.form-field:hover {
border-color: #80bdff;
background-color: rgba(0, 123, 255, 0.05);
}
.form-field-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.form-field-actions {
display: flex;
gap: 0.5rem;
}
/* JSON Editor Styles */
.json-editor {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 0.375rem;
padding: 1rem;
font-family: 'Courier New', monospace;
font-size: 0.875rem;
white-space: pre;
overflow-x: auto;
max-height: 400px;
overflow-y: auto;
}
/* Status Badge Colors */
.bg-success {
background-color: #198754 !important;
}
.bg-warning {
background-color: #ffc107 !important;
}
.bg-danger {
background-color: #dc3545 !important;
}
.bg-primary {
background-color: #0d6efd !important;
}
.bg-info {
background-color: #0dcaf0 !important;
}
/* Toolbar Styles */
.toolbar {
background: #fff;
border-bottom: 1px solid #dee2e6;
padding: 0.75rem 1rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
}
.toolbar-group {
display: flex;
gap: 0.5rem;
align-items: center;
}
/* Modal Styles */
.modal-content {
border-radius: 0.5rem;
border: none;
}
.modal-header {
background-color: rgba(0, 0, 0, 0.03);
border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.modal-footer {
background-color: rgba(0, 0, 0, 0.03);
border-top: 1px solid rgba(0, 0, 0, 0.125);
}
/* Pagination Styles */
.pagination {
justify-content: center;
}
.page-item.active .page-link {
background-color: #0d6efd;
border-color: #0d6efd;
}
.page-link {
color: #0d6efd;
border-radius: 0.375rem;
}
.page-link:hover {
background-color: #f8f9fa;
}