Created
June 15, 2021 14:12
-
-
Save owrrpon/16582785fe795f5f4d3e427fe832a19b to your computer and use it in GitHub Desktop.
File Uploader Component CSS
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
.modhyobitto-file-uploader{ | |
background-color: map-get($modhyobitto-colors, subtle-bg); | |
border: 2px dashed map-get($modhyobitto-colors, primary); | |
padding: 3rem; | |
@include media-breakpoint-down(lg) { | |
padding: 2rem; | |
} | |
@include media-breakpoint-down(sm) { | |
padding: 1rem; | |
} | |
.files-for-upload{ | |
margin-bottom: 3rem; | |
.selected-file{ | |
border-radius: 0; | |
font-family: 'Roboto', sans-serif; | |
&:not(:last-of-type){ | |
margin-bottom: 1rem; | |
} | |
.mat-expansion-panel-header{ | |
cursor: default; | |
height: auto; | |
padding: 0; | |
&[aria-disabled=true]{ | |
color: inherit; | |
} | |
.selected-file__header{ | |
display: flex; | |
align-items: center; | |
justify-content: space-between; | |
.selected-file__name{ | |
color: map-get($modhyobitto-colors, primary-dark); | |
overflow: hidden; | |
padding: 0 1.5rem; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
.selected-file__actions{ | |
display: flex; | |
justify-content: flex-end; | |
button{ | |
display: flex; | |
align-items: center; | |
min-width: 0; | |
padding: 0 15px; | |
} | |
} | |
} | |
&.mat-expanded{ | |
.selected-file__header{ | |
border-bottom: solid 1px map-get($modhyobitto-colors, divider); | |
} | |
} | |
.mat-content{ | |
display: block; | |
} | |
} | |
.mat-expansion-panel-body{ | |
padding-top: 1rem; | |
.selected-file__upload--error{ | |
color: map-get($modhyobitto-colors, notification); | |
} | |
} | |
} | |
} | |
.file-uploader__instructions{ | |
color: map-get($modhyobitto-colors, primary); | |
margin-bottom: 3rem; | |
padding: 0 1rem; | |
text-align: center; | |
@include media-breakpoint-down(lg) { | |
margin-bottom: 2rem; | |
} | |
@include media-breakpoint-down(sm) { | |
margin-bottom: 1rem; | |
} | |
} | |
.file-upload__options{ | |
display: flex; | |
justify-content: center; | |
button{ | |
&.all_file__upload, &.all_file__cancel{ | |
display: flex; | |
align-items: center; | |
border-left: 2px solid map-get($modhyobitto-colors, subtle-bg); | |
min-width: 0; | |
padding: 0 15px; | |
} | |
} | |
.file-upload__native-selection{ | |
display: none; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment