initial commit
This commit is contained in:
commit
af8b02071e
6 changed files with 715 additions and 0 deletions
347
styles/dh-attribution-sources.css
Normal file
347
styles/dh-attribution-sources.css
Normal file
|
|
@ -0,0 +1,347 @@
|
|||
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
|
||||
|
||||
/* Main application window styling */
|
||||
.dh-attribution-sources.settings-app {
|
||||
--dh-font-family: 'Outfit', 'Signika', 'Helvetica Neue', Arial, sans-serif;
|
||||
--dh-color-bg-dark: #121214;
|
||||
--dh-color-bg-card: rgba(30, 30, 35, 0.65);
|
||||
--dh-color-bg-input: rgba(10, 10, 12, 0.7);
|
||||
--dh-color-border: rgba(255, 255, 255, 0.1);
|
||||
--dh-color-border-hover: rgba(197, 160, 89, 0.4);
|
||||
--dh-color-primary: #9e1b1b;
|
||||
--dh-color-primary-hover: #c02222;
|
||||
--dh-color-gold: #c5a059;
|
||||
--dh-color-gold-hover: #dfb96c;
|
||||
--dh-color-text-bright: #f0edf4;
|
||||
--dh-color-text-muted: #a6a3ad;
|
||||
--dh-color-error: #e74c3c;
|
||||
--dh-color-error-hover: #ff6b6b;
|
||||
--dh-color-success: #2ecc71;
|
||||
--dh-color-success-hover: #2ee07e;
|
||||
|
||||
font-family: var(--dh-font-family);
|
||||
background: var(--dh-color-bg-dark) !important;
|
||||
border: 1px solid rgba(197, 160, 89, 0.25) !important;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
|
||||
}
|
||||
|
||||
/* Container */
|
||||
.dh-attribution-sources-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
padding: 8px;
|
||||
box-sizing: border-box;
|
||||
color: var(--dh-color-text-bright);
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .description {
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.4;
|
||||
color: var(--dh-color-text-muted);
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid var(--dh-color-border);
|
||||
}
|
||||
|
||||
/* Scrollable source list */
|
||||
.dh-attribution-sources-container .sources-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding-right: 4px;
|
||||
margin-bottom: 16px;
|
||||
min-height: 250px;
|
||||
}
|
||||
|
||||
/* Source Group Card */
|
||||
.dh-attribution-sources-container .source-group-card {
|
||||
background: var(--dh-color-bg-card);
|
||||
border: 1px solid var(--dh-color-border);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
position: relative;
|
||||
transition: border-color 0.25s ease, box-shadow 0.25s ease;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .source-group-card:hover {
|
||||
border-color: var(--dh-color-border-hover);
|
||||
box-shadow: 0 4px 15px rgba(197, 160, 89, 0.15);
|
||||
}
|
||||
|
||||
/* Group Header layout */
|
||||
.dh-attribution-sources-container .group-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px dashed var(--dh-color-border);
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .group-title-row {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .group-title-row .form-group {
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container label.compact-label {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--dh-color-gold);
|
||||
}
|
||||
|
||||
/* Custom inputs */
|
||||
.dh-attribution-sources-container input[type="text"] {
|
||||
background: var(--dh-color-bg-input) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.15) !important;
|
||||
color: var(--dh-color-text-bright) !important;
|
||||
padding: 6px 10px !important;
|
||||
border-radius: 4px !important;
|
||||
width: 100%;
|
||||
height: 32px !important;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
font-family: var(--dh-font-family);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container input[type="text"]:focus {
|
||||
border-color: var(--dh-color-gold) !important;
|
||||
box-shadow: 0 0 6px rgba(197, 160, 89, 0.4) !important;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Delete group button styling */
|
||||
.dh-attribution-sources-container .remove-group-btn {
|
||||
background: transparent !important;
|
||||
border: 1px solid rgba(231, 76, 60, 0.3) !important;
|
||||
color: var(--dh-color-error) !important;
|
||||
padding: 8px 10px !important;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
align-self: flex-end;
|
||||
margin-bottom: 2px;
|
||||
width: 36px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .remove-group-btn:hover {
|
||||
background: rgba(231, 76, 60, 0.15) !important;
|
||||
border-color: var(--dh-color-error-hover) !important;
|
||||
color: var(--dh-color-error-hover) !important;
|
||||
box-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
|
||||
}
|
||||
|
||||
/* Values section */
|
||||
.dh-attribution-sources-container .values-section {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .values-section h6 {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--dh-color-text-bright);
|
||||
margin: 0 0 10px 0;
|
||||
border-left: 2px solid var(--dh-color-gold);
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .values-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
/* Single value row styling */
|
||||
.dh-attribution-sources-container .value-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .value-row .form-group.val-input {
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* Remove single value button styling */
|
||||
.dh-attribution-sources-container .remove-value-btn {
|
||||
background: transparent !important;
|
||||
border: 1px solid rgba(231, 76, 60, 0.2) !important;
|
||||
color: var(--dh-color-error) !important;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .remove-value-btn:hover {
|
||||
background: rgba(231, 76, 60, 0.1) !important;
|
||||
border-color: var(--dh-color-error-hover) !important;
|
||||
color: var(--dh-color-error-hover) !important;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.dh-attribution-sources-container .add-value-btn {
|
||||
background: rgba(197, 160, 89, 0.1) !important;
|
||||
border: 1px dashed var(--dh-color-gold) !important;
|
||||
color: var(--dh-color-gold) !important;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
padding: 5px 12px !important;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .add-value-btn:hover {
|
||||
background: rgba(197, 160, 89, 0.2) !important;
|
||||
border-style: solid !important;
|
||||
color: var(--dh-color-text-bright) !important;
|
||||
box-shadow: 0 0 6px rgba(197, 160, 89, 0.2);
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .add-group-btn {
|
||||
background: var(--dh-color-primary) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||||
color: white !important;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
padding: 8px 16px !important;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .add-group-btn:hover {
|
||||
background: var(--dh-color-primary-hover) !important;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 6px 12px rgba(158, 27, 27, 0.4);
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .form-actions-bar {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid var(--dh-color-border);
|
||||
}
|
||||
|
||||
/* Empty State */
|
||||
.dh-attribution-sources-container .no-sources-message {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px 20px;
|
||||
text-align: center;
|
||||
background: var(--dh-color-bg-card);
|
||||
border: 1px dashed var(--dh-color-border);
|
||||
border-radius: 8px;
|
||||
color: var(--dh-color-text-muted);
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .no-sources-message i {
|
||||
color: var(--dh-color-gold);
|
||||
margin-bottom: 12px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
/* Form Footer styling */
|
||||
#dh-attribution-sources-settings footer.form-footer {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
background: rgba(15, 15, 18, 0.95);
|
||||
border-top: 1px solid rgba(197, 160, 89, 0.25);
|
||||
border-bottom-left-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
}
|
||||
|
||||
#dh-attribution-sources-settings footer.form-footer button {
|
||||
flex: 1;
|
||||
font-family: var(--dh-font-family);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
#dh-attribution-sources-settings footer.form-footer button[data-action="reset"] {
|
||||
background: transparent !important;
|
||||
border: 1px solid var(--dh-color-border) !important;
|
||||
color: var(--dh-color-text-muted) !important;
|
||||
}
|
||||
|
||||
#dh-attribution-sources-settings footer.form-footer button[data-action="reset"]:hover {
|
||||
background: rgba(255, 255, 255, 0.05) !important;
|
||||
color: var(--dh-color-text-bright) !important;
|
||||
border-color: rgba(255, 255, 255, 0.2) !important;
|
||||
}
|
||||
|
||||
#dh-attribution-sources-settings footer.form-footer button.save-btn {
|
||||
background: var(--dh-color-gold) !important;
|
||||
border: 1px solid rgba(0, 0, 0, 0.15) !important;
|
||||
color: #121214 !important;
|
||||
}
|
||||
|
||||
#dh-attribution-sources-settings footer.form-footer button.save-btn:hover {
|
||||
background: var(--dh-color-gold-hover) !important;
|
||||
box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
|
||||
}
|
||||
|
||||
/* Custom Scrollbar for modern aesthetics */
|
||||
.dh-attribution-sources-container .sources-list::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .sources-list::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .sources-list::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.dh-attribution-sources-container .sources-list::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--dh-color-gold);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue