This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from danReynolds/ImportSupport
Import support
- Loading branch information
Showing
10 changed files
with
121 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.importee1 { | ||
background-color:red; | ||
color: white; | ||
width: 15rem; | ||
height: 5em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.importee2 { | ||
background-color:yellow; | ||
color: white; | ||
width: 25rem; | ||
height: 5em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/*Basic Test*/ | ||
@import url("importee1.css"); | ||
/*Folder Test*/ | ||
@import 'nested_imports/nested_importer.css'; | ||
|
||
.importer { | ||
background-color: brown; | ||
color: white; | ||
width: 10rem; | ||
height: 5em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.nested-importee1 { | ||
background-color:green; | ||
color: white; | ||
width: 30rem; | ||
height: 5em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.nested-importee2 { | ||
background-color:blue; | ||
color: white; | ||
width: 35rem; | ||
height: 5em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/*Parent Directory and Same Line Test */ | ||
@import url("../importee2.css"); @import url(nested_importee1.css); | ||
|
||
/*No URL test*/ | ||
@import "nested_importee2.css"; | ||
|
||
.nested-importer { | ||
background-color:orange; | ||
color: white; | ||
width: 20rem; | ||
height: 5em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>REM Unit polyfill</title> | ||
<!-- adding reference to Zurb Foundation for testing with larger file | ||
<title>REM Unit polyfill</title> | ||
<!-- adding reference to Zurb Foundation for testing with larger file | ||
that has REM values in it as well | ||
--> | ||
<link rel="stylesheet" type="text/css" href="css/foundation.css" /> | ||
<link rel="stylesheet" type="text/css" href="css/foundation.css" /> | ||
<!-- Standard CSS with some REM values, media queries are ignored --> | ||
<link rel="stylesheet" type="text/css" href="css/general.css" /> | ||
<!-- CSS containing @import lines, test importing of additional sheets --> | ||
<link rel="stylesheet" type="text/css" href="css/importer.css" /> | ||
<!-- ignore.css shows in normal browsers, but ones where we expect the REM.js to | ||
run then the REM rules should not get parsed. | ||
--> | ||
<link rel="stylesheet" type="text/css" href="css/ignore.css" data-norem /> | ||
|
||
<!-- Standard CSS with some REM values, media queries are ignored --> | ||
<link rel="stylesheet" type="text/css" href="css/general.css" /> | ||
<!-- ignore.css shows in normal browsers, but ones where we expect the REM.js to | ||
run then the REM rules should not get parsed. | ||
--> | ||
<link rel="stylesheet" type="text/css" href="css/ignore.css" data-norem /> | ||
</head> | ||
<body> | ||
<!-- In a REM supported browser, you see a green box and very small text. | ||
In an unsupport browser, but successful process should show a | ||
blue box and large paragraph text outside it. | ||
--> | ||
<div class="test">Hello World!</div> | ||
<p>This thing works.</p> | ||
<script src="js/rem.min.js" type="text/javascript"></script> | ||
<div class="test">Hello World!</div> | ||
<div class="importer">Importer Test</div> | ||
<div class="importee1">Basic Test</div> | ||
<div class="nested-importer">Folder Test</div> | ||
<div class="importee2">Parent Directory Test</div> | ||
<div class="nested-importee1">Same Line Test</div> | ||
<div class="nested-importee2">No URL Test</div> | ||
<p>This thing works.</p> | ||
<script src="js/rem.js" type="text/javascript"></script> | ||
</body> | ||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.