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


TypeScript styled-components.div类代码示例

本文整理汇总了TypeScript中styled-components.div的典型用法代码示例。如果您正苦于以下问题:TypeScript div类的具体用法?TypeScript div怎么用?TypeScript div使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了div类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1:

import styled from 'styled-components';

export const Container = styled.div.withConfig({ componentId: 'main-tool-container' })`
  display: flex;
  flex-grow: 1;
  height: 100%;
  .ant-tabs {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  .ant-tabs-content {
    flex-grow: 1;
  }
  .ant-tabs-nav .ant-tabs-tab {
    padding: 10px 16px;
  }
  .ant-tabs-bar {
    margin-bottom: 0;
    height: 40px;
    min-height: 40px;
  }
`;

export const ScrollContainer = styled.div`
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  width: 300px;
`;
开发者ID:notejs,项目名称:gaea-editor,代码行数:31,代码来源:index.style.ts

示例2:

  }
`;

const ViewportContainerBoxAndPreviewContainer = css`
  display: flex;
  position: relative;
  flex-basis: 0%;
  flex-grow: 1;
  ${(props: any) =>
    props.theme.hidden &&
    `
        display: none;
    `};
`;

export const Container = styled.div.withConfig({ componentId: 'Container' })`
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
`;

export const LeftContainer = styled.div.withConfig({ componentId: 'LeftContainer' })`
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 0;
`;

export const RightContainer = styled.div.withConfig({ componentId: 'RightContainer' })`
  display: flex;
开发者ID:notejs,项目名称:gaea-editor,代码行数:31,代码来源:page.style.ts

示例3:

import styled from 'styled-components';

export const Container = styled.div.withConfig({ componentId: 'tree-container' })`
  display: flex;
  flex-direction: column;
  width: 100%;
`;
开发者ID:notejs,项目名称:gaea-editor,代码行数:7,代码来源:tree.style.ts

示例4: rotate

import styled from 'styled-components';

export const Container = styled.div.withConfig({ componentId: 'tree-node-container' })`
  flex-grow: 1;
`;

export const Title = styled.div`
  cursor: pointer;
  display: flex;
  user-select: none;
  font-size: 14px;
  color: #666;
  flex-grow: 1;
  align-items: center;
`;

export const TitleCaret = styled.div`
  width: 15px;
  height: 15px;
  margin-right: 5px;
  padding-left: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  fill: #666;
  transition: all 0.2s;
  ${(props: any) =>
    props.themes.down &&
    `
    transform: rotate(90deg);
  `};
开发者ID:notejs,项目名称:gaea-editor,代码行数:31,代码来源:tree-node.style.ts

示例5:

import styled from 'styled-components';

const activeBorderColor = '#35b8d6';

export const Container = styled.div.withConfig({ componentId: 'plugin-tree-node-container' })`
  display: flex;
  background-color: #eee;
  color: #666;
  font-size: 14px;
`;

export const Content = styled.div.withConfig({ componentId: 'plugin-tree-node-content' })`
  display: flex;
  flex-grow: 1;
  align-items: center;
  height: 30px;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  transition: border-right-color 0.3s;
  border-right: 3px solid transparent;
  &:hover {
    border-right-color: ${activeBorderColor};
  }
  ${(props: any) =>
    props.theme.editted &&
    `
    border-right-color: ${activeBorderColor};
  `};
`;

export const Title = styled.div`
开发者ID:notejs,项目名称:gaea-editor,代码行数:31,代码来源:tree-node.style.ts


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