本文整理汇总了TypeScript中typestyle/lib.style函数的典型用法代码示例。如果您正苦于以下问题:TypeScript style函数的具体用法?TypeScript style怎么用?TypeScript style使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了style函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: style
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { style } from 'typestyle/lib';
export const hoverItem = style({
boxShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)'
});
export const lineFormSearch = style({
padding: '4px 12px',
backgroundColor: 'var(--jp-layout-color2)',
boxShadow: 'var(--jp-toolbar-box-shadow)',
zIndex: 2,
fontSize: 'var(--jp-ui-font-size1)'
});
export const lineFormCaption = style({
fontSize: 'var(--jp-ui-font-size0)',
lineHeight: 'var(--jp-ui-font-size1)',
marginTop: '4px',
color: 'var(--jp-ui-font-color0)'
});
export const lineFormButton = style({
color: 'white',
border: 'none',
borderRadius: '0px',
backgroundColor: 'var(--jp-brand-color1)',
position: 'absolute',
top: '4px',
示例2: style
$nest: {
'&:hover': {
backgroundColor: vars.hoverColor
}
}
};
const clicked = {
backgroundColor: `${vars.clickColor}`
};
export const statusBar = style(
{
background: vars.backgroundColor,
minHeight: vars.height,
justifyContent: 'space-between',
paddingLeft: vars.statusBarPadding,
paddingRight: vars.statusBarPadding
},
centeredFlex
);
export const side = style(centeredFlex);
export const leftSide = style(leftToRight);
export const rightSide = style(rightToLeft);
export const item = style(
{
maxHeight: vars.height,
marginLeft: vars.itemMargin,
示例3: style
import { style } from 'typestyle/lib';
export const progressBarItem = style({
background: 'black',
height: '10px',
width: '100px',
border: '1px solid black',
borderRadius: '3px',
marginLeft: '4px',
overflow: 'hidden'
});
export const fillerItem = style({
background: 'var(--jp-brand-color2)',
height: '10px'
});
示例4: style
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import vars from './variables';
import { NestedCSSProperties } from 'typestyle/lib/types';
import { style } from 'typestyle/lib';
export const baseText: NestedCSSProperties = {
fontSize: vars.fontSize,
fontFamily:
'"HelveticaNeue-Regular", "Helvetica Neue Regular", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif'
};
export const textItem = style(baseText, {
lineHeight: '26px',
color: vars.textColor
});