syntaxis/assets/logos/legacy/header-shared.css

723 lines
14 KiB
CSS
Raw Permalink Normal View History

/**
* Shared Header Styles for SYNTAXIS Branding Galleries
*/
:root {
--syntaxis-blue: #2C5F8E;
--syntaxis-gray: #757773;
--syntaxis-gold: #D97706;
--syntaxis-green: #059669;
--syntaxis-purple: #7C3AED;
--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-secondary: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}
/* Header */
.shared-header {
background: transparent;
color: white;
padding: 1.5rem 2rem;
box-shadow: none;
}
body.dark-mode .shared-header {
background: transparent;
}
.header-content {
max-width: 1400px;
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
flex-wrap: wrap;
flex-direction: column;
}
.header-title {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
font-family: var(--font-primary);
font-size: 1.5rem;
font-weight: 700;
margin: 0;
white-space: nowrap;
}
.header-logo {
width: 400px;
height: 120px;
display: flex;
align-items: center;
justify-content: center;
}
.header-logo object,
.header-logo svg {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
}
.header-nav {
display: flex;
gap: 0.75rem;
align-items: center;
flex-wrap: wrap;
}
.nav-btn, .header-btn {
background: var(--syntaxis-blue);
color: white;
border: 1px solid var(--syntaxis-blue);
padding: 0.5rem 1rem;
border-radius: 6px;
font-family: var(--font-secondary);
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
text-decoration: none;
}
.nav-btn:hover, .header-btn:hover {
background: #1E3A5F;
border-color: #1E3A5F;
box-shadow: 0 4px 12px rgba(44, 95, 142, 0.3);
}
body.dark-mode .nav-btn, body.dark-mode .header-btn {
background: #3d5a7d;
border-color: #3d5a7d;
color: #9ab8d9;
}
body.dark-mode .nav-btn:hover, body.dark-mode .header-btn:hover {
background: #4a6b94;
border-color: #4a6b94;
color: #b0d0f0;
}
.nav-btn.active {
display: none;
}
/* Modal Palette */
#palette-modal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 1000;
align-items: center;
justify-content: center;
padding: 1rem;
}
.palette-modal-content {
background: white;
border-radius: 12px;
max-width: 900px;
max-height: 90vh;
overflow-y: auto;
padding: 2rem;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
body.dark-mode .palette-modal-content {
background: #1E293B;
color: #F1F5F9;
}
.palette-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.palette-modal-header h2 {
font-family: var(--font-primary);
font-size: 1.75rem;
font-weight: 700;
color: var(--syntaxis-blue);
margin: 0;
}
body.dark-mode .palette-modal-header h2 {
color: #60A5FA;
}
.palette-modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #6B7280;
transition: color 0.2s;
}
body.dark-mode .palette-modal-close {
color: #9CA3AF;
}
.palette-modal-close:hover {
color: var(--syntaxis-blue);
}
/* Modal Sections */
.palette-section {
margin-bottom: 2.5rem;
}
.palette-section h3 {
font-family: var(--font-primary);
font-size: 1.25rem;
font-weight: 600;
color: var(--syntaxis-blue);
margin-bottom: 1.5rem;
border-bottom: 2px solid var(--syntaxis-gold);
padding-bottom: 0.75rem;
}
body.dark-mode .palette-section h3 {
color: #60A5FA;
}
/* Color Grid */
.color-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.color-card {
background: #F9FAFB;
border: 1px solid #E5E7EB;
border-radius: 8px;
overflow: hidden;
transition: all 0.2s;
}
body.dark-mode .color-card {
background: #0F172A;
border-color: #334155;
}
.color-card:hover {
box-shadow: 0 4px 12px rgba(44, 95, 142, 0.15);
transform: translateY(-2px);
}
.color-sample {
height: 80px;
width: 100%;
border-bottom: 1px solid #E5E7EB;
}
body.dark-mode .color-sample {
border-bottom-color: #334155;
}
.color-info {
padding: 1rem;
}
.color-name {
font-family: var(--font-primary);
font-weight: 600;
color: var(--syntaxis-blue);
margin-bottom: 0.5rem;
font-size: 0.95rem;
}
body.dark-mode .color-name {
color: #60A5FA;
}
.color-code {
font-family: var(--font-mono);
font-size: 0.75rem;
color: #6B7280;
margin-bottom: 0.3rem;
word-break: break-all;
cursor: pointer;
transition: color 0.2s;
}
body.dark-mode .color-code {
color: #9CA3AF;
}
.color-code:hover {
color: var(--syntaxis-blue);
}
/* Font Grid */
.font-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
.font-card {
background: #F9FAFB;
border: 1px solid #E5E7EB;
border-radius: 8px;
padding: 1.5rem;
transition: all 0.2s;
}
body.dark-mode .font-card {
background: #0F172A;
border-color: #334155;
}
.font-card:hover {
box-shadow: 0 4px 12px rgba(44, 95, 142, 0.15);
transform: translateY(-2px);
}
.font-preview {
margin-bottom: 1rem;
}
.font-name {
font-family: var(--font-primary);
font-weight: 600;
color: var(--syntaxis-blue);
margin-bottom: 0.5rem;
font-size: 1rem;
}
body.dark-mode .font-name {
color: #60A5FA;
}
.font-stack {
font-family: var(--font-mono);
font-size: 0.7rem;
color: #6B7280;
background: white;
border: 1px solid #E5E7EB;
padding: 0.75rem;
border-radius: 4px;
word-break: break-all;
cursor: pointer;
transition: all 0.2s;
}
body.dark-mode .font-stack {
background: #1E293B;
border-color: #475569;
color: #9CA3AF;
}
.font-stack:hover {
background: var(--syntaxis-blue);
color: white;
}
/* Toggleable Note */
.info-note {
background: #DFF2F1;
border-left: 4px solid var(--syntaxis-blue);
padding: 1rem 1.5rem;
border-radius: 6px;
margin-bottom: 2rem;
font-size: 0.9rem;
line-height: 1.6;
display: none;
}
body.dark-mode .info-note {
background: #0F3F3F;
color: #A0F9F9;
border-left-color: #60A5FA;
}
.info-note.visible {
display: block;
}
.info-note-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.info-note-title {
font-weight: 600;
color: var(--syntaxis-blue);
font-size: 1rem;
}
body.dark-mode .info-note-title {
color: #60A5FA;
}
.toggle-note-btn {
background: var(--syntaxis-blue);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
font-family: var(--font-secondary);
font-size: 0.85rem;
font-weight: 500;
transition: all 0.2s;
margin-bottom: 1.5rem;
}
body.dark-mode .toggle-note-btn {
background: #60A5FA;
}
.toggle-note-btn:hover {
background: #1E3A5F;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(44, 95, 142, 0.3);
}
body.dark-mode .toggle-note-btn:hover {
background: #3B82F6;
}
/* Main Logo Showcase Section */
.main-logo-showcase {
margin-bottom: 3rem;
}
.main-logo-showcase h2 {
font-family: var(--font-primary);
font-size: 1.75rem;
font-weight: 700;
color: var(--syntaxis-blue);
margin-bottom: 1.5rem;
border-bottom: 3px solid var(--syntaxis-gold);
padding-bottom: 0.75rem;
}
body.dark-mode .main-logo-showcase h2 {
color: #60A5FA;
}
.main-logo-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
margin-bottom: 2rem;
}
.main-logo-card {
background: white;
border: 2px solid #E5E7EB;
border-radius: 8px;
overflow: hidden;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
height: 100%;
}
body.dark-mode .main-logo-card {
background: #252525;
border-color: #404040;
}
.main-logo-card:hover {
box-shadow: 0 8px 20px rgba(44, 95, 142, 0.2);
transform: translateY(-4px);
border-color: var(--syntaxis-blue);
}
.main-logo-preview {
background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
padding: 2rem 1.5rem;
height: 220px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
flex-shrink: 0;
}
body.dark-mode .main-logo-preview {
background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}
.main-logo-preview svg,
.main-logo-preview object {
max-width: 100%;
max-height: 180px;
}
/* Monochrome logos invert in dark mode */
body.dark-mode .main-logo-preview object[data*="_bn"],
body.dark-mode .main-logo-preview object[data*="_bn_"] {
filter: invert(1);
}
.main-logo-info {
padding: 1.5rem;
border-top: 1px solid #E5E7EB;
display: flex;
flex-direction: column;
flex-grow: 1;
}
body.dark-mode .main-logo-info {
border-top-color: #334155;
}
.main-logo-badge {
display: inline-block;
font-family: var(--font-mono);
font-size: 0.7rem;
text-transform: uppercase;
font-weight: 600;
letter-spacing: 0.05em;
background: transparent;
color: var(--syntaxis-gold);
padding: 0.3rem 0.6rem;
border-radius: 4px;
margin-bottom: 0.75rem;
}
body.dark-mode .main-logo-badge {
background: transparent;
color: #d4a574;
}
.main-logo-title {
font-family: var(--font-primary);
font-size: 1.2rem;
font-weight: 600;
color: var(--syntaxis-blue);
margin-bottom: 0.5rem;
}
body.dark-mode .main-logo-title {
color: #60A5FA;
}
.main-logo-description {
font-size: 0.9rem;
color: #6B7280;
line-height: 1.5;
margin-bottom: 1rem;
}
body.dark-mode .main-logo-description {
color: #9CA3AF;
}
.main-logo-action {
padding-top: 1rem;
border-top: 1px solid #E5E7EB;
margin-top: auto;
}
body.dark-mode .main-logo-action {
border-top-color: #334155;
}
.main-logo-meta {
font-family: var(--font-mono);
font-size: 0.75rem;
color: #9CA3AF;
margin-bottom: 1rem;
cursor: pointer;
padding: 0.25rem 0.5rem;
border-radius: 3px;
transition: all 0.2s ease;
display: inline-block;
position: relative;
}
.main-logo-meta:hover {
background: rgba(44, 95, 142, 0.1);
color: var(--syntaxis-blue);
}
.main-logo-meta:hover::after {
content: "Click to copy";
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background: var(--syntaxis-blue);
color: white;
padding: 0.4rem 0.8rem;
border-radius: 4px;
font-size: 0.7rem;
font-weight: 500;
white-space: nowrap;
margin-bottom: 0.5rem;
font-family: var(--font-secondary);
z-index: 1000;
animation: tooltipIn 0.2s ease-out;
}
.main-logo-meta:hover::before {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
border: 5px solid transparent;
border-top-color: var(--syntaxis-blue);
margin-bottom: -10px;
z-index: 1000;
}
body.dark-mode .main-logo-meta {
color: #64748B;
}
body.dark-mode .main-logo-meta:hover {
background: rgba(96, 165, 250, 0.1);
color: #60a5fa;
}
body.dark-mode .main-logo-meta:hover::after {
background: #60a5fa;
}
body.dark-mode .main-logo-meta:hover::before {
border-top-color: #60a5fa;
}
@keyframes tooltipIn {
from {
opacity: 0;
transform: translateX(-50%) translateY(5px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
.main-logo-btn {
width: 100%;
padding: 0.75rem 1rem;
background: #F3F4F6;
color: var(--syntaxis-blue);
border: 2px solid var(--syntaxis-blue);
border-radius: 6px;
font-family: var(--font-secondary);
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.main-logo-btn:hover {
background: #E5E7EB;
box-shadow: 0 4px 12px rgba(44, 95, 142, 0.3);
transform: translateY(-1px);
}
body.dark-mode .main-logo-btn {
background: #3a4555;
color: #9ab8d9;
border-color: #9ab8d9;
}
body.dark-mode .main-logo-btn:hover {
background: #4a5a75;
color: #b0d0f0;
border-color: #b0d0f0;
}
/* Toast notification */
.copy-toast {
position: fixed;
top: 20px;
right: 20px;
background: var(--syntaxis-blue);
color: white;
padding: 0.75rem 1.5rem;
border-radius: 6px;
font-size: 0.85rem;
z-index: 2000;
animation: slideIn 0.3s ease-out, slideOut 0.3s ease-out 2.7s forwards;
box-shadow: 0 4px 12px rgba(44, 95, 142, 0.3);
}
body.dark-mode .copy-toast {
background: #60a5fa;
box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}
@keyframes slideIn {
from {
transform: translateX(400px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(400px);
opacity: 0;
}
}
/* Responsive */
@media (max-width: 768px) {
.header-content {
flex-direction: column;
align-items: flex-start;
}
.header-title {
width: 100%;
}
.header-nav {
width: 100%;
justify-content: flex-start;
}
.palette-modal-content {
max-height: 95vh;
padding: 1.5rem;
}
.color-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
}
.font-grid {
grid-template-columns: 1fr;
}
.main-logo-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
}