Skip to content

Commit b468ca4

Browse files
committed
Handles exceptions
1 parent 939e303 commit b468ca4

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

src/components/base/Header.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import HeaderUserMenu from './HeaderUserMenu';
1010
import { Link } from 'react-router-dom';
1111
import media from '../../lib/styles/media';
1212
import HeaderLogo from './HeaderLogo';
13+
import { themedPalette } from '../../lib/styles/themes';
1314

1415
export type MainHeaderProps = {};
1516

@@ -99,9 +100,10 @@ const SearchButton = styled(Link)`
99100
height: 2.5rem;
100101
outline: none;
101102
border-radius: 50%;
103+
color: ${themedPalette.text1};
102104
cursor: pointer;
103105
&:hover {
104-
background: rgba(0, 0, 0, 0.045);
106+
background: ${themedPalette.slight_layer};
105107
}
106108
svg {
107109
width: 1.125rem;

src/components/common/HorizontalTab.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const Indicator = styled(animated.div)<{ theme: 'teal' | 'gray' }>`
108108
${(props) =>
109109
props.theme === 'gray' &&
110110
css`
111-
background: ${palette.gray8};
111+
background: ${themedPalette.border1};
112112
`}
113113
`;
114114

src/components/common/ToggleSwitch.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const Block = styled.div<{ active: boolean }>`
5959
align-items: center;
6060
width: 2.875rem;
6161
height: 1.5rem;
62-
background: ${themedPalette.bg_element3};
62+
background: ${palette.gray6};
6363
transition: 0.125s all ease-in;
6464
border-radius: 1.125rem;
6565
padding: 0.125rem;

src/components/common/Typography.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const TypographyBlock = styled.div`
2323
font-weight: 400;
2424
}
2525
code {
26-
background: rgba(27, 31, 35, 0.05);
26+
background: ${themedPalette.bg_element3};
2727
padding: 0.2em 0.4em;
2828
font-size: 85%;
2929
border-radius: 3px;
@@ -55,7 +55,7 @@ const TypographyBlock = styled.div`
5555
border: none;
5656
height: 1px;
5757
width: 100%;
58-
background: #dedede;
58+
background: ${themedPalette.border3};
5959
margin-top: 2rem;
6060
margin-bottom: 2rem;
6161
}

src/components/search/SearchInput.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const SearchInputBlock = styled.div<{ focus: boolean; large?: boolean }>`
3535
padding: 0;
3636
border: none;
3737
outline: 0;
38+
background: transparent;
3839
color: ${themedPalette.text2};
3940
min-width: 0;
4041
&::placeholder {

src/components/write/MarkdownPreview.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import * as React from 'react';
22
import styled from 'styled-components';
33
import MarkdownRender from '../common/MarkdownRender';
44
import { themedPalette } from '../../lib/styles/themes';
5-
import palette from '../../lib/styles/palette';
65

76
const MarkdownPreviewBlock = styled.div`
87
word-break: break-word;
98
padding: 3rem;
109
flex: 1;
1110
overflow-y: auto;
12-
color: ${palette.gray9};
11+
color: ${themedPalette.text1};
1312
`;
1413

1514
const Title = styled.h1`

src/static/svg/icon-search-2.svg

+1-1
Loading

0 commit comments

Comments
 (0)