Explorer
project
images
index.html
styles.css
Dependencies
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
body {
font-family: 'Source Sans Pro', sans-serif;
color: #404040;
margin: 0;
}
/* =================
Typography
================= */
h1 {
font-size: 2.5rem;
font-weight: 400;
text-shadow: 0 2px #816fca;
}
h2 {
font-size: 2.25rem;
margin: 0.167em 0;
}
p {
font-size: 1.125rem;
line-height: 1.35;
}
.beta-text {
font-weight: 900;
}
.subheading {
color: #575757;
font-weight: 900;
margin-bottom: 0.5em;
}
.beta-text,
.subheading {
text-transform: uppercase;
}
.fine-print {
font-size: 0.75rem;
letter-spacing: 1px;
color: #858585;
}
/* =================
Flex containers
================= */
.intro,
.main-content {
display: flex;
flex-direction: column;
padding-left: 2em;
padding-right: 2em;
}
/* =================
Intro
================= */
.intro {
justify-content: center;
min-height: 250px;
text-align: center;
color: #fff;
background: #9480e4 url("images/intro-bg.png");
background-size: cover;
}
/* ====================
Main content
==================== */
.main-content {
align-items: center;
padding-top: 2.5em;
}
.img-main {
width: 120px;
border-radius: 50%;
}
/* =================
Form
================= */
/*
Challenge: Style the submit button
- The button should have the same font-family, width
and border-radius of the input elements
- Use the .btn selector to set the custom button styles;
use the slide as a guide
- Button colors:
- Background: #8a71ec
- Background on hover: #b7a7f6
*/
input {
font-family: inherit;
width: 100%;
padding: 0.5em;
margin-bottom: 0.75em;
border: 2px solid #d1d5db;
border-radius: 5px;
}
input:focus {
outline: none;
border-color: #8a71ec;
background-color: #e6e8ec;
}
/* =================
Media queries
================= */
@media (min-width: 576px) {
body {
display: flex;
}
h1 {
font-size: 5vw;
}
h2 {
font-size: 2.625rem;
}
.beta-text {
font-size: 1.25rem;
}
.intro,
.main-content {
width: 50%;
}
.intro {
min-height: 100vh;
}
.main-content {
justify-content: center;
padding-top: 0;
}
}