@pnp/spfx-controls-react
Version:
Reusable React controls for SharePoint Framework solutions
178 lines (157 loc) • 2.91 kB
CSS
/*
Your use of the content in the files referenced here is subject to the terms of the license at http://aka.ms/fabric-assets-license
*/
.dialog {
max-width: 600px;
width: 600px;
}
.dialogSelectedIcons {
font-size: 30px;
min-width: 32px;
width: 100%;
color: "[theme: themePrimary, default: #0078d7]";
text-align: center;
}
.dialogIconsContainer {
padding: 5px;
overflow: auto;
max-height: 600px;
height: 600px;
}
.dialogFooter {
display: flex;
flex-direction: row;
justify-content: flex-end;
}
.dialogFooter .save {
margin-right: 5px;
}
.navArea {
display: flex;
width: 100%;
padding-left: 11px;
}
.headTitle {
display: inline-block;
flex-grow: 1;
flex-shrink: 2;
font-size: 28px;
font-weight: 300;
margin: auto 8px 5px 0;
white-space: nowrap;
}
.searchBox {
flex-grow: 5;
flex-shrink: 1;
margin: 5px 0;
}
.closeBtnContainer {
flex: 0 0 54px;
display: flex;
justify-content: flex-end;
}
.iconList {
list-style-type: none;
display: flex;
flex-wrap: wrap;
padding: 0;
margin: 10px -5px;
}
.iconItem {
display: inline-block;
padding: 0;
margin: 0 2px 4px;
list-style-type: none;
position: relative;
overflow: hidden;
}
.iconRadio {
position: absolute;
left: -1000px;
opacity: 0;
}
.iconLabel {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
width: 78px;
padding: 5px;
height: 70px;
border-radius: 3px;
background-color: "[theme:neutralLighterAlt, default:#f8f8f8]";
}
.iconLabel:after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 2px solid transparent;
border-color: "[theme:neutralQuarternary, default:#d0d0d0]";
border-radius: 3px;
opacity: 0;
will-change: opacity, border-color;
transition: opacity ease-out 0.05s;
}
.iconLabel:hover:after {
opacity: 1;
}
.iconRadio:checked + .iconLabel {
color: "[theme: themePrimary, default: #0078d7]";
}
.iconRadio:checked + .iconLabel:after {
opacity: 1;
border-color: "[theme: themePrimary, default: #0078d7]";
}
.iconRadio:focus + .iconLabel {
outline: 1px;
outline-color: "[theme: themePrimary, default: #0078d7]";
outline-offset: -5px;
}
.iconGlyph {
font-size: 24px;
width: 24px;
height: 24px;
margin-bottom: 5px;
color: inherit;
}
.iconName {
display: inline-block;
max-width: 100%;
text-align: left;
font-size: 12px;
}
.footer {
display: flex;
width: 100%;
}
.selectionDisplay {
order: 2;
display: flex;
flex: 1 0 32px;
margin: 0 auto;
align-items: center;
justify-content: center;
}
.selectionDisplay:global.noSelection {
opacity: 0.3;
}
.selectionLabel {
display: inline-block;
}
.selectionIcon {
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
min-width: 32px;
}
.btnCancel {
order: 1;
}
.btnSave {
order: 3;
}