Skip to content

Commit

Permalink
basic styling
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielecirulli committed Mar 5, 2014
1 parent f4d95b6 commit 3403e78
Show file tree
Hide file tree
Showing 14 changed files with 2,088 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.sass-cache/
Binary file added fonts/ClearSans-Bold-webfont.eot
Binary file not shown.
640 changes: 640 additions & 0 deletions fonts/ClearSans-Bold-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/ClearSans-Bold-webfont.woff
Binary file not shown.
Binary file added fonts/ClearSans-Light-webfont.eot
Binary file not shown.
670 changes: 670 additions & 0 deletions fonts/ClearSans-Light-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/ClearSans-Light-webfont.woff
Binary file not shown.
Binary file added fonts/ClearSans-Regular-webfont.eot
Binary file not shown.
669 changes: 669 additions & 0 deletions fonts/ClearSans-Regular-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/ClearSans-Regular-webfont.woff
Binary file not shown.
30 changes: 30 additions & 0 deletions fonts/clear-sans.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@font-face {
font-family: "Clear Sans";
src: url("ClearSans-Light-webfont.eot");
src: url("ClearSans-Light-webfont.eot?#iefix") format("embedded-opentype"),
url("ClearSans-Light-webfont.svg#clear_sans_lightregular") format("svg"),
url("ClearSans-Light-webfont.woff") format("woff");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: "Clear Sans";
src: url("ClearSans-Regular-webfont.eot");
src: url("ClearSans-Regular-webfont.eot?#iefix") format("embedded-opentype"),
url("ClearSans-Regular-webfont.svg#clear_sansregular") format("svg"),
url("ClearSans-Regular-webfont.woff") format("woff");
font-weight: 300;
font-style: normal;
}

@font-face {
font-family: "Clear Sans";
src: url("ClearSans-Bold-webfont.eot");
src: url("ClearSans-Bold-webfont.eot?#iefix") format("embedded-opentype"),
url("ClearSans-Bold-webfont.svg#clear_sansbold") format("svg"),
url("ClearSans-Bold-webfont.woff") format("woff");
font-weight: 700;
font-style: normal;
}

43 changes: 43 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>2048</title>

<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<h1>2048</h1>

<div class="game-container">
<div class="grid-container">
<div class="grid-row">
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
</div>
<div class="grid-row">
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
</div>
<div class="grid-row">
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
</div>
<div class="grid-row">
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
</div>
</div>
</div>
</div>
</body>
</html>
15 changes: 15 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@import url(fonts/clear-sans.css);
html, body {
margin: 0;
padding: 0;
background: #faf8ef;
color: #776E65;
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif; }

h1 {
font-size: 80px;
font-weight: bold; }

.container {
width: 600px;
margin: 0 auto; }
20 changes: 20 additions & 0 deletions style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@import "fonts/clear-sans.css";

html, body {
margin: 0;
padding: 0;

background: #faf8ef;
color: #776E65;
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
}

h1 {
font-size: 80px;
font-weight: bold;
}

.container {
width: 600px;
margin: 0 auto;
}

0 comments on commit 3403e78

Please sign in to comment.