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
8d999d9f
Commit
8d999d9f
authored
Feb 09, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move file-explorer styles to its own file
parent
88c6954a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
44 deletions
+49
-44
file-explorer.js
src/app/files/file-explorer.js
+3
-44
file-explorer-styles.js
src/app/files/styles/file-explorer-styles.js
+46
-0
No files found.
src/app/files/file-explorer.js
View file @
8d999d9f
var
yo
=
require
(
'yo-yo'
)
var
csjs
=
require
(
'csjs-inject'
)
var
Treeview
=
require
(
'remix-debugger'
).
ui
.
TreeView
var
modalDialog
=
require
(
'../ui/modaldialog'
)
var
modalDialogCustom
=
require
(
'../ui/modal-dialog-custom'
)
...
...
@@ -8,49 +7,7 @@ var EventManager = remixLib.EventManager
var
helper
=
require
(
'../../lib/helper'
)
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.fileexplorer {
box-sizing : border-box;
}
input[type="file"] {
display: none;
}
.folder,
.file {
font-size : 14px;
cursor : pointer;
}
.file {
color :
${
styles
.
leftPanel
.
text_Teriary
}
;
}
.hasFocus {
background-color :
${
styles
.
leftPanel
.
backgroundColor_FileExplorer
}
;
}
.rename {
background-color :
${
styles
.
leftPanel
.
backgroundColor_Panel
}
;
}
.remove {
margin-left : auto;
padding-left : 5px;
padding-right : 5px;
}
.activeMode {
display : flex;
width : 100%;
margin-right : 10px;
padding-right : 19px;
}
.activeMode > div {
min-width : 10px;
}
ul {
padding : 0;
}
`
module
.
exports
=
fileExplorer
var
css
=
require
(
'./styles/file-explorer-styles'
)
function
fileExplorer
(
appAPI
,
files
)
{
var
self
=
this
...
...
@@ -278,3 +235,5 @@ fileExplorer.prototype.ensureRoot = function (cb) {
if
(
cb
)
cb
()
})
}
module
.
exports
=
fileExplorer
src/app/files/styles/file-explorer-styles.js
0 → 100644
View file @
8d999d9f
var
csjs
=
require
(
'csjs-inject'
)
var
remixLib
=
require
(
'remix-lib'
)
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.fileexplorer {
box-sizing : border-box;
}
input[type="file"] {
display: none;
}
.folder,
.file {
font-size : 14px;
cursor : pointer;
}
.file {
color :
${
styles
.
leftPanel
.
text_Teriary
}
;
}
.hasFocus {
background-color :
${
styles
.
leftPanel
.
backgroundColor_FileExplorer
}
;
}
.rename {
background-color :
${
styles
.
leftPanel
.
backgroundColor_Panel
}
;
}
.remove {
margin-left : auto;
padding-left : 5px;
padding-right : 5px;
}
.activeMode {
display : flex;
width : 100%;
margin-right : 10px;
padding-right : 19px;
}
.activeMode > div {
min-width : 10px;
}
ul {
padding : 0;
}
`
module
.
exports
=
css
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