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
b7f8f151
Commit
b7f8f151
authored
Oct 02, 2017
by
ninabreznik
Committed by
yann300
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start adding styleguide to csjs
parent
f54f037b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
style-guide.js
src/ui/styles/style-guide.js
+15
-9
No files found.
src/ui/styles/style-guide.js
View file @
b7f8f151
...
@@ -71,9 +71,10 @@ function styleGuide () {
...
@@ -71,9 +71,10 @@ function styleGuide () {
/********************************************************
/********************************************************
BACKGROUND COLORS
BACKGROUND COLORS
******************************************************** */
******************************************************** */
primary_BackgroundColor
:
css_properties
.
colors
.
white
,
primary_BackgroundColor
:
css_properties
.
colors
.
red
,
secondary_BackgroundColor
:
css_properties
.
colors
.
b
ackgroundB
lue
,
secondary_BackgroundColor
:
css_properties
.
colors
.
blue
,
dark_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
dark_BackgroundColor
:
css_properties
.
colors
.
veryLightGrey
,
light_BackgroundColor
:
css_properties
.
colors
.
white
,
/********************************************************
/********************************************************
RESIZING
RESIZING
...
@@ -117,7 +118,7 @@ function styleGuide () {
...
@@ -117,7 +118,7 @@ function styleGuide () {
DROPDOWN
DROPDOWN
******************************************************** */
******************************************************** */
dropdown_TextColor
:
css_properties
.
colors
.
black
,
dropdown_TextColor
:
css_properties
.
colors
.
black
,
dropdown_BackgroundColor
:
css_properties
.
colors
.
white
,
dropdown_BackgroundColor
:
css_properties
.
colors
.
violet
,
dropdown_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
dropdown_BorderColor
:
css_properties
.
colors
.
veryLightGrey
,
/********************************************************
/********************************************************
...
@@ -219,7 +220,7 @@ function styleGuide () {
...
@@ -219,7 +220,7 @@ function styleGuide () {
`
,
`
,
dottedBorderBox
:
(
opts
=
{})
=>
`
dottedBorderBox
:
(
opts
=
{})
=>
`
background-color :
${
opts
.
BackgroundColor
}
}
;
background-color :
${
opts
.
BackgroundColor
}
;
border : .2em dotted
${
opts
.
BorderColor
}
;
border : .2em dotted
${
opts
.
BorderColor
}
;
color :
${
opts
.
Color
}
;
color :
${
opts
.
Color
}
;
border-radius :
${
css_properties
.
borders
.
secondary_borderRadius
}
;
border-radius :
${
css_properties
.
borders
.
secondary_borderRadius
}
;
...
@@ -230,9 +231,9 @@ function styleGuide () {
...
@@ -230,9 +231,9 @@ function styleGuide () {
word-break : break-word;
word-break : break-word;
`
,
`
,
inputField
:
(
opts
=
{})
=>
`
inputField
:
(
opts
=
{})
=>
`
background-color :
${
opts
.
BackgroundColor
}
}
;
background-color :
${
opts
.
BackgroundColor
}
;
border :
.2em dotte
d
${
opts
.
BorderColor
}
;
border :
1px soli
d
${
opts
.
BorderColor
}
;
color :
${
opts
.
Color
}
;
color :
${
opts
.
Color
}
;
border-radius :
${
css_properties
.
borders
.
secondary_borderRadius
}
;
border-radius :
${
css_properties
.
borders
.
secondary_borderRadius
}
;
height : 25px;
height : 25px;
...
@@ -243,7 +244,7 @@ function styleGuide () {
...
@@ -243,7 +244,7 @@ function styleGuide () {
`
,
`
,
dropdown
:
(
opts
=
{})
=>
`
dropdown
:
(
opts
=
{})
=>
`
background-color :
${
opts
.
BackgroundColor
}
}
;
background-color :
${
opts
.
BackgroundColor
}
;
border : 1px solid
${
opts
.
BorderColor
}
;
border : 1px solid
${
opts
.
BorderColor
}
;
color :
${
opts
.
Color
}
;
color :
${
opts
.
Color
}
;
font-size : 12px;
font-size : 12px;
...
@@ -321,10 +322,12 @@ var remix_properties = {
...
@@ -321,10 +322,12 @@ var remix_properties = {
editor
:
{
editor
:
{
backgroundColor_Panel
:
app_properties
.
primary_BackgroundColor
,
backgroundColor_Panel
:
app_properties
.
primary_BackgroundColor
,
backgroundColor_Editor
:
app_properties
.
light_BackgroundColor
,
backgroundColor_Tabs_Highlights
:
app_properties
.
secondary_BackgroundColor
,
backgroundColor_Tabs_Highlights
:
app_properties
.
secondary_BackgroundColor
,
backgroundColor_DebuggerMode
:
app_properties
.
secondary
_BackgroundColor
,
backgroundColor_DebuggerMode
:
app_properties
.
warning
_BackgroundColor
,
text_Primary
:
app_properties
.
mainText_Color
,
text_Primary
:
app_properties
.
mainText_Color
,
text_Secondary
:
app_properties
.
supportText_Color
,
text_Editor
:
''
,
text_Editor
:
''
,
icon_Color_Editor
:
app_properties
.
icon_Color
,
icon_Color_Editor
:
app_properties
.
icon_Color
,
...
@@ -694,11 +697,14 @@ var elementColors = {
...
@@ -694,11 +697,14 @@ var elementColors = {
return
{
return
{
colors
:
css_properties
.
colors
,
colors
:
css_properties
.
colors
,
borders
:
css_properties
.
borders
,
leftPanel
:
remix_properties
.
leftPanel
,
leftPanel
:
remix_properties
.
leftPanel
,
editor
:
remix_properties
.
editor
,
editor
:
remix_properties
.
editor
,
terminal
:
remix_properties
.
terminal
,
terminal
:
remix_properties
.
terminal
,
rightPanel
:
remix_properties
.
rightPanel
,
rightPanel
:
remix_properties
.
rightPanel
,
app_properties
:
app_properties
,
elementColors
:
elementColors
,
elementColors
:
elementColors
,
dropdown
:
uiElements
[
'dropdown'
],
dropdown
:
uiElements
[
'dropdown'
],
button
:
uiElements
[
'button'
],
button
:
uiElements
[
'button'
],
...
...
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