Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit1525757

Browse files
committed
better use of 'polished'
1 parent621fa98 commit1525757

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
importReactfrom'react'
88
import{inject,observer}from'mobx-react'
99
importstyled,{ThemeProvider}from'styled-components'
10+
// import { selection } from 'polished'
1011

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

15-
constContainer=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+
constContainer=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
constselector=({ 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
importstyled,{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
exportconstInputBar=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)

[8]ページ先頭

©2009-2025 Movatter.jp