| 1 |
/* -------------------------------------------------------------------------- |
| 2 |
Settings layout (wpsubs-settings-*) |
| 3 |
|
| 4 |
Heading — full-width section label at the top of a card group. |
| 5 |
Field — two-column row: fixed-width label on left, control on right. |
| 6 |
-------------------------------------------------------------------------- */ |
| 7 |
|
| 8 |
/* Heading: spans full width of the card by pulling out of card padding (20px 24px). |
| 9 |
Its own padding matches the card's, so the first line of a panel starts at the |
| 10 |
same height whether that panel opens with a heading or straight into a field — |
| 11 |
which is what lets the section rail beside it line up with either. */ |
| 12 |
.wpsubs-settings-heading { |
| 13 |
background: var(--wpsubs-surface-muted); |
| 14 |
border-bottom: 1px solid var(--wpsubs-border); |
| 15 |
border-radius: calc(var(--wpsubs-radius) - 1px) calc(var(--wpsubs-radius) - 1px) 0 0; |
| 16 |
margin: -20px -24px 20px; |
| 17 |
padding: 20px 24px; |
| 18 |
} |
| 19 |
|
| 20 |
/* A heading that is not the panel's first band separates two groups rather |
| 21 |
than capping the card. It keeps the full-bleed width but sits below the |
| 22 |
field above it, squared off and ruled on both edges — without this the |
| 23 |
-20px top margin drags it over that field's description. */ |
| 24 |
.wpsubs-settings-heading:not(:first-child) { |
| 25 |
margin-top: 20px; |
| 26 |
border-top: 1px solid var(--wpsubs-border); |
| 27 |
border-radius: 0; |
| 28 |
} |
| 29 |
|
| 30 |
.wpsubs-settings-heading__title { |
| 31 |
font-size: 12px !important; |
| 32 |
font-weight: 600 !important; |
| 33 |
color: var(--wpsubs-text-muted) !important; |
| 34 |
text-transform: uppercase; |
| 35 |
letter-spacing: 0.06em; |
| 36 |
margin: 0; |
| 37 |
line-height: 1.4; |
| 38 |
} |
| 39 |
|
| 40 |
.wpsubs-settings-heading__desc { |
| 41 |
font-size: 12px !important; |
| 42 |
color: var(--wpsubs-text-muted); |
| 43 |
margin: 3px 0 0; |
| 44 |
line-height: 1.5; |
| 45 |
} |
| 46 |
|
| 47 |
/* Field row */ |
| 48 |
.wpsubs-settings-field { |
| 49 |
display: flex; |
| 50 |
align-items: flex-start; |
| 51 |
gap: 24px; |
| 52 |
} |
| 53 |
|
| 54 |
.wpsubs-settings-field__label { |
| 55 |
flex: 0 0 220px; |
| 56 |
font-size: 13px !important; |
| 57 |
font-weight: 500; |
| 58 |
color: var(--wpsubs-text); |
| 59 |
line-height: 1.4; |
| 60 |
padding-top: 2px; /* visually align with single-line input height */ |
| 61 |
} |
| 62 |
|
| 63 |
.wpsubs-settings-field__control { |
| 64 |
flex: 1; |
| 65 |
min-width: 0; |
| 66 |
} |
| 67 |
|
| 68 |
/* Pro-locked fields: shown in the free plugin as a non-interactive preview. */ |
| 69 |
.wpsubs-settings-field--locked .wpsubs-settings-field__control { |
| 70 |
opacity: 0.55; |
| 71 |
pointer-events: none; |
| 72 |
user-select: none; |
| 73 |
} |
| 74 |
|
| 75 |
.subscrpt-pro-badge { |
| 76 |
display: inline-flex; |
| 77 |
align-items: center; |
| 78 |
vertical-align: middle; |
| 79 |
margin-right: 6px; |
| 80 |
padding: 2px 6px; |
| 81 |
border-radius: 3px; |
| 82 |
background: var(--wpsubs-brand); |
| 83 |
color: var(--wpsubs-surface); |
| 84 |
font-size: 10px; |
| 85 |
font-weight: 700; |
| 86 |
line-height: 1.4; |
| 87 |
letter-spacing: 0.04em; |
| 88 |
text-transform: uppercase; |
| 89 |
} |
| 90 |
|
| 91 |
/* Constrain and normalise control widths */ |
| 92 |
.wpsubs-settings-field__control .wpsubs-input, |
| 93 |
.wpsubs-settings-field__control .wpsubs-select { |
| 94 |
min-width: 260px; |
| 95 |
max-width: 400px; |
| 96 |
} |
| 97 |
|
| 98 |
.wpsubs-settings-field__control .wpsubs-adv-select__trigger { |
| 99 |
min-width: 260px; |
| 100 |
} |
| 101 |
|
| 102 |
.wpsubs-settings-field__control .wpsubs-tag-select { |
| 103 |
min-width: 260px; |
| 104 |
max-width: 400px; |
| 105 |
} |
| 106 |
|
| 107 |
/* Input group (joined fields) — constrain width as a whole */ |
| 108 |
.wpsubs-settings-field__control .wpsubs-input-group { |
| 109 |
max-width: 420px; |
| 110 |
} |
| 111 |
|
| 112 |
/* Hint / description below the control */ |
| 113 |
.wpsubs-settings-field__hint { |
| 114 |
font-size: 12px !important; |
| 115 |
color: var(--wpsubs-text-muted); |
| 116 |
margin: 6px 0 0; |
| 117 |
line-height: 1.5; |
| 118 |
} |
| 119 |
|
| 120 |
/* Toggle label — wraps the switch + inline label text */ |
| 121 |
.wpsubs-settings-toggle-label { |
| 122 |
display: inline-flex; |
| 123 |
align-items: center; |
| 124 |
gap: 10px; |
| 125 |
cursor: pointer; |
| 126 |
line-height: 1; |
| 127 |
padding-top: 0; |
| 128 |
position: relative; |
| 129 |
} |
| 130 |
|
| 131 |
.wpsubs-settings-toggle-label__text { |
| 132 |
font-size: 13px !important; |
| 133 |
color: var(--wpsubs-text); |
| 134 |
} |
| 135 |
|