scrimba
Frontend Career Path
Learn UI design
Refactoring
Initial Media Queries
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
Initial Media Queries
Expand for more info
index.css
run
preview
console
@import url('https://fonts.googleapis.com/css?family=Nunito:400,700&display=swap');

* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
}

body {
background: #3b4acd;
color: #A5B2D3;
padding: .5em;
font-family: serif;
height: 100vh;
text-align:center;
}

header {
display: flex;
align-items: center;
justify-content: center;
}

header svg {
width: 1.5em;
cursor: pointer;
}

a {
color: white;
}


ul {
list-style: none;
padding: 0;
}

a.logo {
font-weight: bold;
margin: 0 1em;
}

a.cta-btn {
margin-left: auto;
background: #FC85AE;
padding: 1em;
display: inline-block;
border-radius: 2em;
font-size: .6em;
color: #303A52;
font-weight: bold;
}

/* Navigation */


nav {
position: fixed;
background: #576483;
height: 100vh;
left: 0;
top: 0;
width: 80%;
visibility: hidden;
transform: translateX(-50%);
opacity: 0;
transition: all .3s;
text-align: center;
}


nav p {
margin-bottom: 0;
}

nav svg {
cursor: pointer;
width: 1em;
}

nav ul li a {
display: block;
padding: .2em;
font-size: 1.8em;
}

.selected {
background: #9E579D;
}

.open-nav {
visibility: unset;
opacity: 1;
transform: translateX(0);
}


/* Main Section */


h1 {
color: white;
margin-top: 1em;
}

.panel {
background: #39445F;
border-radius: .3em;
}

h3 {
color: #FC85AE;
margin: 0;
font-size: 2em;
}

ul.data li p {
color: white;
font-weight: bold;
font-size: 1.8em;
margin: .3em 0 1em;
}

ul.data li:last-child p {
margin-bottom: 0;
}
ul.secondary {
margin-top: 2em;
}
ul.secondary li p {
font-size: 1.3em;
}

main {
border: 1px solid white;
}


/* Your Fixes Below */

body {
background: #303A52;
font-family: 'Nunito', sans-serif;
}

nav {
background: #2C354A;
}

main {
border: unset;
}

a {
text-decoration: none;
}

p {
line-height: 1.4em;
}

a.cta-btn {
font-size: .9em;
padding: .2em .4em;
border-radius: .2em;
}

nav ul li a {
font-size: 1.2em;
padding: .8em 1em;
}

h3 {
font-size: unset;
}

nav {
text-align: left;
}

.inner-wrapper {
padding: 1em;
}
.panel {
padding: .5em 1em;
margin-bottom: 2em;
}


/* Large Phones */

@media (min-width: 0px) {

}

@media (min-width: 0px) {

}


/*

- White Space
- Color
- Contrast
- Scale
- Alignment
- Typography
- Visual Hierarchy

*/



/* Ignore this -- for displaying the viewport width */
.width-container {
display: none;
}
.display-width {
display: block;
position: absolute;
right: 0;
top: 0;
background-color: #E6E6E6;
padding: .3em;
font-size: .85em;
}
Console
/index.html
-6:14