chore: site code format (#39457)

* format: site code format

* Conflicting

* lint

* rename
This commit is contained in:
lijianan 2022-12-19 13:23:28 +08:00 committed by GitHub
parent 0eaf2b40cf
commit ba999de764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 1653 additions and 1649 deletions

View 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;

View File

@ -1,4 +1,3 @@
/* eslint-disable import/prefer-default-export */
import * as React from 'react';
import { css } from '@emotion/react';

View File

@ -1,4 +1,3 @@
// @ts-ignore
import ColorPaletteTool from '../../common/Color/ColorPaletteTool';
export default ColorPaletteTool;

View File

@ -1,4 +1,3 @@
// @ts-ignore
import ColorPaletteToolDark from '../../common/Color/ColorPaletteToolDark';
export default ColorPaletteToolDark;

View File

@ -1,4 +1,3 @@
// @ts-ignore
import ColorPalettes from '../../common/Color/ColorPalettes';
export default ColorPalettes;

View File

@ -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';

View File

@ -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;

View File

@ -182,9 +182,9 @@ export default () => {
}
.code-expand-icon {
position: relative;
width: 16px;
height: 16px;
position: relative;
cursor: pointer;
}

View File

@ -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: '#';
}
}

View File

@ -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!';

View File

@ -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 {

View File

@ -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;
}