Skip to content

Commit a49cecf

Browse files
renemadsenclaude
andcommitted
feat: style dropdowns and sub-header to match Google Drive in workspace theme
Add white background to sub-header filter bar, style mat-select/mtx-select/ autocomplete panels with white bg and 8px radius, override mat-mdc-option and ng-dropdown-panel options with Google Drive font, sizing, and hover colors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4d44676 commit a49cecf

1 file changed

Lines changed: 65 additions & 1 deletion

File tree

eform-client/src/scss/components/_workspace-overrides.scss

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,70 @@ body.theme-workspace {
255255
font-family: var(--font-family) !important;
256256
}
257257
}
258-
}
259258

259+
// --- Sub-header (filter bar with Etiketter) — white bg like Google Drive ---
260+
.eform-sub-header {
261+
background: var(--content-card-bg, #ffffff) !important;
262+
}
263+
264+
// --- Dropdown / select panels — Google Drive style ---
265+
.mat-mdc-select-panel,
266+
.mtx-select-panel,
267+
.mat-mdc-autocomplete-panel {
268+
background-color: var(--content-card-bg, #ffffff) !important;
269+
border-radius: 8px !important;
270+
border: none !important;
271+
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
272+
rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
273+
rgba(0, 0, 0, 0.12) 0px 1px 10px 0px !important;
274+
}
275+
276+
// Dropdown options — match menu item style
277+
.mat-mdc-option {
278+
font-size: 14px !important;
279+
font-weight: 400 !important;
280+
font-family: var(--font-family) !important;
281+
color: var(--text-header, #1f1f1f) !important;
282+
min-height: 36px !important;
283+
border-radius: 0 !important;
284+
285+
&:hover,
286+
&.mat-mdc-option-active,
287+
&.mdc-list-item--selected:not(.mat-mdc-option-multiple) {
288+
background-color: var(--table-row-hover, #f1f3f4) !important;
289+
}
290+
}
291+
292+
// --- ng-select dropdown panel — Google Drive style ---
293+
.ng-dropdown-panel {
294+
background-color: var(--content-card-bg, #ffffff) !important;
295+
border-radius: 8px !important;
296+
border: none !important;
297+
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
298+
rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
299+
rgba(0, 0, 0, 0.12) 0px 1px 10px 0px !important;
300+
overflow: hidden;
301+
302+
.ng-option {
303+
font-size: 14px !important;
304+
font-weight: 400 !important;
305+
font-family: var(--font-family) !important;
306+
color: var(--text-header, #1f1f1f) !important;
307+
height: 36px !important;
308+
min-height: 36px !important;
309+
display: flex !important;
310+
align-items: center !important;
311+
padding: 0 12px !important;
312+
313+
&:hover,
314+
&.ng-option-marked {
315+
background-color: var(--table-row-hover, #f1f3f4) !important;
316+
}
317+
318+
&.ng-option-selected {
319+
background-color: var(--sort-indicator-bg, #c2e7ff) !important;
320+
}
321+
}
322+
}
323+
}
260324

0 commit comments

Comments
 (0)