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
3ff4f621
Commit
3ff4f621
authored
Feb 09, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move modal dialog styles to its own file
parent
8aee15c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
84 deletions
+87
-84
modaldialog.js
src/app/ui/modaldialog.js
+1
-84
modaldialog-styles.js
src/app/ui/styles/modaldialog-styles.js
+86
-0
No files found.
src/app/ui/modaldialog.js
View file @
3ff4f621
var
yo
=
require
(
'yo-yo'
)
var
yo
=
require
(
'yo-yo'
)
var
csjs
=
require
(
'csjs-inject'
)
var
css
=
require
(
'./styles/modaldialog-styles'
)
var
styleGuide
=
require
(
'remix-lib'
).
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1000; /* Sit on top of everything including the dragbar */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color:
${
styles
.
colors
.
black
}
; /* Fallback color */
background-color:
${
styles
.
colors
.
opacityBlack
}
; /* Black w/ opacity */
}
.modalHeader {
padding: 2px 16px;
background-color:
${
styles
.
remix
.
modalDialog_Header_Footer_BackgroundColor
}
;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
display: flex;
justify-content: space-between;
}
.modalBody {
background-color:
${
styles
.
remix
.
modalDialog_BackgroundColor_Primary
}
;
color:
${
styles
.
remix
.
modalDialog_text_Primary
}
;
padding: 1.5em;
line-height: 1.5em;
}
.modalBody em{
color:
${
styles
.
remix
.
modalDialog_text_Em
}
;
}
.modalBody a{
color:
${
styles
.
remix
.
modalDialog_text_Link
}
;
}
.modalFooter {
display: flex;
justify-content: flex-end;
padding: 10px 30px;
background-color:
${
styles
.
remix
.
modalDialog_Header_Footer_BackgroundColor
}
;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
text-align: right;
font-weight: 700;
cursor: pointer;
}
.modalContent {
position: relative;
background-color:
${
styles
.
colors
.
black
}
;
margin: auto;
padding: 0;
line-height: 18px;
font-size: 12px;
border: 1px solid
${
styles
.
colors
.
grey
}
;
width: 50%;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s
}
.modalFooterOk {
cursor: pointer;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
}
.modalFooterCancel {
margin-left: 1em;
cursor: pointer;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
}
.modalClose {
margin: auto 0;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
cursor: pointer;
}
@-webkit-keyframes animatetop {
from {top: -300px; opacity: 0}
to {top: 0; opacity: 1}
}
@keyframes animatetop {
from {top: -300px; opacity: 0}
to {top: 0; opacity: 1}
}
`
module
.
exports
=
(
title
,
content
,
ok
,
cancel
)
=>
{
module
.
exports
=
(
title
,
content
,
ok
,
cancel
)
=>
{
var
container
=
document
.
querySelector
(
`.
${
css
.
modal
}
`
)
var
container
=
document
.
querySelector
(
`.
${
css
.
modal
}
`
)
...
...
src/app/ui/styles/modaldialog-styles.js
0 → 100644
View file @
3ff4f621
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
require
(
'remix-lib'
).
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1000; /* Sit on top of everything including the dragbar */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color:
${
styles
.
colors
.
black
}
; /* Fallback color */
background-color:
${
styles
.
colors
.
opacityBlack
}
; /* Black w/ opacity */
}
.modalHeader {
padding: 2px 16px;
background-color:
${
styles
.
remix
.
modalDialog_Header_Footer_BackgroundColor
}
;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
display: flex;
justify-content: space-between;
}
.modalBody {
background-color:
${
styles
.
remix
.
modalDialog_BackgroundColor_Primary
}
;
color:
${
styles
.
remix
.
modalDialog_text_Primary
}
;
padding: 1.5em;
line-height: 1.5em;
}
.modalBody em{
color:
${
styles
.
remix
.
modalDialog_text_Em
}
;
}
.modalBody a{
color:
${
styles
.
remix
.
modalDialog_text_Link
}
;
}
.modalFooter {
display: flex;
justify-content: flex-end;
padding: 10px 30px;
background-color:
${
styles
.
remix
.
modalDialog_Header_Footer_BackgroundColor
}
;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
text-align: right;
font-weight: 700;
cursor: pointer;
}
.modalContent {
position: relative;
background-color:
${
styles
.
colors
.
black
}
;
margin: auto;
padding: 0;
line-height: 18px;
font-size: 12px;
border: 1px solid
${
styles
.
colors
.
grey
}
;
width: 50%;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s
}
.modalFooterOk {
cursor: pointer;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
}
.modalFooterCancel {
margin-left: 1em;
cursor: pointer;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
}
.modalClose {
margin: auto 0;
color:
${
styles
.
remix
.
modalDialog_Header_Footer_Color
}
;
cursor: pointer;
}
@-webkit-keyframes animatetop {
from {top: -300px; opacity: 0}
to {top: 0; opacity: 1}
}
@keyframes animatetop {
from {top: -300px; opacity: 0}
to {top: 0; opacity: 1}
}
`
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