/*
 * File upload (JS progressive enhancement)
 *
 * Credits technique: http://www.quirksmode.org/dom/inputfile.html
 *
 */
/*
 * Vortex - Base
 *
 */
/* 
 * Mixins 
 *
 * Commonly used patterns (DRY)
 *
 * Don't overdo it, and generally not for single properties;
 * e.g. "@include floatLeft" causes more text than "float: left",
 * take some time to compile and is not a (good) pattern.
 *
 * Exception for long common properties configurations like e.g.
 * "@include bg(url)" (transparent background image no-repeat top left).
 *
 */
/* App dimensions */
/* App colors */
/* color: #0b5a9d; */
/* Forms */
:root, :host {
  --vrtx-link-color: #005aab;
  --vrtx-z-default: 900;
  --vrtx-z-modal: 910;
  --vrtx-z-menu-dropdown: var(--vrtx-z-default);
  --vrtx-z-editor-menu-sticky: var(--vrtx-z-default);
  --vrtx-z-alert-dialog: 12000;
  --vrtx-z-html-editor: 1000;
  --vrtx-z-html-editor-dialog: 1010;
  --ck-z-default: var(--vrtx-z-html-editor);
}

/* Upload form */
#file-upload-container {
  position: relative;
  z-index: 999;
}
#file-upload-container .vrtx-textfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  z-index: 1;
}
#file-upload-container input#fake-file {
  position: absolute;
  top: 0;
  right: 0;
  width: 295px;
  z-index: 1;
}
#file-upload-container a.vrtx-file-upload {
  position: absolute;
  top: 0;
  left: 330px;
  z-index: 1;
}

#autopublish-container {
  margin-top: 10px;
}

.js #file-upload-container input#file {
  z-index: 999;
  position: relative;
  left: 328px;
  background: none;
  width: 87px;
  height: 27px;
  cursor: pointer !important;
  /* Transparent */
  opacity: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)" !important;
}

/* Upload dialog */
#dialog-uploading-bar {
  background-color: #459CE5;
  margin-top: -13px;
  position: relative;
  z-index: 1;
  width: 0;
  height: 13px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
}

#dialog-uploading-percent {
  margin-top: 10px;
  margin-bottom: -15px;
  color: #2b2b2b;
  text-align: center;
  font-size: 1.231em;
  position: relative;
}

#dialog-uploading-bytes {
  margin-top: 15px;
  margin-bottom: 0px;
  color: #777;
  text-align: center;
  font-size: 0.8em;
  position: relative;
}

#dialog-uploading-abort {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #005aab;
  font-weight: bold;
  font-size: 0.813em;
  display: none;
}

.ui-dialog:hover #dialog-uploading-abort,
.ui-dialog #dialog-uploading-abort.tab-visible {
  display: inline;
}

/* The only way (it seems) to set cursor:pointer for file upload button in Webkit
 * http://chipsandtv.com/articles/styling-upload-elements
 * http://stackoverflow.com/questions/7554845/the-cursorpointer-property-doesnt-apply-to-file-upload-buttons-in-webkit-browse
 */
::-webkit-file-upload-button {
  cursor: pointer;
}