Skip to content

Commit

Permalink
fixing values and units examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelandrew committed Mar 19, 2019
1 parent a00d904 commit 0a50ffe
Show file tree
Hide file tree
Showing 15 changed files with 570 additions and 608 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.vscode/*
66 changes: 32 additions & 34 deletions learn/values-units/calc.html
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>
80 changes: 38 additions & 42 deletions learn/values-units/color-hex.html
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>
80 changes: 38 additions & 42 deletions learn/values-units/color-hsl.html
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>
Loading

0 comments on commit 0a50ffe

Please sign in to comment.