flare / flare-ui /src /styles.scss
ciyidogan's picture
Upload 18 files
3b93905 verified
raw
history blame
4.6 kB
/* Global Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
line-height: 1.5;
color: #333;
background-color: #f5f5f5;
}
/* Utility Classes */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.btn {
display: inline-block;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
text-align: center;
text-decoration: none;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
&.btn-primary {
background-color: #007bff;
color: white;
&:hover {
background-color: #0056b3;
}
}
&.btn-secondary {
background-color: #6c757d;
color: white;
&:hover {
background-color: #545b62;
}
}
&.btn-danger {
background-color: #dc3545;
color: white;
&:hover {
background-color: #c82333;
}
}
&:disabled {
opacity: 0.6;
cursor: not-allowed;
}
}
/* Form Styles */
.form-group {
margin-bottom: 1rem;
label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: #495057;
}
input,
select,
textarea {
display: block;
width: 100%;
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out;
&:focus {
color: #495057;
background-color: #fff;
border-color: #80bdff;
outline: 0;
}
}
textarea {
min-height: 100px;
resize: vertical;
}
}
/* Table Styles */
.table {
width: 100%;
margin-bottom: 1rem;
background-color: white;
border-collapse: collapse;
th,
td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #dee2e6;
}
th {
background-color: #f8f9fa;
font-weight: 600;
color: #495057;
}
tbody tr:hover {
background-color: #f8f9fa;
}
}
/* Card Styles */
.card {
background-color: white;
border: 1px solid #dee2e6;
border-radius: 0.25rem;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
margin-bottom: 1rem;
.card-header {
padding: 0.75rem 1.25rem;
background-color: #f8f9fa;
border-bottom: 1px solid #dee2e6;
font-weight: 600;
}
.card-body {
padding: 1.25rem;
}
}
/* Tab Styles */
.tabs {
display: flex;
border-bottom: 2px solid #dee2e6;
margin-bottom: 1rem;
.tab {
padding: 0.5rem 1rem;
cursor: pointer;
border: none;
background: none;
font-weight: 500;
color: #6c757d;
transition: all 0.3s ease;
&.active {
color: #007bff;
border-bottom: 2px solid #007bff;
margin-bottom: -2px;
}
&:hover {
color: #007bff;
}
}
}
/* Alert Styles */
.alert {
padding: 0.75rem 1.25rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: 0.25rem;
&.alert-danger {
color: #721c24;
background-color: #f8d7da;
border-color: #f5c6cb;
}
&.alert-success {
color: #155724;
background-color: #d4edda;
border-color: #c3e6cb;
}
}
/* Loading Spinner */
.spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
border-top-color: #007bff;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Dialog/Modal Styles */
.dialog-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.dialog {
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
max-width: 600px;
width: 90%;
max-height: 90vh;
overflow: hidden;
display: flex;
flex-direction: column;
.dialog-header {
padding: 1rem 1.5rem;
border-bottom: 1px solid #dee2e6;
font-size: 1.25rem;
font-weight: 600;
}
.dialog-body {
padding: 1.5rem;
overflow-y: auto;
flex: 1;
}
.dialog-footer {
padding: 1rem 1.5rem;
border-top: 1px solid #dee2e6;
display: flex;
justify-content: flex-end;
gap: 0.5rem;
}
}