Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

spaces: fixes gutter positioning (desktop widths) (#328)

Anas Bouzidab79ea993c16
diff --git a/spaces/src/styles.css b/spaces/src/styles.css
index 7649d942..e14980c4 100644
--- a/spaces/src/styles.css
+++ b/spaces/src/styles.css
@@ -366,6 +366,17 @@ option { background: var(--field); color: var(--ink); }
display: flex; gap: 1px; opacity: 0; transition: opacity .12s;
}
.sp-b:hover > .sp-gutter, .sp-gutter:focus-within { opacity: 1; }
+
+/* Desktop gutters sit outside the prose. Phone gutters join the block flow,
+ so their sizing and spacing stay with the phone rules below. */
+@media (min-width: 821px) {
+ .sp-gutter { top: 0; height: stretch; padding-top: inherit; }
+ .sp-b-h2 > .sp-gutter { align-items: center; margin-bottom: 2px; }
+ .sp-b-number > .sp-gutter { inset-inline-start: -68px; }
+ .sp-b-bullet > .sp-gutter { inset-inline-start: -64px; }
+ .sp-b-code > .sp-gutter { margin: 6px 0; }
+}
+
.sp-ghost {
display: inline-flex; align-items: center; justify-content: center;
width: 22px; height: 24px; padding: 0; border: 0; border-radius: 5px;