- Add backend container transformation in engine.go following syntactic sugar specification - Containers with .insertr get class removed and viable children get .insertr added - Remove incorrect frontend container expansion - frontend only finds enhanced elements - Fix StyleAwareEditor hasMultiPropertyElements runtime error - Add addClass/removeClass methods to ContentEngine for class manipulation - Update frontend to match HTML-first approach with no runtime container logic - Test verified: container <section class='insertr'> transforms to individual h1.insertr, p.insertr, button.insertr This completes the container expansion functionality per CLASSES.md: Developer convenience (one .insertr enables section editing) + granular control (individual element editing)
292 lines
4.7 KiB
CSS
292 lines
4.7 KiB
CSS
/* Reset and Base Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* Navigation */
|
|
.navbar {
|
|
background: #fff;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.navbar .container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 20px;
|
|
}
|
|
|
|
.logo {
|
|
color: #2563eb;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
list-style: none;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.nav-links a {
|
|
text-decoration: none;
|
|
color: #333;
|
|
font-weight: 500;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
color: #2563eb;
|
|
}
|
|
|
|
.auth-controls {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn-primary, .btn-secondary {
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
display: inline-block;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #2563eb;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #1d4ed8;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #f3f4f6;
|
|
color: #374151;
|
|
border: 1px solid #d1d5db;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #e5e7eb;
|
|
}
|
|
|
|
/* Hero Section */
|
|
.hero {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 8rem 0 4rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.hero .lead {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 2rem;
|
|
opacity: 0.9;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Services Section */
|
|
.services {
|
|
padding: 4rem 0;
|
|
background: #f9fafb;
|
|
}
|
|
|
|
.services h2 {
|
|
text-align: center;
|
|
font-size: 2.5rem;
|
|
margin-bottom: 1rem;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.section-subtitle {
|
|
text-align: center;
|
|
font-size: 1.125rem;
|
|
color: #6b7280;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.services-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 2rem;
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
.service-card {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
|
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
.service-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.service-card h3 {
|
|
color: #2563eb;
|
|
margin-bottom: 1rem;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
/* Testimonial Section */
|
|
.testimonial {
|
|
padding: 4rem 0;
|
|
background: #2563eb;
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
|
|
.testimonial blockquote {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.testimonial p {
|
|
font-size: 1.5rem;
|
|
font-style: italic;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.testimonial cite {
|
|
font-size: 1rem;
|
|
opacity: 0.8;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* CTA Section */
|
|
.cta {
|
|
padding: 4rem 0;
|
|
text-align: center;
|
|
background: white;
|
|
}
|
|
|
|
.cta h2 {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 1rem;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.cta p {
|
|
font-size: 1.125rem;
|
|
color: #6b7280;
|
|
margin-bottom: 2rem;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Default Link Formatting Styles */
|
|
.link-primary {
|
|
color: #2563eb;
|
|
text-decoration: underline;
|
|
font-weight: 500;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.link-primary:hover {
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.link-secondary {
|
|
color: #6b7280;
|
|
text-decoration: none;
|
|
border-bottom: 1px solid #d1d5db;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.link-secondary:hover {
|
|
border-bottom-color: #374151;
|
|
}
|
|
|
|
.link-accent {
|
|
color: #7c3aed;
|
|
text-decoration: none;
|
|
background: linear-gradient(120deg, #7c3aed 0%, #7c3aed 100%);
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 0.2em;
|
|
background-position: 0 88%;
|
|
transition: background-size 0.25s ease-in;
|
|
}
|
|
|
|
.link-accent:hover {
|
|
background-size: 100% 88%;
|
|
color: white;
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background: #1f2937;
|
|
color: white;
|
|
padding: 2rem 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer p {
|
|
margin-bottom: 0.5rem;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.navbar .container {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.nav-links {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.auth-controls {
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.hero .lead {
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.services-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
} |