This repository was archived by the owner on Jun 6, 2019. It is now read-only.
File tree 3 files changed +19
-13
lines changed
3 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import * as React from 'react'
6
6
import { Grid , Column } from 'brave-ui/gridSystem'
7
- import Separator from 'brave-ui/separator'
8
7
import SwitchButton from 'brave-ui/switchButton'
9
8
import UnstyledButton from 'brave-ui/unstyledButton'
10
9
import TextLabel from 'brave-ui/textLabel'
@@ -65,7 +64,7 @@ export default class BraveShieldsHeader extends React.PureComponent<BraveShields
65
64
/>
66
65
</ Column >
67
66
< Column >
68
- < Separator />
67
+ < hr style = { theme . separator } />
69
68
</ Column >
70
69
< Column theme = { theme . hostnameContent } >
71
70
< TextLabel text = { getMessage ( 'shieldsHeaderForSite' ) } />
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import * as React from 'react'
6
6
import PushButton from 'brave-ui/pushButton'
7
7
import TextLabel from 'brave-ui/textLabel'
8
8
import { Column , Grid } from 'brave-ui/gridSystem'
9
- import Separator from 'brave-ui/separator'
10
9
import SwitchButton from 'brave-ui/switchButton'
11
10
import { getMessage } from '../../background/api/localeAPI'
12
11
import { NoScriptInfo } from '../../types/other/noScriptInfo'
@@ -52,7 +51,7 @@ export default class NoScript extends React.PureComponent<NoScriptProps, {}> {
52
51
?
53
52
(
54
53
< div >
55
- < Separator />
54
+ < hr style = { theme . separator } />
56
55
< Grid id = 'noScript' theme = { theme . noScript } >
57
56
< Column >
58
57
< TextLabel text = { getMessage ( 'noScriptSwitches' ) } />
Original file line number Diff line number Diff line change 5
5
const theme = {
6
6
braveShieldsHeader : {
7
7
backgroundColor : '#808080' ,
8
- padding : '10px ' ,
8
+ padding : '8px ' ,
9
9
gridGap : '0' ,
10
10
color : '#fafafa'
11
11
} ,
@@ -30,19 +30,19 @@ const theme = {
30
30
} ,
31
31
braveShieldsControls : {
32
32
backgroundColor : '#eee' ,
33
- padding : '10px 10px 0' ,
34
- gridGap : '10px 5px'
33
+ padding : '8px 8px 0' ,
34
+ gridGap : '8px 5px'
35
35
} ,
36
36
braveShieldsControlsContent : {
37
37
margin : '0 5px'
38
38
} ,
39
39
braveShieldsControlsSwitches : {
40
- gridGap : '10px 5px' ,
40
+ gridGap : '8px 5px' ,
41
41
padding : '5px 0'
42
42
} ,
43
43
braveShieldsFooter : {
44
- gridGap : '10px ' ,
45
- padding : '0 10px 10px ' ,
44
+ gridGap : '8px ' ,
45
+ padding : '0 8px 8px ' ,
46
46
backgroundColor : '#eee'
47
47
} ,
48
48
columnStart : {
@@ -56,7 +56,7 @@ const theme = {
56
56
userSelect : 'none'
57
57
} ,
58
58
braveShieldsStats : {
59
- padding : '10px 15px' ,
59
+ padding : '8px 15px' ,
60
60
gridGap : '10px' ,
61
61
backgroundColor : '#f7f7f7'
62
62
} ,
@@ -108,8 +108,8 @@ const theme = {
108
108
cursor : 'pointer'
109
109
} ,
110
110
noScript : {
111
- padding : '10px 0' ,
112
- gridGap : '10px 5px'
111
+ padding : '8px 0' ,
112
+ gridGap : '8px 5px'
113
113
} ,
114
114
blockedResourcesStats : {
115
115
flexDirection : 'column' ,
@@ -122,6 +122,14 @@ const theme = {
122
122
} ,
123
123
noUserSelect : {
124
124
userSelect : 'none'
125
+ } ,
126
+ separator : {
127
+ background : '#ccc' ,
128
+ border : '0px' ,
129
+ height : '1px' ,
130
+ width : '100%' ,
131
+ marginTop : '8px' ,
132
+ marginBottom : '8px'
125
133
}
126
134
}
127
135
You can’t perform that action at this time.
0 commit comments