/** * A collection of popular layouts and patterns made with CSS (https://csslayout.io) * (c) 2019 - 2020 Nguyen Huu Phuoc */ :root { --background-color: #e7d900; --text-color: #1e1d6e; } 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; } /* Layout */ .container { margin: 0 auto; max-width: 64rem; padding: 0 1rem; } .content { display: flex; margin: 1rem 0; } .main { flex: 1; overflow: auto; } .sidebar { display: none; } /* Sidebar */ .sidebar__inner { position: sticky; top: 1rem; } /* Hero */ .hero { background: var(--background-color); display: flex; justify-content: center; padding-bottom: 2rem; } .hero__logo { display: flex; justify-content: center; } .hero__logo img { height: 16rem; object-fit: cover; width: 24rem; } .hero__heading { color: var(--text-color); font-size: 3rem; margin: 2rem 0; text-align: center; text-transform: capitalize; } .hero__subheading { color: var(--text-color); font-size: 2rem; margin: 2rem 0; text-align: center; } /* Responsive */ @media (min-width: 640px) { .sidebar { display: block; flex: 0 0 8rem; margin-left: 0.5rem; } } @media (min-width: 768px) { .sidebar { flex-basis: 10rem; } } @media (min-width: 1024px) { .sidebar { flex-basis: 12rem; margin-left: 1rem; } }