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
f2a9a6e1
Commit
f2a9a6e1
authored
Feb 06, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move style to its own file
parent
e5b1df07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
134 additions
and
133 deletions
+134
-133
universal-dapp-styles.js
src/universal-dapp-styles.js
+133
-0
universal-dapp-ui.js
src/universal-dapp-ui.js
+1
-133
No files found.
src/universal-dapp-styles.js
0 → 100644
View file @
f2a9a6e1
var
csjs
=
require
(
'csjs-inject'
)
var
remixLib
=
require
(
'remix-lib'
)
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.instanceTitleContainer {
display: flex;
align-items: center;
}
.title {
${
styles
.
rightPanel
.
runTab
.
titlebox_RunTab
}
display: flex;
justify-content: end;
align-items: center;
font-size: 11px;
height: 30px;
width: 97%;
overflow: hidden;
word-break: break-word;
line-height: initial;
overflow: visible;
}
.titleLine {
display: flex;
align-items: baseline;
}
.titleText {
margin-right: 1em;
word-break: break-word;
min-width: 230px;
}
.title .copy {
color:
${
styles
.
rightPanel
.
runTab
.
icon_AltColor_Instance_CopyToClipboard
}
;
}
.instance {
${
styles
.
rightPanel
.
runTab
.
box_Instance
}
;
margin-bottom: 10px;
padding: 10px 15px 15px 15px;
}
.instance .title:before {
content: "\\25BE";
margin-right: 5%;
}
.instance.hidesub .title:before {
content: "\\25B8";
margin-right: 5%;
}
.instance.hidesub > * {
display: none;
}
.instance.hidesub .title {
display: flex;
}
.instance.hidesub .udappClose {
display: flex;
}
.buttonsContainer {
margin-top: 2%;
display: flex;
overflow: hidden;
}
.contractActions {
display: flex;
}
.instanceButton {}
.closeIcon {
font-size: 12px;
cursor: pointer;
}
.udappClose {
display: flex;
justify-content: flex-end;
}
.contractProperty {
overflow: auto;
margin-bottom: 0.4em;
}
.contractProperty.hasArgs input {
width: 75%;
padding: .36em;
}
.contractProperty button {
${
styles
.
rightPanel
.
runTab
.
button_Create
}
min-width: 100px;
width: 100px;
font-size: 10px;
margin:0;
word-break: inherit;
}
.contractProperty button:disabled {
cursor: not-allowed;
background-color: white;
border-color: lightgray;
}
.contractProperty.constant button {
${
styles
.
rightPanel
.
runTab
.
button_Constant
}
min-width: 100px;
width: 100px;
font-size: 10px;
margin:0;
word-break: inherit;
outline: none;
width: inherit;
}
.contractProperty input {
display: none;
}
.contractProperty > .value {
box-sizing: border-box;
float: left;
align-self: center;
color:
${
styles
.
appProperties
.
mainText_Color
}
;
margin-left: 4px;
}
.hasArgs input {
display: block;
border: 1px solid #dddddd;
padding: .36em;
border-left: none;
padding: 8px 8px 8px 10px;
font-size: 10px;
height: 25px;
}
.hasArgs button {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0;
}
`
module
.
exports
=
css
src/universal-dapp-ui.js
View file @
f2a9a6e1
...
@@ -5,139 +5,7 @@ var $ = require('jquery')
...
@@ -5,139 +5,7 @@ var $ = require('jquery')
var
yo
=
require
(
'yo-yo'
)
var
yo
=
require
(
'yo-yo'
)
var
helper
=
require
(
'./lib/helper'
)
var
helper
=
require
(
'./lib/helper'
)
var
copyToClipboard
=
require
(
'./app/ui/copy-to-clipboard'
)
var
copyToClipboard
=
require
(
'./app/ui/copy-to-clipboard'
)
var
css
=
require
(
'./universal-dapp-styles'
)
// -------------- styling ----------------------
var
csjs
=
require
(
'csjs-inject'
)
var
remixLib
=
require
(
'remix-lib'
)
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.instanceTitleContainer {
display: flex;
align-items: center;
}
.title {
${
styles
.
rightPanel
.
runTab
.
titlebox_RunTab
}
display: flex;
justify-content: end;
align-items: center;
font-size: 11px;
height: 30px;
width: 97%;
overflow: hidden;
word-break: break-word;
line-height: initial;
overflow: visible;
}
.titleLine {
display: flex;
align-items: baseline;
}
.titleText {
margin-right: 1em;
word-break: break-word;
min-width: 230px;
}
.title .copy {
color:
${
styles
.
rightPanel
.
runTab
.
icon_AltColor_Instance_CopyToClipboard
}
;
}
.instance {
${
styles
.
rightPanel
.
runTab
.
box_Instance
}
;
margin-bottom: 10px;
padding: 10px 15px 15px 15px;
}
.instance .title:before {
content: "\\25BE";
margin-right: 5%;
}
.instance.hidesub .title:before {
content: "\\25B8";
margin-right: 5%;
}
.instance.hidesub > * {
display: none;
}
.instance.hidesub .title {
display: flex;
}
.instance.hidesub .udappClose {
display: flex;
}
.buttonsContainer {
margin-top: 2%;
display: flex;
overflow: hidden;
}
.contractActions {
display: flex;
}
.instanceButton {}
.closeIcon {
font-size: 12px;
cursor: pointer;
}
.udappClose {
display: flex;
justify-content: flex-end;
}
.contractProperty {
overflow: auto;
margin-bottom: 0.4em;
}
.contractProperty.hasArgs input {
width: 75%;
padding: .36em;
}
.contractProperty button {
${
styles
.
rightPanel
.
runTab
.
button_Create
}
min-width: 100px;
width: 100px;
font-size: 10px;
margin:0;
word-break: inherit;
}
.contractProperty button:disabled {
cursor: not-allowed;
background-color: white;
border-color: lightgray;
}
.contractProperty.constant button {
${
styles
.
rightPanel
.
runTab
.
button_Constant
}
min-width: 100px;
width: 100px;
font-size: 10px;
margin:0;
word-break: inherit;
outline: none;
width: inherit;
}
.contractProperty input {
display: none;
}
.contractProperty > .value {
box-sizing: border-box;
float: left;
align-self: center;
color:
${
styles
.
appProperties
.
mainText_Color
}
;
margin-left: 4px;
}
.hasArgs input {
display: block;
border: 1px solid #dddddd;
padding: .36em;
border-left: none;
padding: 8px 8px 8px 10px;
font-size: 10px;
height: 25px;
}
.hasArgs button {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0;
}
`
/*
/*
trigger debugRequested
trigger debugRequested
...
...
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