-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: (8)-refactored global style sheet #6376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| .tableHeader { | ||
| background-color: var(--color-red-500); | ||
| font-weight: var(--font-weight-bold); | ||
| } | ||
|
|
||
| .eventsAttended, | ||
| .membername { | ||
| color: var(--color-blue-200); | ||
| } | ||
|
|
||
| .membername { | ||
| font-size: var(--font-size-md); | ||
| font-weight: var(--font-weight-bold); | ||
| color: var(--color-blue-200); | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| .membername:hover { | ||
| color: var(--color-blue-500); | ||
| text-decoration: underline; | ||
| } | ||
|
|
||
| .subtleBlueGrey { | ||
| color: var(--color-blue-200); | ||
| } | ||
|
|
||
| .subtleBlueGrey:hover { | ||
| color: var(--color-blue-500); | ||
| } | ||
|
|
||
| .removeButton { | ||
| margin-bottom: var(--space-5); | ||
| background-color: var(--color-red-100); | ||
| color: var(--color-red-500); | ||
| margin-right: var(--space-5); | ||
| --bs-btn-border-color: var(--color-red-100); | ||
| } | ||
|
|
||
| .removeButton:is(:hover, :active, :focus) { | ||
| background-color: var(--color-red-500); | ||
| border-color: var(--color-red-500); | ||
| color: var(--color-white); | ||
| } | ||
|
|
||
| .calendar__header { | ||
| display: flex; | ||
| flex-direction: row; | ||
| align-items: center; | ||
| justify-content: space-between; | ||
| flex-wrap: nowrap; | ||
| width: 100%; | ||
| gap: var(--space-5); | ||
| } | ||
|
|
||
| @media (max-width: 768px) { | ||
| .calendar__header { | ||
| flex-wrap: wrap; | ||
| } | ||
| } | ||
|
|
||
| .flexCenter { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .flexColumn { | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .fullWidthHeight { | ||
| width: 100%; | ||
| height: 100%; | ||
| } | ||
|
|
||
| .avatarImage { | ||
| object-fit: cover; | ||
| border-radius: var(--radius-full); | ||
| width: var(--avatar-size, var(--logo-xs)); | ||
| height: var(--avatar-size, var(--logo-xs)); | ||
| } | ||
|
|
||
| .avatarPlaceholder { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| border-radius: var(--radius-full); | ||
| background-color: var(--color-gray-50); | ||
| } | ||
|
|
||
| .avatarPlaceholderSize { | ||
| width: var(--avatar-size, var(--logo-xs)); | ||
| height: var(--avatar-size, var(--logo-xs)); | ||
| } | ||
|
|
||
| .memberNameFontSize { | ||
| font-size: var(--font-size-md); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,152 @@ | ||
| .modalContent :global(.modal-dialog) { | ||
| width: var(--space-26); | ||
| max-width: var(--space-26); | ||
| } | ||
|
|
||
| .input { | ||
| flex: 1; | ||
| position: relative; | ||
| padding-right: var(--space-26); | ||
| padding-inline-end: var(--space-26); | ||
| width: var(--space-24); | ||
| } | ||
|
|
||
| .input:active { | ||
| box-shadow: var(--border-shadow-xs) var(--border-shadow-xs) | ||
| var(--border-shadow-xs) rgba(0, 0, 0, 0.3); | ||
|
|
||
| background-color: var(--color-blue-200); | ||
| border-color: var(--color-gray-200); | ||
| color: var(--color-gray-700); | ||
| } | ||
|
Comment on lines
+14
to
+21
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider design tokens for hardcoded shadow colors. The box-shadow declarations use hardcoded Example locations:
Based on learnings, this is acceptable for CSS migration PRs focused on moving styles to colocated modules. Full token adoption can be completed in a subsequent phase. Also applies to: 23-28, 124-134 🤖 Prompt for AI Agents |
||
|
|
||
| .input:focus-within { | ||
| box-shadow: var(--border-shadow-xs) var(--border-shadow-xs) | ||
| var(--border-shadow-xs) rgba(0, 0, 0, 0.3); | ||
|
|
||
| border-color: var(--color-gray-200); | ||
| } | ||
|
|
||
| .tableHeadCell { | ||
| background-color: var(--color-gray-100); | ||
| color: var(--color-gray-700); | ||
| } | ||
|
|
||
| .tableBodyCell { | ||
| font-size: var(--font-size-sm); | ||
| } | ||
|
|
||
| .tableRow:last-child td, | ||
| .tableRow:last-child th { | ||
| border: 0; | ||
| } | ||
|
|
||
| .TableImage { | ||
| object-fit: cover; | ||
| margin-right: var(--space-2); | ||
| width: var(--space-10); | ||
| height: var(--space-10); | ||
| border-radius: var(--radius-full); | ||
| } | ||
|
|
||
| .eventsAttended, | ||
| .membername { | ||
| color: var(--color-blue-200); | ||
| } | ||
|
|
||
| .membername { | ||
| font-size: var(--font-size-md); | ||
| font-weight: var(--font-weight-bold); | ||
| color: var(--color-blue-200); | ||
| text-decoration: none; | ||
| } | ||
|
Comment on lines
+52
to
+62
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Remove redundant color declaration in The ♻️ Proposed fix to eliminate redundancy .eventsAttended,
.membername {
color: var(--color-blue-200);
}
.membername {
font-size: var(--font-size-md);
font-weight: var(--font-weight-bold);
- color: var(--color-blue-200);
text-decoration: none;
}🤖 Prompt for AI Agents |
||
|
|
||
| .membername:hover { | ||
| color: var(--color-blue-500); | ||
| text-decoration: underline; | ||
| } | ||
|
|
||
| .subtleBlueGrey { | ||
| color: var(--color-blue-200); | ||
| } | ||
|
|
||
| .subtleBlueGrey:hover { | ||
| color: var(--color-blue-500); | ||
| } | ||
|
|
||
| .addButton { | ||
| margin-bottom: var(--space-5); | ||
| color: var(--color-gray-700); | ||
| background-color: var(--color-blue-200); | ||
| border-color: var(--color-blue-200); | ||
| --bs-btn-focus-box-shadow: none; | ||
| } | ||
|
|
||
| .addButton:is(:hover, :active, :focus) { | ||
| background-color: var(--color-blue-500); | ||
| border-color: var(--color-gray-700); | ||
| } | ||
|
|
||
| .addButton:disabled { | ||
| margin-bottom: var(--space-5); | ||
| } | ||
|
|
||
| .headers { | ||
| border: none; | ||
| background-color: var(--color-white); | ||
| padding: var(--space-5); | ||
| color: var(--color-black); | ||
| } | ||
|
|
||
| .headers :global(.modal-title) { | ||
| color: var(--color-gray-700); | ||
| font-weight: var(--font-weight-semibold); | ||
| font-size: var(--font-size-xl); | ||
| } | ||
|
|
||
| .headers :global(button.close), | ||
| .headers :global(.btn-close) { | ||
| color: var(--color-red-500); | ||
| opacity: 1; | ||
| } | ||
|
|
||
| .borderNone { | ||
| border: none; | ||
| } | ||
|
|
||
| .colorPrimary { | ||
| background: var(--color-blue-200); | ||
| color: var(--color-gray-700); | ||
| --bs-btn-active-bg: var(--color-blue-200); | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .colorPrimary:hover, | ||
| .colorPrimary:focus, | ||
| .colorPrimary:active { | ||
| background-color: var(--color-blue-200); | ||
| box-shadow: | ||
| 0 var(--shadow-offset-xs) var(--shadow-blur-sm) var(--shadow-spread-none) | ||
| rgba(168, 199, 250, 1), | ||
| 0 var(--shadow-offset-md) var(--shadow-blur-lg) var(--shadow-spread-sm) | ||
| rgba(60, 64, 67, 0.15); | ||
| color: var(--color-gray-700); | ||
| } | ||
|
|
||
| .colorWhite { | ||
| color: var(--color-gray-700); | ||
| } | ||
|
|
||
| .removeButton { | ||
| margin-bottom: var(--space-5); | ||
| background-color: var(--color-red-100); | ||
| color: var(--color-red-500); | ||
| margin-right: var(--space-5); | ||
| --bs-btn-border-color: var(--color-red-100); | ||
| } | ||
|
|
||
| .removeButton:is(:hover, :active, :focus) { | ||
| background-color: var(--color-red-500); | ||
| border-color: var(--color-red-500); | ||
| color: var(--color-white); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
Remove redundant color declaration in
.membername.The
color: var(--color-blue-200)property is declared twice: once in the combined selector (line 8) and again in the.membernameindividual selector (line 14). This duplication is unnecessary and mirrors the same issue in AddMember.module.css.♻️ Proposed fix to eliminate redundancy
.eventsAttended, .membername { color: var(--color-blue-200); } .membername { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); - color: var(--color-blue-200); text-decoration: none; }📝 Committable suggestion
🤖 Prompt for AI Agents