Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 5eb8670

Browse files
authored
chore(theme): adjust some color for white theme (#1291)
1 parent 4889a0e commit 5eb8670

File tree

10 files changed

+25
-20
lines changed

10 files changed

+25
-20
lines changed

src/containers/tool/Drawer/styles/add_on/article_navi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const LeftArrow = styled(ArrowSVG)`
4848
fill: ${theme('thread.extraInfo')};
4949
`
5050
export const RightSwitchBlock = styled(SwitchBlock)`
51-
left: 755px;
51+
left: 54vw;
5252
`
5353
export const RightArrow = styled(LeftArrow)`
5454
transform: rotate(180deg);

src/containers/unit/Comments/styles/list/toggler_button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import css, { theme } from '@/utils/css'
44

55
export const Wrapper = styled.div`
66
${css.flex('align-center')};
7-
color: ${theme('thread.articleDigest')};
7+
color: ${theme('thread.extraInfo')};
88
padding-top: 25px;
99
padding-bottom: 18px;
1010
margin-left: 25px;
@@ -19,7 +19,7 @@ export const SlashSign = styled.div`
1919
export const Text = styled.div`
2020
font-size: 12px;
2121
opacity: 0.8;
22-
color: ${theme('button.primary')};
22+
color: ${theme('thread.extraInfo')};
2323
margin-left: 14px;
2424
2525
&:hover {

src/widgets/ArtimentBody/styles/fold_box.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export const Wrapper = styled.div<TWrapper>`
1111
margin-bottom: 28px;
1212
padding: 5px 0;
1313
border-radius: 15px;
14-
background: ${({ fold }) => (fold ? '#00333e' : 'transparent')};
14+
background: ${({ fold }) => (fold ? '#F5F5F5' : 'transparent')};
1515
1616
&:hover {
1717
cursor: pointer;
18-
background: #00333e;
18+
background: #f5f5f5;
1919
}
2020
2121
${css.media.mobile`
@@ -27,7 +27,7 @@ export const Wrapper = styled.div<TWrapper>`
2727
`
2828
export const Hint = styled.div<{ mode: 'article' | 'comment' }>`
2929
${css.flex('align-center')};
30-
color: ${theme('button.primary')};
30+
color: ${theme('article.extraInfo')};
3131
font-size: ${({ mode }) => (mode === 'article' ? '15px' : '13px')};
3232
opacity: 0.8;
3333
@@ -40,8 +40,8 @@ export const FoldHint = styled(Hint)`
4040
opacity: 0;
4141
`
4242
export const ArrowIcon = styled(Img)<{ reverse?: boolean }>`
43-
${css.size(20)};
44-
fill: #139c9e;
43+
${css.size(18)};
44+
fill: ${theme('article.extraInfo')};
4545
transform: ${({ reverse }) => (reverse ? 'rotate(90deg)' : 'rotate(-90deg)')};
4646
margin-left: 4px;
4747
`

src/widgets/Buttons/styles/icon_button.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const Icon = styled(Img)<TIcon>`
5252
opacity: ${({ $dimWhenIdle }) => ($dimWhenIdle ? 0.7 : 1)};
5353
5454
&:hover {
55-
fill: #00a59b;
55+
fill: ${theme('thread.extraInfo')};
5656
opacity: 1;
5757
cursor: pointer;
5858
}
@@ -122,12 +122,12 @@ export const getStyledIcon = (comp: FC): FC<TIcon> => {
122122
opacity: ${({ $dimWhenIdle }) => ($dimWhenIdle ? 0.7 : 1)};
123123
124124
&:hover {
125-
fill: #00a59b;
125+
fill: ${theme('thread.extraInfo')};
126126
opacity: 1;
127127
cursor: pointer;
128128
}
129129
130-
transition: fill 0.2s;
130+
transition: all 0.2s;
131131
`
132132
}
133133

src/widgets/EmotionSelector/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ const EmotionSelector: FC<TProps> = ({
4040
trigger="click"
4141
noPadding
4242
>
43-
<IconButton path="emotion/emotion.svg" mRight={0} mTop={1} />
43+
<IconButton
44+
path="emotion/emotion.svg"
45+
mRight={0}
46+
mTop={1}
47+
dimWhenIdle
48+
/>
4449
</Tooltip>
4550
)}
4651
</Wrapper>

src/widgets/EmotionSelector/styles/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ export const Wrapper = styled.div.attrs(({ testid }: TTestable) => ({
1313
padding-right: 0;
1414
border-radius: 8px;
1515
margin-left: -4px;
16+
margin-top: -2px;
1617
`
1718
export const holder = 1

src/widgets/EmotionSelector/styles/panel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export const EIcon = styled(Img)<TEIcon>`
3434
`
3535
export const Name = styled.div<TActive>`
3636
font-size: 11px;
37-
margin-top: 5px;
37+
margin-top: 7px;
3838
color: ${({ $active }) =>
39-
$active ? '#12999B' : theme('thread.articleTitle')};
39+
$active ? '#12999B' : theme('thread.articleDigest')};
4040
4141
${Item}:hover & {
4242
cursor: pointer;

src/widgets/EmotionSelector/styles/selected_emotions/emotion_icon.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export const EIcon = styled(Img)<{ name: string }>`
99
name === 'confused' || name === 'popcorn' ? css.size(15) : css.size(14)};
1010
margin-right: 6px;
1111
12-
filter: saturate(0.6);
13-
opacity: 0.9;
12+
filter: saturate(0.8);
1413
`
1514
export const holder = 1

src/widgets/Loading/styles/lava_lamp_loading.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import styled, { keyframes } from 'styled-components'
22

33
import type { TSpace, TSIZE_TSM } from '@/spec'
44
import { getRandomInt } from '@/utils/helper'
5-
import css from '@/utils/css'
5+
import css, { theme } from '@/utils/css'
66

77
import { getLavaLampScale } from './metric'
88

@@ -49,8 +49,8 @@ const speedMap = {
4949
}
5050

5151
export const Circle = styled.span<{ index: number }>`
52-
${css.circle(4)};
53-
background-color: #0080a9;
52+
${css.circle(3)};
53+
background-color: ${theme('thread.extraInfo')};
5454
animation: ${move} 1s linear 0ms infinite;
5555
/* animation-duration: ${() =>
5656
`${speed[getRandomInt(0, speed.length - 1)]}s`}; */

utils/themes/skins/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ const github = {
199199
mentionShadow: '0px 2px 10px 1px rgba(235, 235, 235, 1)',
200200

201201
indentLine: '#d5d5d5',
202-
indentActive: descText,
202+
indentActive: '#8590a6',
203203
},
204204
editor: {
205205
title: '#7ea9ad',

0 commit comments

Comments
 (0)