-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10079 from hicommonwealth/marcin/10063/ui-referal…
…-boards [Referrals] - UI components pt.2
- Loading branch information
Showing
15 changed files
with
573 additions
and
60 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
packages/commonwealth/client/scripts/styles/mixins/table.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@mixin table-cell { | ||
.table-cell { | ||
display: flex; | ||
gap: 8px; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
|
||
.user-info { | ||
text-decoration: none; | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
color: black; | ||
|
||
div { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
:hover, | ||
:focus, | ||
:visited { | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
&.text-right { | ||
display: block; | ||
text-align: right; | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
.CWTabsRow { | ||
align-items: center; | ||
overflow: auto; | ||
|
||
.tab-header { | ||
display: flex; | ||
|
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
57 changes: 57 additions & 0 deletions
57
packages/commonwealth/client/scripts/views/components/Profile/ReferralsTab/ReferralsTab.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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@import '../../../../styles/shared.scss'; | ||
|
||
.ReferralsTab { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 24px; | ||
|
||
input, | ||
svg { | ||
cursor: pointer !important; | ||
} | ||
|
||
input:read-only { | ||
background-color: $neutral-50; | ||
border-color: $neutral-200; | ||
color: $neutral-400; | ||
|
||
&:hover { | ||
border-color: $neutral-200; | ||
} | ||
|
||
&:focus-within { | ||
border-color: $neutral-200 !important; | ||
box-shadow: none !important; | ||
} | ||
} | ||
|
||
table { | ||
width: 100%; | ||
@include table-cell; | ||
} | ||
|
||
.referral-totals { | ||
margin-right: 16px; | ||
display: flex; | ||
justify-content: flex-end; | ||
gap: 8px; | ||
align-items: center; | ||
} | ||
|
||
.empty-state { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 176px 0; | ||
|
||
@include mediumSmallInclusive { | ||
padding: 96px 0; | ||
} | ||
|
||
.empty-state-text { | ||
color: $neutral-400; | ||
text-align: center; | ||
} | ||
} | ||
} |
Oops, something went wrong.