mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-03 03:01:31 +08:00
344 lines
6.8 KiB
CSS
344 lines
6.8 KiB
CSS
:root {
|
|
--gunicorn-green: #1d692d;
|
|
--gunicorn-green-dark: #14501f;
|
|
--gunicorn-green-light: #2a8729;
|
|
--gunicorn-cream: #f6f6f1;
|
|
--md-primary-fg-color: var(--gunicorn-green-light);
|
|
--md-primary-fg-color--light: #3da843;
|
|
--md-primary-fg-color--dark: var(--gunicorn-green-dark);
|
|
--md-accent-fg-color: var(--gunicorn-green);
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] {
|
|
--gunicorn-cream: #1d1f1d;
|
|
--md-primary-fg-color: var(--gunicorn-green);
|
|
--md-primary-fg-color--light: #3da843;
|
|
--md-primary-fg-color--dark: var(--gunicorn-green-dark);
|
|
--md-accent-fg-color: var(--gunicorn-green-light);
|
|
}
|
|
|
|
.md-header__button.md-logo svg {
|
|
height: 1.8rem;
|
|
}
|
|
|
|
/* Hero Section */
|
|
.md-typeset .hero {
|
|
margin: 2rem 0 3rem;
|
|
padding: 3.5rem;
|
|
background: linear-gradient(135deg, rgba(29, 105, 45, 0.96), rgba(42, 135, 41, 0.85));
|
|
color: #fff;
|
|
border-radius: 18px;
|
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .hero {
|
|
background: linear-gradient(135deg, rgba(20, 80, 31, 0.95), rgba(29, 105, 45, 0.88));
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.md-typeset .hero__inner {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2.5rem;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.md-typeset .hero__copy {
|
|
flex: 1 1 320px;
|
|
max-width: 520px;
|
|
font-size: 1.05rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.md-typeset .hero__copy h1 {
|
|
margin: 0 0 1rem;
|
|
font-size: 2.4rem;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.md-typeset .hero__tagline {
|
|
font-size: 1.1rem;
|
|
opacity: 0.95;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.md-typeset .hero__cta {
|
|
margin-top: 1.75rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.md-typeset .hero__code {
|
|
flex: 1 1 260px;
|
|
max-width: 380px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-radius: 14px;
|
|
padding: 1.5rem;
|
|
backdrop-filter: blur(4px);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .hero__code {
|
|
background: rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.md-typeset .hero__code pre {
|
|
margin: 0 0 1rem;
|
|
border: none;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
color: #e8f5ea;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .hero__code pre {
|
|
background: rgba(0, 0, 0, 0.55);
|
|
}
|
|
|
|
.md-typeset .hero__version {
|
|
font-weight: 600;
|
|
letter-spacing: 0.01em;
|
|
font-size: 0.9rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.md-typeset .hero__logo {
|
|
height: 64px;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .hero__logo {
|
|
filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.35));
|
|
}
|
|
|
|
/* Pillars Section */
|
|
.md-typeset .pillars {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 1.5rem;
|
|
margin: 3rem 0;
|
|
}
|
|
|
|
.md-typeset .pillar {
|
|
text-align: center;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.md-typeset .pillar__icon {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.md-typeset .pillar h3 {
|
|
margin: 0 0 0.5rem;
|
|
font-size: 1.25rem;
|
|
color: var(--gunicorn-green-dark);
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .pillar h3 {
|
|
color: var(--gunicorn-green-light);
|
|
}
|
|
|
|
.md-typeset .pillar p {
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
/* Frameworks Section */
|
|
.md-typeset .frameworks {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
margin: 2rem 0 3rem;
|
|
}
|
|
|
|
.md-typeset .framework {
|
|
background: var(--gunicorn-cream);
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
border-radius: 10px;
|
|
padding: 0.75rem 1.5rem;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
color: var(--gunicorn-green-dark);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .framework {
|
|
background: rgba(45, 48, 45, 0.9);
|
|
border-color: rgba(255, 255, 255, 0.08);
|
|
color: #e8f5ea;
|
|
}
|
|
|
|
.md-typeset .framework:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Feature Grid */
|
|
.md-typeset .feature-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 1.6rem;
|
|
margin: 2.5rem 0 3rem;
|
|
}
|
|
|
|
.md-typeset .feature-card {
|
|
background: var(--gunicorn-cream);
|
|
border-radius: 14px;
|
|
padding: 1.5rem;
|
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .feature-card {
|
|
background: rgba(45, 48, 45, 0.9);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.md-typeset .feature-card h3 {
|
|
margin-top: 0;
|
|
font-size: 1.2rem;
|
|
color: var(--gunicorn-green-dark);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .feature-card h3 {
|
|
color: #e8f5ea;
|
|
}
|
|
|
|
.md-typeset .feature-card p {
|
|
font-size: 0.95rem;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.md-typeset .feature-card a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
font-weight: 600;
|
|
color: var(--gunicorn-green);
|
|
}
|
|
|
|
.md-typeset .feature-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
/* Badge */
|
|
.md-typeset .badge {
|
|
display: inline-block;
|
|
font-size: 0.65rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 4px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.md-typeset .badge--new {
|
|
background: var(--gunicorn-green);
|
|
color: #fff;
|
|
}
|
|
|
|
/* Quick Links */
|
|
.md-typeset .quick-links {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.md-typeset .quick-link {
|
|
display: block;
|
|
padding: 1.25rem;
|
|
background: var(--gunicorn-cream);
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
text-decoration: none;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .quick-link {
|
|
background: rgba(45, 48, 45, 0.9);
|
|
border-color: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.md-typeset .quick-link:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.md-typeset .quick-link strong {
|
|
display: block;
|
|
font-size: 1.1rem;
|
|
color: var(--gunicorn-green-dark);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-typeset .quick-link strong {
|
|
color: var(--gunicorn-green-light);
|
|
}
|
|
|
|
.md-typeset .quick-link span {
|
|
font-size: 0.9rem;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
/* Community Links */
|
|
.md-typeset .community-links {
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
.md-typeset .community-links ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.md-typeset .community-links li {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
/* Footer */
|
|
.md-footer-meta__inner {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 960px) {
|
|
.md-typeset .hero {
|
|
padding: 2.25rem;
|
|
}
|
|
|
|
.md-typeset .hero__copy h1 {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.md-typeset .hero {
|
|
margin-top: 1.5rem;
|
|
padding: 1.75rem;
|
|
}
|
|
|
|
.md-typeset .hero__cta {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.md-typeset .hero__code {
|
|
width: 100%;
|
|
}
|
|
|
|
.md-typeset .pillars {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|