Skip to content
This repository

Version correctly referencing less.js #3

Merged
merged 2 commits into from about 2 years ago

2 participants

Marius Schulz Brendan Forster
Marius Schulz

Also, h1 and h2 headings now explicitly use the "Segoe UI Light" font (Chrome i.e. does not use "Segoe UI Light" when using "Segoe UI" and "font-size: 100;")

Marius Schulz

The "/less" part is necessary for less.js to parse the LESS code correctly

Brendan Forster shiftkey merged commit 132e3f0 into from February 06, 2012
Brendan Forster shiftkey closed this February 06, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Feb 06, 2012
Fixed less.js reference (rel attribute of <link>) 3104025
Slightly changed heading font-size, set <h1> and <h2> font-family to …
…"Segoe UI Light"
0a0d02d
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 15 additions and 7 deletions. Show diff stats Hide diff stats

  1. 4  demo.html
  2. 18  less/fonts.less
4  demo.html
... ...
@@ -1,9 +1,9 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3 3
 	<head>
4  
-		<link rel="stylesheet" type="text/css" href="less/metro.less" />
  4
+		<link rel="stylesheet/less" type="text/css" href="less/metro.less" />
5 5
 		<style>
6  
-			body { width: 800px; margin-left:auto; margin-right:auto; }
  6
+			body { width: 800px; margin: 0 auto; }
7 7
 		</style>
8 8
 		<script src="scripts/less-1.2.1.min.js" type="text/javascript"></script>
9 9
 	</head>
18  less/fonts.less
... ...
@@ -1,16 +1,24 @@
  1
+@fonts: "Segoe UI", "Segoe WP", "Helvetica Neue", Roboto, sans-serif;
  2
+
1 3
 body {
2  
-	font-family: "Segoe UI", "Segoe WP", "Helvetica Neue", Roboto, sans-serif;
  4
+	font-family: @fonts;
3 5
 }
4 6
 
5  
-h1,h2,h3,h4,h5,h6 
  7
+h1, h2, h3, h4, h5, h6 
6 8
 {
7  
-	font-weight: 100;
8 9
 	color: @accent;
  10
+	font-weight: 100;
9 11
 	line-height: 1em;
10 12
 	text-transform: lowercase;
11 13
 }
12  
-h1 { font-size: 4em;}
13  
-h2 { font-size: 3em; }
  14
+
  15
+h1, h2 {
  16
+	font-family: "Segoe UI Light", @fonts;
  17
+}
  18
+
  19
+h1 { font-size: 3.8em; }
  20
+h2 { font-size: 2em; }
  21
+
14 22
 h4 {
15 23
 	font-weight: normal;
16 24
 	text-transform: uppercase;
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.