mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
chore: site code format (#39457)
* format: site code format * Conflicting * lint * rename
This commit is contained in:
parent
0eaf2b40cf
commit
ba999de764
11
.dumi/pages/index/components/SiteContext.ts
Normal file
11
.dumi/pages/index/components/SiteContext.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import * as React from 'react';
|
||||
|
||||
export interface SiteContextProps {
|
||||
isMobile: boolean;
|
||||
}
|
||||
|
||||
const SiteContext = React.createContext<SiteContextProps>({
|
||||
isMobile: false,
|
||||
});
|
||||
|
||||
export default SiteContext;
|
@ -1,4 +1,3 @@
|
||||
/* eslint-disable import/prefer-default-export */
|
||||
import * as React from 'react';
|
||||
import { css } from '@emotion/react';
|
||||
|
@ -1,4 +1,3 @@
|
||||
// @ts-ignore
|
||||
import ColorPaletteTool from '../../common/Color/ColorPaletteTool';
|
||||
|
||||
export default ColorPaletteTool;
|
@ -1,4 +1,3 @@
|
||||
// @ts-ignore
|
||||
import ColorPaletteToolDark from '../../common/Color/ColorPaletteToolDark';
|
||||
|
||||
export default ColorPaletteToolDark;
|
@ -1,4 +1,3 @@
|
||||
// @ts-ignore
|
||||
import ColorPalettes from '../../common/Color/ColorPalettes';
|
||||
|
||||
export default ColorPalettes;
|
@ -1,4 +1,3 @@
|
||||
/* eslint jsx-a11y/no-noninteractive-element-interactions: 0 */
|
||||
import { CheckOutlined, SnippetsOutlined, ThunderboltOutlined } from '@ant-design/icons';
|
||||
import stackblitzSdk from '@stackblitz/sdk';
|
||||
import type { Project } from '@stackblitz/sdk';
|
||||
|
@ -19,12 +19,12 @@ const useStyle = () => {
|
||||
return {
|
||||
editButton: css`
|
||||
a& {
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
margin-inline-start: 6px;
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
margin-inline-start: 6px;
|
||||
|
||||
${iconCls} {
|
||||
display: block;
|
||||
|
@ -182,9 +182,9 @@ export default () => {
|
||||
}
|
||||
|
||||
.code-expand-icon {
|
||||
position: relative;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
@ -14,11 +14,11 @@ h6 {
|
||||
float: left;
|
||||
width: 20px;
|
||||
padding-inline-end: 4px;
|
||||
margin-inline-start: -24px;
|
||||
// hide phantom blank node
|
||||
font-size: 0;
|
||||
text-align: right;
|
||||
line-height: inherit;
|
||||
text-align: right;
|
||||
padding-inline-end: 4px;
|
||||
margin-inline-start: -24px;
|
||||
|
||||
[data-direction='rtl'] & {
|
||||
float: right;
|
||||
@ -29,8 +29,8 @@ h6 {
|
||||
}
|
||||
|
||||
> .icon-link::before {
|
||||
content: '#';
|
||||
font-size: 20px;
|
||||
content: '#';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -85,9 +85,9 @@ export default () => {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: #fff;
|
||||
background: #1677ff;
|
||||
line-height: 110px;
|
||||
text-align: center;
|
||||
background: #1677ff;
|
||||
opacity: 0;
|
||||
transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
||||
content: 'Copied!';
|
||||
|
@ -265,9 +265,9 @@ export default () => {
|
||||
.markdown .dumi-default-table {
|
||||
table {
|
||||
margin: 0;
|
||||
margin: 8px 0 16px;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
margin: 8px 0 16px;
|
||||
direction: ltr;
|
||||
empty-cells: show;
|
||||
border: 1px solid ${token.colorSplit};
|
||||
@ -295,10 +295,10 @@ export default () => {
|
||||
|
||||
th {
|
||||
color: #5c6b77;
|
||||
border-width: 1px 1px 2px;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
background: rgba(0, 0, 0, 0.02);
|
||||
border-width: 1px 1px 2px;
|
||||
}
|
||||
|
||||
tbody tr {
|
||||
|
@ -13,8 +13,7 @@ export default () => {
|
||||
font-family: PuHuiTi;
|
||||
src: url('//at.alicdn.com/t/webfont_6e11e43nfj.woff2') format('woff2'),
|
||||
url('//at.alicdn.com/t/webfont_6e11e43nfj.woff') format('woff'),
|
||||
/* chrome、firefox */ url('//at.alicdn.com/t/webfont_6e11e43nfj.ttf')
|
||||
format('truetype'); /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
|
||||
/* chrome、firefox */ url('//at.alicdn.com/t/webfont_6e11e43nfj.ttf') format('truetype'); /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@ -35,8 +34,7 @@ export default () => {
|
||||
font-family: 'AliPuHui';
|
||||
src: url('//at.alicdn.com/wf/webfont/exMpJIukiCms/Gsw2PSKrftc1yNWMNlXgw.woff2')
|
||||
format('woff2'),
|
||||
url('//at.alicdn.com/wf/webfont/exMpJIukiCms/vtu73by4O2gEBcvBuLgeu.woff')
|
||||
format('woff');
|
||||
url('//at.alicdn.com/wf/webfont/exMpJIukiCms/vtu73by4O2gEBcvBuLgeu.woff') format('woff');
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user