Skip to content

Assorted CSS code style improvements - #1669

Merged
gregorydlogan merged 9 commits into
opencast:developfrom
Arnei:css/flatten-nesting
Sep 8, 2026
Merged

Assorted CSS code style improvements#1669
gregorydlogan merged 9 commits into
opencast:developfrom
Arnei:css/flatten-nesting

Conversation

@Arnei

@Arnei Arnei commented Sep 7, 2026

Copy link
Copy Markdown
Member

Attempts at making our CSS just a little bit simpler, mostly by renaming or simplifying selectors, or just straight up deleting unused ones.

How to test this

Should result in no visual changes, so testing is mostly about checking if the affected components still look the same.

AI Usage

Claude Sonnet 5 was used in finding these.

The base and .small dropdown menus repeated the same properties; extracted them into a shared mixin.

This commit was AI generated
Each td action-icon modifier is now its own sibling selector instead of being nested under one shared block.

This commit was AI generated
The stream table wrapper now has its own unique class instead of relying on a 6-level ancestor selector chain.

This commit was AI generated
The old float/absolute/negative-margin combo didn't reliably keep the mode row below it from overlapping; a flex row does.

This commit was AI generated
The floated cancel/save buttons weren't contained by their parent, collapsing it to zero height; flexbox fixes that.

This commit was AI generated
.inline-content, .small-column/.medium-column, .checkbox-container.one-line, and .button-container.float-opposite were never referenced by any component; removed instead of converting them.

This commit was AI generated
.tiny-form/.smaller-form/.small-form/.medium-form/.large-form, .add-btn/.circle-btn, .red-btn (its rule stays via .danger-btn), and the .action/.single/.double/.triple/.status-col table-column-width modifiers are never applied by any component - verified via full-codebase search, git history, and checking every "+ Add" button's shared code path.

This commit was AI generated
darker-row, event-container, external-link, has-alert, multi-select-search (base rule and the leftover #group-modal reference), no-padding, section-heading, single-btn, text-left/text-right, top-tbl, vertical-resize, wider, and being-dragged (its unused drag-snapshot prop confirmed via _snapshot) are all unreferenced. Also renamed offset-col-2 to offset-col since offset-col-1 (its only sibling) is gone.

This commit was AI generated
@Arnei Arnei added the type:code-enhancement Internal improvements to the codebase label Sep 7, 2026
TableActionDropdown is a bulk-actions menu, not a value-picker dropdown (that's DropDown.tsx/react-select), so the old naming was misleading; renamed .drop-down-container to .action-menu and dropped everything the component never actually applies (.small/.flipped/.active states, unused variables, a stale <a> selector, an inert dropdown-ul class) along with 3 orphaned cross-file overrides in _form.scss and _modal-components.scss that targeted the old class name in contexts the component never renders in.

This commit was AI generated
@gregorydlogan gregorydlogan self-assigned this Sep 8, 2026
@gregorydlogan
gregorydlogan merged commit 8207028 into opencast:develop Sep 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:code-enhancement Internal improvements to the codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants