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
1c5c8300
Commit
1c5c8300
authored
Jun 06, 2018
by
serapath
Committed by
yann300
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rhp: refactor css
parent
d8ac9db2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
85 deletions
+36
-85
righthand-panel.js
src/app/panels/righthand-panel.js
+16
-70
tabbed-menu.js
src/app/tabs/tabbed-menu.js
+20
-15
No files found.
src/app/panels/righthand-panel.js
View file @
1c5c8300
...
...
@@ -27,15 +27,15 @@ module.exports = class RighthandPanel {
self
.
_view
=
{
el
:
null
,
tabbedMenu
:
null
,
tabbedMenuViewport
:
null
,
dragbar
:
null
}
self
.
_components
=
{}
const
optionViews
=
yo
`<div id="optionViews"></div>`
self
.
_view
.
dragbar
=
yo
`<div id="dragbar" class=
${
css
.
dragbar
}
></div>`
// load tabbed menu component
const
tabEvents
=
{
compiler
:
self
.
_events
.
compiler
,
app
:
self
.
_events
.
app
,
rhp
:
self
.
event
}
self
.
_view
.
tabbedMenu
=
new
TabbedMenu
(
self
.
_api
,
tabEvents
)
const
optionViews
=
self
.
_view
.
tabbedMenu
.
renderViewport
()
self
.
_view
.
dragbar
=
yo
`<div id="dragbar" class=
${
css
.
dragbar
}
></div>`
// load tabbed menu component
const
options
=
self
.
_view
.
tabbedMenu
.
render
()
options
.
classList
.
add
(
css
.
opts
)
self
.
_view
.
element
=
yo
`
<div id="righthand-panel" class=
${
css
.
panel
}
>
<div id="righthand-panel" class=
${
css
.
righthand
panel
}
>
${
self
.
_view
.
dragbar
}
<div id="header" class=
${
css
.
header
}
>
<div class=
${
css
.
menu
}
>
...
...
@@ -133,65 +133,26 @@ module.exports = class RighthandPanel {
}
const
css
=
csjs
`
#righthand-panel {
display: flex;
flex-direction: column;
top: 0;
right: 0;
bottom: 0;
box-sizing: border-box;
overflow: hidden;
}
#optionViews {
background-color:
${
styles
.
rightPanel
.
backgroundColor_Tab
}
;
overflow: scroll;
height: 100%;
}
#optionViews > div {
display: none;
}
#optionViews .pre {
word-wrap: break-word;
background-color:
${
styles
.
rightPanel
.
BackgroundColor_Pre
}
;
border-radius: 3px;
display: inline-block;
padding: 0 0.6em;
}
#optionViews .hide {
display: none;
}
a {
color:
${
styles
.
rightPanel
.
text_link
}
;
}
.menu {
display: flex;
background-color:
${
styles
.
rightPanel
.
BackgroundColor_Pre
}
;
}
.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
}
;
.righthandpanel {
display : flex;
flex-direction : column;
top : 0;
right : 0;
bottom : 0;
box-sizing : border-box;
overflow : hidden;
height : 100%;
}
.
opts_li:hover
{
color:
${
styles
.
rightPanel
.
icon_HoverColor_TogglePanel
}
;
.
header
{
height : 100%
;
}
.dragbar {
position : absolute;
...
...
@@ -212,19 +173,4 @@ const css = csjs`
top : 0;
bottom : 0;
}
.panel {
height : 100%;
}
.header {
height : 100%;
}
.solIcon {
margin-left: 10px;
margin-right: 30px;
display: flex;
align-self: center;
height: 29px;
width: 20px;
background-color:
${
styles
.
colors
.
transparent
}
;
}
`
src/app/tabs/tabbed-menu.js
View file @
1c5c8300
...
...
@@ -68,7 +68,14 @@ module.exports = class TabbedMenu {
}
const
css
=
csjs
`
li.active {
.menu {
display: flex;
background-color:
${
styles
.
rightPanel
.
BackgroundColor_Pre
}
;
list-style: none;
margin: 0;
padding: 0;
}
.active {
background-color:
${
styles
.
rightPanel
.
backgroundColor_Tab
}
;
color:
${
styles
.
appProperties
.
mainText_Color
}
}
...
...
@@ -81,21 +88,19 @@ const css = csjs`
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
}
.optionViews {
background-color:
${
styles
.
rightPanel
.
backgroundColor_Tab
}
;
overflow: scroll;
height: 100%;
}
.opt
s_li.active
{
color:
${
styles
.
rightPanel
.
text_Primary
}
.opt
ionViews > div
{
display: none;
}
.opts_li:hover {
color:
${
styles
.
rightPanel
.
icon_HoverColor_TogglePanel
}
.optionViews .pre {
word-wrap: break-word;
background-color:
${
styles
.
rightPanel
.
BackgroundColor_Pre
}
;
border-radius: 3px;
display: inline-block;
padding: 0 0.6em;
}
`
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