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
740f9b59
Commit
740f9b59
authored
Feb 06, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move editor panel styles to its own file
parent
0016ef06
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
224 additions
and
211 deletions
+224
-211
editor-panel.js
src/app/panels/editor-panel.js
+3
-172
righthand-panel.js
src/app/panels/righthand-panel.js
+1
-1
editor-panel-styles.js
src/app/panels/styles/editor-panel-styles.js
+180
-0
tabbed-menu-styles.js
src/app/tabs/styles/tabbed-menu-styles.js
+38
-0
tabbed-menu.js
src/app/tabs/tabbed-menu.js
+2
-38
No files found.
src/app/panels/editor-panel.js
View file @
740f9b59
var
csjs
=
require
(
'csjs-inject'
)
var
yo
=
require
(
'yo-yo'
)
var
remixLib
=
require
(
'remix-lib'
)
var
EventManager
=
remixLib
.
EventManager
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
Terminal
=
require
(
'./terminal'
)
var
cssTabs
=
yo
`
<style>
#files .file {
padding: 0 0.6em;
box-sizing: border-box;
background-color:
${
styles
.
editor
.
backgroundColor_Tabs_Highlights
}
;
cursor: pointer;
margin-right: 10px;
margin-top: 5px;
position: relative;
display: table-cell;
text-align: center;
vertical-align: middle;
color:
${
styles
.
editor
.
text_Teriary
}
;
}
#files .file.active {
color:
${
styles
.
editor
.
text_Primary
}
;
font-weight: bold;
border-bottom: 0 none;
padding-right: 1.5em;
}
#files .file .remove {
font-size: 12px;
display: flex;
color:
${
styles
.
editor
.
text_Primary
}
;
position: absolute;
top: -7px;
right: 5px;
display: none;
}
#files .file input {
background-color:
${
styles
.
colors
.
transparent
}
;
border: 0 none;
border-bottom: 1px dotted
${
styles
.
editor
.
text_Primary
}
;
line-height: 1em;
margin: 0.5em 0;
}
#files .file.active .remove {
display: inline-block;
color:
${
styles
.
editor
.
text_Primary
}
;
}
</style>
`
var
css
=
csjs
`
.editorpanel {
display : flex;
flex-direction : column;
height : 100%;
}
.tabsbar {
background-color :
${
styles
.
editor
.
backgroundColor_Panel
}
;
display : flex;
overflow : hidden;
height : 30px;
}
.tabs {
position : relative;
display : flex;
margin : 0;
left : 10px;
margin-right : 10px;
width : 100%;
overflow : hidden;
}
.files {
display : flex;
position : relative;
list-style : none;
margin : 0;
font-size : 15px;
height : 2.5em;
box-sizing : border-box;
line-height : 2em;
top : 0;
border-bottom : 0 none;
}
.changeeditorfontsize {
margin : 0;
font-size : 9px;
margin-top : 0.5em;
}
.changeeditorfontsize i {
cursor : pointer;
display : block;
color :
${
styles
.
editor
.
icon_Color_Editor
}
;
}
.changeeditorfontsize i {
cursor : pointer;
}
.changeeditorfontsize i:hover {
color :
${
styles
.
editor
.
icon_HoverColor_Editor
}
;
}
.buttons {
display : flex;
flex-direction : row;
justify-content : space-around;
align-items : center;
min-width : 45px;
}
.toggleLHP {
display : flex;
padding : 10px;
width : 100%;
font-weight : bold;
color :
${
styles
.
leftPanel
.
icon_Color_TogglePanel
}
;
}
.toggleLHP i {
cursor : pointer;
font-size : 14px;
font-weight : bold;
}
.toggleLHP i:hover {
color :
${
styles
.
leftPanel
.
icon_HoverColor_TogglePanel
}
;
}
.scroller {
position : absolute;
z-index : 999;
text-align : center;
cursor : pointer;
vertical-align : middle;
background-color :
${
styles
.
colors
.
general_BackgroundColor
}
;
height : 100%;
font-size : 1.3em;
color : orange;
}
.scrollerright {
right : 0;
margin-right : 15px;
}
.scrollerleft {
left : 0;
}
.toggleRHP {
margin : 0.5em;
font-weight : bold;
color :
${
styles
.
rightPanel
.
icon_Color_TogglePanel
}
;
right : 0;
}
.toggleRHP i {
cursor : pointer;
font-size : 14px;
font-weight : bold;
}
.toggleRHP i:hover {
color :
${
styles
.
rightPanel
.
icon_HoverColor_TogglePanel
}
;
}
.show {
opacity : 1;
transition : .3s opacity ease-in;
}
.hide {
opacity : 0;
pointer-events : none;
transition : .3s opacity ease-in;
}
.content {
position : relative;
display : flex;
flex-direction : column;
height : 100%;
width : 100%;
}
.contextviewcontainer{
width : 100%;
height : 20px;
background-color :
${
styles
.
editor
.
backgroundColor_Tabs_Highlights
}
;
}
`
var
styles
=
require
(
'./styles/editor-panel-styles'
)
var
cssTabs
=
styles
.
cssTabs
var
css
=
styles
.
css
class
EditorPanel
{
constructor
(
opts
=
{})
{
...
...
src/app/panels/righthand-panel.js
View file @
740f9b59
...
...
@@ -146,7 +146,7 @@ function RighthandPanel (appAPI, events, opts) {
// load tabbed menu component
var
tabEvents
=
{
compiler
:
events
.
compiler
,
app
:
events
.
app
,
rhp
:
self
.
event
}
self
.
_view
.
tabbedMenu
=
new
TabbedMenu
(
options
,
{},
tabEvents
,
{}
)
self
.
_view
.
tabbedMenu
=
new
TabbedMenu
(
options
,
tabEvents
)
events
.
rhp
=
self
.
event
...
...
src/app/panels/styles/editor-panel-styles.js
0 → 100644
View file @
740f9b59
var
yo
=
require
(
'yo-yo'
)
var
csjs
=
require
(
'csjs-inject'
)
var
remixLib
=
require
(
'remix-lib'
)
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
cssTabs
=
yo
`
<style>
#files .file {
padding: 0 0.6em;
box-sizing: border-box;
background-color:
${
styles
.
editor
.
backgroundColor_Tabs_Highlights
}
;
cursor: pointer;
margin-right: 10px;
margin-top: 5px;
position: relative;
display: table-cell;
text-align: center;
vertical-align: middle;
color:
${
styles
.
editor
.
text_Teriary
}
;
}
#files .file.active {
color:
${
styles
.
editor
.
text_Primary
}
;
font-weight: bold;
border-bottom: 0 none;
padding-right: 1.5em;
}
#files .file .remove {
font-size: 12px;
display: flex;
color:
${
styles
.
editor
.
text_Primary
}
;
position: absolute;
top: -7px;
right: 5px;
display: none;
}
#files .file input {
background-color:
${
styles
.
colors
.
transparent
}
;
border: 0 none;
border-bottom: 1px dotted
${
styles
.
editor
.
text_Primary
}
;
line-height: 1em;
margin: 0.5em 0;
}
#files .file.active .remove {
display: inline-block;
color:
${
styles
.
editor
.
text_Primary
}
;
}
</style>
`
var
css
=
csjs
`
.editorpanel {
display : flex;
flex-direction : column;
height : 100%;
}
.tabsbar {
background-color :
${
styles
.
editor
.
backgroundColor_Panel
}
;
display : flex;
overflow : hidden;
height : 30px;
}
.tabs {
position : relative;
display : flex;
margin : 0;
left : 10px;
margin-right : 10px;
width : 100%;
overflow : hidden;
}
.files {
display : flex;
position : relative;
list-style : none;
margin : 0;
font-size : 15px;
height : 2.5em;
box-sizing : border-box;
line-height : 2em;
top : 0;
border-bottom : 0 none;
}
.changeeditorfontsize {
margin : 0;
font-size : 9px;
margin-top : 0.5em;
}
.changeeditorfontsize i {
cursor : pointer;
display : block;
color :
${
styles
.
editor
.
icon_Color_Editor
}
;
}
.changeeditorfontsize i {
cursor : pointer;
}
.changeeditorfontsize i:hover {
color :
${
styles
.
editor
.
icon_HoverColor_Editor
}
;
}
.buttons {
display : flex;
flex-direction : row;
justify-content : space-around;
align-items : center;
min-width : 45px;
}
.toggleLHP {
display : flex;
padding : 10px;
width : 100%;
font-weight : bold;
color :
${
styles
.
leftPanel
.
icon_Color_TogglePanel
}
;
}
.toggleLHP i {
cursor : pointer;
font-size : 14px;
font-weight : bold;
}
.toggleLHP i:hover {
color :
${
styles
.
leftPanel
.
icon_HoverColor_TogglePanel
}
;
}
.scroller {
position : absolute;
z-index : 999;
text-align : center;
cursor : pointer;
vertical-align : middle;
background-color :
${
styles
.
colors
.
general_BackgroundColor
}
;
height : 100%;
font-size : 1.3em;
color : orange;
}
.scrollerright {
right : 0;
margin-right : 15px;
}
.scrollerleft {
left : 0;
}
.toggleRHP {
margin : 0.5em;
font-weight : bold;
color :
${
styles
.
rightPanel
.
icon_Color_TogglePanel
}
;
right : 0;
}
.toggleRHP i {
cursor : pointer;
font-size : 14px;
font-weight : bold;
}
.toggleRHP i:hover {
color :
${
styles
.
rightPanel
.
icon_HoverColor_TogglePanel
}
;
}
.show {
opacity : 1;
transition : .3s opacity ease-in;
}
.hide {
opacity : 0;
pointer-events : none;
transition : .3s opacity ease-in;
}
.content {
position : relative;
display : flex;
flex-direction : column;
height : 100%;
width : 100%;
}
.contextviewcontainer{
width : 100%;
height : 20px;
background-color :
${
styles
.
editor
.
backgroundColor_Tabs_Highlights
}
;
}
`
module
.
exports
=
{
cssTabs
:
cssTabs
,
css
:
css
}
src/app/tabs/styles/tabbed-menu-styles.js
View file @
740f9b59
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
require
(
'remix-lib'
).
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
li.active {
background-color:
${
styles
.
rightPanel
.
backgroundColor_Tab
}
;
color:
${
styles
.
appProperties
.
mainText_Color
}
}
.options {
float: left;
padding-top: 0.7em;
min-width: 60px;
font-size: 0.9em;
cursor: pointer;
font-size: 1em;
text-align: center;
}
.opts {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
.opts_li {
display: block;
font-weight: bold;
color:
${
styles
.
rightPanel
.
text_Teriary
}
}
.opts_li.active {
color:
${
styles
.
rightPanel
.
text_Primary
}
}
.opts_li:hover {
color:
${
styles
.
rightPanel
.
icon_HoverColor_TogglePanel
}
}
`
module
.
exports
=
css
src/app/tabs/tabbed-menu.js
View file @
740f9b59
var
yo
=
require
(
'yo-yo'
)
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
require
(
'remix-lib'
).
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
helper
=
require
(
'../../lib/helper'
)
var
css
=
csjs
`
li.active {
background-color:
${
styles
.
rightPanel
.
backgroundColor_Tab
}
;
color:
${
styles
.
appProperties
.
mainText_Color
}
}
.options {
float: left;
padding-top: 0.7em;
min-width: 60px;
font-size: 0.9em;
cursor: pointer;
font-size: 1em;
text-align: center;
}
.opts {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
.opts_li {
display: block;
font-weight: bold;
color:
${
styles
.
rightPanel
.
text_Teriary
}
}
.opts_li.active {
color:
${
styles
.
rightPanel
.
text_Primary
}
}
.opts_li:hover {
color:
${
styles
.
rightPanel
.
icon_HoverColor_TogglePanel
}
}
`
var
css
=
require
(
'./styles/tabbed-menu-styles'
)
class
TabbedMenu
{
constructor
(
tabView
,
api
,
events
,
op
ts
)
{
constructor
(
tabView
,
even
ts
)
{
var
self
=
this
this
.
tabView
=
tabView
this
.
events
=
events
...
...
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