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 971
/
Copy pathglobal.js
178 lines (176 loc) · 5.56 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
const globalStyles = {
breakpoint: {
breakpointWideViewport: '1000px',
breakpointNarrowViewport: '600px',
breakpointExtensionButtonPadding: '720px',
breakpointSmallWin32: '650px',
breakpointTinyWin32: '500px',
tab: {
largeMedium: '83px',
medium: '66px',
mediumSmall: '53px',
small: '42px',
extraSmall: '33px',
smallest: '19px'
}
},
color: {
linkColor: '#0099CC',
highlightBlue: '#37A9FD',
privateTabBackground: '#392e54',
bitcoinOrange: '#f7931a',
chromePrimary: '#F3F3F3',
chromeSecondary: '#d3d3d3',
chromeTertiary: '#c7c7c7',
chromeText: '#555555',
tabsBackground: '#dddddd',
navigationBarBackground: 'white',
chromeControlsBackground: '#bbb',
chromeControlsBackground2: 'white',
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)',
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'
},
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: '28px',
tabPagesHeight: '9px',
bookmarksToolbarHeight: '24px',
bookmarksToolbarWithFaviconsHeight: '28px',
bookmarksFileIconSize: '13px',
bookmarksFolderIconSize: '15px',
navbarButtonSpacing: '4px',
navbarButtonWidth: '20px',
navbarBraveButtonWidth: '23px',
navbarBraveButtonMarginLeft: '80px',
navbarLeftMarginDarwin: '76px',
sideBarWidth: '190px',
aboutPageSectionPadding: '24px',
defaultTabPadding: '0 4px',
defaultIconPadding: '2px',
iconSize: '16px'
},
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 black25',
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'
},
appIcons: {
loading: 'fa fa-spinner fa-spin',
defaultIcon: 'fa fa-file-o',
closeTab: 'fa fa-times-circle',
private: 'fa fa-eye',
newSession: 'fa fa-user',
volumeOn: 'fa fa-volume-up',
volumeOff: 'fa fa-volume-off'
}
}
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
module.exports = globalStyles