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

Learning-CSS #2492

Open
wants to merge 1 commit 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
26 changes: 19 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Static Template</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Aprendendo CSS</title>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<h1>This is a static template, there is no bundler or bundling involved!</h1>
<h1>Aplicando estilo (body)</h1>

<main>
<h2>Sou a MAIN</h2>
<section id="container">
<h2>Título da Section Container</h2>

<div class="box1"><p>DIV 1</p></div>
<div class="box2"><p>DIV 2</p></div>
<div class="box3"><p>DIV 3</p></div>
</section>
</main>
</body>
</html>
</html>
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "static",
"name": "aprendendo-css",
"version": "1.0.0",
"description": "This is a static template with no bundling",
"description": "",
"main": "index.html",
"scripts": {
"start": "serve",
Expand All @@ -11,11 +11,7 @@
"type": "git",
"url": "git+https://github.com/codesandbox-app/static-template.git"
},
"keywords": [
"static",
"template",
"codesandbox"
],
"keywords": [],
"author": "Ives van Hoorne",
"license": "MIT",
"bugs": {
Expand All @@ -25,4 +21,4 @@
"devDependencies": {
"serve": "^11.2.0"
}
}
}
54 changes: 54 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
pesos
0. * (seletor universal) tem o menor peso

1. tag (type selector)

10. class e attribute selector

100. id selector


*/

body {
background-color: cornsilk;
}

* {
margin: 3;
}

main {
width: 450px;
height: 300px;
border: solid burlywood;
}

#container {
width: 200px;
height: 220px;
border: solid brown;
}

.box1 {
width: 50px;
height: 20px;
background-color: chocolate;
}

.box2 {
width: 50px;
height: 20px;
background-color: orange;
}

.box3 {
width: 50px;
height: 20px;
background-color: goldenrod;
}

p {
color: white;
}