| 1 |
/** |
| 2 |
* OpenStation — Bug Report native window styles. |
| 3 |
* |
| 4 |
* Compact form: type radio strip + title input + two textareas + a |
| 5 |
* collapsible environment block + a primary submit. Designed to fit |
| 6 |
* the default 560×620 window without scrolling on most viewports. |
| 7 |
* |
| 8 |
* @since 0.6.2 |
| 9 |
*/ |
| 10 |
|
| 11 |
.desktop-mode-bug-report { |
| 12 |
display: flex; |
| 13 |
flex-direction: column; |
| 14 |
height: 100%; |
| 15 |
background: var( --os-window-bg, #fff ); |
| 16 |
color: var( --os-fg, #1d2327 ); |
| 17 |
} |
| 18 |
|
| 19 |
.os-bug-report__form { |
| 20 |
display: flex; |
| 21 |
flex-direction: column; |
| 22 |
gap: 14px; |
| 23 |
padding: 18px 20px 20px; |
| 24 |
overflow-y: auto; |
| 25 |
} |
| 26 |
|
| 27 |
.os-bug-report__intro { |
| 28 |
margin: 0; |
| 29 |
font-size: 13px; |
| 30 |
line-height: 1.45; |
| 31 |
color: var( --os-ui-fg-muted, #50575e ); |
| 32 |
} |
| 33 |
|
| 34 |
.os-bug-report__error { |
| 35 |
padding: 8px 10px; |
| 36 |
border: 1px solid var( --os-ui-danger, #d63638 ); |
| 37 |
border-radius: 4px; |
| 38 |
/* Same pairing rule as every other status wash: the surface follows |
| 39 |
the palette so its ink stays legible on it. */ |
| 40 |
background: var( --os-ui-notice-error-bg, #fcf0f1 ); |
| 41 |
color: var( --os-ui-danger, #b32d2e ); |
| 42 |
font-size: 12px; |
| 43 |
} |
| 44 |
|
| 45 |
.os-bug-report__field { |
| 46 |
display: flex; |
| 47 |
flex-direction: column; |
| 48 |
gap: 4px; |
| 49 |
} |
| 50 |
|
| 51 |
.os-bug-report__label { |
| 52 |
display: flex; |
| 53 |
flex-direction: column; |
| 54 |
gap: 4px; |
| 55 |
font-size: 12px; |
| 56 |
font-weight: 500; |
| 57 |
color: var( --os-fg, #1d2327 ); |
| 58 |
} |
| 59 |
|
| 60 |
.os-bug-report__radio-group { |
| 61 |
display: flex; |
| 62 |
gap: 14px; |
| 63 |
flex-wrap: wrap; |
| 64 |
margin-top: 2px; |
| 65 |
} |
| 66 |
|
| 67 |
.os-bug-report__radio { |
| 68 |
display: inline-flex; |
| 69 |
align-items: center; |
| 70 |
gap: 6px; |
| 71 |
font-size: 13px; |
| 72 |
font-weight: 400; |
| 73 |
color: var( --os-fg, #1d2327 ); |
| 74 |
cursor: pointer; |
| 75 |
} |
| 76 |
|
| 77 |
.os-bug-report__radio input[ type = "radio" ] { |
| 78 |
margin: 0; |
| 79 |
} |
| 80 |
|
| 81 |
.os-bug-report__input, |
| 82 |
.os-bug-report__textarea { |
| 83 |
width: 100%; |
| 84 |
padding: 8px 10px; |
| 85 |
border: 1px solid var( --os-ui-border, #c3c4c7 ); |
| 86 |
border-radius: 4px; |
| 87 |
background: var( --os-ui-surface, #fff ); |
| 88 |
font: inherit; |
| 89 |
font-size: 13px; |
| 90 |
line-height: 1.45; |
| 91 |
color: inherit; |
| 92 |
box-sizing: border-box; |
| 93 |
transition: |
| 94 |
border-color 120ms ease-out, |
| 95 |
box-shadow 120ms ease-out; |
| 96 |
} |
| 97 |
|
| 98 |
.os-bug-report__textarea { |
| 99 |
resize: vertical; |
| 100 |
min-height: 80px; |
| 101 |
font-family: inherit; |
| 102 |
} |
| 103 |
|
| 104 |
.os-bug-report__input:focus, |
| 105 |
.os-bug-report__textarea:focus { |
| 106 |
outline: none; |
| 107 |
border-color: var( --wp-admin-theme-color, #2271b1 ); |
| 108 |
box-shadow: 0 0 0 1px var( --wp-admin-theme-color, #2271b1 ); |
| 109 |
} |
| 110 |
|
| 111 |
.os-bug-report__metadata { |
| 112 |
margin-top: 4px; |
| 113 |
border: 1px solid var( --os-ui-border, #c3c4c7 ); |
| 114 |
border-radius: 4px; |
| 115 |
background: var( --os-ui-surface-elevated, #f6f7f7 ); |
| 116 |
font-size: 12px; |
| 117 |
} |
| 118 |
|
| 119 |
.os-bug-report__metadata > summary { |
| 120 |
padding: 8px 10px; |
| 121 |
cursor: pointer; |
| 122 |
font-weight: 500; |
| 123 |
color: var( --os-fg, #1d2327 ); |
| 124 |
user-select: none; |
| 125 |
} |
| 126 |
|
| 127 |
.os-bug-report__metadata-body { |
| 128 |
margin: 0; |
| 129 |
padding: 0 10px 10px; |
| 130 |
font-family: var( --os-ui-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, monospace ); |
| 131 |
font-size: 11px; |
| 132 |
line-height: 1.5; |
| 133 |
color: var( --os-ui-fg-muted, #50575e ); |
| 134 |
white-space: pre-wrap; |
| 135 |
word-break: break-all; |
| 136 |
} |
| 137 |
|
| 138 |
.os-bug-report__actions { |
| 139 |
display: flex; |
| 140 |
align-items: center; |
| 141 |
gap: 12px; |
| 142 |
margin-top: 4px; |
| 143 |
} |
| 144 |
|
| 145 |
.os-bug-report__submit { |
| 146 |
padding: 8px 16px; |
| 147 |
border: 1px solid var( --wp-admin-theme-color, #2271b1 ); |
| 148 |
border-radius: 4px; |
| 149 |
background: var( --wp-admin-theme-color, #2271b1 ); |
| 150 |
color: var( --os-ui-fg-on-accent, #fff ); |
| 151 |
font: inherit; |
| 152 |
font-size: 13px; |
| 153 |
font-weight: 500; |
| 154 |
cursor: pointer; |
| 155 |
transition: |
| 156 |
filter 120ms ease-out, |
| 157 |
box-shadow 120ms ease-out; |
| 158 |
} |
| 159 |
|
| 160 |
.os-bug-report__submit:hover { |
| 161 |
filter: brightness( 1.05 ); |
| 162 |
box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.15 ); |
| 163 |
} |
| 164 |
|
| 165 |
.os-bug-report__submit:focus-visible { |
| 166 |
outline: 2px solid var( --wp-admin-theme-color, #2271b1 ); |
| 167 |
outline-offset: 2px; |
| 168 |
} |
| 169 |
|
| 170 |
.os-bug-report__hint { |
| 171 |
font-size: 12px; |
| 172 |
color: var( --os-ui-fg-muted, #50575e ); |
| 173 |
} |
| 174 |
|