1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Updating styles so they don't override fontawesome, removing duplicate addons (#12971)

This commit is contained in:
George Marshall 2021-12-06 15:55:21 -08:00 committed by GitHub
parent 9fcfbe7609
commit 3054991c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 33 deletions

View File

@ -7,4 +7,8 @@ export default create({
base: 'light',
brandTitle: 'MetaMask Storybook',
brandImage: logo,
// Typography
fontBase: 'Euclid, Roboto, Helvetica, Arial, sans-serif',
fontCode: 'Inconsolata, monospace',
});

View File

@ -7,50 +7,21 @@
<style>
* {
--blue-500: #037dd6;
--blue-400: #1098fc;
--gray-pre-bg: #f8f8f8;
--font-family-base: Euclid, Roboto, Helvetica, Arial, sans-serif;
--font-family-monospace: Inconsolata, monospace;
--font-size-code: 0.875rem;
--line-height-code: 19px;
--font-size-base: 1rem;
--line-height-base: 1.7;
font-family: var(--font-family-base) !important;
}
h1,
h2 {
font-weight: bold !important;
}
p,
li {
font-size: var(--font-size-base) !important;
line-height: var(--line-height-base) !important;
}
.docblock-source {
background: var(--gray-pre-bg) !important;
}
code {
.docblock-source code {
font-family: var(--font-family-monospace) !important;
font-size: var(--font-size-code) !important;
}
code * {
.docblock-source code * {
font-family: var(--font-family-monospace) !important;
font-size: var(--font-size-code) !important;
}
a {
color: var(--blue-500) !important;
}
a:hover,
a:active,
a:focus {
color: var(--blue-400) !important;
}
</style>

View File

@ -1,7 +1,6 @@
import React, { useEffect } from 'react';
import { addDecorator, addParameters } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs } from '@storybook/addon-knobs';
import { Provider } from 'react-redux';
import configureStore from '../ui/store/store';
import '../ui/css/index.scss';
@ -13,6 +12,7 @@ import testData from './test-data.js';
import { Router } from 'react-router-dom';
import { createBrowserHistory } from 'history';
import { _setBackgroundConnection } from '../ui/store/actions';
import MetaMaskStorybookTheme from './metamask-storybook-theme';
addParameters({
backgrounds: {
@ -22,6 +22,9 @@ addParameters({
{ name: 'dark', value: '#333333' },
],
},
docs: {
theme: MetaMaskStorybookTheme,
},
options: {
storySort: {
order: ['Getting Started', 'Components', ['UI', 'App'], 'Pages'],
@ -82,5 +85,4 @@ const metamaskDecorator = (story, context) => {
);
};
addDecorator(withKnobs);
addDecorator(metamaskDecorator);