Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
47ef0c51
Commit
47ef0c51
authored
4 years ago
by
Bekerle, Patrizio
Committed by
Reiter, Christoph
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Extract modal dialog CSS (
#14
)
parent
e767dd8a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/file-handling/src/file-source.js
+1
-139
1 addition, 139 deletions
packages/file-handling/src/file-source.js
packages/file-handling/vendor/common
+1
-1
1 addition, 1 deletion
packages/file-handling/vendor/common
with
2 additions
and
140 deletions
packages/file-handling/src/file-source.js
+
1
−
139
View file @
47ef0c51
...
@@ -323,6 +323,7 @@ export class FileSource extends ScopedElementsMixin(VPULitElement) {
...
@@ -323,6 +323,7 @@ export class FileSource extends ScopedElementsMixin(VPULitElement) {
return
css
`
return
css
`
${
commonStyles
.
getGeneralCSS
()}
${
commonStyles
.
getGeneralCSS
()}
${
commonStyles
.
getButtonCSS
()}
${
commonStyles
.
getButtonCSS
()}
${
commonStyles
.
getModalDialogCSS
()}
#dropArea {
#dropArea {
border: var(--FUBorderWidth, 2px) var(--FUBorderStyle, dashed) var(--FUBBorderColor, black);
border: var(--FUBorderWidth, 2px) var(--FUBorderStyle, dashed) var(--FUBBorderColor, black);
...
@@ -366,145 +367,6 @@ export class FileSource extends ScopedElementsMixin(VPULitElement) {
...
@@ -366,145 +367,6 @@ export class FileSource extends ScopedElementsMixin(VPULitElement) {
.block {
.block {
margin-bottom: 10px;
margin-bottom: 10px;
}
}
/**************************
\\
Modal Styles
\\
**************************/
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.6);
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
}
.modal-container {
background-color: #fff;
max-width: 600px;
max-height: 100vh;
min-width: 60%;
min-height: 50%;
overflow-y: auto;
box-sizing: border-box;
display: grid;
grid-template-columns: 50px auto;
grid-template-rows: auto;
grid-template-areas: "sidebar main";
}
.modal-nav {
cursor: pointer;
overflow: hidden;
background-color: #eee;
}
.modal-nav > div {
padding: 5px;
text-align: center;
}
.modal-nav .nav-icon {
width: 35px;
height: 35px;
}
.modal-nav .active {
background-color: #777;
color: white;
}
.modal-close {
position: absolute;
background: transparent;
border: none;
float: right;
top: 10px;
right: 10px;
}
.modal-close:hover {
font-weight: bold;
}
button.modal-close:focus {
outline: none;
}
.modal-close:before { content: "
\\
2715"; }
.modal-content {
padding: 10px;
display: flex;
justify-content: center;
align-items: center;
/*height: 50vh;*/
}
.modal-content .source-main {
/*flex-grow: 1;*/
/*justify-content: center;*/
/*align-items: center;*/
height: 100%;
width: 100%;
}
/**************************
\\
Modal Animation Style
\\
**************************/
@keyframes mmfadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes mmfadeOut {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes mmslideIn {
from { transform: translateY(15%); }
to { transform: translateY(0); }
}
@keyframes mmslideOut {
from { transform: translateY(0); }
to { transform: translateY(-10%); }
}
.micromodal-slide {
display: none;
}
.micromodal-slide.is-open {
display: block;
}
.micromodal-slide[aria-hidden="false"] .modal-overlay {
animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}
.micromodal-slide[aria-hidden="false"] .modal-container {
animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}
.micromodal-slide[aria-hidden="true"] .modal-overlay {
animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}
.micromodal-slide[aria-hidden="true"] .modal-container {
animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}
.micromodal-slide .modal-container,
.micromodal-slide .modal-overlay {
will-change: transform;
}
`
;
`
;
}
}
...
...
This diff is collapsed.
Click to expand it.
common
@
73129048
Subproject commit
63b49c3a2eeae312b4a2aeec4cc2f7f0ee12b749
Subproject commit
7312904874df399f4bbb2ae6c6f700bce8c3129f
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment