Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive-Design-2 #876

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
331 changes: 330 additions & 1 deletion css/index.css
Original file line number Diff line number Diff line change
@@ -1 +1,330 @@
/* Use your CSS from RWD - I here. IF you don't have CSS, use the solution CSS from RWD - I*/
/* Use your CSS from RWD - I here. IF you don't have CSS, use the solution CSS from RWD - I*//* Use your own code or past solution for Great Idea Web Page CSS here! */


/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

/* Set every element's box-sizing to border-box */
* {
box-sizing: border-box;
}

html, body {
height: 100%;
font-family: 'Titillium Web', sans-serif;
}

h1, h2, h3, h4, h5 {
font-family: 'Bangers', cursive;
letter-spacing: 1px;
margin-bottom: 15px;
}

/* Copy and paste your work from yesterday here and start to refactor into flexbox */

* {
box-sizing: border-box;
}

html {
font-size: 62.5%;
}
.massContainer {
display: flex;
flex-direction: column;
margin: 0 15% 0 15%;


}

hr {
color: grey;
width: 100%;
size: .5rem;
}

.navContainer {
display: flex;
flex-direction: row;
justify-content: center;
width: 70%;
height: 8%;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using percentages for heights and top/bottom margins & padding. Vertical scroll bars are perfectly fine and we don't want content to get super squished if someone's window height is small, they will just have to scroll more downwards.

margin-bottom: 30px;
position: fixed;
background: lavender;
border: .2rem black;
border-style: none solid solid none;
}

.navBar {
display: flex;
flex-direction: row;
justify-content: space-around;
width: 75%;
margin-top: 4%;
}

a {
text-decoration: none;
color: black;
font-style: italic;
align-self: space-around;
font-size: 1.6rem;
}


.logo {
display: flex;
justify-content: flex-end;
margin: 2%;
}


/* ==== index.html === */

.callToAction {
display: flex;
flex-direction: row;
justify-content: space-evenly;
margin-top: 15%;
}

.iod {
margin-top: 5%;
text-align: center;

}

h1 {
font-size: 7.5rem;
}

.button {
border: 1px solid black;
width: 30%;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job with the percentages for widths

margin-left: 29%;
font-size: 2rem;
height: 20%;
padding: 3%;



}


.sectionOne {
display: flex;
flex-direction: row;
justify-content: space-evenly;
margin: 2%;

}

.middle-img {
display: flex;
justify-content: space-evenly;
margin: 3%;
}

.sectionTwo {
display: flex;
flex-direction: row;
justify-content: space-evenly;
margin: 5%;
word-wrap: break-word
;
}

.footer {
display: flex;
flex-direction: column;
margin: 2%;
}

h4 {
align-self: center;
}

p {
font-size: 1.6rem;
}

/* ==== end of index.html ==== */



/* =========== Tablet View ===========*/

@media (max-width: 800px) {
.navContainer {
display: flex;
flex-direction: column-reverse;
background: none;
border: none;
position: relative;
margin-left: 10%;
margin-top: 20px;

}

.navBar {
display: flex;
flex-direction: row;
justify-content: space-around;
padding: 10px;
margin-left: 20%;
margin-bottom: 20%;

}

a {
margin : 2%;
font-size: 2rem;
border-width: 100%;
padding: 4%;

}

.logo {
width: 80%;
align-items: center;
margin-left: 20%;
margin-top: 50%;
}

.circle {
display: none;
}

}
/* =========== Mobile View ===========*/

@media (max-width: 500px) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job with your breakpoints 💯


.massContainer {
margin: 0 15% 0 15%;
}

.navContainer {
display: flex;
flex-direction: column-reverse;
background: none;
border: none;
position: relative;
margin-left: 20%;
margin-top: 10%;

}

.navBar {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 10%;

}

.logo {
width: 60%;
align-items: center;
margin-left: 35%;
margin-bottom: 20%;
margin-top: 50%;
}

a {
margin : 2%;
font-size: 25px;
border-width: 100%;
padding: 4% 200%;

border-bottom: 1px solid black;

}

a:first-of-type {
border-top: 1px solid black;
padding: 4% 200%;
}
.callToAction {
width: 60%;
}

.iod {
width: 10%;
height: 4%;
margin-top: 80%;
margin-bottom: 10%;

}

.button {
margin-left: 100%;
border: none;
}

.circle {
display: none;
}

.sectionOne {
flex-direction: column;
}

.sectionTwo {
flex-direction: column;
}

.services, .product, .vision, .features, .about{
margin: 3%;
}

}

Loading