first commit

This commit is contained in:
2019-05-25 23:11:05 -04:00
commit 16f48376bc
6139 changed files with 990356 additions and 0 deletions
@@ -0,0 +1,363 @@
/* ------------------------------------------------------------------------------
*
* # Dropzone file uploader
*
* Open source library that provides dragndrop file uploads with image previews
*
* Version: 1.3
* Latest update: Dec 30, 2016
*
* ---------------------------------------------------------------------------- */
// Layout
// ------------------------------
.dropzone {
position: relative;
border: 2px dashed @panel-default-border;
min-height: 250px;
border-radius: @border-radius-small;
background-color: #fff;
padding: 5px;
// If inside panel, give it grey background
.panel & {
background-color: #fcfcfc;
border-color: @gray-lighter;
}
// Clickable wrapper
&.dz-clickable {
&,
.dz-message,
.dz-message span {
cursor: pointer;
}
* {
cursor: default;
}
}
// Message
.dz-message {
.opacity(1);
}
&.dz-started .dz-message {
display: none;
}
// Drag hover border and bg color
&.dz-drag-hover {
border-color: fade(#000, 15%);
background: fade(#000, 4%);
}
// Inside sidebar
.sidebar & {
min-height: 190px;
text-align: center;
border-width: 2px;
.dz-default.dz-message {
&:before {
font-size: (@icon-font-size * 4);
width: (@icon-font-size * 4);
height: (@icon-font-size * 4);
margin-left: -(@icon-font-size * 2);
top: 50px;
}
span {
font-size: @font-size-h6;
}
> span {
margin-top: 130px;
}
}
}
@media (min-width: @screen-sm) {
min-height: 320px;
}
}
// Messages
// ------------------------------
.dropzone {
// Default styles
.dz-default {
&.dz-message {
@dz-message-height: 230px;
position: absolute;
height: @dz-message-height;
width: 100%;
margin-top: -(@dz-message-height / 2);
top: 50%;
left: 0;
padding: @panel-body-padding;
text-align: center;
border-radius: @border-radius-large;
.opacity(1);
.transition(opacity 0.3s ease-in-out);
// Icon
&:before {
content: '\ea0e';
font-family: 'icomoon';
font-size: (@icon-font-size * 4);
position: absolute;
top: (@icon-font-size * 3);
width: (@icon-font-size * 4);
height: (@icon-font-size * 4);
display: inline-block;
left: 50%;
margin-left: -(@icon-font-size * 2);
line-height: 1;
z-index: 2;
color: #ddd;
text-indent: 0;
font-weight: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// Text label
span {
font-size: @font-size-h6;
color: #bbb;
text-align: center;
margin-top: 140px;
display: block;
font-weight: 500;
text-shadow: 0 1px 1px #fff;
> span {
margin-top: 2px;
display: block;
color: #ccc;
font-size: @font-size-h6;
}
}
// Responsive styles
@media (min-width: @screen-sm) {
&:before {
font-size: (@icon-font-size * 5);
top: (@icon-font-size * 3);
width: (@icon-font-size * 5);
height: (@icon-font-size * 5);
margin-left: -(@icon-font-size * 2);
}
span {
font-size: @font-size-h4;
margin-top: 130px;
}
}
}
}
// On files drag
&.dz-drag-hover .dz-message {
.opacity(0.15);
}
&.dz-started .dz-message {
display: block;
.opacity(0);
}
}
// Preview
// ------------------------------
.dropzone,
.dropzone-previews {
.dz-preview {
background-color: #fff;
position: relative;
display: inline-block;
margin: 10px;
vertical-align: top;
border: 1px solid @panel-default-border;
padding: 8px;
border-radius: @border-radius-small;
// Hide thumbnail in file preview
&.dz-file-preview [data-dz-thumbnail] {
display: none;
}
// Details
.dz-details {
width: 140px;
position: relative;
background-color: #fafafa;
padding: 8px;
margin-bottom: 25px;
.dz-filename {
overflow: hidden;
height: 100%;
}
img {
position: absolute;
top: 0;
left: 0;
width: 140px;
height: 140px;
}
.dz-size {
position: absolute;
bottom: -26px;
left: 0;
}
}
&:hover {
.dz-details img {
display: none;
}
}
// Marks
.dz-error-mark,
.dz-success-mark {
display: none;
position: absolute;
z-index: 9;
right: 8px;
&:after {
font-family: 'icomoon';
display: block;
position: absolute;
right: 0;
bottom: 3px;
font-size: @font-size-small;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
span,
svg {
display: none;
}
}
.dz-error-mark {
color: @brand-danger;
&:after {
content: '\ed6a';
}
}
.dz-success-mark {
color: @brand-success;
&:after {
content: '\ed6e';
}
}
// Error and success marks
&.dz-error .dz-error-mark,
&.dz-success .dz-success-mark {
display: block;
.opacity(1);
}
// Uploading progress
.dz-progress {
position: absolute;
top: 118px;
left: 8px;
right: 8px;
height: 4px;
background-color: @gray-lighter;
display: none;
border-radius: @border-radius-small;
.dz-upload {
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 0%;
height: 100%;
background-color: @brand-info;
.transition(width 0.3s ease-in-out);
}
}
&.dz-processing .dz-progress {
display: block;
}
&.dz-success {
.dz-progress {
display: block;
.opacity(0);
.transition(opacity 0.4s ease-in-out);
}
}
// Error message
.dz-error-message {
display: block;
position: absolute;
top: 0;
left: 0;
background: fade(#f5f5f5, 80%);
margin: 8px;
padding: 8px;
color: @brand-danger;
max-width: 100%;
z-index: 5;
.opacity(0);
.transition(opacity 0.3s ease-in-out);
}
&.dz-error {
&:hover .dz-error-message {
display: block;
.opacity(1);
}
.dz-progress .dz-upload {
background: @brand-danger;
}
}
// Image preview
&.dz-image-preview:hover {
.dz-details img {
display: block;
.opacity(0.1);
}
}
// Remove button
a.dz-remove {
background-color: #fafafa;
border-radius: @border-radius-small;
border: 1px solid @gray-lighter;
display: block;
padding: 5px;
text-align: center;
color: @text-muted;
margin-top: 35px;
cursor: pointer;
&:hover {
color: @text-color;
background-color: #f5f5f5;
}
}
}
}
@@ -0,0 +1,583 @@
/* ------------------------------------------------------------------------------
*
* # Bootstrap file input
*
* File input styling for Bootstrap 3.0
*
* Version: 1.3
* Latest update: Aug 10, 2016
*
* ---------------------------------------------------------------------------- */
// Core styles
// ------------------------------
// Base
.file-input {
// Remove red border and shadow from input with error
&.has-error {
.form-control {
border-color: @input-border;
outline: 0;
.box-shadow(none);
}
}
// Add horizontal spacing to icons on desktops
@media (min-width: @screen-sm-min) {
.btn > [class*=icon-],
.btn > .glyphicon {
margin-right: 5px;
}
}
}
// File object
.file-object {
margin: 0 0 -(@list-spacing) 0;
padding: 0;
}
// File input styling
// ------------------------------
// Browse button
.btn-file {
position: relative;
overflow: hidden;
// Hide original input
input[type=file] {
position: absolute;
top: 0;
right: 0;
min-width: 100%;
min-height: 100%;
text-align: right;
opacity: 0;
background: none repeat scroll 0 0 transparent;
cursor: inherit;
display: block;
}
}
// Caption name
.file-caption-name {
display: inline-block;
overflow: hidden;
word-break: break-all;
// Add spacing between icon and text
[class*=icon-],
.glyphicon {
margin-right: @element-horizontal-spacing;
}
// Display empty caption text as a placeholder
.file-input-new & {
color: @text-muted;
// And hide icon
> [class*=icon-],
> .glyphicon {
display: none;
}
}
}
// Error message
.file-error-message {
position: relative;
background-color: #f2dede;
color: #a94442;
text-align: center;
border-radius: @border-radius-base;
padding: 10px;
margin: 0 5px 5px 5px;
// Top spacing correction if inside drop zone
.file-drop-zone & {
margin-top: 5px;
}
// Close button
.close {
margin-top: 1px;
color: #a94442;
}
// List of errors
pre,
ul {
margin: @list-spacing 0;
text-align: left;
}
}
// Disabled caption
.file-caption-disabled {
background-color: @input-bg-disabled;
cursor: @cursor-disabled;
// Change text color
.file-caption-name {
color: #ccc;
}
}
//
// Preview
//
// Preview modal
.file-preview-detail-modal {
text-align: left;
}
// File preview container
.file-preview {
border-radius: @border-radius-small;
border: 1px solid @panel-default-border;
width: 100%;
margin-bottom: @line-height-computed;
position: relative;
text-align: center;
// Close button
> .close {
font-weight: 400;
font-size: @font-size-h5;
opacity: 1;
position: absolute;
top: 0;
right: 0;
background-color: #fff;
padding: 8px;
line-height: 0.6;
border-radius: @border-radius-base;
color: @color-grey-700;
.opacity(1);
}
}
// Thumbnail frame
.file-preview-frame {
margin: @padding-base-vertical;
margin-right: 0;
display: table;
border: 1px solid @panel-inner-border;
float: left;
vertical-align: middle;
// Inside drop zone
.file-drop-zone & {
border: 1px solid @panel-inner-border;
border-radius: @border-radius-base;
}
}
// Thumbnail image
.file-preview-image {
height: 160px;
vertical-align: middle;
image-orientation: from-image;
border-radius: @border-radius-base;
// Prevent image overflow
@media (max-width: @screen-xs-max) {
max-width: 100%;
}
}
// Preview text
.file-preview-text {
text-align: left;
width: 160px;
margin-bottom: 2px;
color: #428bca;
background-color: #fff;
overflow-x: hidden;
}
// Other files preview
.file-preview-other {
display: table-cell;
text-align: center;
vertical-align: middle;
width: 160px;
height: 160px;
// Override for preview icon, use Icomoon instead
&:after {
content: "\ea0c";
font-family: "icomoon";
display: block;
font-size: @icon-font-size * 4;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// Hide glyphicon icon
.glyphicon {
display: none;
}
}
// Status
.file-preview-status {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
color: @text-color;
background-color: fade(#fafafa, 80%);
border-top: 1px solid @panel-default-border;
padding: @padding-base-vertical @padding-base-horizontal;
font-size: @font-size-small;
line-height: @line-height-small;
color: @text-color!important;
// Collapse if empty
&:empty {
padding: 0;
background-color: transparent;
border: 0;
}
}
//
// Loading indicator
//
// Give it minimum height
.file-thumb-loading {
min-height: (@icon-font-size * 2) + (@content-padding-large * 2) + ((@padding-base-vertical * 2) + @line-height-computed + 1);
}
// Loading icon
.file-thumb-loading,
.file-uploading {
// Background
&:before {
content: "";
display: inline-block;
background-color: @color-slate-900;
width: (@icon-font-size * 2);
height: (@icon-font-size * 2);
position: absolute;
top: 50%;
left: 50%;
margin: -(((@icon-font-size * 2) + ((@padding-base-vertical * 2) + @line-height-computed + 1)) / 2) 0 0 -(@icon-font-size);
border-radius: @border-radius-base;
.box-shadow(0 1px 5px fade(#fff, 50%));
}
// Icon itself
&:after {
content: "\eb55";
font-family: "icomoon";
display: inline-block;
position: absolute;
color: #fff;
top: 50%;
left: 50%;
margin: -((@icon-font-size + ((@padding-base-vertical * 2) + @line-height-computed + 1)) / 2) 0 0 -(@icon-font-size / 2);
font-size: @icon-font-size;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
.animation(rotation 1s linear infinite);
}
}
// Indicator
.file-upload-indicator {
position: absolute;
bottom: 0;
padding-top: (@padding-xs-vertical + 1);
padding-bottom: (@padding-xs-vertical + 1);
cursor: default;
text-align: left;
padding-left: (@padding-base-vertical + 1);
}
//
// Default elements visibility
//
// Standard upload
.file-input-new {
.file-preview,
.close,
.glyphicon-file,
.fileinput-remove-button,
.fileinput-upload-button {
display: none;
}
}
// Ajax upload
.file-input-ajax-new {
.fileinput-remove-button,
.fileinput-upload-button,
.fileinput-remove,
.file-caption-name > [class*=icon-],
.file-caption-name > .glyphicon {
display: none;
}
}
// AJAX upload styling
// ------------------------------
// File actions
.file-actions {
margin-top: 5px;
border-top: 1px solid @gray-lighter;
// Remove horizontal spacing from icons
.btn > [class*=icon-],
.btn > .glyphicon {
margin-right: 0;
}
}
// Buttons position
.file-footer-buttons {
float: right;
}
// Caption
.file-footer-caption {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
font-size: @font-size-mini;
padding: 12px 7px 7px 7px;
margin-left: auto;
margin-right: auto;
}
// Preview error
.file-preview-error {
.opacity(0.65);
.box-shadow(none);
}
//
// Dropzone
//
// Base
.file-drop-zone {
border: 1px dashed @panel-default-border;
border-radius: @border-radius-base;
height: 100%;
vertical-align: middle;
margin: 5px;
padding: 5px;
}
// Text title
.file-drop-zone-title {
color: @text-muted;
font-size: @font-size-h3;
font-weight: 300;
padding: 85px 10px;
}
// Highlight file
.file-highlighted {
border-color: #ccc;
background-color: #fafafa;
}
// Progress bar
.kv-upload-progress {
margin-bottom: @line-height-computed;
}
//
// Progress
//
// Thumbnail progress
.file-thumb-progress {
position: absolute;
top: -5px;
left: 0;
right: 0;
// Progress bars
.progress,
.progress-bar {
height: 5px;
border-radius: 0;
font-size: 0;
}
}
// Thumb footer
.file-thumbnail-footer {
position: relative;
}
// IE 10 fix
.btn-file ::-ms-browse {
width: 100%;
height: 100%;
}
//
// Fullscreen modal
//
.file-zoom-fullscreen {
&.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.modal-dialog {
position: fixed;
margin: 0;
width: 100%;
height: 100%;
padding: 0;
}
.modal-content {
border-radius: 0;
.box-shadow(none);
}
.modal-body {
overflow-y: auto;
}
}
//
// Zoom
//
// Dialog
.file-zoom-dialog {
// Navigate buttons
.btn-navigate {
position: absolute;
top: 50%;
margin-top: -((floor(@font-size-h6 * @line-height-base) + @content-padding-large) - @icon-font-size);
padding: 0;
border: 0;
background: transparent;
outline: none;
color: #fff;
.opacity(0.7);
// Icons
> i {
display: block;
font-size: (@icon-font-size * 2);
}
// Hover state
&:not([disabled]):hover,
&:not([disabled]):focus {
outline: none;
.box-shadow(none);
.opacity(0.5);
}
// Disabled state
&[disabled] {
.opacity(0.3);
}
}
// Left button
.btn-prev {
left: -((@icon-font-size * 2) + 10);
}
// Right button
.btn-next {
right: -((@icon-font-size * 2) + 10);
}
// Floating buttons
.floating-buttons {
position: absolute;
top: @content-padding-large;
right: @content-padding-large;
background-color: @modal-content-bg;
border-radius: 0 0 0 @border-radius-base;
// Add padding
&:not(:empty) {
padding: 0 0 @content-padding-large @content-padding-large;
}
// Add z-index to buttons
&,
.btn {
z-index: 3000;
}
}
}
// Actions
.kv-zoom-actions {
position: absolute;
top: 50%;
right: 20px;
margin-top: -(@content-padding-large - (((@padding-xs-vertical * 2) + @icon-font-size + 2)) / 2);
}
// Content
.file-zoom-content {
height: 480px;
text-align: center;
}
//
// Drag
//
.file-drag-handle {
position: absolute;
left: 0;
bottom: 0;
padding-top: (@padding-xs-vertical + 1);
padding-bottom: (@padding-xs-vertical + 1);
cursor: move;
cursor: -webkit-grabbing;
&:hover {
.opacity(0.7);
}
> i {
top: 0;
}
}
@@ -0,0 +1,400 @@
/* ------------------------------------------------------------------------------
*
* # Plupload multiple file uploader
*
* Multi runtime single and multiple file uploader
*
* Version: 1.1
* Latest update: Mar 10, 2016
*
* ---------------------------------------------------------------------------- */
// Layout
// ------------------------------
// Wrapper
.plupload_wrapper {
width: 100%;
border: 2px dashed @panel-default-border;
border-radius: @border-radius-base;
.panel > div > & {
border: 0;
}
.panel.panel-flat > div > & {
border-top: 1px solid @panel-default-border;
}
}
// Common icon styles
.plupload_header:after,
.plupload_filelist:empty:before,
.plupload_filelist li.plupload_droptext:before,
.plupload_file_action:after,
.plupload_delete a:after,
.plupload_failed a:after,
.plupload_done a:after {
font-family: 'icomoon';
display: inline-block;
font-size: @icon-font-size;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// Header (hidden by default)
.plupload_header {
display: none;
position: relative;
background-color: @color-info-700;
margin: -1px -1px 0 -1px;
.border-top-radius(@border-radius-base);
&:after {
content: '\ec78';
color: #fff;
font-size: (@icon-font-size * 2);
position: absolute;
top: 50%;
left: @content-padding-large;
margin-top: -(@icon-font-size);
}
}
.plupload_header_content {
padding: @content-padding-base @content-padding-large;
padding-left: ((@content-padding-large * 2 ) + (@icon-font-size * 2));
color: #fff;
}
.plupload_header_title {
font-size: @font-size-h6;
font-weight: 500;
}
.plupload_header_text {
font-size: @font-size-mini;
line-height: @line-height-mini;
}
// Helpers
.plupload_clear,
.plupload_clearer {
clear: both;
}
.plupload_clearer,
.plupload_progress_bar {
display: block;
font-size: 0;
line-height: 0;
}
// Buttons
// ------------------------------
// Action buttons
.plupload_button {
display: inline-block;
color: #fff;
background-color: @brand-primary;
border: 1px solid transparent;
padding: @padding-small-vertical @padding-small-horizontal;
border-radius: @border-radius-small;
margin-right: 5px;
// Hover state
&:hover,
&:focus {
color: #fff;
.box-shadow(0 0 0 100px fade(#000, 5%) inset);
}
// Active state
&:active {
.box-shadow(0 0 0 100px fade(#000, 10%) inset);
}
}
// Disabled button
a.plupload_disabled {
&,
&:hover,
&:focus {
color: @text-muted;
box-shadow: none;
border-color: #ddd;
background: #fcfcfc;
cursor: default;
.box-shadow(none);
}
}
// Start upload button
.plupload_start {
background-color: @color-teal-400;
}
// File list
// ------------------------------
// Itself
.plupload_filelist {
margin: 0;
padding: 0;
list-style: none;
// Scrollable area
.plupload_scroll & {
height: 250px;
background: #fff;
overflow-y: auto;
@media (max-width: @screen-xs-max) {
height: 200px;
}
}
// List item
li {
padding: 12px @content-padding-large;
background-color: #fff;
&:hover {
background-color: @dropdown-link-hover-bg;
}
&.plupload_droptext:hover {
background-color: transparent;
}
}
// Add background icon with text
&:empty,
li.plupload_droptext {
position: relative;
height: 250px;
text-align: center;
background-color: transparent;
text-indent: -99999px;
// Icon
&:before {
content: '\ea0e';
font-size: (@icon-font-size * 5);
padding-top: 65px;
position: absolute;
top: 0;
width: (@icon-font-size * 5);
height: (@icon-font-size * 5);
left: 50%;
margin-left: -(@icon-font-size * 2.5);
z-index: 2;
color: #ddd;
text-indent: 0;
font-weight: normal;
}
// Text label
&:after {
content: 'Drag files to upload';
font-size: @font-size-h4;
position: absolute;
top: 50%;
padding-top: 145px;
left: 50%;
margin: -100px 0 0 -150px;
width: 300px;
height: 200px;
color: #bbb;
text-indent: 0;
}
@media (max-width: @screen-xs-max) {
height: 200px;
&:before,
&:after {
width: 100%;
height: 200px;
left: 0;
margin: 0;
top: 0;
}
&:before {
font-size: (@icon-font-size * 4);
padding-top: 40px;
}
&:after {
font-size: @font-size-h5;
border-width: 3px 0;
padding-top: 120px;
}
}
}
&:empty:after {
content: 'Add files to upload';
}
}
// Header
.plupload_filelist_header {
padding: @content-padding-base @content-padding-large;
.plupload_file_name,
.plupload_file_size,
.plupload_file_status,
.plupload_file_action {
font-weight: 500;
}
}
// Footer
.plupload_filelist_footer {
padding: @content-padding-base @content-padding-large;
.plupload_file_size,
.plupload_file_status,
.plupload_upload_status {
padding: @padding-base-vertical 0;
font-weight: 500;
}
@media (max-width: @screen-xs-max) {
.plupload_file_action,
.plupload_file_status,
.plupload_file_size,
.plupload_progress {
display: none;
}
}
}
// Indicators
// ------------------------------
// File action indicator
.plupload_file_action {
position: relative;
float: right;
margin-left: 30px;
margin-top: 2px;
color: @gray-light;
width: @icon-font-size;
height: @icon-font-size;
* {
display: none;
}
// Add icon to the header and footer
&:after {
content: '\ec67';
position: absolute;
left: 0;
top: 0;
}
// Extra margin at the bottom because of the buttons
.plupload_filelist_footer & {
margin-top: 9px;
}
// Remove icons in the file list
.plupload_filelist &:after {
content: none;
}
// Delete button
.plupload_delete & {
> a {
color: @text-color;
line-height: 1;
.opacity(0.5);
&:hover {
.opacity(1);
}
}
}
}
// Uploading indicator
.plupload_uploading {
background-color: @color-success-50;
}
// Delete button
.plupload_delete a:after {
content: '\ed6b';
}
// Failed indicator
.plupload_failed a {
color: @brand-danger;
cursor: default;
&:after {
content: '\e9cf';
}
}
// Done indicator
.plupload_done {
color: @gray-light;
a {
color: @color-teal-300;
cursor: default;
&:after {
content: '\e9db';
}
}
}
// Progress indicators
.plupload_progress,
.plupload_upload_status {
display: none;
}
.plupload_progress_container {
margin-top: 14px;
background-color: @gray-lighter;
}
.plupload_progress_bar {
width: 0px;
height: 4px;
background: @color-teal-300;
border-radius: @border-radius-large;
}
// Responsive styles
// ------------------------------
@media (min-width: @screen-sm) {
.plupload_file_name {
float: left;
overflow: hidden;
.plupload_filelist & {
width: 205px;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.plupload_file_size,
.plupload_file_status,
.plupload_progress {
float: right;
width: 80px;
}
.plupload_file_size,
.plupload_file_status,
.plupload_file_action {
text-align: right;
}
}