當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。