How to use the @uifabric/merge-styles.mergeStyleSets function in @uifabric/merge-styles

To help you get started, we’ve selected a few @uifabric/merge-styles examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github s-bauer / office-ui-fabric-vue / packages / documentation / src / components / TechnicalDescription.vue View on Github external
const selectors: any                                                                                  = {};
            selectors[`> *:nth-child(-n+${this.headerCount})`]                                                    = {
                borderBottom: "1px solid rgba(0, 0, 0, 0.35)"
            };
            selectors[`> *:not(:nth-last-child(-n+${this.headerCount})):not(:nth-child(-n+${this.headerCount}))`] = {
                borderBottom: "1px solid rgba(0, 0, 0, 0.2)"
            };
            selectors[`> *:not(:nth-child(${this.headerCount}n))`]                                                = {
                borderRight: "1px solid rgba(0, 0, 0, 0.2)"
            };
            selectors[`> *`]                                                                                      = {
                paddingLeft: "5px"
            };

            // noinspection TypeScriptValidateTypes
            return mergeStyleSets({
                root: [
                    "technical-description",
                    {
                        gridTemplateColumns: "200px ".repeat(this.headerCount - 1) + "auto",
                        display:             "grid",
                        selectors
                    },
                ]
            });
        }
    }
github s-bauer / office-ui-fabric-vue / packages / office-ui-fabric-vue / src / Link / OfficeLink.vue View on Github external
private get classNames() {
            return mergeStyleSets(getStyles({
                theme: loadTheme({}),
                isButton: !this.href,
                isDisabled: this.disabled
            }));
        }
    }
github s-bauer / office-ui-fabric-vue / packages / office-ui-fabric-vue / src / Overlay / OfficeOverlay.vue View on Github external
public get classNames() : IOfficeOverlayStyles {
            return mergeStyleSets(getStyles({
                isDark: this.isDarkThemed,
                isNone: !this.visible,
                theme: createTheme({}),
            }));
        }
github s-bauer / office-ui-fabric-vue / packages / office-ui-fabric-vue / src / Label / OfficeLabel.vue View on Github external
private get classNames() {
            return mergeStyleSets(getStyles({
                className: "",
                disabled: this.disabled,
                required: this.required,
                theme: loadTheme({})
            }));
        }
    }
github OfficeDev / office-ui-fabric-react / packages / utilities / src / classNamesFunction.ts View on Github external
return (getStyles?: IStyleFunctionOrObject, styleProps?: TStyleProps): IClassNames =>
    mergeStyleSets(getStyles && (typeof getStyles === 'function' ? getStyles(styleProps!) : getStyles));
}
github s-bauer / office-ui-fabric-vue / src / components / Slider / OfficeSlider.vue View on Github external
private get classNames() {
            return mergeStyleSets(getStyles({
                theme: loadTheme({}),
                vertical: this.vertical,
                disabled: this.disabled,
                showValue: this.showValue,
                showTransitions: this.renderedValue === this.internalValue
            }));
        }
github s-bauer / office-ui-fabric-vue / packages / office-ui-fabric-vue / src / Checkbox / OfficeCheckbox.vue View on Github external
private get classNames() {
            return mergeStyleSets(getStyles({
                checked:                  this.isChecked,
                disabled:                 this.disabled,
                className:                "",
                isUsingCustomLabelRender: false,
                theme:                    loadTheme({})
            }));
        }
    }
github s-bauer / office-ui-fabric-vue / packages / office-ui-fabric-vue / src / Icon / OfficeIcon.vue View on Github external
private get classNames() {
            const {iconClassName, children} = this.getIconContent(this.iconName);
            this.children = children;
            return mergeStyleSets(getStyles({
                iconClassName,
                className: "",
                isImage: this.isImage,
                isPlaceholder: typeof this.iconName === "string" && this.iconName.length === 0,
                styles: {}
            }));
        }
github s-bauer / office-ui-fabric-vue / packages / office-ui-fabric-vue / src / Spinner / OfficeSpinner.vue View on Github external
private get classNames() {
            return mergeStyleSets(getStyles({
                theme: loadTheme({}),
                labelPosition: this.labelPosition,
                size: this.size
            }));
        }
    }
github s-bauer / office-ui-fabric-vue / packages / office-ui-fabric-vue / src / Toggle / OfficeToggle.vue View on Github external
private get classNames() {
            return mergeStyleSets(getStyles({
                theme: loadTheme({}),
                checked: this.checked,
                disabled: this.disabled
            }));
        }