2019-06-18 20:52:51 +00:00
|
|
|
<html>
|
2020-03-27 10:04:50 +00:00
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="./out/base.css" />
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<!-- <meta http-equiv="X-UA-Compatible" content="ie=edge"> -->
|
|
|
|
<script src="./ipsum.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
const l = new LoremIpsum();
|
|
|
|
window.prip = (i = 12) => window.document.write(l.paragraph(i));
|
|
|
|
window.lo = (i = 32) => l.paragraph(i);
|
|
|
|
window.$ = document.querySelector.bind(document);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
/* :root {
|
2019-06-18 20:52:51 +00:00
|
|
|
--primary: blue;
|
|
|
|
--on-primary: white;
|
|
|
|
} */
|
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
.parent {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.child {
|
|
|
|
flex: 1 0 21%;
|
|
|
|
margin: 20px;
|
|
|
|
height: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.prev {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
max-width: 40rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
margin: 0 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll-test {
|
|
|
|
height: 100px;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="light-theme">
|
|
|
|
<button
|
|
|
|
style="position: fixed; top: 10px; left: 10px; z-index: 100;"
|
|
|
|
onclick="switchStyle()"
|
|
|
|
>
|
|
|
|
Switch
|
|
|
|
</button>
|
|
|
|
<div class="content">
|
|
|
|
<div class="margin prev">
|
|
|
|
<div class="parent">
|
|
|
|
<div class="child elv-1"></div>
|
|
|
|
<div class="child elv-2"></div>
|
|
|
|
<div class="child elv-3"></div>
|
|
|
|
<div class="child elv-4"></div>
|
|
|
|
<div class="child elv-6"></div>
|
|
|
|
<div class="child elv-8"></div>
|
|
|
|
<div class="child elv-9"></div>
|
|
|
|
<div class="child elv-12"></div>
|
|
|
|
<div class="child elv-16"></div>
|
|
|
|
<div class="child elv-24"></div>
|
|
|
|
<div
|
|
|
|
id="elv-transition"
|
|
|
|
class="child elv-transition elv-1"
|
|
|
|
></div>
|
2019-06-18 20:52:51 +00:00
|
|
|
<script>
|
2020-03-27 10:04:50 +00:00
|
|
|
const elm = document.getElementById("elv-transition");
|
|
|
|
setInterval(() => {
|
|
|
|
if (elm.classList.contains("elv-1")) {
|
|
|
|
elm.classList.remove("elv-1");
|
|
|
|
elm.classList.add("elv-24");
|
|
|
|
} else {
|
|
|
|
elm.classList.remove("elv-24");
|
|
|
|
elm.classList.add("elv-1");
|
|
|
|
}
|
|
|
|
}, 600);
|
2019-06-18 20:52:51 +00:00
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<div class="margin prev">
|
|
|
|
<button class="btn">Hallo Welt</button>
|
|
|
|
<button class="btn btn-primary">Hallo Welt</button>
|
|
|
|
<button class="btn btn-secondary">Secondary</button>
|
|
|
|
<button class="btn btn-success">Success</button>
|
|
|
|
<button class="btn btn-error">Error</button>
|
2019-06-18 20:52:51 +00:00
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<button class="btn fab">+</button>
|
|
|
|
<a class="btn fab fab-left" href="#">-</a>
|
|
|
|
</div>
|
2019-07-24 16:38:18 +00:00
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<div class="margin prev">
|
|
|
|
<button
|
|
|
|
class="btn"
|
|
|
|
onclick="$('#modal1').classList.toggle('modal-hidden')"
|
|
|
|
>
|
|
|
|
Open Modal
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div id="modal1" class="modal modal-hidden">
|
|
|
|
<div class="modal-title">Title</div>
|
|
|
|
<div id="modal1_content" class="modal-content">
|
|
|
|
<script>
|
|
|
|
prip(80);
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
<div class="modal-action">
|
|
|
|
<button
|
|
|
|
onclick="$('#modal1_content').innerHTML += lo(32)"
|
|
|
|
>
|
|
|
|
Save
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
id="modal1_close"
|
|
|
|
onclick="$('#modal1').classList.toggle('modal-hidden')"
|
|
|
|
>
|
|
|
|
Close
|
|
|
|
</button>
|
|
|
|
</div>
|
2019-07-24 16:38:18 +00:00
|
|
|
</div>
|
2020-03-27 10:04:50 +00:00
|
|
|
</div>
|
2019-07-24 16:38:18 +00:00
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<div class="margin prev">
|
|
|
|
<form>
|
|
|
|
<div class="input-group">
|
|
|
|
<label>Name</label>
|
|
|
|
<input type="text" placeholder="Name" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
<label>Name</label>
|
|
|
|
<input type="text" placeholder="Name" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<input class="inp" type="text" placeholder="Name" />
|
|
|
|
<input
|
|
|
|
class="inp"
|
|
|
|
type="text"
|
|
|
|
placeholder="Name2"
|
|
|
|
value="Test01"
|
|
|
|
/>
|
|
|
|
<input
|
|
|
|
class="inp"
|
|
|
|
type="text"
|
|
|
|
placeholder="Name"
|
|
|
|
disabled
|
|
|
|
/>
|
|
|
|
|
|
|
|
<div class="input-group"></div>
|
|
|
|
|
|
|
|
<label class="input-checkbox"
|
|
|
|
>Checkbox
|
|
|
|
<input type="checkbox" />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label class="input-checkbox"
|
|
|
|
>Radio 1
|
|
|
|
<input type="radio" name="rad" checked />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label class="input-checkbox"
|
|
|
|
>Radio 2
|
|
|
|
<input type="radio" name="rad" />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<select class="inp">
|
|
|
|
<option>Opt1</option>
|
|
|
|
<option>Opt2</option>
|
|
|
|
<option>Opt3</option>
|
|
|
|
<option>Opt4</option>
|
|
|
|
</select>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-06-18 20:52:51 +00:00
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<div class="margin prev">
|
|
|
|
<button onclick="$('#ul1').classList.toggle('list-divider')">
|
|
|
|
Toggle Divider
|
|
|
|
</button>
|
|
|
|
<ul id="ul1" class="list">
|
|
|
|
<li>Item 1</li>
|
|
|
|
<li>Item 2</li>
|
|
|
|
<li>Item 3</li>
|
|
|
|
<li>Item 4</li>
|
|
|
|
<li>Item 5</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2019-06-18 20:52:51 +00:00
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<div class="margin prev">
|
|
|
|
<ul class="list list-divider list-clickable">
|
|
|
|
<li>Item 1</li>
|
|
|
|
<li>Item 2</li>
|
|
|
|
<li>Item 3</li>
|
|
|
|
<li>Item 4</li>
|
|
|
|
<li>Item 5</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2019-06-18 20:52:51 +00:00
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<div class="margin prev">
|
|
|
|
<div class="header" style="justify-content: space-between;">
|
|
|
|
<span>I1</span>
|
|
|
|
<span>I2</span>
|
|
|
|
<div class="header-icon-button">
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width="24"
|
|
|
|
height="24"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="none"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="2"
|
|
|
|
stroke-linecap="round"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
class="feather feather-trash-2"
|
|
|
|
>
|
|
|
|
<polyline points="3 6 5 6 21 6"></polyline>
|
|
|
|
<path
|
|
|
|
d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
|
|
|
|
></path>
|
|
|
|
<line x1="10" y1="11" x2="10" y2="17"></line>
|
|
|
|
<line x1="14" y1="11" x2="14" y2="17"></line>
|
|
|
|
</svg>
|
|
|
|
</div>
|
2019-06-18 20:52:51 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-17 20:43:36 +00:00
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<div class="margin prev">
|
|
|
|
<div class="header">
|
|
|
|
<span>Header with links</span>
|
|
|
|
<a href="#">Page 1</a>
|
|
|
|
<a href="#">Page 2</a>
|
|
|
|
<a href="#">Page 3</a>
|
|
|
|
</div>
|
2020-03-01 12:32:02 +00:00
|
|
|
</div>
|
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<div class="margin prev">
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th>Firstname</th>
|
|
|
|
<th>Lastname</th>
|
|
|
|
<th>Age</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Jill</td>
|
|
|
|
<td>Smith</td>
|
|
|
|
<td>50</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Eve</td>
|
|
|
|
<td>Jackson</td>
|
|
|
|
<td>94</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Sanna</td>
|
|
|
|
<td>Castillo</td>
|
|
|
|
<td>65</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Petra</td>
|
|
|
|
<td>Serrano</td>
|
|
|
|
<td>26</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-03-12 10:45:54 +00:00
|
|
|
|
2020-03-27 10:04:50 +00:00
|
|
|
<div class="margin prev">
|
|
|
|
<div class="scroll-test">
|
|
|
|
<script>
|
|
|
|
prip(2000);
|
|
|
|
</script>
|
|
|
|
</div>
|
2020-03-12 10:45:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-27 10:04:50 +00:00
|
|
|
<script>
|
|
|
|
function applyStyleSheet(d = false) {
|
|
|
|
if (d) document.body.className = "dark-theme";
|
|
|
|
else document.body.className = "light-theme";
|
|
|
|
}
|
|
|
|
|
|
|
|
applyStyleSheet(false);
|
|
|
|
let isLight = true;
|
|
|
|
|
|
|
|
function switchStyle() {
|
|
|
|
applyStyleSheet(isLight);
|
|
|
|
isLight = !isLight;
|
|
|
|
}
|
|
|
|
|
|
|
|
let match = window.matchMedia("prefers-color-scheme: dark");
|
|
|
|
match.addListener(ev => {
|
|
|
|
applyStyleSheet(ev.matches);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
2020-03-12 10:45:54 +00:00
|
|
|
</html>
|