EIANotesApp/CSS/style.css
2025-06-16 10:49:26 +02:00

312 lines
5.6 KiB
CSS

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
margin: 0;
background-color: #f0f2f5;
color: #333;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.top-bar {
background-color: #6A5ACD;
color: white;
padding: 15px 30px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.top-bar h1 {
margin: 0;
font-size: 1.5em;
}
.user-info {
display: flex;
align-items: center;
}
.user-info span {
margin-right: 15px;
}
.user-info a, .user-info button {
color: white;
text-decoration: none;
padding: 8px 12px;
border-radius: 4px;
background-color: transparent;
border: 1px solid white;
cursor: pointer;
font-size: 0.9em;
margin-left: 10px;
}
.user-info a:hover, .user-info button:hover {
background-color: rgba(255,255,255,0.1);
}
.icon-button {
background: none;
border: none;
color: white;
font-size: 1.5em;
cursor: pointer;
padding: 0 5px;
}
.icon-button:hover {
opacity: 0.8;
}
.container {
flex-grow: 1;
width: 90%;
max-width: 1200px;
margin: 30px auto;
padding: 20px;
background-color: white;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
border-radius: 8px;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.page-header h2 {
margin: 0;
color: #333;
}
.button, button {
background-color: #6A5ACD;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1em;
text-decoration: none;
display: inline-block;
transition: background-color 0.2s ease-in-out;
}
button.secondary {
background-color: #777;
}
button.danger {
background-color: #e74c3c;
}
.button:hover, button:hover {
opacity: 0.85;
}
/* Form Styles */
.form-container {
max-width: 600px;
margin: 20px auto;
padding: 20px;
background-color: #f9f9f9;
border-radius: 8px;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
font-size: 1em;
}
.form-group textarea {
min-height: 150px;
resize: vertical;
}
.form-actions {
margin-top: 20px;
text-align: right;
}
.form-actions button {
margin-left: 10px;
}
/* Table Styles */
.notes-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.notes-table th, .notes-table td {
border: 1px solid #e0e0e0;
padding: 12px 15px;
text-align: left;
vertical-align: top;
}
.notes-table th {
background-color: #f9f9f9;
font-weight: bold;
cursor: pointer;
}
.notes-table th:hover {
background-color: #f0f0f0;
}
.notes-table th .sort-icon {
margin-left: 5px;
font-size: 0.8em;
}
.notes-table tr:nth-child(even) {
background-color: #fbfbfb;
}
.notes-table tr:hover {
background-color: #f5f5f5;
}
.actions-cell button, .actions-cell a {
margin-right: 5px;
padding: 5px 8px;
font-size: 0.9em;
}
/* Markdown Preview */
.markdown-preview {
border: 1px solid #ddd;
padding: 15px;
min-height: 100px;
background-color: #fff;
border-radius: 4px;
margin-top: 10px;
}
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 {
margin-top: 0.5em;
margin-bottom: 0.25em;
}
.markdown-preview p {
margin-bottom: 0.5em;
line-height: 1.6;
}
.markdown-preview ul, .markdown-preview ol {
margin-left: 20px;
margin-bottom: 0.5em;
}
.markdown-preview pre {
background-color: #f5f5f5;
padding: 10px;
border-radius: 4px;
overflow-x: auto;
}
.markdown-preview code {
font-family: "Courier New", Courier, monospace;
}
.markdown-preview blockquote {
border-left: 3px solid #ccc;
padding-left: 10px;
margin-left: 0;
color: #666;
}
/* Drag and Drop Area */
#drop-zone {
border: 2px dashed #ccc;
padding: 20px;
text-align: center;
margin-bottom: 20px;
border-radius: 8px;
background-color: #f9f9f9;
}
#drop-zone.drag-over {
border-color: #6A5ACD;
background-color: #e8e4f5;
}
/* Alerts */
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}
.alert-success {
color: #155724;
background-color: #d4edda;
border-color: #c3e6cb;
}
.alert-danger {
color: #721c24;
background-color: #f8d7da;
border-color: #f5c6cb;
}
.alert-info {
color: #0c5460;
background-color: #d1ecf1;
border-color: #bee5eb;
}
#password-strength {
font-size: 0.9em;
margin-top: 5px;
}
.password-strength-meter {
height: 5px;
background-color: #eee;
border-radius: 5px;
margin-top: 3px;
}
.password-strength-meter div {
height: 100%;
width: 0;
background-color: red;
border-radius: 5px;
transition: width 0.3s ease, background-color 0.3s ease;
}
#password-strength ul {
list-style-type: none;
padding-left: 0;
font-size: 0.9em;
margin-top: 5px;
}
#password-strength li {
margin-bottom: 3px;
}
#password-strength li.valid {
color: green;
}
#password-strength li.invalid {
color: red;
}
.notes-table th .sort-icon {
margin-left: 5px;
font-size: 0.8em;
color: #6A5ACD;
display: inline-block;
}