-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sources): refactor source grid and collapsible sections
- Loading branch information
1 parent
31f5228
commit a21206b
Showing
4 changed files
with
209 additions
and
92 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
app/components-react/windows/source-showcase/SourceGrid.m.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.source-grid { | ||
:global(.ant-collapse-content-box) { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
|
||
:global(.ant-collapse-content-box .source-tag) { | ||
margin-bottom: 8px; | ||
} | ||
|
||
:global(.collapse-section) { | ||
display: flex; | ||
flex: 1; | ||
flex-wrap: wrap; | ||
} | ||
|
||
:global(.ant-collapse-header) { | ||
padding-left: 0 !important; | ||
padding-right: 0 !important; | ||
font-size: 20px; | ||
|
||
|
||
.ant-collapse-arrow { | ||
font-size: 16px !important; | ||
} | ||
} | ||
|
||
// Override disabled styles from antd, we use this for the essential section | ||
:global(.ant-collapse-item-disabled .ant-collapse-header) { | ||
cursor: default !important; | ||
color: var(--title) !important; | ||
} | ||
|
||
:global(.ant-collapse-content-box) { | ||
padding-left: 0 !important; | ||
padding-right: 0 !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters