forked from hyperledger-archives/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Drag and Drop (hyperledger-archives#1245)
Fixed dragging and dropping when adding a file
- Loading branch information
Showing
3 changed files
with
113 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
220 changes: 111 additions & 109 deletions
220
packages/composer-playground/src/app/add-file/add-file.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,120 +1,122 @@ | ||
@import '../../assets/styles/base/_colors.scss'; | ||
@import '../../assets/styles/base/_variables.scss'; | ||
|
||
.import { | ||
width: 660px; | ||
height: 450px; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
|
||
.file-types-list { | ||
max-height: 200px; | ||
margin-top: 16px; | ||
|
||
.file-types-list-item { | ||
background-color: $third-highlight; | ||
padding: $space-medium; | ||
&:nth-child(even) { | ||
background-color: $white; | ||
} | ||
|
||
.description { | ||
font-style: italic; | ||
padding-left: 2em; | ||
} | ||
|
||
label.radio-label { | ||
font-weight: bold; | ||
|
||
&::before { | ||
top: 8px; | ||
} | ||
|
||
&::after { | ||
top: 13px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
section { | ||
font-size: 0.9em; | ||
|
||
file-importer { | ||
margin-top: $space-medium; | ||
} | ||
|
||
span { | ||
color: $secondary-text; | ||
} | ||
|
||
.chosen-file { | ||
flex: 1; | ||
display: flex; | ||
flex-direction: column; | ||
background-color: $third-highlight; | ||
padding: $space-medium; | ||
|
||
.title { | ||
font-weight: bold; | ||
} | ||
add-file-modal { | ||
.import { | ||
width: 700px; | ||
height: 475px; | ||
|
||
.file-info { | ||
display: flex; | ||
justify-content: space-between; | ||
border-bottom: 1px solid $fifth-highlight; | ||
padding-bottom: $space-medium; | ||
align-items: center; | ||
|
||
svg { | ||
fill: $first-highlight; | ||
width: 76px; | ||
height: 76px; | ||
margin-right: $space-medium; | ||
flex-direction: column; | ||
|
||
.file-types-list { | ||
max-height: 200px; | ||
margin-top: 16px; | ||
|
||
.file-types-list-item { | ||
background-color: $third-highlight; | ||
padding: $space-medium; | ||
&:nth-child(even) { | ||
background-color: $white; | ||
} | ||
|
||
.description { | ||
font-style: italic; | ||
padding-left: 2em; | ||
} | ||
|
||
label.radio-label { | ||
font-weight: bold; | ||
|
||
&::before { | ||
top: 8px; | ||
} | ||
|
||
&::after { | ||
top: 13px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.file-title { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
|
||
span { | ||
color: $primary-text; | ||
font-style: italic; | ||
} | ||
} | ||
} | ||
|
||
.file-content { | ||
margin-top: $space-medium; | ||
flex: 1; | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
.network-part { | ||
margin-bottom: $space-smedium; | ||
section { | ||
font-size: 0.9em; | ||
|
||
file-importer { | ||
margin-top: $space-medium; | ||
} | ||
|
||
span { | ||
color: $secondary-text; | ||
} | ||
|
||
.chosen-file { | ||
flex: 1; | ||
display: flex; | ||
flex-direction: column; | ||
background-color: $third-highlight; | ||
padding: $space-medium; | ||
|
||
.title { | ||
font-weight: bold; | ||
} | ||
|
||
.file-info { | ||
display: flex; | ||
justify-content: space-between; | ||
border-bottom: 1px solid $fifth-highlight; | ||
padding-bottom: $space-medium; | ||
align-items: center; | ||
|
||
svg { | ||
fill: $first-highlight; | ||
width: 76px; | ||
height: 76px; | ||
margin-right: $space-medium; | ||
} | ||
|
||
.file-title { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
|
||
span { | ||
color: $primary-text; | ||
font-style: italic; | ||
} | ||
} | ||
} | ||
|
||
.file-content { | ||
margin-top: $space-medium; | ||
flex: 1; | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
.network-part { | ||
margin-bottom: $space-smedium; | ||
} | ||
} | ||
} | ||
|
||
.github-spinner { | ||
height: 200px; | ||
width: 465px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
.circle-path { | ||
stroke: $first-highlight; | ||
} | ||
} | ||
|
||
form { | ||
max-height: 200px; | ||
overflow-y: auto; | ||
margin-top: $space-medium; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.github-spinner { | ||
height: 200px; | ||
width: 465px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
.circle-path { | ||
stroke: $first-highlight; | ||
} | ||
} | ||
|
||
form { | ||
max-height: 200px; | ||
overflow-y: auto; | ||
margin-top: $space-medium; | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters