Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
c9ba4b5a
Commit
c9ba4b5a
authored
Sep 28, 2017
by
ninabreznik
Committed by
yann300
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update style guide - add app_properties to remix_properties
parent
41d48896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
179 additions
and
115 deletions
+179
-115
style-guide.js
src/ui/styles/style-guide.js
+179
-115
No files found.
src/ui/styles/style-guide.js
View file @
c9ba4b5a
...
...
@@ -67,51 +67,128 @@ function styleGuide () {
var
app_properties
=
{
// BACKGROUND COLORS
general_BackgroundColor
:
css_properties
.
colors
.
white
,
support_BackgroundColor
:
css_properties
.
colors
.
backgroundBlue
,
// TEXT COLORS
/****************************
BACKGROUND COLORS
************************** */
primary_BackgroundColor
:
css_properties
.
colors
.
white
,
secondary_BackgroundColor
:
css_properties
.
colors
.
backgroundBlue
,
dark_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
/****************************
TEXT COLORS
************************** */
mainText_Color
:
css_properties
.
colors
.
black
,
supportText_Color
:
css_properties
.
colors
.
grey
,
// ICONS
errorText_Color
:
css_properties
.
colors
.
red
,
warningText_Color
:
css_properties
.
colors
.
orange
,
/****************************
ICONS
************************** */
icon_Color
:
css_properties
.
colors
.
black
,
icon_HoverColor
:
css_properties
.
colors
.
orange
,
// UI ELEMENTS (dropdown, input)
element_TextColor
:
css_properties
.
colors
.
black
,
element_BackgroundColor
:
css_properties
.
colors
.
white
,
element_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
/****************************
MESSAGES
************************** */
// success
success_TextColor
:
css_properties
.
colors
.
black
,
success_BackgroundColor
:
css_properties
.
colors
.
lightGreen
,
success_BorderColor
:
css_properties
.
colors
.
green
,
// danger
danger_TextColor
:
css_properties
.
colors
.
black
,
danger_BackgroundColor
:
css_properties
.
colors
.
lightRed
,
danger_BorderColor
:
css_properties
.
colors
.
red
,
// warning
warning_TextColor
:
css_properties
.
colors
.
black
,
warning_BackgroundColor
:
css_properties
.
colors
.
lightOrange
,
warning_BorderColor
:
css_properties
.
colors
.
orange
,
// DROPDOWN
/****************************
DROPDOWN
************************** */
dropdown_TextColor
:
css_properties
.
colors
.
black
,
dropdown_BackgroundColor
:
css_properties
.
colors
.
white
,
dropdown_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
// INPUT
/****************************
INPUT
************************** */
input_TextColor
:
css_properties
.
colors
.
black
,
input_BackgroundColor
:
css_properties
.
colors
.
white
,
input_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
// INFO BOX
/****************************
INFO BOX
************************** */
infoBox_TextColor
:
css_properties
.
colors
.
black
,
infoBox_BackgroundColor
:
css_properties
.
colors
.
white
,
infoBox_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
// BUTTONS
// Compile Tab (Right panel)
compileButton_TextColor
:
css_properties
.
colors
.
black
,
compileButton_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
compileButton_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
detailsButton_TextColor
:
css_properties
.
colors
.
black
,
detailsButton_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
detailsButton_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
/****************************
BUTTONS
************************** */
publishButton_TextColor
:
css_properties
.
colors
.
black
,
publishButton_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
publishButton_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
/* .................
PRIMARY
.................. */
primaryButton_TextColor
:
css_properties
.
colors
.
white
,
primaryButton_BackgroundColor
:
css_properties
.
colors
.
blue
,
primaryButton_BorderColor
:
css_properties
.
colors
.
blue
,
/* .................
SECONDARY
.................. */
secondaryButton_TextColor
:
css_properties
.
colors
.
black
,
secondaryButton_BackgroundColor
:
css_properties
.
colors
.
lightGrey
,
secondaryButton_BorderColor
:
css_properties
.
colors
.
lightGrey
,
/* .................
SUCCESS
.................. */
successButton_TextColor
:
css_properties
.
colors
.
white
,
successButton_BackgroundColor
:
css_properties
.
colors
.
green
,
successButton_BorderColor
:
css_properties
.
colors
.
green
,
/* .................
DANGER
.................. */
dangerButton_TextColor
:
css_properties
.
colors
.
white
,
dangerButton_BackgroundColor
:
css_properties
.
colors
.
red
,
dangerButton_BorderColor
:
css_properties
.
colors
.
red
,
/* .................
WARNING
.................. */
warningButton_TextColor
:
css_properties
.
colors
.
white
,
warningButton_BackgroundColor
:
css_properties
.
colors
.
orange
,
warningButton_BorderColor
:
css_properties
.
colors
.
orange
,
/* .................
INFO
.................. */
infoButton_TextColor
:
css_properties
.
colors
.
black
,
infoButton_BackgroundColor
:
css_properties
.
colors
.
white
,
infoButton_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
/* .................
SOLIDITY
.................. */
// CALL
callButton_TextColor
:
css_properties
.
colors
.
black
,
callButton_BackgroundColor
:
css_properties
.
colors
.
white
,
callButton_BorderColor
:
css_properties
.
colors
.
blue
,
// TRANSACTION
transactButton_TextColor
:
css_properties
.
colors
.
black
,
transactButton_BackgroundColor
:
css_properties
.
colors
.
white
,
transactButton_BorderColor
:
css_properties
.
colors
.
pink
,
// PAYABLE TRANSACTION
transactPayableButton_TextColor
:
css_properties
.
colors
.
black
,
transactPayableButton_BackgroundColor
:
css_properties
.
colors
.
white
,
transactPayableButton_BorderColor
:
css_properties
.
colors
.
violet
,
// Run Tab (Right panel)
atAddressButton_TextColor
:
css_properties
.
colors
.
black
,
...
...
@@ -122,23 +199,6 @@ function styleGuide () {
createButton_BackgroundColor
:
css_properties
.
colors
.
lightRed
,
createButton_BorderColor
:
css_properties
.
colors
.
lightRed
,
instance_callButton_TextColor
:
css_properties
.
colors
.
black
,
instance_callButton_BackgroundColor
:
css_properties
.
colors
.
lightBlue
,
instance_callButton_BorderColor
:
css_properties
.
colors
.
lightBlue
,
instance_transactButton_TextColor
:
css_properties
.
colors
.
black
,
instance_transactButton_BackgroundColor
:
css_properties
.
colors
.
lightRed
,
instance_transactButton_BorderColor
:
css_properties
.
colors
.
lightRed
,
instance_transactPayableButton_TextColor
:
css_properties
.
colors
.
black
,
instance_transactPayableButton_BackgroundColor
:
css_properties
.
colors
.
red
,
instance_transactPayableButton_BorderColor
:
css_properties
.
colors
.
red
,
// Debugger Tab (Right panel)
debuggerButton_TextColor
:
css_properties
.
colors
.
black
,
debuggerButton_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
debuggerButton_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
// Analysis Tab (Right panel)
runButton_TextColor
:
css_properties
.
colors
.
black
,
runButton_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
...
...
@@ -168,8 +228,8 @@ var remix_properties = {
color
:
app_properties
.
supportText_Color
}
},
general_BackgroundColor
:
app_properties
.
general
_BackgroundColor
,
s
upport_BackgroundColor
:
app_properties
.
support
_BackgroundColor
,
primary_BackgroundColor
:
app_properties
.
primary
_BackgroundColor
,
s
econdary_BackgroundColor
:
app_properties
.
secondary
_BackgroundColor
,
dropdown
:
{
background
:
app_properties
.
dropdown_BackgroundColor
,
border
:
app_properties
.
dropdown_BorderColor
,
...
...
@@ -217,7 +277,7 @@ var remix_properties = {
treeview
:
{
color
:
app_properties
.
mainText_Color
,
highlightedLine
:
{
background
:
app_properties
.
s
upport
_BackgroundColor
background
:
app_properties
.
s
econdary
_BackgroundColor
}
}
},
...
...
@@ -226,16 +286,16 @@ var remix_properties = {
EDITOR
************************** */
editor
:
{
background
:
app_properties
.
general
_BackgroundColor
,
background
:
app_properties
.
primary
_BackgroundColor
,
color
:
app_properties
.
mainText_Color
,
gutter
:
{
background
:
app_properties
.
s
upport
_BackgroundColor
,
background
:
app_properties
.
s
econdary
_BackgroundColor
,
highlightedNumber
:
{
background
:
app_properties
.
s
upport_BackgroundColor
// support
_BackgroundColor
background
:
app_properties
.
s
econdary_BackgroundColor
// secondary
_BackgroundColor
},
},
navTabs
:
{
background
:
app_properties
.
s
upport
_BackgroundColor
,
background
:
app_properties
.
s
econdary
_BackgroundColor
,
color
:
app_properties
.
mainText_Color
,
},
icons
:
{
...
...
@@ -246,11 +306,11 @@ var remix_properties = {
},
code
:
{
highlightedLine
:
{
background
:
app_properties
.
s
upport_BackgroundColor
//support
_BackgroundColor
background
:
app_properties
.
s
econdary_BackgroundColor
//secondary
_BackgroundColor
},
debuggerMode
:
{
highlightedArea
:
{
background
:
app_properties
.
s
upport
_BackgroundColor
// same as Debug button in Terminal window
background
:
app_properties
.
s
econdary
_BackgroundColor
// same as Debug button in Terminal window
}
}
}
...
...
@@ -261,7 +321,7 @@ var remix_properties = {
************************** */
terminal
:
{
menu
:
{
background
:
app_properties
.
s
upport
_BackgroundColor
,
background
:
app_properties
.
s
econdary
_BackgroundColor
,
color
:
app_properties
.
mainText_Color
,
icons
:
{
color
:
app_properties
.
icon_Color
,
...
...
@@ -282,31 +342,32 @@ var remix_properties = {
},
},
terminalWindow
:
{
background
:
css_properties
.
colors
.
veryLightGrey
,
color
:
''
,
background
:
app_properties
.
dark_BackgroundColor
,
logo
:
{
'url'
:
''
,
url
:
''
,
},
infoLog
:
{
'color'
:
''
// fonts/color
color
:
app_properties
.
mainText_Color
,
},
errorLog
:
{
'color'
:
''
// same as border in errorMessage in rightPanel/compileTab @TODO
color
:
app_properties
.
errorText_Color
,
},
transactionLog
:
{
title
:
{
'color'
:
''
color
:
app_properties
.
warningText_Color
,
},
text
:
{
'color'
:
''
color
:
app_properties
.
supportText_Color
,
},
detailsButton
:
{
'background-color'
:
''
,
'color'
:
''
background
:
app_properties
.
secondaryButton_BackgroundColor
,
border
:
app_properties
.
secondaryButton_BorderColor
,
color
:
app_properties
.
secondaryButton_TextColor
},
debugButton
:
{
background
:
app_properties
.
support_BackgroundColor
,
'color'
:
''
background
:
app_properties
.
warningButton_BackgroundColor
,
border
:
app_properties
.
warningButton_BorderColor
,
color
:
app_properties
.
warningButton_TextColor
}
}
}
...
...
@@ -316,7 +377,7 @@ var remix_properties = {
RIGHT PANEL
************************** */
rightPanel
:
{
background
:
app_properties
.
general
_BackgroundColor
,
background
:
app_properties
.
primary
_BackgroundColor
,
color
:
app_properties
.
mainText_Color
,
textBox
:
{
background
:
app_properties
.
infoBox_BackgroundColor
,
...
...
@@ -335,22 +396,22 @@ var remix_properties = {
}
},
logo
:
{
'url'
:
''
url
:
''
},
warningMessage
:
{
'border'
:
''
,
'background-color'
:
''
,
'color'
:
''
background
:
app_properties
.
warning_BackgroundColor
,
border
:
app_properties
.
warning_BorderColor
,
color
:
app_properties
.
warning_TextColor
},
errorMessage
:
{
'border'
:
''
,
// same as font color in terminal error @TODO
'background-color'
:
''
,
'color'
:
''
background
:
app_properties
.
danger_BackgroundColor
,
border
:
app_properties
.
danger_BorderColor
,
color
:
app_properties
.
danger_TextColor
},
successMessage
:
{
'border'
:
''
,
'background-color'
:
''
,
'color'
:
''
background
:
app_properties
.
success_BackgroundColor
,
border
:
app_properties
.
success_BorderColor
,
color
:
app_properties
.
success_TextColor
},
dropdown
:
{
background
:
app_properties
.
dropdown_BackgroundColor
,
...
...
@@ -365,24 +426,24 @@ var remix_properties = {
compileTab
:
{
compileButton
:
{
background
:
app_properties
.
compile
Button_BackgroundColor
,
border
:
app_properties
.
compile
Button_BorderColor
,
color
:
app_properties
.
compile
Button_TextColor
,
background
:
app_properties
.
primary
Button_BackgroundColor
,
border
:
app_properties
.
primary
Button_BorderColor
,
color
:
app_properties
.
primary
Button_TextColor
,
},
detailsButton
:
{
background
:
app_properties
.
details
Button_BackgroundColor
,
border
:
app_properties
.
details
Button_BorderColor
,
color
:
app_properties
.
details
Button_TextColor
,
background
:
app_properties
.
secondary
Button_BackgroundColor
,
border
:
app_properties
.
secondary
Button_BorderColor
,
color
:
app_properties
.
secondary
Button_TextColor
,
},
PublishButton
:
{
background
:
app_properties
.
publish
Button_BackgroundColor
,
border
:
app_properties
.
publish
Button_BorderColor
,
color
:
app_properties
.
publish
Button_TextColor
,
background
:
app_properties
.
secondary
Button_BackgroundColor
,
border
:
app_properties
.
secondary
Button_BorderColor
,
color
:
app_properties
.
secondary
Button_TextColor
,
},
detailsModalDialog
:
{
background
:
app_properties
.
general
_BackgroundColor
,
background
:
app_properties
.
primary
_BackgroundColor
,
header
:
{
background
:
app_properties
.
s
upport
_BackgroundColor
,
background
:
app_properties
.
s
econdary
_BackgroundColor
,
color
:
app_properties
.
mainText_Color
,
},
infoTextBox
:
{
// already in rightPanel general theme
...
...
@@ -419,20 +480,22 @@ var remix_properties = {
border
:
app_properties
.
createButton_BorderColor
,
color
:
app_properties
.
createButton_TextColor
},
instance_callButton
:
{
background
:
app_properties
.
instance_callButton_BackgroundColor
,
border
:
app_properties
.
instance_callButton_BorderColor
,
color
:
app_properties
.
instance_callButton_TextColor
},
instance_transactButton
:
{
background
:
app_properties
.
instance_transactButton_BackgroundColor
,
border
:
app_properties
.
instance_transactButton_BorderColor
,
color
:
app_properties
.
instance_transactButton_TextColor
},
instance_transactPayableButton
:
{
background
:
app_properties
.
instance_transactPayableButton_BackgroundColor
,
border
:
app_properties
.
instance_transactPayableButton_BorderColor
,
color
:
app_properties
.
instance_transactPayableButton_TextColor
instanceButtons
:
{
callButton
:
{
background
:
app_properties
.
callButton_BackgroundColor
,
border
:
app_properties
.
callButton_BorderColor
,
color
:
app_properties
.
callButton_TextColor
},
transactButton
:
{
background
:
app_properties
.
transactButton_BackgroundColor
,
border
:
app_properties
.
transactButton_BorderColor
,
color
:
app_properties
.
transactButton_TextColor
},
transactPayableButton
:
{
background
:
app_properties
.
transactPayableButton_BackgroundColor
,
border
:
app_properties
.
transactPayableButton_BorderColor
,
color
:
app_properties
.
transactPayableButton_TextColor
}
},
copyToClipboard
:
{
color
:
app_properties
.
icon_Color
,
...
...
@@ -452,9 +515,9 @@ var remix_properties = {
debuggerTab
:
{
buttons
:
{
debuggerButton_TextColor
:
css_properties
.
colors
.
black
,
debuggerButton_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
debuggerButton_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
debuggerButton_TextColor
:
app_properties
.
secondaryButton_TextColor
,
debuggerButton_BackgroundColor
:
app_properties
.
secondaryButton_BackgroundColor
,
debuggerButton_BorderColor
:
app_properties
.
secondaryButton_BorderColor
,
icons
:
{
color
:
app_properties
.
icon_Color
,
hover
:
{
...
...
@@ -468,7 +531,7 @@ var remix_properties = {
color
:
app_properties
.
dropdown_TextColor
,
instructions
:
{
highlightedKey
:
{
background
:
app_properties
.
s
upport
_BackgroundColor
background
:
app_properties
.
s
econdary
_BackgroundColor
}
},
solidityState
:
{
...
...
@@ -481,9 +544,9 @@ var remix_properties = {
analysisTab
:
{
buttons
:
{
runButton_TextColor
:
css_properties
.
colors
.
black
,
runButton_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
runButton_BorderColor
:
css_properties
.
colors
.
veryLightGrey
runButton_TextColor
:
app_properties
.
primaryButton_TextColor
,
runButton_BackgroundColor
:
app_properties
.
primaryButton_BackgroundColor
,
runButton_BorderColor
:
app_properties
.
primaryButton_BorderColor
},
textBox
:
{
// already in rightPanel general theme
background
:
app_properties
.
infoBox_BackgroundColor
,
...
...
@@ -491,9 +554,9 @@ var remix_properties = {
color
:
app_properties
.
infoBox_TextColor
},
warningMessage
:
{
// already in rightPanel general theme
'border'
:
''
,
'background-color'
:
''
,
'color'
:
''
background
:
app_properties
.
warning_BackgroundColor
,
border
:
app_properties
.
warning_BorderColor
,
color
:
app_properties
.
warning_TextColor
}
},
...
...
@@ -519,13 +582,13 @@ var elementColors = {
BUTTONS
----------------------- */
// DROPDOWN
dropdown_TextColor
:
app_properties
.
dropdown_TextColor
,
dropdown_BackgroundColor
:
app_properties
.
dropdown_BackgroundColor
,
dropdown_BorderColor
:
app_properties
.
dropdown_BorderColor
,
dropdown_TextColor
:
css_properties
.
colors
.
black
,
dropdown_BackgroundColor
:
css_properties
.
colors
.
white
,
dropdown_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
// BUTTON
button_TextColor
:
app
_properties
.
element_TextColor
,
button_BorderColor
:
app_properties
.
element_BorderColor
,
button_TextColor
:
css
_properties
.
element_TextColor
,
button_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
rightPanel_compileTab_compileButton_BackgroundColor
:
'hsla(0, 0%, 40%, .2)'
,
rightPanel_compileTab_otherButtons_BackgroundColor
:
'hsla(0, 0%, 40%, .2)'
...
...
@@ -591,6 +654,7 @@ var elementColors = {
var
buttons
=
{
'button'
:
`
margin : 1px;
background-color :
${
css_properties
.
colors
.
veryLightGrey
}
;
border : .3px solid
${
css_properties
.
colors
.
veryLightGrey
}
;
color :
${
css_properties
.
colors
.
black
}
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment