select, input[type="text"], input[type="number"] { background-color: var(--color-browngray-300); } .field--view-only { opacity: 0.3; } /* Label with CSS tooltip */ .label-with-tooltip { text-decoration: underline dotted; text-decoration-color: var(--color-browngray-200); text-underline-offset: 2px; cursor: help; position: relative; &::after { content: attr(data-css); position: absolute; bottom: 100%; left: 0; margin-bottom: 4px; padding: 0.25rem 0.5rem; background: var(--color-browngray-700); color: var(--color-browngray-100); font-family: "Courier New", Courier, monospace; font-size: 0.75rem; border-radius: 4px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0.15s ease; z-index: 10; } &:hover::after { opacity: 1; visibility: visible; } } .settings-section { h2 { border-bottom: 1px solid #000; margin-bottom: var(--space-xs); } .settings-subsection:not(:last-child) { border-bottom: 1px solid var(--color-browngray-050); } .settings-subsection { padding: var(--space-xs) 0; h3 { margin-bottom: var(--space-xs); } .field { display: flex; label, select { width: 50%; } input { padding: 0.1rem 0.1rem 0.1rem 0.3rem; } .input-with-unit { display: flex; gap: 0.3rem; .unit-toggle { display: flex; gap: 0.3rem; } } .input-with-color { width: 50%; .clr-field { display: flex; button { position: absolute; transform: none; height: 1.1rem; top: auto; right: auto; cursor: pointer; } input { padding-left: 2.5rem; width: 100%; } } } } &.margins { display: flex; flex-wrap: wrap; row-gap: var(--space-xs); h3 { width: 100%; } .field { width: 50%; label { width: 30%; } .input-with-unit { input { width: 50%; } } } } } }