@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
391 lines (324 loc) • 6.73 kB
text/less
// Upload
html .k-upload
{
position: relative;
}
.k-dropzone .k-dropzone-hint,
.k-upload-button
{
vertical-align: middle;
}
.k-dropzone,
.k-file
{
position: relative;
}
.k-dropzone
{
border-style: solid;
border-width: 0;
padding: .8em;
background-color: transparent;
}
.k-dropzone .k-dropzone-hint {
margin-left: .6em;
}
.k-dropzone-active {
.k-dropzone-hint {
display: inline-block;
}
.k-upload-status {
display: none;
}
}
.k-upload-button
{
position: relative;
overflow: hidden;
direction: ltr;
}
.k-upload .k-upload-button
{
min-width: 7.167em;
margin-right: 1.6em;
}
.k-upload-button input {
position: absolute;
bottom: 0;
right: 0;
z-index: 1;
font: 170px monospace ; // critical for correct operation; larger values lead to ignoring or text layout problems in IE
opacity: 0;
margin: 0;
padding: 0;
cursor: pointer;
}
.k-upload-files {
border-style: solid;
border-width: 1px 0 0;
}
.k-upload-files .k-button
{
padding: 0;
}
.k-upload-status .k-i-warning {
display: none;
}
.k-upload-status-total .k-icon {
display: inline-block;
margin-right: 4px;
vertical-align: text-bottom;
}
.k-upload-files ~ .k-clear-selected,
.k-upload-files ~ .k-upload-selected {
margin-top: -5px;
}
.k-upload .k-fail
{
background-position: -161px -111px;
}
.k-file {
border-style: solid;
border-width: 0 0 1px;
padding: .65em 1em calc(.65em + 2px) 1em;
white-space: nowrap;
outline: none;
.k-upload-action {
background: 0 0;
border-width: 0;
box-shadow: none;
margin-right: 3px;
}
}
.k-file:last-child {
border-bottom-width: 0;
}
.k-file .k-icon
{
display: inline-block;
position: relative;
}
.k-upload-files .k-file {
display: flex;
align-items: flex-start;
position: relative;
}
.k-file-extension-wrapper,
.k-file-name-size-wrapper,
.k-file-group-wrapper,
.k-multiple-files-group-wrapper,
.k-multiple-files-extension-wrapper,
.k-file-invalid-extension-wrapper,
.k-multiple-files-invalid-extension-wrapper {
display: block;
}
.k-file-extension-wrapper,
.k-multiple-files-extension-wrapper,
.k-file-invalid-extension-wrapper,
.k-multiple-files-invalid-extension-wrapper {
position: relative;
width: 24px;
height: 34px;
border-width: 2px;
border-style: solid;
vertical-align: top;
font-size: .57em;
text-transform: uppercase;
}
.k-file-invalid-extension-wrapper,
.k-multiple-files-invalid-extension-wrapper {
font-size: 1.2em;
}
.k-multiple-files-extension-wrapper,
.k-multiple-files-invalid-extension-wrapper {
margin-top: 4px;
}
.k-file-group-wrapper,
.k-file-invalid-group-wrapper,
.k-multiple-files-group-wrapper,
.k-multiple-files-invalid-group-wrapper {
.k-file-group {
font-size: 32px;
}
.k-file-state {
position: absolute;
}
}
.k-multiple-files-group-wrapper,
.k-multiple-files-invalid-group-wrapper {
vertical-align: top;
}
.k-file-state {
visibility: hidden;
}
.k-multiple-files-wrapper,
.k-file-single > .k-file-name-size-wrapper,
.k-file > .k-file-name-size-wrapper {
overflow: hidden;
flex: 1 0 0;
margin-left: 1em;
}
.k-multiple-files-wrapper .k-file-name-size-wrapper {
margin-bottom: 1em;
}
.k-file-name-size-wrapper {
vertical-align: middle;
}
.k-file-extension-wrapper:before,
.k-multiple-files-extension-wrapper:before,
.k-multiple-files-extension-wrapper:after,
.k-file-invalid-extension-wrapper:before,
.k-multiple-files-invalid-extension-wrapper:before,
.k-multiple-files-invalid-extension-wrapper:after {
position: absolute;
content: "";
display: inline-block;
border-style: solid;
}
.k-file-extension-wrapper:before,
.k-multiple-files-extension-wrapper:before,
.k-file-invalid-extension-wrapper:before,
.k-multiple-files-invalid-extension-wrapper:before {
top: -1px;
right: -1px;
width: 0;
height: 0;
border-width: 6px;
margin-top: -1px;
margin-right: -1px;
}
.k-multiple-files-extension-wrapper:after,
.k-multiple-files-invalid-extension-wrapper:after {
top: -6px;
left: -6px;
width: 15px;
height: 35px;
border-width: 2px 0 0 2px;
}
.k-file-extension,
.k-file-invalid-icon {
position: absolute;
bottom: 0;
line-height: normal;
}
.k-file-extension {
margin-left: .4em;
margin-bottom: .3em;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.k-file-invalid-icon {
margin-left: 5px;
}
.k-file-name,
.k-file-size,
.k-file-validation-message,
.k-file-information {
display: block;
}
.k-file-name {
position: relative;
max-width: 100%;
vertical-align: middle;
line-height: 1.2em;
overflow: hidden;
text-overflow: ellipsis;
}
.k-file-size,
.k-file-information,
.k-file-validation-message {
font-size: .78em;
line-height: 1.5em;
}
.k-file-information,
.k-file-validation-message {
line-height: 1.5em;
}
.k-file-size {
line-height: 1.2em;
}
.k-upload-files .k-upload-status
{
line-height: 1;
opacity: 0.65;
}
.k-upload-action,
.k-button.k-upload-action:hover,
.k-button.k-upload-action:active:hover,
.k-button.k-upload-action.k-state-active:hover {
color: inherit;
background: transparent;
border: 0;
}
.k-upload-action {
opacity: 0.6;
}
.k-upload-action:hover {
opacity: 1;
}
.k-upload-action .k-icon {
vertical-align: top;
}
.k-file .k-upload-status .k-button,
.k-file .k-upload-status > .k-icon {
vertical-align: middle;
border-radius: 50%;
}
.k-dropzone {
display: flex;
justify-content: space-between;
align-items: center;
}
.k-dropzone .k-upload-status
{
position: static;
margin-left: 10px;
}
.k-upload-pct {
margin-right: .75em;
}
.k-ie9 {
.k-upload-status-total {
top: 1.5em;
> .k-icon {
margin-top: -3px;
}
}
}
.k-upload-action {
line-height: normal;
}
.k-upload {
.k-progress {
position: absolute;
bottom: 0;
left: 0;
height: 2px;
}
.k-progressbar {
height: 2px;
position: absolute;
bottom: .32em;
// successed
width: calc(100% - 2em);
.k-progress {
width: 100%;
max-width: 100%;
height: 100%;
}
}
}
.k-file-invalid > .k-progress {
width: 100%;
}
.k-rtl .k-file-extension-wrapper {
margin-left: 14px;
}
.k-upload .k-action-buttons {
border-width: 1px 0 0 0;
border-style: solid;
}
.k-no-flexbox .k-upload .k-action-buttons .k-button {
border-width: 0;
}