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
<!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> |
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
/* 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; | |
} |