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
7ef215f7
Commit
7ef215f7
authored
Jan 08, 2019
by
jeremiG
Committed by
yann300
Jan 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui): Apply local CSS variables to existing themes
- Prevent excessively verbose stylesheet
parent
b89960b2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
23 deletions
+18
-23
left-icon-panel.js
src/app/panels/left-icon-panel.js
+2
-10
style-guide.js
src/app/ui/styles-guide/style-guide.js
+5
-0
styleGuideDark.js
src/app/ui/styles-guide/styleGuideDark.js
+5
-0
styleGuideDavid.js
src/app/ui/styles-guide/styleGuideDavid.js
+5
-8
panels-resize.js
src/lib/panels-resize.js
+1
-5
No files found.
src/app/panels/left-icon-panel.js
View file @
7ef215f7
...
@@ -151,19 +151,11 @@ const css = csjs`
...
@@ -151,19 +151,11 @@ const css = csjs`
}
}
.dragbar {
.dragbar {
position : absolute;
position : absolute;
width :
${
width :
${
styles
.
rightPanel
.
dragbarWidth
}
;
styles
.
rightPanel
.
customDragbarWidth
?
styles
.
rightPanel
.
dragbarWidth
:
'0.5rem'
}
;
top : 3em;
top : 3em;
bottom : 0;
bottom : 0;
cursor : col-resize;
cursor : col-resize;
background-color :
${
background-color :
${
styles
.
rightPanel
.
dragbarBackgroundColor
}
;
styles
.
rightPanel
.
customDragbarBackgroundColor
?
styles
.
rightPanel
.
dragbarBackgroundColor
:
''
}
;
z-index : 999;
z-index : 999;
border-left : 2px solid
${
styles
.
rightPanel
.
bar_Dragging
}
;
border-left : 2px solid
${
styles
.
rightPanel
.
bar_Dragging
}
;
}
}
...
...
src/app/ui/styles-guide/style-guide.js
View file @
7ef215f7
...
@@ -411,6 +411,7 @@ function styleGuide () {
...
@@ -411,6 +411,7 @@ function styleGuide () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarBorderRight
:
'2px solid hsla(215, 81%, 79%, .3)'
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
icon_HoverColor_Menu
:
appProperties
.
icon_HoverColor
,
icon_HoverColor_Menu
:
appProperties
.
icon_HoverColor
,
...
@@ -460,6 +461,8 @@ function styleGuide () {
...
@@ -460,6 +461,8 @@ function styleGuide () {
text_Regular_TransactionLog
:
appProperties
.
supportText_Color
,
text_Regular_TransactionLog
:
appProperties
.
supportText_Color
,
text_Button
:
appProperties
.
oppositeText_Color
,
text_Button
:
appProperties
.
oppositeText_Color
,
blockBorderTop
:
'0.07ch solid '
+
cssProperties
.
colors
.
veryLightGrey
,
icon_Color_Log_Succeed
:
appProperties
.
success_BorderColor
,
icon_Color_Log_Succeed
:
appProperties
.
success_BorderColor
,
icon_Color_Log_Failed
:
appProperties
.
errorText_Color
,
icon_Color_Log_Failed
:
appProperties
.
errorText_Color
,
icon_BackgroundColor_Log_Call
:
appProperties
.
infoText_Color
,
icon_BackgroundColor_Log_Call
:
appProperties
.
infoText_Color
,
...
@@ -514,6 +517,8 @@ function styleGuide () {
...
@@ -514,6 +517,8 @@ function styleGuide () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarWidth
:
'0.5rem'
,
dragbarBackgroundColor
:
''
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
...
...
src/app/ui/styles-guide/styleGuideDark.js
View file @
7ef215f7
...
@@ -418,6 +418,7 @@ function styleGuideDark () {
...
@@ -418,6 +418,7 @@ function styleGuideDark () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarBorderRight
:
'2px solid hsla(215, 81%, 79%, .3)'
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
icon_HoverColor_Menu
:
appProperties
.
icon_HoverColor
,
icon_HoverColor_Menu
:
appProperties
.
icon_HoverColor
,
...
@@ -467,6 +468,8 @@ function styleGuideDark () {
...
@@ -467,6 +468,8 @@ function styleGuideDark () {
text_Regular_TransactionLog
:
appProperties
.
supportText_Color
,
text_Regular_TransactionLog
:
appProperties
.
supportText_Color
,
text_Button
:
appProperties
.
oppositeText_Color
,
text_Button
:
appProperties
.
oppositeText_Color
,
blockBorderTop
:
'0.07ch solid '
+
cssProperties
.
colors
.
veryLightGrey
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
...
@@ -516,6 +519,8 @@ function styleGuideDark () {
...
@@ -516,6 +519,8 @@ function styleGuideDark () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarWidth
:
'0.5rem'
,
dragbarBackgroundColor
:
''
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
...
...
src/app/ui/styles-guide/styleGuideDavid.js
View file @
7ef215f7
...
@@ -398,8 +398,6 @@ function styleGuideDavid () {
...
@@ -398,8 +398,6 @@ function styleGuideDavid () {
LEFT PANEL (FILE PANEL)
LEFT PANEL (FILE PANEL)
/* ------------------------------------------------------ */
/* ------------------------------------------------------ */
leftPanel
:
{
leftPanel
:
{
customDragbarBorderRight
:
true
,
dragbarBorderRight
:
'2px solid '
+
cssProperties
.
colors
.
veryLightGrey
,
backgroundColor_Panel
:
appProperties
.
primary_BackgroundColor
,
backgroundColor_Panel
:
appProperties
.
primary_BackgroundColor
,
backgroundColor_FileExplorer
:
appProperties
.
tertiary_BackgroundColor
,
backgroundColor_FileExplorer
:
appProperties
.
tertiary_BackgroundColor
,
...
@@ -409,6 +407,7 @@ function styleGuideDavid () {
...
@@ -409,6 +407,7 @@ function styleGuideDavid () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarBorderRight
:
'2px solid '
+
cssProperties
.
colors
.
veryLightGrey
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
icon_HoverColor_Menu
:
appProperties
.
icon_HoverColor
,
icon_HoverColor_Menu
:
appProperties
.
icon_HoverColor
,
...
@@ -443,8 +442,6 @@ function styleGuideDavid () {
...
@@ -443,8 +442,6 @@ function styleGuideDavid () {
TERMINAL
TERMINAL
/* ------------------------------------------------------ */
/* ------------------------------------------------------ */
terminal
:
{
terminal
:
{
customBlockBorderTop
:
true
,
blockBorderTop
:
'2px solid '
+
cssProperties
.
colors
.
veryLightGrey
,
backgroundColor_Menu
:
appProperties
.
secondary_BackgroundColor
,
backgroundColor_Menu
:
appProperties
.
secondary_BackgroundColor
,
backgroundColor_Terminal
:
appProperties
.
seventh_BackgroundColor
,
backgroundColor_Terminal
:
appProperties
.
seventh_BackgroundColor
,
backgroundColor_TerminalCLI
:
appProperties
.
seventh_BackgroundColor
,
backgroundColor_TerminalCLI
:
appProperties
.
seventh_BackgroundColor
,
...
@@ -460,6 +457,8 @@ function styleGuideDavid () {
...
@@ -460,6 +457,8 @@ function styleGuideDavid () {
text_Regular_TransactionLog
:
appProperties
.
supportText_Color
,
text_Regular_TransactionLog
:
appProperties
.
supportText_Color
,
text_Button
:
appProperties
.
oppositeText_Color
,
text_Button
:
appProperties
.
oppositeText_Color
,
blockBorderTop
:
'2px solid '
+
cssProperties
.
colors
.
veryLightGrey
,
icon_Color_Log_Succeed
:
appProperties
.
success_BorderColor
,
icon_Color_Log_Succeed
:
appProperties
.
success_BorderColor
,
icon_Color_Log_Failed
:
appProperties
.
errorText_Color
,
icon_Color_Log_Failed
:
appProperties
.
errorText_Color
,
icon_BackgroundColor_Log_Call
:
appProperties
.
infoText_Color
,
icon_BackgroundColor_Log_Call
:
appProperties
.
infoText_Color
,
...
@@ -503,10 +502,6 @@ function styleGuideDavid () {
...
@@ -503,10 +502,6 @@ function styleGuideDavid () {
RIGHT PANEL
RIGHT PANEL
/* ------------------------------------------------------ */
/* ------------------------------------------------------ */
rightPanel
:
{
rightPanel
:
{
customDragbarWidth
:
true
,
customDragbarBackgroundColor
:
true
,
dragbarWidth
:
'2px'
,
dragbarBackgroundColor
:
cssProperties
.
colors
.
veryLightGrey
,
backgroundColor_Panel
:
appProperties
.
fifth_BackgroundColor
,
backgroundColor_Panel
:
appProperties
.
fifth_BackgroundColor
,
backgroundColor_Tab
:
appProperties
.
fifth_BackgroundColor
,
backgroundColor_Tab
:
appProperties
.
fifth_BackgroundColor
,
BackgroundColor_Pre
:
appProperties
.
primary_BackgroundColor
,
BackgroundColor_Pre
:
appProperties
.
primary_BackgroundColor
,
...
@@ -518,6 +513,8 @@ function styleGuideDavid () {
...
@@ -518,6 +513,8 @@ function styleGuideDavid () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarWidth
:
'2px'
,
dragbarBackgroundColor
:
cssProperties
.
colors
.
veryLightGrey
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
...
...
src/lib/panels-resize.js
View file @
7ef215f7
...
@@ -12,11 +12,7 @@ const css = csjs`
...
@@ -12,11 +12,7 @@ const css = csjs`
bottom : 0;
bottom : 0;
cursor : col-resize;
cursor : col-resize;
z-index : 999;
z-index : 999;
border-right :
${
border-right :
${
styles
.
leftPanel
.
dragbarBorderRight
}
;
styles
.
leftPanel
.
customDragbarBorderRight
?
styles
.
leftPanel
.
dragbarBorderRight
:
'2px solid hsla(215, 81%, 79%, .3)'
}
}
}
.ghostbar {
.ghostbar {
width : 3px;
width : 3px;
...
...
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