codepens/plot-direction/dist/style.css

51 lines
781 B
CSS

* {
box-sizing: border-box;
}
html, body {
margin: 0;
width: 100%;
height: 100%;
background: #999;
display: grid;
place-items: center;
}
main {
display: grid;
gap: 1em;
max-width: 90vw;
width: 1100px;
padding: 8vmin;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
graph {
margin: auto;
width: 100%;
height: 400px;
background: #ecefee;
display: flex;
flex-direction: column;
box-shadow:
-5px 5px 10px #0002,
-1px 1px 5px #0009;
}
pre {
box-shadow: inset .5em 0 0 #000;
background: #fff;
font-size: 16px;
padding: 1em 2em;
line-height: 1.2;
margin: 0;
}
css-doodle {
margin: auto;
--rule: (
@grid: 15x1 / 160px;
@size: 20px 40px;
background: #000;
clip-path: @shape(triangle);
);
}