-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port <ResourceGroup> component to App Router style [#1066]
* Refactored styles from structured component to CSS Module * Refactored <GroupLink> and <IndividualQuickLink> components out into `group-and-resource-links.tsx` * Refactored <ResourceGroup> and contained components
- Loading branch information
Showing
4 changed files
with
490 additions
and
227 deletions.
There are no files selected for viewing
16 changes: 11 additions & 5 deletions
16
static-site/components/list-resources/group-and-resource-links.module.css
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,13 +1,19 @@ | ||
.baseLink { | ||
color: #5097BA; | ||
text-decoration: none; | ||
color: #5097ba; | ||
text-decoration: none; | ||
} | ||
.baseLink:hover { | ||
color: #31586c; | ||
text-decoration: none; | ||
} | ||
|
||
.groupLink { | ||
font-size: 2rem; | ||
font-weight: 500; | ||
} | ||
|
||
.resourceLink { | ||
font-size: 16px; | ||
font-family: monospace; | ||
white-space: pre; /* don't collapse back-to-back spaces */ | ||
font-size: 16px; | ||
font-family: monospace; | ||
white-space: pre; /* don't collapse back-to-back spaces */ | ||
} |
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
79 changes: 79 additions & 0 deletions
79
static-site/components/list-resources/resource-group.module.css
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,79 @@ | ||
.clickable { | ||
cursor: pointer; | ||
} | ||
|
||
.collapsibleRow { | ||
align-items: center; | ||
font-size: 1.6rem; | ||
gap: 0px; | ||
padding-left: 0px; | ||
} | ||
|
||
.flexColumnContainer { | ||
align-items: flex-start; | ||
display: flex; | ||
flex-direction: column; | ||
flex-grow: 10; | ||
justify-content: flex-start; | ||
overflow: hidden; | ||
} | ||
|
||
.flexSpan { | ||
flex-grow: 100; | ||
} | ||
|
||
.headerContainer { | ||
align-items: center; | ||
background-color: rgb(248, 248, 248); | ||
display: flex; | ||
flex-direction: row; | ||
gap: 10px; | ||
justify-content: flex-start; | ||
margin-bottom: 5px; | ||
padding: 5px; | ||
} | ||
|
||
.headerRow { | ||
align-items: flex-end; /* all elements share common baseline */ | ||
color: #4f4b50; | ||
display: flex; | ||
flex-direction: row; | ||
gap: 10px; | ||
justify-content: flex-start; | ||
padding-left: 10px; /* vertically aligns the row with the collapse icon (if any) */ | ||
width: 100%; | ||
} | ||
|
||
.individualResourceContainer { | ||
column-gap: 20px; | ||
} | ||
|
||
.quickLinkRow { | ||
font-size: 1.6rem; | ||
padding-top: 5px; | ||
white-space: nowrap; | ||
} | ||
|
||
.quickLinkWrapper { | ||
padding-left: 5px; | ||
} | ||
|
||
.resourceGroupContainer { | ||
background-color: rgb(251, 251, 251); | ||
border-radius: 5px; | ||
border: 2px solid rgb(204, 204, 204); | ||
margin-bottom: 10px; /* spacing between groups */ | ||
padding-bottom: 5px; /* leave some space inside the group at the bottom */ | ||
} | ||
|
||
.rotate { | ||
display: inline-block; | ||
max-height: 30px; | ||
max-width: 30px; | ||
transition: all 0.3s ease-in; | ||
} | ||
|
||
.unlinkedGroupName { | ||
font-size: "2rem"; | ||
font-weight: "500"; | ||
} |
Oops, something went wrong.