Skip to content

Commit b3c74cf

Browse files
committed
Scope opacity and transition rules to non-first children in NavigationSection module
- navigation item section should never get dimmed, continue dimming 'navigation item groups' ├── apps │ └── editor │ └── src │ ├── commands │ │ └── select-referencing-files-commands │ │ ├── index.ts │ │ ├── select-referencing-files-commands.ts │ │ └── utils │ │ ├── get-referencing-files-for-position.ts │ │ ├── get-referencing-files-for-uris.ts │ │ └── prompt-for-referencing-files.ts │ └── views │ └── settings │ └── frontend │ ├── Home │ │ ├── Home.tsx │ │ └── sections │ │ ├── ApiConfigurationsSection.tsx │ │ ├── GeneralSection.tsx │ │ ├── ModelProvidersSection.tsx │ │ └── WebConfigurationsSection.tsx │ └── Settings.tsx └── packages └── ui └── src └── components └── editor └── settings ├── DefaultConfigurationSelector │ ├── DefaultConfigurationSelector.module.scss │ ├── DefaultConfigurationSelector.tsx │ └── index.ts ├── Group │ ├── Group.module.scss │ ├── Group.tsx │ └── use-last-group-padding.ts ├── Item │ ├── Item.module.scss │ ├── Item.stories.tsx │ ├── Item.tsx │ └── index.ts ├── Layout │ ├── Layout.module.scss │ ├── Layout.tsx │ └── index.ts ├── Modal │ ├── Form │ │ ├── Form.module.scss │ │ ├── Form.tsx │ │ └── index.ts │ ├── Modal.module.scss │ ├── Modal.tsx │ └── index.ts ├── NavigationItemGroup │ ├── NavigationItemGroup.module.scss │ ├── NavigationItemGroup.tsx │ └── index.ts ├── NavigationItemSection │ ├── NavigationItemSection.module.scss │ ├── NavigationItemSection.tsx │ └── index.ts ├── NavigationSection │ ├── NavigationSection.module.scss │ ├── NavigationSection.tsx │ └── index.ts ├── Notice │ ├── Notice.module.scss │ ├── Notice.tsx │ └── index.ts ├── Section │ ├── Section.module.scss │ ├── Section.tsx │ └── index.ts ├── SortableList │ ├── SortableList.module.scss │ ├── SortableList.stories.tsx │ ├── SortableList.tsx │ └── index.ts └── Templates ├── Templates.module.scss ├── Templates.tsx └── index.ts
1 parent 14e3972 commit b3c74cf

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
.container {
2-
opacity: var(--dimmed-opacity);
3-
transition: opacity var(--transition-duration-250);
42
display: flex;
53
flex-direction: column;
64

7-
&--active {
5+
> :not(:first-child) {
6+
opacity: var(--dimmed-opacity);
7+
transition: opacity var(--transition-duration-250);
8+
}
9+
10+
&--active > :not(:first-child) {
811
opacity: 1;
912
}
1013

11-
&:hover {
14+
&:hover > :not(:first-child) {
1215
opacity: 1;
1316
}
1417
}

0 commit comments

Comments
 (0)