-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
CSS Modules: Facepile #1128
Merged
Merged
CSS Modules: Facepile #1128
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c6f8b19
Converting to module css
aleksandrjPersonal d3e6eb5
Merge branch 'module-css-updates' into algemb/css_Facepile
micahgodbolt b649f17
Init fix for persona add button, need to fix persona first
micahgodbolt 589e8f0
Merge branch 'module-css-updates' into algemb/css_Facepile
micahgodbolt 6ddb538
Merge branch 'module-css-updates' into algemb/css_Facepile
micahgodbolt ba2e12d
Refactored facepile to use onRenderIcon of persona
micahgodbolt d1ffb18
CLeanup and fix tests
micahgodbolt ab0a32d
Update Facepile.scss
micahgodbolt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
102 changes: 50 additions & 52 deletions
102
packages/office-ui-fabric-react/src/components/Facepile/Facepile.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,67 +1,65 @@ | ||
@import '../../common/common'; | ||
|
||
:global { | ||
.ms-Facepile { | ||
position: relative; | ||
width: auto; | ||
} | ||
|
||
.ms-Facepile-clear { | ||
clear: both; | ||
} | ||
.root { | ||
position: relative; | ||
width: auto; | ||
} | ||
|
||
.ms-Facepile-itemButton { | ||
@include focus-outline(); | ||
position: relative; | ||
text-align: center; | ||
@include float(left); | ||
padding: 0; | ||
@include margin-right(4px); | ||
margin-bottom: 4px; | ||
border-radius: 50%; | ||
vertical-align: top; | ||
.clear { | ||
clear: both; | ||
} | ||
|
||
.ms-Persona-details { | ||
flex: 1 0 auto; | ||
} | ||
} | ||
.itemButton { | ||
@include focus-outline(); | ||
position: relative; | ||
text-align: center; | ||
@include float(left); | ||
padding: 0; | ||
@include margin-right(4px); | ||
margin-bottom: 4px; | ||
border-radius: 50%; | ||
vertical-align: top; | ||
|
||
button.ms-Facepile-itemButton { | ||
display: inline; | ||
background: none; | ||
padding: 0; | ||
cursor: pointer; | ||
border: none; | ||
:global(.ms-Persona-details) { | ||
flex: 1 0 auto; | ||
} | ||
} | ||
|
||
button.ms-Facepile-addButton { | ||
font-size: $ms-font-size-m; | ||
color: $ms-color-white; | ||
background-color: $ms-color-themePrimary; | ||
|
||
&:hover, &:focus { | ||
background-color: $ms-color-themeDark; | ||
} | ||
button.itemButton { | ||
display: inline; | ||
background: none; | ||
padding: 0; | ||
cursor: pointer; | ||
border: none; | ||
} | ||
|
||
&:active { | ||
background-color: $ms-color-themeDarker; | ||
} | ||
button.addButton { | ||
font-size: $ms-font-size-m; | ||
color: $ms-color-white; | ||
background-color: $ms-color-themePrimary; | ||
|
||
&:disabled, | ||
&.is-disabled { | ||
background-color: $ms-color-neutralTertiaryAlt; | ||
} | ||
&:hover, &:focus { | ||
background-color: $ms-color-themeDark; | ||
} | ||
|
||
button.ms-Facepile-overflowButton { | ||
font-size: $ms-font-size-m; | ||
color: $ms-color-neutralSecondary; | ||
background-color: $ms-color-neutralLight; | ||
&:active { | ||
background-color: $ms-color-themeDarker; | ||
} | ||
|
||
button.ms-Facepile-descriptiveOverflowButton { | ||
font-size: $ms-font-size-s; | ||
color: $ms-color-neutralSecondary; | ||
background-color: $ms-color-neutralLight; | ||
&:disabled, | ||
&.isDisabled { | ||
background-color: $ms-color-neutralTertiaryAlt; | ||
} | ||
} | ||
|
||
button.overflowButton { | ||
font-size: $ms-font-size-m; | ||
color: $ms-color-neutralSecondary; | ||
background-color: $ms-color-neutralLight; | ||
} | ||
|
||
button.descriptiveOverflowButton { | ||
font-size: $ms-font-size-s; | ||
color: $ms-color-neutralSecondary; | ||
background-color: $ms-color-neutralLight; | ||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
i'm not sure isDisabled is used.