/** * A collection of popular layouts and patterns made with CSS (https://csslayout.io) * (c) 2019 - 2021 Nguyen Huu Phuoc */ :root { --background-color: #e7d900; --color-blue-6: #2563EB; --color-gray-2: #E5E7EB; --color-gray-5: #6B7280; --color-gray-8: #27272A; --color-gray-9: #111827; } body { font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; margin: 0; } * { box-sizing: border-box; } a { text-decoration: none; } ::-webkit-scrollbar { height: 0.5rem; width: 0.5rem; } ::-webkit-scrollbar-thumb { background-color: var(--color-gray-5); border-radius: 0.5rem; } ::-webkit-scrollbar-track { background-color: transparent; border-radius: 0.5rem; } /* Layout */ .container { margin: 0 auto; max-width: 64rem; padding: 0 1rem; } .content { display: flex; margin: 4rem 0; } .main { flex: 1; overflow: auto; } .sidebar { display: none; } /* Sidebar */ .sidebar__inner { position: sticky; top: 1rem; } /* Hero */ .hero { --current-background-color: var(--background-color); background: var(--background-color); display: flex; justify-content: center; padding-bottom: 1rem; } .hero__logo { display: flex; justify-content: center; } .hero__heading { color: var(--color-gray-9); font-size: 2rem; line-height: 1.5; text-align: center; text-transform: capitalize; } .hero__subheading { color: var(--color-gray-9); font-size: 1.5rem; line-height: 1.5; text-align: center; } /* Prism theme Credit to https://github.com/tailwindlabs/tailwindcss.com/blob/master/src/css/prism.css */ pre { background: var(--color-gray-8); border: none; border-radius: 0px; box-shadow: none; color: #FFF; font-family: "Source Code Pro", monospace; font-size: 1rem; height: 100%; line-height: 1.5; margin: 0px; overflow: auto; padding: 1rem; } .token.tag, .token.class-name, .token.selector, .token.selector .class, .token.function { color: #E879F9; } .token.attr-name, .token.keyword, .token.rule, .token.operator, .token.pseudo-class, .token.important { color: #22D3EE; } .token.attr-value, .token.class, .token.string, .token.number, .token.unit, .token.color { color: #BEF264; } .token.punctuation, .token.module, .token.property { color: #BAE6FD; } .token.atapply .token:not(.rule):not(.important) { color: inherit; } .language-shell .token:not(.comment) { color: inherit; } .language-css .token.function { color: inherit; } .token.comment { color: #A1A1AA; } /* Responsive */ @media (min-width: 640px) { .sidebar { display: block; flex: 0 0 8rem; margin-left: 0.5rem; } } @media (min-width: 768px) { .sidebar { flex-basis: 12rem; margin-left: 1rem; } } @media (min-width: 1024px) { .sidebar { flex-basis: 16rem; margin-left: 2rem; } }