scrimba
Frontend Career Path
Responsive design
Build a Responsive Layout with CSS Grid
The Mobile Layout
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
The Mobile Layout
Expand for more info
index.css
run
preview
console
html, body {
margin: 0;
padding: 0;
font-family: 'Manrope', sans-serif;
}

/* =================
Layout
================= */

main {
/*
Challenge:
1. Set up the "main" element as a grid container.
2. Specify a template of one column with 1fr width.
3. Place 1em of space between each grid item.
*/
}

/* =================
Article Card
================= */

a:hover, a:focus {
filter: brightness(0.9);
}

a:focus {
outline: 3px solid #5a5a5a;
box-shadow: 0 0 0 3px rgba(135,18,113,0.5);
transition: outline 0.2s ease, box-shadow 0.2s ease;
}

article {
border-radius: 0.2em;
background-color: #e5e5e5;
height: 100%;
}

.article-header {
box-sizing: border-box;
padding: 1em;
width: 100%;
}


/* =================
Typography
================= */

h1 {
color: #0F0F0F;
letter-spacing: 0.04em;
font-family: "Source Code Pro", sans-serif;
margin: 0;
padding: 0;
}

a {
text-decoration: none;
}

h2 {
font-size: 0.88rem;
color: #5D0E50;
margin: 0;
letter-spacing: 0.065em;
text-transform: uppercase;
}

h3 {
font-size: 1rem;
margin: .4em 0;
letter-spacing: 0.03em;
color: #111111;
font-weight: 500;
}

p {
margin: 0;
font-size: .85rem;
color: #7c7c7c;
}

/* =================
Images
================= */

img {
width: 100%;
border-top-left-radius: .2em;
border-top-right-radius: .2em;
}
Console
/index.html
-2:58