mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-29 21:13:54 +03:00
Update color scheme and styling in CodeBlock & Collapsible components
The changes provide a more readable color scheme and enhances component appearance for the CodeBlock and Collapsible components within redux-devtools-inspector-monitor-trace-tab. The updated styling features a lighter background color, adjusted text color, and included new border specifications.
This commit is contained in:
parent
a77d8edb07
commit
e71d599cd0
|
@ -10,17 +10,19 @@ import React, { CSSProperties } from 'react';
|
||||||
const preStyle: CSSProperties = {
|
const preStyle: CSSProperties = {
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
display: 'block',
|
display: 'block',
|
||||||
backgroundColor: '#000',
|
backgroundColor: '#f7f7f7',
|
||||||
padding: '0.5em',
|
padding: '0.5em',
|
||||||
marginTop: '0.5em',
|
marginTop: '0.5em',
|
||||||
marginBottom: '0.5em',
|
marginBottom: '0.5em',
|
||||||
overflowX: 'auto',
|
overflowX: 'auto',
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
borderRadius: '0.25rem',
|
borderRadius: '0.25rem',
|
||||||
|
border: '1px solid #ddd',
|
||||||
};
|
};
|
||||||
|
|
||||||
const codeStyle = {
|
const codeStyle = {
|
||||||
fontFamily: 'Consolas, Menlo, monospace',
|
fontFamily: 'Consolas, Menlo, monospace',
|
||||||
|
color: '#333',
|
||||||
};
|
};
|
||||||
|
|
||||||
interface CodeBlockPropsType {
|
interface CodeBlockPropsType {
|
||||||
|
|
|
@ -19,6 +19,7 @@ const _collapsibleStyle: CSSProperties = {
|
||||||
fontSize: '1em',
|
fontSize: '1em',
|
||||||
padding: '0px 5px',
|
padding: '0px 5px',
|
||||||
lineHeight: '1.5',
|
lineHeight: '1.5',
|
||||||
|
borderBottom: '1px solid #ddd',
|
||||||
};
|
};
|
||||||
|
|
||||||
const collapsibleCollapsedStyle: CSSProperties = {
|
const collapsibleCollapsedStyle: CSSProperties = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user