Skip to content
Permalink
52620412a1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
843 lines (806 sloc) 18.9 KB
/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */
/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */
html {
color: #222;
font-size: 1em;
line-height: 1.4;
}
/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* Vendor-prefixed and regular ::selection selectors cannot be combined:
* https://stackoverflow.com/a/16982510/7133471
*
* Customize the background color to match your design.
*/
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
/*
* A better looking default horizontal rule
*/
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/
audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle;
}
/*
* Remove default fieldset styles.
*/
fieldset {
border: 0;
margin: 0;
padding: 0;
}
/*
* Allow only vertical resizing of textareas.
*/
textarea {
resize: vertical;
}
/* ==========================================================================
Browser Upgrade Prompt
========================================================================== */
.browserupgrade {
margin: 0.2em 0;
background: #ccc;
color: #000;
padding: 0.2em 0;
}
/* ==========================================================================
Author's custom styles
========================================================================== */
* {
box-sizing: border-box;
}
h2 {
font-family: 'Exo', sans-serif;
font-weight: 500;
font-size: 30px;
margin: 0;
}
p {
font-family: 'Exo', sans-serif;
font-size: 15px;
}
em {
color: #ff6d6d;
}
.columns .columns3 p {
text-align: center;
}
button {
border: none;
}
footer #newsletter ul {
display: flex;
flex-direction: row;
}
footer #newsletter ul li {
margin: 20px;
}
#main7 form input::placeholder {
color: white;
}
footer #newsletter form button img {
width: 100%;
}
/* part 1----------------------------------------*/
#main1 {
background-image: url("../img/main1-background.jpg");
background-size: cover;
background-repeat: no-repeat;
width: 100%;
height: 200px;
display: flex;
align-items: center;
justify-content: center;
}
.center {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
width: 60%;
margin: auto;
}
h1 {
font-family: 'Exo', sans-serif;
font-weight: 200;
font-size: 15px;
text-align: center;
}
#topbutton {
background-color: #ff6d6d;
padding: 5px 20px;
margin: auto;
color: white;
border-radius: 2px;
font-weight: 200;
}
#main1 p {
font-size: 8px;
}
/* part 2--------------------------------------*/
#main2 {
width: 100%;
height: 500px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.dog {
margin: auto;
padding: 0 40px
}
#main2 picture img {
width: 100%;
height: 200px;
}
#main2 h3 {
font-family: 'Exo', sans-serif;
padding-left: 0;
}
/* part 3---------------------------------------*/
#main3 {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: 50px auto;
}
h3 {
font-family: 'Exo', sans-serif;
color: #ff6d6d;
font-size: 10px;
margin: auto;
padding: 20px 20px 0px 20px;
}
.columns3 {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: 20px;
}
#main3 p {
padding: 40px;
padding-top: 0px;
margin-top: 0px;
margin-bottom: 0px;
}
/* part 4----------------------------------------*/
#main4 {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: 50px auto;
margin-top: 0;
}
#main4 picture img {
width: 100%;
height: 200px;
}
#main4 .dog h3 {
padding: 0;
margin-top: 20px;
}
/* part 5-----------------------------------------*/
#main5 {
background-image: url("../img/main5-background.png");
background-size: cover;
background-repeat: no-repeat;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: 50px auto;
}
#main5 .columns .columns3 {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: 30px;
}
#main5 .columns .columns3 h3 {
padding-top: 0;
font-weight: 500;
}
#main5 .columns .columns3 h4 {
font-family: 'Exo', sans-serif;
font-weight: 500;
margin-bottom: 0;
color: white;
}
#main5 .columns .columns3 p {
padding: 0 40px 0 40px;
}
li {
list-style: none;
margin-bottom: 20px;
}
#main5 ul li img {
filter: grayscale(1);
}
/* part 6---------------------------------------*/
#main6 {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: auto;
margin-top: 50px;
}
#main6 p {
margin: auto;
padding: 40px;
}
#main6 picture img {
width: 50%;
height: 150px;
margin: auto;
margin-top: 10px;
}
/* part 7 ------------------------------------*/
#main7 {
background-color: #323969;
padding: 30px;
position: relative;
}
#main7 img {
width: 10%;
position: absolute;
top: 66%;
right: 50%;
}
#main7 h3 {
text-align: center;
margin: auto;
}
#main7 h2 {
font-family: 'Exo', sans-serif;
color: white;
text-align: center;
margin: auto;
margin-bottom: 20px;
}
form {
width: 80%;
margin: auto;
}
label {
font-family: 'Exo', sans-serif;
color: white;
}
form button {
background-color: #ff6d6d;
width: 50%;
}
input {
width: 100%;
margin: 10px auto;
padding: 10px;
border: solid white 1px;
border-radius: 5px;
background-color: rgba(255,255,255, .2)
}
#main7 form button {
width: 90%;
padding: 10px;
margin: 10px auto;
border-radius: 5px;
box-shadow: 1px 2px 5px black ;
}
#main7 form input::placeholder {
font-family: 'Exo', sans-serif;
color: white;
font-size: 10px;
}
#main7 p {
text-align: center;
color: white;
margin: 30px auto;
opacity: 50%;
}
/* footer------------------------------------*/
footer {
padding: 30px;
}
footer #newsletter form {
display: flex;
flex-direction: row;
}
footer #newsletter form input {
width: 80%;
margin: 0;
border: solid 1px grey;
border-right: 0;
}
footer #newsletter form button {
width: 20%;
margin: 0;
}
@media (min-width: 750px) {
/* part 1---------------------------------------*/
#main1 {
height: 500px;
}
h1 {
font-size: 30px;
}
/* part 2---------------------------------------*/
#main2 {
flex-direction: row;
height: 410px;
}
.dog {
width: 60%;
margin: auto;
padding: 0 40px;
}
#main2 picture img {
width: 100%;
height: 400px;
padding: 5%;
}
/* part 3---------------------------------------*/
#main3 h2 {
margin-bottom: 20px;
}
.columns {
display: flex;
flex-direction: row;
justify-content: space-around;
}
.columns3 {
width: 26%;
}
#main3 .columns .columns3 img {
height: 50px;
}
#main3 .columns .columns3 h4 {
margin-bottom: 0;
}
/* part 4----------------------------------------*/
#main4 {
flex-direction: row;
}
#main4 picture img {
width: 50%;
padding: 0 40px;
}
#main4 .dog {
width: 50%;
margin-left: 0;
}
/* part 5----------------------------------------*/
#main5 .columns .columns3 h4 {
margin-bottom: 0;
}
#main5 .columns .columns3 img {
height: 50px;
}
#main5 .columns .columns3 {
margin: 100px 30px;
margin-bottom: 20px;
}
#main5 ul {
display: flex;
flex-direction: row;
justify-content: space-around;
}
#main5 ul li img {
width: 50%;
}
#main5 .columns .columns3 p {
padding: 0 10px 0 10px;
}
/* part 6-----------------------------------------*/
#main6 p {
width: 50%;
margin: 20px auto;
text-align: center;
padding: 5px;
}
#main6 picture img {
width: 70%;
height: 250px;
margin-top: 40px;
}
/* part 7-----------------------------------------*/
#main7 img {
width: 15%;
position: absolute;
top: 42%;
right: 12%;
}
#main7 h2 {
width: 60%;
text-align: center;
}
#main7 form {
display: flex;
flex-direction: row;
}
input {
width: 25%;
margin: 10px;
padding: 10px;
border: solid white 1px;
border-radius: 5px;
}
#main7 form button {
width: 20%;
padding: 10px;
margin: 10px;
border-radius: 5px;
box-shadow: 1px 2px 5px black ;
}
#main7 form input::placeholder {
font-size: 10px;
}
/* footer----------------------------------------*/
footer {
display: flex;
flex-direction: row;
}
footer input {
width: 80%;
}
footer button {
width: 30%;
padding: 5px 10px;
margin: 0;
box-shadow: 2px 2px 5px black;
}
footer p {
margin: 20px 50px;
}
footer div {
width: 20%;
}
footer div p {
font-size: 10px;
margin: 0;
}
#newsletter {
width: 20%;
}
footer form {
display: flex;
flex-direction: row;
}
ul {
display: flex;
justify-content: space-between;
margin: auto;
padding: 0;
}
}
@media (min-width: 1000px) {
/* part 1---------------------------------------*/
#main1 {
height: 800px;
}
h1 {
font-size: 55px;
}
/* part 2---------------------------------------*/
#main2 {
height: 600px;
}
.dog {
width: 60%;
margin: 0;
padding: 0 5%;
}
#main2 picture img {
width: 40%;
height: 580px;
}
/* part 3---------------------------------------*/
#main3 h2 {
margin-bottom: 20px;
}
.columns {
display: flex;
flex-direction: row;
justify-content: space-around;
}
.columns3 {
width: 26%;
}
#main3 .columns .columns3 img {
height: 50px;
}
#main3 .columns .columns3 h4 {
margin-bottom: 0;
}
/* part 4----------------------------------------*/
#main4 {
height: 600px;
}
#main4 picture img {
width: 50%;
height: 580px;
padding: 0 40px;
}
#main4 .dog {
width: 50%;
margin-left: 0;
padding: 5%;
}
/* part 5----------------------------------------*/
#main5 .columns .columns3 img {
height: 100px;
}
#main5 .columns .columns3 {
margin: 150px 100px;
margin-bottom: 20px;
}
#main5 ul {
display: flex;
flex-direction: row;
justify-content: space-around;
}
#main5 ul li img {
width: 80%;
}
#main5 ul li {
margin: 0 60px;
}
/* part 6-----------------------------------------*/
#main6 {
height: 630px;
}
#main6 h3 {
margin: 0;
}
#main6 p {
width: 50%;
margin: 20px auto;
text-align: center;
}
#main6 picture img {
width: 70%;
height: 400px;
margin-top: 40px;
}
/* part 7-----------------------------------------*/
#main7 img {
width: 15%;
position: absolute;
top: 22%;
right: 12%;
}
#main7 h2 {
width: 60%;
text-align: center;
}
#main7 form {
display: flex;
flex-direction: row;
}
input {
width: 25%;
margin: 20px;
padding: 10px;
border: solid white 1px;
border-radius: 5px;
}
#main7 form button {
padding: 20px;
margin: 20px;
border-radius: 5px;
box-shadow: 1px 2px 5px black ;
}
#main7 p {
font-size: 20px;
}
#main7 form input::placeholder {
font-size: 15px;
}
/* footer----------------------------------------*/
footer {
display: flex;
flex-direction: row;
}
footer p {
margin: 20px 50px;
}
footer div p {
font-size: 15px;
margin: 0;
}
#newsletter {
width: 20%;
}
footer form {
display: flex;
flex-direction: row;
}
footer #newsletter form input {
padding: 10px;
}
}
/* ==========================================================================
Helper classes
========================================================================== */
/*
* Hide visually and from screen readers
*/
.hidden {
display: none !important;
}
/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
* causes content to wrap 1 word per line:
* https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/
.sr-only {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
white-space: nowrap;
width: 1px;
/* 1 */
}
/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
white-space: inherit;
width: auto;
}
/*
* Hide visually and from screen readers, but maintain layout
*/
.invisible {
visibility: hidden;
}
/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* `contenteditable` attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.clearfix:before,
.clearfix:after {
content: " ";
/* 1 */
display: table;
/* 2 */
}
.clearfix:after {
clear: both;
}
/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
These examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */
@media only screen and (min-width: 35em) {
/* Style adjustments for viewports that meet the condition */
}
@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */
}
/* ==========================================================================
Print styles.
Inlined to avoid the additional HTTP request:
https://www.phpied.com/delay-loading-your-print-css/
========================================================================== */
@media print {
*,
*:before,
*:after {
background: transparent !important;
color: #000 !important;
/* Black prints faster */
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
/*
* Don't show links that are fragment identifiers,
* or use the `javascript:` pseudo protocol
*/
a[href^="#"]:after,
a[href^="javascript:"]:after {
content: "";
}
pre {
white-space: pre-wrap !important;
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
/*
* Printing Tables:
* https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
*/
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}