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
8b5a53b1
Commit
8b5a53b1
authored
Feb 09, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move dropdown styles to its own file
parent
965737a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
47 deletions
+53
-47
dropdown.js
src/app/ui/dropdown.js
+2
-47
dropdown-styles.js
src/app/ui/styles/dropdown-styles.js
+51
-0
No files found.
src/app/ui/dropdown.js
View file @
8b5a53b1
...
@@ -2,54 +2,9 @@ var yo = require('yo-yo')
...
@@ -2,54 +2,9 @@ var yo = require('yo-yo')
var
remixLib
=
require
(
'remix-lib'
)
var
remixLib
=
require
(
'remix-lib'
)
var
EventManager
=
remixLib
.
EventManager
var
EventManager
=
remixLib
.
EventManager
// -------------- styling ----------------------
// -------------- styling ----------------------
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
var
css
=
require
(
'./styles/dropdown-styles'
)
.dropdown {
${
styles
.
terminal
.
dropdown_Filter_MenuBar
}
overflow : visible;
position : relative;
display : flex;
flex-direction : column;
margin-right : 10px;
}
.selectbox {
display : flex;
align-items : center;
margin : 3px;
cursor : pointer;
}
.selected {
display : inline-block;
min-width : 30ch;
max-width : 30ch;
white-space : nowrap;
text-overflow : ellipsis;
overflow : hidden;
padding : 3px;
}
.icon {
padding : 0px 5px;
}
.options {
position : absolute;
display : flex;
flex-direction : column;
align-items : end;
top : 24px;
left : 0;
width : 250px;
background-color :
${
styles
.
appProperties
.
dropdown_BackgroundColor
}
;
border : 1px solid
${
styles
.
appProperties
.
dropdown_BorderColor
}
;
border-radius : 3px;
border-top : 0;
}
.option {
margin: 0;
}
`
/* USAGE:
/* USAGE:
var dropdown = new Dropdown({
var dropdown = new Dropdown({
...
...
src/app/ui/styles/dropdown-styles.js
0 → 100644
View file @
8b5a53b1
var
csjs
=
require
(
'csjs-inject'
)
var
remixLib
=
require
(
'remix-lib'
)
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.dropdown {
${
styles
.
terminal
.
dropdown_Filter_MenuBar
}
overflow : visible;
position : relative;
display : flex;
flex-direction : column;
margin-right : 10px;
}
.selectbox {
display : flex;
align-items : center;
margin : 3px;
cursor : pointer;
}
.selected {
display : inline-block;
min-width : 30ch;
max-width : 30ch;
white-space : nowrap;
text-overflow : ellipsis;
overflow : hidden;
padding : 3px;
}
.icon {
padding : 0px 5px;
}
.options {
position : absolute;
display : flex;
flex-direction : column;
align-items : end;
top : 24px;
left : 0;
width : 250px;
background-color :
${
styles
.
appProperties
.
dropdown_BackgroundColor
}
;
border : 1px solid
${
styles
.
appProperties
.
dropdown_BorderColor
}
;
border-radius : 3px;
border-top : 0;
}
.option {
margin: 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