Pages

Code pour s'entraîner

view livecode

code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=p, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./pos.css">
</head>
<body>
<section class="demo">
<div><code> bloc 1</code></div>
<div><code> bloc 2</code></div>
<div><code> bloc 3</code></div>
</section>
</body>
</html>
view raw index.html hosted with ❤ by GitHub
/* pos */
/* SETTINGS */
:root {
--color-off-white: #f3f4f4;
--color-stroke: #dadce0;
--font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}
.demo>* {
height: 20vh;
padding: 1em;
display: grid;
place-items: end;
}
.demo>*+* {
/* opacity: 0.75; */
box-shadow: 0 -1px 10px rgba(0 0 0 / 60%);
}
.demo> :first-child {
background: aliceblue;
border: 2px solid lightblue;
}
.demo> :nth-child(2) {
background: pink;
border: 2px solid hotpink;
}
.demo> :last-child {
background: wheat;
border: 2px solid gold;
}
code {
padding: 0.125em 0.25em;
background: var(--color-off-white);
border: 1px solid var(--color-stroke);
font-family: var(--font-mono);
font-size: 1.25em;
hyphens: none;
tab-size: 2;
text-align: left;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
}
view raw pos.css hosted with ❤ by GitHub