Skip to content

Commit

Permalink
lesson02
Browse files Browse the repository at this point in the history
  • Loading branch information
gyulanemeth committed Dec 19, 2016
1 parent 1a5fb25 commit 23f0744
Show file tree
Hide file tree
Showing 216 changed files with 6,288 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lesson02/step-00/README.md
@@ -0,0 +1,3 @@
Defaults from lesson01 - step-10.

Georgia font-family added to paragraphs.
29 changes: 29 additions & 0 deletions lesson02/step-00/button.css
@@ -0,0 +1,29 @@
.button {
display: inline-block;

padding: 10px;
margin-top: 15px;

border-radius: 30px;

font-size: 16px;
line-height: 16px;

text-decoration: none;

transition: all .5s;
}

.button:hover {
box-shadow: 2px 2px 5px #888888;
}

@media all and (max-width: 599px) {
.button {
display: block;
margin: 30px 50px;
padding: 20px;

text-align: center;
}
}
33 changes: 33 additions & 0 deletions lesson02/step-00/colors.css
@@ -0,0 +1,33 @@
body {
background-color: #F4F4F4;
}

.bg-white {
background-color: #FFFFFF;
color: #58585A;
}

.bg-brown {
background-color: #F8F7F0;
color: #58585A;
}

.bg-gray {
background-color: #58585A;
color: #FFFFFF;
}

.bg-red {
background-color: #C92C1E;
color: #FFFFFF;
}

.bg-blue {
background-color: #2879CB;
color: #FFFFFF;
}

.bg-dark-brown {
background-color: #E8E3CE;
color: #58585A;
}
42 changes: 42 additions & 0 deletions lesson02/step-00/defaults.css
@@ -0,0 +1,42 @@
html, body, div, p, ul, ol, li, h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
}

body {
font-size:10px;
line-height:10px;
}

h1, h2, h3, h4, h5, h6 {
font-family: "Roboto", sans-serif;
}


h1 {
font-size: 28px;
line-height: 32px;

margin-bottom: 24px;
}

h2 {
font-size: 24px;
line-height: 28px;

margin-bottom: 20px;
}

h3 {
font-size: 20px;
line-height: 24px;

margin-bottom: 16px;
}

p {
font-size: 16px;
line-height: 20px;

font-family: Georgia, Arial, sans-serif;
}
20 changes: 20 additions & 0 deletions lesson02/step-00/images.css
@@ -0,0 +1,20 @@
img {
width: 100%;
height: auto;

display: block;

margin: 0;
}

.w200 {
max-width: 200px;
}

@media all and (max-width: 599px) {
.w200 {
margin-bottom: 20px;
margin-left: auto;
margin-right: auto;
}
}
Binary file added lesson02/step-00/img/logo2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lesson02/step-00/img/logo3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions lesson02/step-00/index.html
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Simple page layout</title>

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>

<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" />

<link rel="stylesheet" href="defaults.css" />
<link rel="stylesheet" href="colors.css" />
<link rel="stylesheet" href="layout.css" />
<link rel="stylesheet" href="button.css" />
<link rel="stylesheet" href="images.css" />
</head>
<body>
Content
</body>
</html>
48 changes: 48 additions & 0 deletions lesson02/step-00/layout.css
@@ -0,0 +1,48 @@
.container600 {
width: 600px;
margin: 0 auto;
}

.cols .w33p {
width: 33.33%;
float: left;
}

.cols .w66p {
width: 66.66%;
float: left;
}

.clr {
clear: both;
}

.marginTop100 {
margin-top: 100px;
}

.padding30 {
padding: 30px;
}

.paddingLeft10 {
padding-left: 10px;
}

.center {
text-align: center;
}

@media all and (max-width: 599px) {
.container600 {
width: 100%;
}

.reorder .w33p {
width: 100%;
}

.reorder .w66p {
width: 100%;
}
}
1 change: 1 addition & 0 deletions lesson02/step-01/README.md
@@ -0,0 +1 @@
Adding new container: .container800
29 changes: 29 additions & 0 deletions lesson02/step-01/button.css
@@ -0,0 +1,29 @@
.button {
display: inline-block;

padding: 10px;
margin-top: 15px;

border-radius: 30px;

font-size: 16px;
line-height: 16px;

text-decoration: none;

transition: all .5s;
}

.button:hover {
box-shadow: 2px 2px 5px #888888;
}

@media all and (max-width: 599px) {
.button {
display: block;
margin: 30px 50px;
padding: 20px;

text-align: center;
}
}
33 changes: 33 additions & 0 deletions lesson02/step-01/colors.css
@@ -0,0 +1,33 @@
body {
background-color: #F4F4F4;
}

.bg-white {
background-color: #FFFFFF;
color: #58585A;
}

.bg-brown {
background-color: #F8F7F0;
color: #58585A;
}

.bg-gray {
background-color: #58585A;
color: #FFFFFF;
}

.bg-red {
background-color: #C92C1E;
color: #FFFFFF;
}

.bg-blue {
background-color: #2879CB;
color: #FFFFFF;
}

.bg-dark-brown {
background-color: #E8E3CE;
color: #58585A;
}
42 changes: 42 additions & 0 deletions lesson02/step-01/defaults.css
@@ -0,0 +1,42 @@
html, body, div, p, ul, ol, li, h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
}

body {
font-size:10px;
line-height:10px;
}

h1, h2, h3, h4, h5, h6 {
font-family: "Roboto", sans-serif;
}


h1 {
font-size: 28px;
line-height: 32px;

margin-bottom: 24px;
}

h2 {
font-size: 24px;
line-height: 28px;

margin-bottom: 20px;
}

h3 {
font-size: 20px;
line-height: 24px;

margin-bottom: 16px;
}

p {
font-size: 16px;
line-height: 20px;

font-family: Georgia, Arial, sans-serif;
}
20 changes: 20 additions & 0 deletions lesson02/step-01/images.css
@@ -0,0 +1,20 @@
img {
width: 100%;
height: auto;

display: block;

margin: 0;
}

.w200 {
max-width: 200px;
}

@media all and (max-width: 599px) {
.w200 {
margin-bottom: 20px;
margin-left: auto;
margin-right: auto;
}
}
Binary file added lesson02/step-01/img/logo2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lesson02/step-01/img/logo3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions lesson02/step-01/index.html
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Simple full-width stripes layout</title>

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>

<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" />

<link rel="stylesheet" href="defaults.css" />
<link rel="stylesheet" href="colors.css" />
<link rel="stylesheet" href="layout.css" />
<link rel="stylesheet" href="button.css" />
<link rel="stylesheet" href="images.css" />
</head>
<body class="bg-gray">
<div class="container800 bg-white">
wide container
</div>
<div class="container600 bg-blue">
narrow container
</div>
</body>
</html>

0 comments on commit 23f0744

Please sign in to comment.