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,
.top-text,
.subheading {
text-transform: uppercase;
}
.top-text {
font-size: 0.875rem;
font-weight: 900;
padding-top: 0.25em;
border-top: 5px solid;
order: -1;
margin: 0 auto;
}
.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: space-between;
min-height: 250px;
text-align: center;
color: #fff;
background: #9480e4 url("images/intro-bg.png");
background-size: cover;
padding-bottom: 1.5em;
}
/* ====================
Main content
==================== */
.main-content {
align-items: center;
padding-top: 2.5em;
}
.img-main {
width: 120px;
border-radius: 50%;
}
.main-content p,
form {
max-width: 450px;
}
/* =================
Form
================= */
input,
button {
font-family: inherit;
width: 100%;
border-radius: 5px;
}
input {
padding: 0.5em;
margin-bottom: 0.75em;
border: 2px solid #d1d5db;
}
input:focus {
outline: none;
border-color: #8a71ec;
background-color: #e6e8ec;
}
.btn {
text-transform: uppercase;
font-weight: 900;
letter-spacing: 1px;
padding: 1em 0;
border: none;
cursor: pointer;
}
.btn-primary {
color: white;
background-color: #8a71ec;
margin-top: 1em;
}
.btn-primary:hover,
.btn-primary:focus {
background-color: #b7a7f6;
}
/* =================
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;
}
}