当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript lib.style函数代码示例

本文整理汇总了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',
开发者ID:AlbertHilb,项目名称:jupyterlab,代码行数:31,代码来源:lineForm.ts

示例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,
开发者ID:blink1073,项目名称:jupyterlab,代码行数:32,代码来源:statusBar.ts

示例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'
});
开发者ID:blink1073,项目名称:jupyterlab,代码行数:16,代码来源:progressBar.ts

示例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
});
开发者ID:AlbertHilb,项目名称:jupyterlab,代码行数:17,代码来源:text.ts


注:本文中的typestyle/lib.style函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。