Skip to content

Commit 3d77468

Browse files
authored
docs(demos): let lane flow boxes wrap so demos fit phone screens (#164)
1 parent 2355603 commit 3d77468

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎docs/demos/demos.css‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,16 @@
8181
.hw-demo .laneflow { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
8282
.hw-demo .box {
8383
font-family: var(--hw-mono); font-size: .75rem; border: 1.5px solid var(--hw-line); border-radius: 8px;
84-
padding: 8px 10px; background: var(--hw-bg); white-space: nowrap; transition: all .25s;
84+
padding: 8px 10px; background: var(--hw-bg); transition: all .25s;
8585
}
8686
.hw-demo .box.down { border-color: var(--hw-bad); background: rgba(229, 72, 77, .12); color: var(--hw-bad); }
8787
.hw-demo .box.open { border-color: var(--hw-bad); background: rgba(229, 72, 77, .12); color: var(--hw-bad); }
8888
.hw-demo .box.half { border-color: var(--hw-warn); background: rgba(245, 166, 35, .12); color: var(--hw-warn); }
8989
.hw-demo .arrow { flex: 1; height: 2px; background: var(--hw-line); }
90+
@media (max-width: 480px) {
91+
.hw-demo .laneflow { gap: 4px; }
92+
.hw-demo .box { font-size: .7rem; padding: 7px 6px; }
93+
}
9094
.hw-demo .track { position: relative; height: 20px; margin: 6px 0 4px; }
9195
.hw-demo .dot { position: absolute; top: 6px; width: 8px; height: 8px; border-radius: 50%; left: 0; transition: left .17s linear; }
9296
.hw-demo .dot.ok { background: var(--hw-ok); }

0 commit comments

Comments
 (0)