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

Commit 1525757

Browse files
committed
better use of 'polished'
1 parent 621fa98 commit 1525757

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

containers/Decrator/index.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
import React from 'react'
88
import { inject, observer } from 'mobx-react'
99
import styled, { ThemeProvider } from 'styled-components'
10+
// import { selection } from 'polished'
1011

1112
import { theme } from '../../utils/themes'
1213
import globalStyles from '../../utils/global_styles'
1314
// import observer from '../../utils/mobx_utils'
1415

15-
const Container = styled.div`
16-
*::selection {
17-
background-color: ${theme('selection_bg')};
18-
}
16+
/*
17+
*::selection {
18+
background-color: ${theme('selection_bg')};
19+
}
1920
2021
::-moz-selection {
2122
background-color: ${theme('selection_bg')};
@@ -32,6 +33,17 @@ const Container = styled.div`
3233
*::-webkit-selection {
3334
background-color: ${theme('selection_bg')};
3435
}
36+
*/
37+
38+
// ${selection({ backgroundColor: 'tomato' }, '*')};
39+
const Container = styled.div`
40+
*::-moz-selection {
41+
background-color: ${theme('selection_bg')};
42+
}
43+
44+
*::selection {
45+
background-color: ${theme('selection_bg')};
46+
}
3547
`
3648

3749
const selector = ({ store }) => ({

containers/GithubSearchPanel/styles/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import styled, { keyframes } from 'styled-components'
2+
import { placeholder } from 'polished'
3+
24
import { theme } from '../../../utils/themes'
35

46
import { Img } from '../../../components'
@@ -89,8 +91,7 @@ export const InfoBar = styled(BaseBar)`
8991
export const InputBar = styled.input`
9092
caret-color: ${theme('u_panel.search_input')};
9193
flex-grow: 1;
92-
font-family: '.SFNSText-Light', 'SF UI Text', 'Helvetica Neue', 'Arial',
93-
'Lucida Grande', 'Segoe UI', Noto Sans, sans-serif;
94+
${placeholder({ color: 'wheat' })};
9495
height: 100%;
9596
width: auto;
9697
outline: none;

0 commit comments

Comments
 (0)