-
Notifications
You must be signed in to change notification settings - Fork 930
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Overview): API Reference overview section design fixes (#8832)
- Loading branch information
Showing
7 changed files
with
102 additions
and
53 deletions.
There are no files selected for viewing
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
78 changes: 61 additions & 17 deletions
78
...ence/overview/api-reference-table-of-contents/api-reference.table-of-contents.module.scss
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 |
---|---|---|
@@ -1,31 +1,75 @@ | ||
.apiRefToc { | ||
display: flex; | ||
gap: 48px; | ||
flex-direction: column; | ||
gap: 20px; | ||
} | ||
|
||
.apiRefTocGroup { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 24px; | ||
align-items: flex-start; | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); | ||
gap: 12px; | ||
} | ||
|
||
.apiRefTocGroupItem { | ||
display: flex; | ||
gap: 8px; | ||
justify-content: center; | ||
align-items: center; | ||
.apiRefTocGroupC { | ||
display: grid; | ||
grid-template-columns: 180px 1fr; | ||
} | ||
|
||
@media (min-width: 600px) { | ||
.apiRefTocGroup { | ||
grid-template-columns: repeat(1, 1fr); | ||
} | ||
} | ||
|
||
@media (min-width: 800px) { | ||
.apiRefTocGroup { | ||
grid-template-columns: repeat(2, 1fr); | ||
} | ||
} | ||
|
||
@media (min-width: 1000px) { | ||
.apiRefTocGroup { | ||
grid-template-columns: repeat(3, 1fr); | ||
} | ||
} | ||
|
||
@media (min-width: 1200px) { | ||
.apiRefTocGroup { | ||
grid-template-columns: repeat(4, 1fr); | ||
} | ||
} | ||
|
||
.apiRefTocGroupItemName { | ||
@media (min-width: 1400px) { | ||
.apiRefTocGroup { | ||
grid-template-columns: repeat(5, 1fr); | ||
} | ||
} | ||
|
||
.apiRefTocGroupName { | ||
display: flex; | ||
font-size: 16px; | ||
} | ||
|
||
.apiRefTocGroupIcon { | ||
display: flex; | ||
> img { | ||
height: 16px; | ||
width: 16px; | ||
} | ||
width: 16px; | ||
height: 16px; | ||
padding: 0px 8px; | ||
} | ||
|
||
.apiRefTocGroupItem { | ||
padding: 8px; | ||
font-size: 16px; | ||
align-items: flex-start; | ||
} | ||
|
||
.apiRefTocLink { | ||
text-decoration: none; | ||
} | ||
|
||
.apiRefTocGroupNameContainer { | ||
display: grid; | ||
font-size: 16px; | ||
font-weight: 500; | ||
align-items: flex-start; | ||
grid-column: 1; | ||
padding: 8px 0px; | ||
} |
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
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