forked from mdn/css-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a00d904
commit 0a50ffe
Showing
15 changed files
with
570 additions
and
608 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_Store | ||
.vscode/* |
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,61 +1,59 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Values and Units: calc</title> | ||
<link rel="stylesheet" href="../styles.css"> | ||
<link rel="stylesheet" href="../styles.css" /> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
.box { | ||
padding: 1em; | ||
border-radius: .5em; | ||
border: 5px solid rebeccapurple; | ||
background-color: lightblue; | ||
} | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
.box { | ||
padding: 1em; | ||
border-radius: 0.5em; | ||
border: 5px solid rebeccapurple; | ||
background-color: lightblue; | ||
} | ||
</style> | ||
|
||
<style class="editable"> | ||
.wrapper { | ||
width: 400px; | ||
} | ||
.wrapper { | ||
width: 400px; | ||
} | ||
|
||
.box { | ||
width: calc(20% + 100px); | ||
} | ||
.box { | ||
width: calc(20% + 100px); | ||
} | ||
</style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<body> | ||
<section class="preview"> | ||
<div class="wrapper"> | ||
<div class="box">My width is calculated</div> | ||
</div> | ||
<div class="wrapper"> | ||
<div class="box">My width is calculated</div> | ||
</div> | ||
</section> | ||
|
||
<textarea class="playable playable-css" style="height: 140px;"> | ||
.wrapper { | ||
width: 400px; | ||
width: 400px; | ||
} | ||
|
||
.box { | ||
width: calc(20% + 100px); | ||
width: calc(20% + 100px); | ||
} | ||
</textarea> | ||
|
||
<textarea class="playable playable-html" style="height: 80px;"> | ||
<div class="wrapper"> | ||
<div class="box">My width is calculated.</div> | ||
<div class="box">My width is calculated.</div> | ||
</div> | ||
</textarea> | ||
|
||
<div class="playable-buttons"> | ||
<input id="reset" type="button" value="Reset"> | ||
<input id="reset" type="button" value="Reset" /> | ||
</div> | ||
</body> | ||
<script src="../playable.js"></script> | ||
|
||
</html> | ||
</body> | ||
<script src="../playable.js"></script> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,69 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Values and Units: color hex codes</title> | ||
<link rel="stylesheet" href="../styles.css"> | ||
<link rel="stylesheet" href="../styles.css" /> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
.box { | ||
padding: 10px; | ||
margin: 1em 0; | ||
border-radius: .5em; | ||
} | ||
* { | ||
box-sizing: border-box; | ||
} | ||
.box { | ||
padding: 10px; | ||
margin: 1em 0; | ||
border-radius: 0.5em; | ||
} | ||
</style> | ||
|
||
<style class="editable"> | ||
.one { | ||
background-color: #02798b; | ||
} | ||
|
||
.two { | ||
background-color: #c55da1; | ||
} | ||
.one { | ||
background-color: #02798b; | ||
} | ||
|
||
.three { | ||
background-color: #128a7d; | ||
} | ||
.two { | ||
background-color: #c55da1; | ||
} | ||
|
||
|
||
.three { | ||
background-color: #128a7d; | ||
} | ||
</style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<body> | ||
<section class="preview"> | ||
<div class="wrapper"> | ||
<div class="box one">#02798b</div> | ||
<div class="box two">#c55da1</div> | ||
<div class="box three">128a7d</div> | ||
</div> | ||
<div class="wrapper"> | ||
<div class="box one">#02798b</div> | ||
<div class="box two">#c55da1</div> | ||
<div class="box three">128a7d</div> | ||
</div> | ||
</section> | ||
|
||
<textarea class="playable playable-css" style="height: 240px;"> | ||
.one { | ||
background-color: #02798b; | ||
background-color: #02798b; | ||
} | ||
|
||
.two { | ||
background-color: #c55da1; | ||
background-color: #c55da1; | ||
} | ||
|
||
.three { | ||
background-color: #128a7d; | ||
background-color: #128a7d; | ||
} | ||
</textarea> | ||
|
||
<textarea class="playable playable-html" style="height: 130px;"> | ||
<div class="wrapper"> | ||
<div class="box one">#02798b</div> | ||
<div class="box two">#c55da1</div> | ||
<div class="box three">128a7d</div> | ||
<div class="box one">#02798b</div> | ||
<div class="box two">#c55da1</div> | ||
<div class="box three">128a7d</div> | ||
</div> | ||
</textarea> | ||
|
||
<div class="playable-buttons"> | ||
<input id="reset" type="button" value="Reset"> | ||
<input id="reset" type="button" value="Reset" /> | ||
</div> | ||
</body> | ||
<script src="../playable.js"></script> | ||
|
||
</html> | ||
</body> | ||
<script src="../playable.js"></script> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,69 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Values and Units: color hsl codes</title> | ||
<link rel="stylesheet" href="../styles.css"> | ||
<link rel="stylesheet" href="../styles.css" /> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
.box { | ||
padding: 10px; | ||
margin: 1em 0; | ||
border-radius: .5em; | ||
} | ||
* { | ||
box-sizing: border-box; | ||
} | ||
.box { | ||
padding: 10px; | ||
margin: 1em 0; | ||
border-radius: 0.5em; | ||
} | ||
</style> | ||
|
||
<style class="editable"> | ||
.one { | ||
background-color: hsl(188, 97%, 28%); | ||
} | ||
|
||
.two { | ||
background-color: hsl(321, 47%, 57%); | ||
} | ||
.one { | ||
background-color: hsl(188, 97%, 28%); | ||
} | ||
|
||
.three { | ||
background-color: hsl(174,77%,31%); | ||
} | ||
.two { | ||
background-color: hsl(321, 47%, 57%); | ||
} | ||
|
||
|
||
.three { | ||
background-color: hsl(174, 77%, 31%); | ||
} | ||
</style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<body> | ||
<section class="preview"> | ||
<div class="wrapper"> | ||
<div class="box one">hsl(188, 97%, 28%)</div> | ||
<div class="box two">hsl(321, 47%, 57%)</div> | ||
<div class="box three">hsl(174,77%,31%)</div> | ||
</div> | ||
<div class="wrapper"> | ||
<div class="box one">hsl(188, 97%, 28%)</div> | ||
<div class="box two">hsl(321, 47%, 57%)</div> | ||
<div class="box three">hsl(174,77%,31%)</div> | ||
</div> | ||
</section> | ||
|
||
<textarea class="playable playable-css" style="height: 240px;"> | ||
.one { | ||
background-color: hsl(188, 97%, 28%); | ||
background-color: hsl(188, 97%, 28%); | ||
} | ||
|
||
.two { | ||
background-color: hsl(321, 47%, 57%); | ||
background-color: hsl(321, 47%, 57%); | ||
} | ||
|
||
.three { | ||
background-color: hsl(174, 77%, 31%); | ||
background-color: hsl(174, 77%, 31%); | ||
} | ||
</textarea> | ||
|
||
<textarea class="playable playable-html" style="height: 130px;"> | ||
<div class="wrapper"> | ||
<div class="box one">hsl(188, 97%, 28%)</div> | ||
<div class="box two">hsl(321, 47%, 57%)</div> | ||
<div class="box three">hsl(174, 77%, 31%)</div> | ||
<div class="box one">hsl(188, 97%, 28%)</div> | ||
<div class="box two">hsl(321, 47%, 57%)</div> | ||
<div class="box three">hsl(174, 77%, 31%)</div> | ||
</div> | ||
</textarea> | ||
|
||
<div class="playable-buttons"> | ||
<input id="reset" type="button" value="Reset"> | ||
<input id="reset" type="button" value="Reset" /> | ||
</div> | ||
</body> | ||
<script src="../playable.js"></script> | ||
|
||
</html> | ||
</body> | ||
<script src="../playable.js"></script> | ||
</html> |
Oops, something went wrong.