This repository was archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 970
/
Copy pathglobal.js
217 lines (214 loc) · 6.84 KB
/
global.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
const globalStyles = {
breakpoint: {
breakpointWideViewport: '1000px',
breakpointNarrowViewport: '600px',
breakpointExtensionButtonPadding: '720px',
breakpointSmallWin32: '650px',
breakpointTinyWin32: '500px',
breakpointNewPrivateTab: '890px',
tab: {
default: '184px', // match tabArea max-width
large: '120px',
largeMedium: '83px',
medium: '66px',
mediumSmall: '53px',
small: '46px',
extraSmall: '40px',
smallest: '19px'
}
},
color: {
commonTextColor: '#3b3b3b',
linkColor: '#0099CC',
highlightBlue: '#37A9FD',
privateTabBackground: '#665296',
privateTabBackgroundActive: '#4b3c6e',
bitcoinOrange: '#f7931a',
chromePrimary: '#F3F3F3',
chromeSecondary: '#d3d3d3',
chromeTertiary: '#c7c7c7',
chromeText: '#555555',
navigationBarBackground: 'white',
chromeControlsBackground: '#bbb',
chromeControlsBackground2: 'white',
tabsToolbarBorderColor: '#bbb',
tabsBackground: '#ddd',
tabsBackgroundInactive: '#ddd',
commonFormBottomWrapperBackground: '#ddd',
commonFormBackgroundColor: '#f7f7f7',
toolbarBackground: '#eee',
toolbarBorderColor: '#ccc',
menuSelectionColor: '#2F7AFB',
errorTextColor: '#999',
progressBarColor: '#3498DB',
siteInsecureColor: '#C63626',
siteEVColor: 'green',
buttonColor: '#5a5a5a',
braveOrange: 'rgb(255, 80, 0)',
braveLightOrange: '#FF7A1D',
braveMediumOrange: 'rgb(232, 72, 0)',
braveDarkOrange: '#D44600',
switchBG_off: '#d3d3d3',
switchBG_off_lrg: '#adadad',
switchBG_dis: '#e8e8e8',
switchNubColor: 'white',
findbarBackground: '#F7F7F7',
veryLightGray: 'rgb(250, 250, 250)',
lightGray: 'rgb(236, 236, 236)',
gray: 'rgb(153, 153, 153)',
mediumGray: 'rgb(101, 101, 101)',
darkGray: 'rgb(68, 68, 68)',
white25: 'rgba(255, 255, 255, 0.25)',
white50: 'rgba(255, 255, 255, 0.5)',
white100: 'rgba(255, 255, 255, 1)',
gray25: 'rgba(116, 116, 130, 0.25)',
gray50: 'rgba(116, 116, 130, 0.5)',
black10: 'rgba(0, 0, 0, 0.1)',
black20: 'rgba(0, 0, 0, 0.2)',
black25: 'rgba(0, 0, 0, 0.25)',
black50: 'rgba(0, 0, 0, 0.5)',
black75: 'rgba(0, 0, 0, 0.75)',
black100: 'rgba(0, 0, 0, 1)',
statsYellow: '#ffc000',
statsOrange: '#f39030',
statsRed: '#fe521d',
statsBlue: '#0796fa',
statsLightGray: '#999999',
defaultIconBackground: '#F7F7F7',
almostInvisible: 'rgba(255,255,255,0.01)',
urlBarOutline: '#bbb',
alphaWhite: 'rgba(255,255,255,0.8)'
},
filter: {
makeWhite: 'brightness(0) invert(1)'
},
radius: {
borderRadius: '4px',
borderRadiusTabs: '4px',
borderRadiusURL: '4px',
borderRadiusUIbox: '8px',
bigBorderRadius: '14px',
switchRadius: '10px',
carotRadius: '8px'
},
spacing: {
navigatorHeight: '48px',
defaultSpacing: '12px',
defaultFontSize: '13px',
contextMenuFontSize: '14px',
textAreaFontSize: '14.5px',
dragSpacing: '50px',
switchHeight: '16px',
switchWidth: '45px',
switchNubDiameter: '12px',
switchNubTopMargin: '2px',
switchNubLeftMargin: '2px',
switchNubRightMargin: '2px',
buttonHeight: '25px',
buttonWidth: '25px',
navbarHeight: '36px',
downloadsBarHeight: '50px',
tabsToolbarHeight: '26px',
tabPagesHeight: '7px',
bookmarksToolbarHeight: '24px',
bookmarksToolbarWithFaviconsHeight: '24px',
bookmarksFileIconSize: '13px',
bookmarksFolderIconSize: '15px',
navbarMenubarMargin: '7px',
navbarButtonSpacing: '4px',
navbarButtonWidth: '20px',
navbarBraveButtonWidth: '23px',
navbarBraveButtonMarginLeft: '80px',
navbarLeftMarginDarwin: '76px',
sideBarWidth: '190px',
aboutPageDetailsPageWidth: '704px',
aboutPageSectionPadding: '24px',
aboutPageSectionMargin: '10px',
defaultTabPadding: '0 4px',
defaultIconPadding: '2px',
iconSize: '16px',
closeIconSize: '13px',
narrowIconSize: '12px',
dialogWidth: '422px',
dialogLargeWidth: '600px', // temporary workaround
dialogTopOffset: '30px',
dialogInsideMargin: '18px',
paymentsMargin: '20px',
modalPanelHeaderMarginBottom: '.5em',
paddingHorizontal: '30px',
privateTabPadding: '40px'
},
shadow: {
switchShadow: 'inset 0 1px 4px rgba(0, 0, 0, 0.35)',
switchNubShadow: '1px 1px 5px -2px black',
buttonShadow: '0px 1px 5px -1px rgba(0, 0, 0, 1.0)',
dialogShadow: '0px 8px 22px 0px rgba(0, 0, 0, .5)',
softBoxShadow: '0 4px 8px lightGray',
lightBoxShadow: '0 2px 2px lightGray',
insetShadow: 'inset -5px 0 15px rgba(0,0,0,0.25)',
orangeButtonShadow: '0 2px 0 braveDarkOrange'
},
transition: {
transitionDuration: '100ms',
transition: 'all 600ms linear',
transitionFast: 'all 100ms linear',
transitionSlow: 'all 1s linear',
transitionEase: 'all 600ms ease',
transitionFastEase: 'all 100ms ease',
transitionSlowEase: 'all 1s ease',
switchBGTransition: 'background-color 100ms',
switchNubTransition: 'right 100ms',
tabBackgroundTransition: 'background-color 100ms linear'
},
zindex: {
zindexWindowNotActive: '900',
zindexWindow: '1000',
zindexWindowIsPreview: '1100',
zindexDownloadsBar: '1000',
zindexTabs: '1000',
zindexTabsThumbnail: '1100',
zindexTabsDragIndicator: '1100',
zindexNavigationBar: '2000',
zindexUrlbarNotLegend: '2100',
zindexPopUp: '3000',
zindexContextMenu: '3000',
zindexDialogs: '3000',
zindexPopupWindow: '3000',
zindexForms: '3000',
zindexSuggestionText: '3100',
zindexWindowFullScreen: '4000',
zindexWindowFullScreenBanner: '4100'
},
fontSize: {
tabIcon: '14px',
tabTitle: '12px',
settingItemSubtext: '.95rem',
flyoutDialog: '13px',
prefsPanelHeading: '23px'
},
appIcons: {
clipboard: 'fa fa-clipboard',
closeTab: 'fa fa-times-circle',
defaultIcon: 'fa fa-file-o',
loading: 'fa fa-spinner fa-spin',
private: 'fa fa-eye',
refresh: 'fa fa-refresh',
remove: 'fa fa-times',
volumeOff: 'fa fa-volume-off',
volumeOn: 'fa fa-volume-up',
exclude: 'fa fa-ban',
trash: 'fa fa-trash',
moreInfo: 'fa fa-info-circle'
}
}
globalStyles.color.chromeBorderColor = globalStyles.color.chromePrimary
globalStyles.color.chromeControlsWarningBackground = globalStyles.color.chromePrimary
globalStyles.color.audioColor = globalStyles.color.highlightBlue
globalStyles.color.focusUrlbarOutline = globalStyles.color.highlightBlue
globalStyles.color.siteSecureColor = globalStyles.color.buttonColor
globalStyles.color.loadTimeColor = globalStyles.color.highlightBlue
globalStyles.color.activeTabDefaultColor = globalStyles.color.chromePrimary
globalStyles.color.switchBG_on = globalStyles.color.braveOrange
globalStyles.color.statsGray = globalStyles.color.chromeText
globalStyles.spacing.tabHeight = globalStyles.spacing.tabsToolbarHeight
module.exports = globalStyles