-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Converting to module css * Init fix for persona add button, need to fix persona first * Refactored facepile to use onRenderIcon of persona * CLeanup and fix tests * Update Facepile.scss
- Loading branch information
1 parent
8aa9ec2
commit b262bfa
Showing
3 changed files
with
139 additions
and
97 deletions.
There are no files selected for viewing
101 changes: 49 additions & 52 deletions
101
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,64 @@ | ||
@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 { | ||
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.