Skip to content

Commit

Permalink
Initial Commit - Fluid Grid Equation only
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmist committed Jul 21, 2011
0 parents commit 64a14a0
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<link href="styles.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Test</h1>
<div id="box">Box</div>
</body>
</html>
3 changes: 3 additions & 0 deletions responsive.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*
Responsive Less
*/
9 changes: 9 additions & 0 deletions responsive.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Responsive Less
*/

.flex(@target: 100px, @context:100px){
@w: (@target/@context)*100;
@ww: ~`@{w}.toFixed(2) + "%"`;
width: @ww;
}
11 changes: 11 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
Responsive Less
*/
h1 {
border: 1px solid red;
color: red;
}
#box {
width: 1.04%;
background: #ccc;
}
11 changes: 11 additions & 0 deletions styles.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@import 'responsive.less';

h1{
border: 1px solid red;
color: red;
}

#box{
.flex(10, 960);
background: #ccc;
}

0 comments on commit 64a14a0

Please sign in to comment.