Skip to content

Commit

Permalink
docs: fix docs font
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofan2406 committed Jul 19, 2023
1 parent aa7d6fc commit ff77766
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/manager-api';
import theme from './theme';

addons.setConfig({
Expand Down
2 changes: 2 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import type { Preview } from '@storybook/react';
import { Title, Subtitle, Description, Primary, ArgTypes, Stories } from '@storybook/blocks';
import theme from './theme';

import '../src/styles/bootstrap-custom.css';
import '../www/storybook.css';
Expand Down Expand Up @@ -29,6 +30,7 @@ const preview: Preview = {
},
layout: 'centered',
docs: {
theme: theme,
page: () => (
<>
<Title />
Expand Down
69 changes: 0 additions & 69 deletions www/storybook.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('../src/styles/variable.css');

.sbdocs {
& h1 {
Expand All @@ -17,71 +16,3 @@
display: flex;
}
}

/* .sbdocs {
& .sbdocs-p {
font-size: 16px;
}
& .aui-story-header {
border-bottom: 2px solid #333;
margin: 20px -18px 38px;
& h1 {
margin: 0;
padding-bottom: 6px;
padding-left: 18px;
padding-right: 18px;
display: inline-flex;
border-bottom: 5px solid;
}
}
& .aui-story-toc {
padding-left: 18px;
margin-bottom: 32px;
& li {
color: $color-primary-base;
font-size: 18px;
}
}
& .aui-story-subheader {
border-bottom: none;
}
& .sbdocs-preview,
& .docblock-argstable-body,
& .docblock-source {
box-shadow: none;
border: 1px solid $color-border-base;
}
& h2 {
font-size: 28px;
font-weight: bold;
border-bottom: 2px solid;
margin-bottom: 28px;
}
& h3 {
font-size: 24px;
border-bottom: none;
}
& h4 {
font-size: 18px;
}
& .docs-story > div {
padding: 0;
}
& .intro-cols {
display: grid;
grid-column-gap: 18px;
margin-top: 30px;
grid-template-columns: 1fr 1fr 1fr;
}
} */

0 comments on commit ff77766

Please sign in to comment.