Add Litlab
This commit is contained in:
BIN
public/assets/img/diagrams/prototype.png
Normal file
BIN
public/assets/img/diagrams/prototype.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
BIN
public/assets/img/diagrams/singleton.png
Normal file
BIN
public/assets/img/diagrams/singleton.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -41,25 +41,28 @@ require '../src/helpers.php';
|
||||
transform: translate(-50%, -50%);
|
||||
max-height: 92dvh;
|
||||
overflow-y: auto;
|
||||
background-color: attr(data-color type(<color>), #eef0f0);
|
||||
background-color: attr(data-color type(< color >), #eef0f0);
|
||||
}
|
||||
|
||||
pre, code {
|
||||
font-family: Consolas, monospace;
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
pre {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
img.diagram {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
margin: 0 auto 1rem;
|
||||
}
|
||||
|
||||
.et {
|
||||
position: absolute;
|
||||
top: .5rem;
|
||||
left: .5rem;
|
||||
bottom: .5rem;
|
||||
right: .5rem;
|
||||
font-size: small;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
@@ -68,12 +71,10 @@ require '../src/helpers.php';
|
||||
</head>
|
||||
<body>
|
||||
<main data-color="#eef0f0">
|
||||
<?php require '../src/router.php' ?>
|
||||
<?php
|
||||
require '../src/router.php' ?>
|
||||
</main>
|
||||
<div class="et">ET: <?= (microtime(true) - $time_start) ?> secs</div>
|
||||
<script>hljs.highlightAll()</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user