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
3616423a
Commit
3616423a
authored
Dec 06, 2017
by
Rob Stupay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update style-guide
parent
039dc05a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
51 deletions
+90
-51
style-guide.js
remix-lib/src/ui/style-guide.js
+55
-44
style-guide_master.js
remix-lib/src/ui/style-guide_master.js
+25
-1
style-guide_metropolis.js
remix-lib/src/ui/style-guide_metropolis.js
+10
-6
No files found.
remix-lib/src/ui/style-guide.js
View file @
3616423a
...
...
@@ -17,16 +17,18 @@ function styleGuide () {
colors
:
{
// BASIC COLORS (B&W and transparent)
transparent
:
'transparent'
,
white
:
'hsl
a(198, 100%, 97%, 1
)'
,
black
:
'hsl
a(240, 100%, 6%, 1
)'
,
opacityBlack
:
'hsla(
240, 100%, 6%, .7
)'
,
white
:
'hsl
(0, 0%, 100%
)'
,
black
:
'hsl
(0, 0%, 0%
)'
,
opacityBlack
:
'hsla(
0, 0%, 0%, .4
)'
,
// BLUE
blue
:
'hsla(233, 91%, 36%, 1)'
,
lightBlue
:
'hsla(202, 91%, 75%, 1)'
,
blue
:
'hsla(229, 75%, 87%, 1)'
,
lightBlue
:
'hsla(229, 75%, 87%, .5)'
,
backgroundBlue
:
'hsla(229, 100%, 97%, 1)'
,
blueLightTrans
:
'hsla(202, 91%, 75%, .4)'
,
backgroundBlue
:
'hsla(240, 100%, 21%, 1)'
,
brightBlue
:
'hsla(233, 91%, 58%, 1)'
,
blueGreyEve
:
'hsla(213, 64%, 65%, 1)'
,
bluePruneEve
:
'hsla(232, 30%, 20%, 1)'
,
blueBerrySmog
:
'hsla(286, 15%, 22%, 1)'
,
...
...
@@ -36,30 +38,30 @@ function styleGuide () {
blueFairyDust
:
'hsla(181, 83%, 86%, 1)'
,
blueMonday
:
'hsla(213, 100%, 16%, 1)'
,
greenZing
:
'hsla(148, 79%, 47%, 1)'
,
// GREY
grey
:
'hsla(0, 0%, 40%, 1)'
,
lightGrey
:
'hsla(0, 0%, 40%, .5)'
,
veryLightGrey
:
'hsla(0, 0%, 40%, .2)'
,
blueGrey
:
'hsla(206, 24%, 58%, .8)'
,
greyBlueNight
:
'hsla(215, 55%, 18%, 1)'
,
greyBlueLight
:
'hsla(213, 15%, 58%, 1)'
,
greyBlueMed
:
'hsla(215, 55%, 28%, 1)'
,
lightGrey
:
'hsla(0, 0%, 40%, .5)'
,
veryLightGrey
:
'hsla(0, 0%, 40%, .2)'
,
desatGrey
:
'hsla(173, 17%, 79%, 1)'
,
// RED
strongRed
:
'hsla(0, 100%, 71%, 1)'
,
red
:
'hsla(0, 82%, 82%, 1)'
,
lightRed
:
'hsla(0, 82%, 82%, .
8
)'
,
lightRed
:
'hsla(0, 82%, 82%, .
5
)'
,
// GREEN
green
:
'hsla(141, 75%, 84%, 1)'
,
lightGreen
:
'hsla(141, 75%, 84%, .5)'
,
greenZing
:
'hsla(148, 79%, 47%, 1)'
,
// PINK
pink
:
'hsla(300, 69%, 76%, 1)'
,
lightPink
:
'hsla(286, 71%, 88%, 1)'
,
//
YELLOW
orange
:
'hsla(
39, 87
%, 50%, 1)'
,
lightOrange
:
'hsla(
39, 87
%, 50%, .5)'
,
//
ORANGE
orange
:
'hsla(
44, 100
%, 50%, 1)'
,
lightOrange
:
'hsla(
44, 100
%, 50%, .5)'
,
// VIOLET
violet
:
'hsla(240, 64%, 68%, 1)'
,
lightViolet
:
'hsla(240, 64%, 68%, .5)'
...
...
@@ -89,17 +91,23 @@ function styleGuide () {
var
appProperties
=
{
aceTheme
:
'tomorrow_night_blue'
,
/* ------------------------------------------------------
ACE THEME
------------------------------------------------------ */
aceTheme
:
''
,
/* ------------------------------------------------------
BACKGROUND COLORS
------------------------------------------------------ */
primary_BackgroundColor
:
cssProperties
.
colors
.
black
,
primary_BackgroundColor
:
cssProperties
.
colors
.
white
,
secondary_BackgroundColor
:
cssProperties
.
colors
.
backgroundBlue
,
tertiary_BackgroundColor
:
cssProperties
.
colors
.
greyBlueNight
,
quaternary_BackgroundColor
:
cssProperties
.
colors
.
blueGreyEve
,
fifth_BackgroundColor
:
cssProperties
.
colors
.
bluePruneEve
,
seventh_BackgroundColor
:
cssProperties
.
colors
.
blueMonday
,
tertiary_BackgroundColor
:
cssProperties
.
colors
.
backgroundBlue
,
quaternary_BackgroundColor
:
cssProperties
.
colors
.
backgroundBlue
,
fifth_BackgroundColor
:
cssProperties
.
colors
.
backgroundBlue
,
seventh_BackgroundColor
:
cssProperties
.
colors
.
veryLightGrey
,
dark_BackgroundColor
:
cssProperties
.
colors
.
black
,
light_BackgroundColor
:
cssProperties
.
colors
.
white
,
debuggingMode_BackgroundColor
:
cssProperties
.
colors
.
lightViolet
,
...
...
@@ -112,21 +120,24 @@ function styleGuide () {
/* ------------------------------------------------------
TEXT COLORS
******************************************************** */
mainText_Color
:
cssProperties
.
colors
.
white
,
supportText_Color
:
cssProperties
.
colors
.
lightBlue
,
sub_supportText_Color
:
cssProperties
.
colors
.
greyBlueLight
,
mainText_Color
:
cssProperties
.
colors
.
black
,
supportText_Color
:
cssProperties
.
colors
.
grey
,
sub_supportText_Color
:
cssProperties
.
colors
.
black
,
specialText_Color
:
cssProperties
.
colors
.
greenZing
,
brightText_Color
:
cssProperties
.
colors
.
b
lueMascara
,
brightText_Color
:
cssProperties
.
colors
.
b
rightBlue
,
oppositeText_Color
:
cssProperties
.
colors
.
black
,
additionalText_Color
:
cssProperties
.
colors
.
desatGrey
,
errorText_Color
:
cssProperties
.
colors
.
strongRed
,
warningText_Color
:
cssProperties
.
colors
.
orange
,
infoText_Color
:
cssProperties
.
colors
.
violet
,
/* ------------------------------------------------------
ICONS
******************************************************** */
icon_Color
:
cssProperties
.
colors
.
white
,
icon_AltColor
:
cssProperties
.
colors
.
black
,
icon_Color
:
cssProperties
.
colors
.
black
,
icon_AltColor
:
cssProperties
.
colors
.
white
,
icon_HoverColor
:
cssProperties
.
colors
.
orange
,
/* ------------------------------------------------------
...
...
@@ -144,8 +155,8 @@ function styleGuide () {
// Warning
warning_TextColor
:
cssProperties
.
colors
.
black
,
warning_BackgroundColor
:
cssProperties
.
colors
.
o
range
,
//
warning_BorderColor: cssProperties.colors.orange,
warning_BackgroundColor
:
cssProperties
.
colors
.
lightO
range
,
warning_BorderColor
:
cssProperties
.
colors
.
orange
,
// Tooltip
tooltip_Color
:
cssProperties
.
colors
.
white
,
...
...
@@ -157,7 +168,7 @@ function styleGuide () {
******************************************************** */
dropdown_TextColor
:
cssProperties
.
colors
.
black
,
dropdown_BackgroundColor
:
cssProperties
.
colors
.
white
,
dropdown_SecondaryBackgroundColor
:
cssProperties
.
colors
.
blueMorningGlory
,
dropdown_SecondaryBackgroundColor
:
cssProperties
.
colors
.
white
,
dropdown_BorderColor
:
cssProperties
.
colors
.
veryLightGrey
,
/* ------------------------------------------------------
...
...
@@ -170,15 +181,15 @@ function styleGuide () {
/* ------------------------------------------------------
SOLID BORDER BOX
******************************************************** */
solidBorderBox_TextColor
:
cssProperties
.
colors
.
white
,
solidBorderBox_BackgroundColor
:
cssProperties
.
colors
.
black
,
solidBorderBox_TextColor
:
cssProperties
.
colors
.
black
,
solidBorderBox_BackgroundColor
:
cssProperties
.
colors
.
white
,
solidBorderBox_BorderColor
:
cssProperties
.
colors
.
lightBlue
,
/* ------------------------------------------------------
SOLID BOX
******************************************************** */
solidBox_TextColor
:
cssProperties
.
colors
.
white
,
solidBox_BackgroundColor
:
cssProperties
.
colors
.
black
,
solidBox_TextColor
:
cssProperties
.
colors
.
black
,
solidBox_BackgroundColor
:
cssProperties
.
colors
.
white
,
/* ------------------------------------------------------
BUTTONS
...
...
@@ -195,7 +206,7 @@ function styleGuide () {
SECONDARY
.................. */
secondaryButton_TextColor
:
cssProperties
.
colors
.
black
,
secondaryButton_BackgroundColor
:
cssProperties
.
colors
.
lightBlue
,
secondaryButton_BackgroundColor
:
cssProperties
.
colors
.
veryLightGrey
,
secondaryButton_BorderColor
:
cssProperties
.
colors
.
veryLightGrey
,
/* .................
...
...
@@ -210,7 +221,7 @@ function styleGuide () {
Quaternary
.................. */
quaternaryButton_TextColor
:
cssProperties
.
colors
.
black
,
quaternaryButton_BackgroundColor
:
cssProperties
.
colors
.
blueMascara
,
quaternaryButton_BackgroundColor
:
cssProperties
.
colors
.
white
,
quaternaryButton_BorderColor
:
cssProperties
.
colors
.
veryLightGrey
,
/* .................
...
...
@@ -269,13 +280,13 @@ function styleGuide () {
// TRANSACTION
transactButton_TextColor
:
cssProperties
.
colors
.
black
,
transactButton_BackgroundColor
:
cssProperties
.
colors
.
blueFairyDust
,
transactButton_BackgroundColor
:
cssProperties
.
colors
.
lightRed
,
transactButton_BorderColor
:
cssProperties
.
colors
.
lightRed
,
// CONSTANT
constantButton_TextColor
:
cssProperties
.
colors
.
black
,
constantButton_BackgroundColor
:
cssProperties
.
colors
.
greenZing
,
constantButton_BorderColor
:
cssProperties
.
colors
.
greenZing
,
constantButton_BackgroundColor
:
cssProperties
.
colors
.
lightBlue
,
constantButton_BorderColor
:
cssProperties
.
colors
.
lightBlue
,
// PAYABLE TRANSACTION
transactPayableButton_TextColor
:
cssProperties
.
colors
.
black
,
...
...
@@ -384,8 +395,8 @@ function styleGuide () {
REMIX GENERAL
/* ------------------------------------------------------ */
remix
:
{
modalDialog_BackgroundColor_Primary
:
appProperties
.
fifth
_BackgroundColor
,
modalDialog_text_Primary
:
appProperties
.
additional
Text_Color
,
modalDialog_BackgroundColor_Primary
:
appProperties
.
primary
_BackgroundColor
,
modalDialog_text_Primary
:
appProperties
.
main
Text_Color
,
modalDialog_text_Secondary
:
appProperties
.
supportText_Color
,
modalDialog_text_Link
:
appProperties
.
brightText_Color
,
modalDialog_text_Em
:
appProperties
.
specialText_Color
,
...
...
@@ -500,9 +511,9 @@ function styleGuide () {
RIGHT PANEL
/* ------------------------------------------------------ */
rightPanel
:
{
backgroundColor_Panel
:
appProperties
.
seven
th_BackgroundColor
,
backgroundColor_Tab
:
appProperties
.
seven
th_BackgroundColor
,
BackgroundColor_Pre
:
appProperties
.
dark
_BackgroundColor
,
backgroundColor_Panel
:
appProperties
.
fif
th_BackgroundColor
,
backgroundColor_Tab
:
appProperties
.
fif
th_BackgroundColor
,
BackgroundColor_Pre
:
appProperties
.
primary
_BackgroundColor
,
text_Primary
:
appProperties
.
mainText_Color
,
text_Secondary
:
appProperties
.
supportText_Color
,
...
...
@@ -672,7 +683,7 @@ function styleGuide () {
}),
button_Debugger
:
appProperties
.
uiElements
.
button
({
BackgroundColor
:
appProperties
.
teri
aryButton_BackgroundColor
,
BackgroundColor
:
appProperties
.
second
aryButton_BackgroundColor
,
BorderColor
:
appProperties
.
secondaryButton_BorderColor
,
Color
:
appProperties
.
secondaryButton_TextColor
}),
...
...
remix-lib/src/ui/style-guide_master.js
View file @
3616423a
...
...
@@ -36,7 +36,7 @@ function styleGuide () {
// PINK
pink
:
'hsla(300, 69%, 76%, 1)'
,
lightPink
:
'hsla(300, 69%, 76%, .5)'
,
//
YELLOW
//
ORANGE
orange
:
'hsla(44, 100%, 50%, 1)'
,
lightOrange
:
'hsla(44, 100%, 50%, .5)'
,
// VIOLET
...
...
@@ -67,11 +67,25 @@ function styleGuide () {
-------------------------------------------------------------------------- */
var
appProperties
=
{
/* ------------------------------------------------------
ACE THEME
------------------------------------------------------ */
aceTheme
:
''
,
/* ------------------------------------------------------
BACKGROUND COLORS
------------------------------------------------------ */
primary_BackgroundColor
:
cssProperties
.
colors
.
white
,
secondary_BackgroundColor
:
cssProperties
.
colors
.
backgroundBlue
,
tertiary_BackgroundColor
:
cssProperties
.
colors
.
greyBlueNight
,
quaternary_BackgroundColor
:
cssProperties
.
colors
.
blueGreyEve
,
fifth_BackgroundColor
:
cssProperties
.
colors
.
bluePruneEve
,
seventh_BackgroundColor
:
cssProperties
.
colors
.
blueMonday
,
dark_BackgroundColor
:
cssProperties
.
colors
.
veryLightGrey
,
light_BackgroundColor
:
cssProperties
.
colors
.
white
,
debuggingMode_BackgroundColor
:
cssProperties
.
colors
.
lightViolet
,
...
...
@@ -86,6 +100,13 @@ function styleGuide () {
******************************************************** */
mainText_Color
:
cssProperties
.
colors
.
black
,
supportText_Color
:
cssProperties
.
colors
.
grey
,
sub_supportText_Color
:
cssProperties
.
colors
.
greyBlueLight
,
specialText_Color
:
cssProperties
.
colors
.
greenZing
,
brightText_Color
:
cssProperties
.
colors
.
blueMascara
,
oppositeText_Color
:
cssProperties
.
colors
.
black
,
additionalText_Color
:
cssProperties
.
colors
.
desatGrey
,
errorText_Color
:
cssProperties
.
colors
.
strongRed
,
warningText_Color
:
cssProperties
.
colors
.
orange
,
infoText_Color
:
cssProperties
.
colors
.
violet
,
...
...
@@ -93,6 +114,9 @@ function styleGuide () {
ICONS
******************************************************** */
icon_Color
:
cssProperties
.
colors
.
black
,
icon_AltColor
:
cssProperties
.
colors
.
white
,
icon_HoverColor
:
cssProperties
.
colors
.
orange
,
/* ------------------------------------------------------
...
...
remix-lib/src/ui/style-guide_metropolis.js
View file @
3616423a
...
...
@@ -24,8 +24,9 @@ function styleGuide () {
// BLUE
blue
:
'hsla(233, 91%, 36%, 1)'
,
lightBlue
:
'hsla(202, 91%, 75%, 1)'
,
blueLightTrans
:
'hsla(202, 91%, 75%, .4)'
,
backgroundBlue
:
'hsla(240, 100%, 21%, 1)'
,
blueLightTrans
:
'hsla(202, 91%, 75%, .4)'
,
brightBlue
:
'hsla(233, 91%, 58%, 1)'
,
blueGreyEve
:
'hsla(213, 64%, 65%, 1)'
,
bluePruneEve
:
'hsla(232, 30%, 20%, 1)'
,
...
...
@@ -36,16 +37,15 @@ function styleGuide () {
blueFairyDust
:
'hsla(181, 83%, 86%, 1)'
,
blueMonday
:
'hsla(213, 100%, 16%, 1)'
,
greenZing
:
'hsla(148, 79%, 47%, 1)'
,
// GREY
grey
:
'hsla(0, 0%, 40%, 1)'
,
lightGrey
:
'hsla(0, 0%, 40%, .5)'
,
veryLightGrey
:
'hsla(0, 0%, 40%, .2)'
,
blueGrey
:
'hsla(206, 24%, 58%, .8)'
,
greyBlueNight
:
'hsla(215, 55%, 18%, 1)'
,
greyBlueLight
:
'hsla(213, 15%, 58%, 1)'
,
greyBlueMed
:
'hsla(215, 55%, 28%, 1)'
,
lightGrey
:
'hsla(0, 0%, 40%, .5)'
,
veryLightGrey
:
'hsla(0, 0%, 40%, .2)'
,
desatGrey
:
'hsla(173, 17%, 79%, 1)'
,
// RED
strongRed
:
'hsla(0, 100%, 71%, 1)'
,
...
...
@@ -54,6 +54,7 @@ function styleGuide () {
// GREEN
green
:
'hsla(141, 75%, 84%, 1)'
,
lightGreen
:
'hsla(141, 75%, 84%, .5)'
,
greenZing
:
'hsla(148, 79%, 47%, 1)'
,
// PINK
pink
:
'hsla(300, 69%, 76%, 1)'
,
lightPink
:
'hsla(286, 71%, 88%, 1)'
,
...
...
@@ -88,6 +89,9 @@ function styleGuide () {
-------------------------------------------------------------------------- */
var
appProperties
=
{
/* ------------------------------------------------------
ACE THEME
------------------------------------------------------ */
aceTheme
:
'tomorrow_night_blue'
,
...
...
@@ -145,7 +149,7 @@ function styleGuide () {
// Warning
warning_TextColor
:
cssProperties
.
colors
.
black
,
warning_BackgroundColor
:
cssProperties
.
colors
.
orange
,
//
warning_BorderColor: cssProperties.colors.orange,
warning_BorderColor
:
cssProperties
.
colors
.
orange
,
// Tooltip
tooltip_Color
:
cssProperties
.
colors
.
white
,
...
...
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