mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
Make colour tiles solid, readable and fully clickable; align Data actions and device icon field with the form kit. Cover narrow Windows layouts and both icon-picker branches with a focused browser smoke. Issue: #605 User-Visible: yes
378 lines
23 KiB
CSS
378 lines
23 KiB
CSS
.hpf-card {
|
|
min-width: 0;
|
|
padding: 14px;
|
|
border: 1px solid var(--hpf-line);
|
|
border-radius: 11px;
|
|
background: var(--hpf-surface);
|
|
}
|
|
hp-dialog .hpf-form input:focus-visible,
|
|
hp-dialog .hpf-form select:focus-visible,
|
|
hp-dialog .hpf-form button:focus-visible,
|
|
.hpf-footer button:focus-visible {
|
|
outline: 2px solid var(--hpf-accent);
|
|
outline-offset: 2px;
|
|
}
|
|
hp-dialog .hpf-form button:disabled,
|
|
hp-dialog .hpf-form input:disabled,
|
|
hp-dialog .hpf-form select:disabled { opacity: .4; cursor: default; }
|
|
hp-dialog .hpf-form { display: grid; gap: 16px; }
|
|
hp-dialog .hpf-form label { margin: 0; font-size: inherit; color: inherit; }
|
|
hp-dialog .hpf-form .hpf-card { padding: 0; overflow: hidden; }
|
|
.hpf-head {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin: 0;
|
|
padding: 16px 16px 12px;
|
|
}
|
|
.hpf-head h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
|
|
.hpf-body { display: grid; gap: 15px; padding: 0 16px 16px; }
|
|
.hpf-body:first-child { padding-top: 16px; }
|
|
.hpf-sub { display: flex; align-items: center; gap: 4px; min-height: 28px; margin: 7px 0 -3px; }
|
|
.hpf-sub h4 { margin: 0; font-size: 1rem; line-height: 1.4; font-weight: 600; }
|
|
.hpf-field { display: grid; gap: 7px; min-width: 0; }
|
|
.hpf-field > .hpf-label,
|
|
.hpf-labelrow { display: flex; align-items: center; gap: 4px; min-height: 32px; font-size: .875rem; font-weight: 600; color: var(--hpf-muted); }
|
|
.hpf-labelrow > label { cursor: pointer; }
|
|
.hpf-hint { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--hpf-muted); }
|
|
.hpf-error { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--hpf-danger); }
|
|
.hpf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
|
|
.hpf-grid.hpf-grid-narrow { grid-template-columns: minmax(0, 1fr) 175px; }
|
|
hp-dialog .hpf-form .hpf-input,
|
|
hp-dialog .hpf-form .hpf-select {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
min-width: 0;
|
|
min-height: 44px;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--hpf-line);
|
|
border-radius: 7px;
|
|
background: var(--hpf-surface);
|
|
color: var(--primary-text-color);
|
|
font: inherit;
|
|
font-size: .875rem;
|
|
line-height: 1.4;
|
|
}
|
|
hp-dialog .hpf-form .hpf-select {
|
|
appearance: none;
|
|
padding-right: 32px;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
background-position: right 10px center;
|
|
background-repeat: no-repeat;
|
|
background-size: 12px 7px;
|
|
cursor: pointer;
|
|
}
|
|
hp-dialog .hpf-form .hpf-input:hover, hp-dialog .hpf-form .hpf-select:hover { border-color: var(--hpf-muted); }
|
|
hp-dialog .hpf-form .hpf-input:focus, hp-dialog .hpf-form .hpf-select:focus { border-color: var(--hpf-accent); outline: none; }
|
|
hp-dialog .hpf-form [aria-invalid="true"] { border-color: var(--hpf-danger) !important; }
|
|
.hpf-unit { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--hpf-line); border-radius: 7px; background: var(--hpf-surface); }
|
|
.hpf-unit > input { box-sizing: border-box; width: 5.5em; min-width: 5.5em; height: 100%; padding: 8px 9px; border: 0; border-radius: 7px; background: none; color: var(--primary-text-color); font: inherit; font-size: .875rem; font-variant-numeric: tabular-nums; }
|
|
.hpf-unit > input:focus { outline: 0; }
|
|
.hpf-unit > span { padding: 0 11px 0 3px; white-space: nowrap; color: var(--hpf-muted); font-size: .875rem; }
|
|
.hpf-unit:focus-within { outline: 2px solid var(--hpf-accent); outline-offset: 2px; }
|
|
.hpf-unit.hpf-unit-wide, .hpf-unit.hpf-unit-wide > input { width: 100%; min-width: 0; }
|
|
.hpf-field > .hpf-unit:not(.hpf-unit-wide) { justify-self: start; }
|
|
.hpf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
|
|
.hpf-actions > input[type="file"] { display: none; }
|
|
.hpf-row {
|
|
display: flex;
|
|
min-width: 0;
|
|
min-height: 44px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
.hpf-row > .hpf-label { min-width: 0; overflow-wrap: anywhere; }
|
|
.hpf-toggle {
|
|
display: grid;
|
|
grid-template-columns: 28px minmax(0, 1fr) 44px;
|
|
grid-template-rows: auto auto;
|
|
align-items: center;
|
|
column-gap: 10px;
|
|
row-gap: 4px;
|
|
min-height: 58px;
|
|
margin: 0;
|
|
padding: 11px 0;
|
|
color: var(--primary-text-color);
|
|
cursor: pointer;
|
|
}
|
|
.hpf-toggle.hpf-noicon { grid-template-columns: minmax(0, 1fr) 44px; }
|
|
.hpf-toggle > .hpf-toggle-icon { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: center; width: 28px; color: var(--hpf-muted); --mdc-icon-size: 19px; }
|
|
.hpf-toggle > .hpf-toggle-title { grid-row: 1; display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 28px; font-size: .875rem; font-weight: 600; line-height: 1.4; }
|
|
.hpf-toggle > .hpf-toggle-title > span { min-width: 0; overflow-wrap: anywhere; }
|
|
.hpf-toggle > .hpf-toggle-caption { grid-row: 2; margin: 0; font-size: .875rem; line-height: 1.5; color: var(--hpf-muted); overflow-wrap: anywhere; }
|
|
.hpf-toggle:not(.hpf-noicon) > .hpf-toggle-title, .hpf-toggle:not(.hpf-noicon) > .hpf-toggle-caption { grid-column: 2; }
|
|
.hpf-toggle.hpf-noicon > .hpf-toggle-title, .hpf-toggle.hpf-noicon > .hpf-toggle-caption { grid-column: 1; }
|
|
.hpf-toggle > input { grid-column: -2; grid-row: 1 / 3; align-self: center; }
|
|
.hpf-toggle.hpf-compact { grid-template-rows: auto; min-height: 40px; padding: 2px 0; }
|
|
.hpf-toggle.hpf-compact > .hpf-toggle-title { font-weight: 500; min-height: 24px; }
|
|
.hpf-toggle.hpf-compact > .hpf-toggle-icon { --mdc-icon-size: 18px; }
|
|
.hpf-toggle:has(input:disabled) { cursor: default; }
|
|
.hpf-toggle:has(input:disabled) > .hpf-toggle-title, .hpf-toggle:has(input:disabled) > .hpf-toggle-caption { opacity: .65; }
|
|
.hpf-compact-list { display: grid; gap: 2px; }
|
|
.hpf-toggle > input {
|
|
appearance: none;
|
|
position: relative;
|
|
width: 44px;
|
|
height: 44px;
|
|
flex: 0 0 44px;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
.hpf-toggle > input::before {
|
|
content: '';
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
width: 36px;
|
|
height: 22px;
|
|
inset: 11px 4px;
|
|
border: 1px solid var(--hpf-line);
|
|
border-radius: 12px;
|
|
background: color-mix(in srgb, var(--hpf-surface) 65%, var(--hpf-muted));
|
|
}
|
|
.hpf-toggle > input::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 16px;
|
|
height: 16px;
|
|
top: 50%;
|
|
left: 7px;
|
|
border-radius: 50%;
|
|
background: var(--text-primary-color, #fff);
|
|
box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
|
|
transform: translateY(-50%);
|
|
transition: left .15s;
|
|
}
|
|
.hpf-toggle > input:checked::before { background: var(--hpf-accent); border-color: var(--hpf-accent); }
|
|
.hpf-toggle > input:checked::after { left: 21px; }
|
|
.hpf-toggle.hpf-compact > input { grid-row: 1; }
|
|
.hpf-toggle > input:disabled { cursor: default; }
|
|
.hpf-toggle > input:disabled::before { opacity: .4; }
|
|
.hpf-seg {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
min-width: 0;
|
|
gap: 3px;
|
|
padding: 3px;
|
|
border: 1px solid var(--hpf-line);
|
|
border-radius: 7px;
|
|
background: var(--hpf-canvas);
|
|
}
|
|
.hpf-seg label {
|
|
position: relative;
|
|
display: flex;
|
|
min-width: 0;
|
|
min-width: fit-content;
|
|
min-height: 38px;
|
|
flex: 1 1 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
padding: 4px 5px;
|
|
border: 1px solid transparent;
|
|
border-radius: 5px;
|
|
color: var(--hpf-muted);
|
|
font-size: .875rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
overflow-wrap: normal;
|
|
}
|
|
.hpf-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
|
|
.hpf-seg label:has(input:checked) {
|
|
background: var(--hpf-tint);
|
|
border-color: var(--hpf-tint-line);
|
|
color: var(--hpf-accent);
|
|
}
|
|
.hpf-seg label:has(input:focus-visible) {
|
|
outline: 2px solid var(--hpf-accent);
|
|
outline-offset: 1px;
|
|
}
|
|
.hpf-seg[aria-disabled="true"] { opacity: .5; }
|
|
.hpf-seg .hpf-line { width: 25px; border-top: 2px solid currentColor; }
|
|
.hpf-seg .hpf-line-dashed { border-top-style: dashed; }
|
|
.hpf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
|
|
.hpf-tile {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
min-height: 72px;
|
|
padding: 10px 6px 9px;
|
|
border: 1px solid var(--hpf-line);
|
|
border-radius: 8px;
|
|
background: var(--hpf-surface);
|
|
color: var(--hpf-muted);
|
|
cursor: pointer;
|
|
text-align: center;
|
|
user-select: none;
|
|
--mdc-icon-size: 22px;
|
|
}
|
|
.hpf-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
|
|
.hpf-tile > span { font-size: .875rem; font-weight: 500; line-height: 1.25; }
|
|
.hpf-tile:has(input:checked) { background: var(--hpf-tint); border-color: var(--hpf-tint-line); color: var(--hpf-accent); }
|
|
.hpf-tile:has(input:focus-visible) { outline: 2px solid var(--hpf-accent); outline-offset: 2px; }
|
|
.hpf-tile:has(input:disabled) { opacity: .45; cursor: default; }
|
|
.hpf-tile:has(input:disabled) input { cursor: default; }
|
|
.hpf-colortiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
|
|
.hpf-colortile { display: grid; gap: 6px; min-width: 0; padding: 6px 6px 7px; border: 1px solid var(--hpf-line); border-radius: 8px; background: var(--hpf-surface); }
|
|
.hpf-colortile > .hpf-colortile-swatch { position: relative; min-height: 48px; border: 1px solid var(--hpf-line); border-radius: 6px; font-size: .875rem; font-weight: 500; line-height: 1.25; }
|
|
.hpf-colortile > .hpf-colortile-swatch > span { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; padding: 5px 10px; min-width: 0; overflow-wrap: anywhere; pointer-events: none; }
|
|
.hpf-colortile > .hpf-colortile-swatch > hp-color-opacity { position: absolute; inset: 0; }
|
|
.hpf-colortile-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
|
|
.hpf-colortile-meta .hpf-hex { font-size: .8125rem; }
|
|
.hpf-colortile-meta .hpf-unit { height: 32px; }
|
|
.hpf-colortile-meta .hpf-unit > input { width: 3.6em; min-width: 3.6em; padding: 4px 4px 4px 7px; font-size: .8125rem; }
|
|
.hpf-colortile-meta .hpf-unit > input[type='number'] { appearance: textfield; }
|
|
.hpf-colortile-meta .hpf-unit > input[type='number']::-webkit-inner-spin-button,
|
|
.hpf-colortile-meta .hpf-unit > input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
|
|
.hpf-colortile-meta .hpf-unit > span { padding: 0 7px 0 0; font-size: .8125rem; }
|
|
.hpf-colorfield {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
min-height: 44px;
|
|
padding: 3px 10px 3px 3px;
|
|
border: 1px solid var(--hpf-line);
|
|
border-radius: 9px;
|
|
background: var(--hpf-canvas);
|
|
}
|
|
.hpf-colorfield > hp-color-opacity { flex: 0 0 auto; }
|
|
.hpf-hex { font-size: .875rem; color: var(--hpf-muted); font-variant-numeric: tabular-nums; }
|
|
.hpf-colorfield > .hpf-opacity { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--hpf-muted); }
|
|
.hpf-colorfield > .hpf-opacity > .hpf-unit { height: 38px; }
|
|
.hpf-colorfield > .hpf-opacity > .hpf-unit > input { width: 4.8em; min-width: 4.8em; }
|
|
.hpf-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; }
|
|
.hpf-actions .btn { box-sizing: border-box; min-height: 44px; max-width: 100%; white-space: normal; text-align: left; }
|
|
.hpf-actions .backupupload { max-width: 100%; }
|
|
.hpf-colorrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; min-height: 56px; }
|
|
.hpf-colorrow > .hpf-colorfield { justify-self: end; }
|
|
.hpf-colorrow > .hpf-labelrow { min-height: 0; }
|
|
.hpf-link { padding: 5px 0; border: 0; background: none; color: var(--hpf-accent); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }
|
|
.hpf-link:disabled { opacity: .5; cursor: default; }
|
|
.hpf-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
.hpf-inline > .hpf-labelrow { flex: 1 1 auto; }
|
|
.hpf-inline > .hpf-select { width: auto; flex: 0 0 auto; min-width: 200px; }
|
|
.hpf-inline.hpf-wrap { flex-wrap: wrap; row-gap: 6px; }
|
|
.hpf-radios { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
|
|
.hpf-radios label { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; font-size: .875rem; cursor: pointer; white-space: nowrap; }
|
|
.hpf-radios input { width: 16px; height: 16px; margin: 0; accent-color: var(--hpf-accent); cursor: pointer; }
|
|
.hpf-radios label:has(input:checked) { color: var(--hpf-accent); }
|
|
.hpf-callout {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin: 0;
|
|
padding: 11px 12px;
|
|
border-radius: 8px;
|
|
background: var(--hpf-tint);
|
|
color: var(--primary-text-color);
|
|
font-size: .875rem;
|
|
line-height: 1.6;
|
|
}
|
|
.hpf-callout > ha-icon { flex: none; margin-top: 2px; --mdc-icon-size: 16px; color: var(--hpf-accent); }
|
|
.hpf-callout > p, .hpf-callout > span { margin: 0; min-width: 0; overflow-wrap: anywhere; }
|
|
.hpf-callout.hpf-warning { background: color-mix(in srgb, var(--warning-color, #ff9800) 14%, var(--hpf-surface)); }
|
|
.hpf-callout.hpf-warning > ha-icon { color: var(--warning-color, #ff9800); }
|
|
.hpf-callout .hpf-link { padding: 0; font-weight: 600; }
|
|
.hpf-range { --hpf-range-value-width: 84px; display: grid; grid-template-columns: minmax(0, 1fr) var(--hpf-range-value-width); align-items: center; gap: 15px; }
|
|
.hpf-range > input[type="range"], .hpf-range > ha-slider { box-sizing: border-box; width: 100%; min-width: 0; margin-inline: 0; accent-color: var(--hpf-accent); }
|
|
.hpf-range > .hpf-unit { box-sizing: border-box; width: var(--hpf-range-value-width); min-width: 0; }
|
|
.hpf-range > .hpf-unit > input { width: 100%; min-width: 0; padding-right: 3px; }
|
|
.hpf-range-ends { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 15px; margin-top: -4px; font-size: .875rem; line-height: 1.2; color: var(--hpf-muted); }
|
|
.hpf-range-ends-track { display: flex; grid-column: 1; align-items: center; justify-content: space-between; min-width: 0; }
|
|
.hpf-headline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
|
|
.hpf-north { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 7px 16px; align-items: center; }
|
|
.hpf-north > .hpf-labelrow { grid-area: 1 / 1; min-height: 32px; }
|
|
.hpf-north > .hpf-select, .hpf-north > .hpf-unit, .hpf-north > .hpf-input { grid-area: 2 / 1; }
|
|
.hpf-north > .hpf-north-n { grid-area: 1 / 2; text-align: center; font-size: .875rem; line-height: 28px; color: var(--hpf-muted); }
|
|
.hpf-compass { grid-area: 2 / 2; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--hpf-line); border-radius: 50%; background: var(--hpf-canvas); color: var(--hpf-accent); }
|
|
.hpf-compass svg { width: 24px; height: 24px; transform-origin: 50% 50%; transform-box: view-box; }
|
|
.hpf-compass.hpf-unset { color: var(--hpf-muted); }
|
|
.hpf-tint { padding: 14px; border: 1px solid var(--hpf-tint-line); border-radius: 9px; background: var(--hpf-tint); }
|
|
.hpf-tint-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
|
|
.hpf-tint-head h4 { margin: 0; font-size: 1rem; font-weight: 600; }
|
|
.hpf-tag { padding: 3px 10px; border-radius: 12px; background: color-mix(in srgb, var(--hpf-accent) 18%, var(--hpf-surface)); color: var(--hpf-muted); font-size: .8125rem; }
|
|
.hpf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.hpf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px 0 10px; border: 1px solid var(--hpf-tint-line); border-radius: 18px; background: var(--hpf-tint); color: var(--hpf-accent); font-size: .875rem; font-weight: 500; }
|
|
.hpf-chip > ha-icon { --mdc-icon-size: 16px; }
|
|
.hpf-chip > button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; --mdc-icon-size: 14px; }
|
|
.hpf-chip > button:hover { background: color-mix(in srgb, var(--hpf-accent) 15%, transparent); }
|
|
.hpf-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
|
.hpf-choice { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; min-height: 80px; padding: 13px 35px 13px 12px; border: 1px solid var(--hpf-line); border-radius: 8px; cursor: pointer; }
|
|
.hpf-choice input { position: absolute; right: 12px; top: 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--hpf-accent); }
|
|
.hpf-choice:has(input:checked) { background: var(--hpf-tint); border-color: var(--hpf-tint-line); }
|
|
.hpf-choice strong { font-size: .875rem; font-weight: 600; }
|
|
.hpf-choice small { font-size: .875rem; line-height: 1.5; color: var(--hpf-muted); }
|
|
.hpf-status { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: 8px; font-size: .875rem; color: var(--hpf-muted); }
|
|
.hpf-status > .hpf-link { color: var(--warning-color, #b87940); }
|
|
.hpf-divider { border: 0; border-top: 1px solid var(--hpf-line); margin: 4px 0; }
|
|
.hpf-picker { display: grid; gap: 6px; }
|
|
hp-dialog .hpf-form .hpf-pick { display: flex; align-items: center; gap: 8px; text-align: left; }
|
|
hp-dialog .hpf-form .hpf-pick > b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.hpf-pick-ref { min-width: 0; font-size: .8125rem; color: var(--hpf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.hpf-pick-ph { color: var(--hpf-muted); }
|
|
.hpf-panel { padding: 8px; border: 1px solid var(--hpf-line); border-radius: 9px; background: var(--hpf-canvas); }
|
|
.hpf-list { display: flex; flex-direction: column; gap: 2px; max-height: 220px; margin-top: 6px; overflow: auto; }
|
|
.hpf-cand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--primary-text-color); font: inherit; font-size: .875rem; text-align: left; cursor: pointer; }
|
|
.hpf-cand > small { font-size: .8125rem; color: var(--hpf-muted); }
|
|
.hpf-cand:hover { background: var(--hpf-surface); }
|
|
.hpf-cand.sel { background: var(--hpf-tint); color: var(--hpf-accent); }
|
|
.hpf-cand:focus-visible { outline: 2px solid var(--hpf-accent); outline-offset: -2px; }
|
|
.hpf-templegend { display: flex; justify-content: space-between; margin-top: -6px; font-size: .8125rem; color: var(--hpf-muted); }
|
|
.hpf-block { display: grid; gap: 15px; }
|
|
.hpf-block.hpf-disabled > :not(.hpf-sub):not(.hpf-callout) { opacity: .45; }
|
|
.hpf-block.hpf-disabled .hpf-seg label, .hpf-block.hpf-disabled .hpf-colorfield, .hpf-block.hpf-disabled .hpf-range { pointer-events: none; }
|
|
.hpf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
|
|
.hpf-toolbar > .hpf-input { flex: 1 1 200px; width: auto; }
|
|
.hpf-check { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .875rem; color: var(--hpf-muted); cursor: pointer; white-space: nowrap; }
|
|
.hpf-check > input { width: 18px; height: 18px; margin: 0; accent-color: var(--hpf-accent); cursor: pointer; }
|
|
.hpf-iconfield { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
.hpf-iconfield-control { box-sizing: border-box; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; min-height: 44px; border: 1px solid var(--hpf-line); border-radius: 7px; background: var(--hpf-canvas); }
|
|
.hpf-iconfield-control:focus-within { outline: 2px solid var(--hpf-accent); outline-offset: 2px; }
|
|
.hpf-iconfield-control > .hpf-input, .hpf-iconfield-control > ha-icon-picker { flex: 1 1 auto; min-width: 0; width: 100%; }
|
|
hp-dialog .hpf-form .hpf-iconfield-control > .hpf-input { min-height: 42px; height: 42px; border: 0; background: transparent; }
|
|
.hpf-iconfield-control > .hpf-input:focus { outline: 0; }
|
|
.hpf-iconfield-control > ha-icon-picker { display: block; min-height: 42px; --mdc-text-field-fill-color: transparent; --mdc-text-field-idle-line-color: transparent; --mdc-text-field-hover-line-color: transparent; --mdc-text-field-height: 42px; --mdc-shape-small: 7px; --ha-color-form-background: transparent; --ha-color-border-neutral-loud: transparent; --md-list-item-one-line-container-height: 42px; --md-list-item-two-line-container-height: 42px; }
|
|
.hpf-iconpreview { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; color: var(--hpf-muted); }
|
|
.hpf-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8125rem; }
|
|
.hpf-hint > .hpf-link { padding: 0; }
|
|
.hpf-hint ha-icon { --mdc-icon-size: 16px; display: inline-flex; vertical-align: -3px; }
|
|
.hpf-actionrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
|
|
.hpf-note { display: flex; align-items: flex-start; gap: 6px; }
|
|
.hpf-note > ha-icon { --mdc-icon-size: 16px; flex: 0 0 auto; margin-top: 2px; }
|
|
.hpf-note-warning { color: var(--warning-color, #b87940); }
|
|
.hpf-hint-line { display: block; }
|
|
.hpf-chip-warning { border-color: var(--warning-color, #b87940); color: var(--warning-color, #b87940); }
|
|
.hpf-iconclear { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0; }
|
|
hp-dialog .hpf-form textarea.hpf-input { min-height: 96px; resize: vertical; line-height: 1.5; }
|
|
.hpf-preview { display: flex; justify-content: center; }
|
|
@media (max-width: 480px) {
|
|
.hpf-body { padding: 0 14px 14px; }
|
|
.hpf-head { padding: 14px 14px 12px; }
|
|
.hpf-grid, .hpf-grid.hpf-grid-narrow, .hpf-choices { grid-template-columns: minmax(0, 1fr); }
|
|
.hpf-tiles, .hpf-colortiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.hpf-colorrow { grid-template-columns: minmax(0, 1fr); }
|
|
.hpf-colorrow > .hpf-colorfield { justify-self: start; }
|
|
.hpf-inline { flex-direction: column; align-items: stretch; gap: 7px; }
|
|
.hpf-inline > .hpf-select { width: 100%; }
|
|
.hpf-radios { margin-left: 0; }
|
|
.hpf-seg { flex-wrap: wrap; }
|
|
.hpf-seg label { flex-basis: 42%; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.hpf-toggle > input::after { transition: none; }
|
|
}
|
|
@media (forced-colors: active) {
|
|
hp-dialog .hpf-form .hpf-select { appearance: auto; background-image: none; padding-right: 10px; }
|
|
}
|