@import "../zmienne";
#mediaModal{
  top: 0 !important;

  h3 {
    border: none;
  }

  #returnAjax {
    background: #eee;
    margin: 0 -1rem -1rem;
    padding: 1rem;
  }
}

.mce-panel{
  z-index: 9999!important;
}
.mce-reset{
  z-index: 1000 !important;
}
.mediaBox{
  background-color: $tloMediaBox;
  .box-body{
    padding: 0;
  }
  .box-header{
    margin-left: 0 !important;
    .box-title{
      margin-left: 0 !important;
    }
    i{
      margin-left: 0 !important;
      width: 20px !important;

    }
  }
}

.folderTitle{
  color: #444;
  display: block;
  p{
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
  }
  a{
    display: inline-block;
    float: right;
    vertical-align: middle;
    margin-bottom: 0;
  }
}

.headerNotClick{
  cursor: auto;
  i{
    cursor: default;
  }
  i::before{
    cursor: default;
  }
  i::after{
    cursor: default;
  }
}
.box .box-header .box-title span.youAreHere{
  color: #444;
  top: 0;
  left: 0;
}
///////////////////////////////////////////////////////
//  TinyMCE Grid
///////////////////////////////////////////////////////

.gridVariation{
  border: solid 1px #c6c6c6;
  .grid-x{
    .cell{
      //background-color: $szary;
      //border: 1px solid $szary;
      background-color: #eee;
      overflow: hidden;
      height: 30px;
      border-right: 0px;
      p{
        display: none;
      }
    }
    .cell:last-of-type{
      //border-right: 1px solid $szary;
    }
    .cell:nth-of-type(2n){
      background-color: #e1e1e1;
    }
  }
}
#GridRWDModal{
  button{
    margin-top: 10px;
  }
}

///////////////////////////////////////////////////////
//  TinyMCE Media
///////////////////////////////////////////////////////


//Kafelki plików i folderów
.mediaPlik{
  width: $szerokoscMCE;
  height: $wysokoscMCE;
  border-radius: 2px;
  display: inline-block;
  overflow: hidden;
  margin: 3px;
  padding: $paddingMCE;
  position: relative;
  background-color: $bialy;
  box-shadow: $szary 0 0 4px;
  .obiektMediaHover{
    width: 100%;
    height: 100%;
    background: rgba($czarny, 0.5);
    position: absolute;
    z-index: 9;
    top: 0;
    display: none;
    .insertButtonFileHover{
      top: 50%;
      transform: translateY(-50%) translateX(-50%);
      position: absolute;
      left: 50%
    }
  }
  img{
    max-width: $szerokoscPaddMCE;
    max-height: $wysokoscPaddMCE;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .obiektMedia{
    position: relative;
    width: $szerokoscPaddMCE;
    height: $wysokoscPaddMCE;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    i{
      font-size: 60px;
    }
  }
  .tytulPliku{
    display: block;
    width: $szerokoscPaddMCE;
    padding: 0 5px;
    word-wrap: break-word;
    transform: translateY(-20px);
    background: $bialy;
    color: rgba($szary-ciemny, 0.6);
    font-size: 10px;
    line-height: 20px;
  }
  .opcje{
    display: block;
    bottom: 1px;
    position: absolute;
    width: 20px;
    height: 20px;
    margin-bottom: $wysokoscPaddMCE - 30px;
    margin-left: $szerokoscPaddMCE - 30px;
    z-index: 12;
  }
  .opcjePliku{
    width: $szerokoscPaddMCE - 4px;
    //font-size: 12px;
    margin-top: 20px;
    margin-left: -($szerokoscPaddMCE - 32px);
    display: block;
    li{
      text-align: center;
      height: 30px;
      span{
        line-height: 30px;
      }
    }
  }
  &:hover{
    .obiektMediaHover{
      display: block;
    }
    .buttonOpcje{
      background-color: #fff;
    }
  }
}
.zmiennazwe{
  margin: 20px;
  button{
    display: inline-block;
  }
  input{
    display: inline-block;

  }
}
.kreska{
  width: $szerokoscMCE;
  height: $paddingMCE;
  display: block;
  position: absolute;
  bottom: 0px;
  background-color: $bialy;
}
.mediaPlik:hover{
  background: rgba($szary, 0.3);
  //border: 1px solid $zielony-jasny;
  cursor: pointer;
  box-shadow: $zielony-jasny 0 0 5px;
  i{
    background: none;
    border: none;
  }
  .tytulPliku{
    border: none;
    transform: translateY(-100%);
    transition: all 0.2s ease-in-out;
  }
  img{
    border: none;
  }
}
.funkcjonalnosc{
  width: $szerokoscFunkcjMCE;
  background-color: transparent;
  box-shadow: rgba($szary, 0.4) 0 0 4px;
  .tytulPliku{
    width: $szerokoscFunkcjPaddMCE;
  }
}
.buttonOpcje{
  background-color: rgba($bialy, 0.3);
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: #FFF 0 0 2px;
  cursor: pointer;
  i{
    font-size: 12px;
    line-height: 18px;
    color: rgba($szary-ciemny, 0.8);
  }
}
.comeback{
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  display: block;
  font-size: 16px;
  color: #5a910d;;
}
.folderBlock{
  width: auto;
  margin: 10px 0 15px 0;
  position: relative;
  .clickMedia{
    display: inline-block;
    vertical-align: top;
  }
  .opcje{
    display: inline-block;
    position: absolute;
    margin: 10px 0 0 0;
    vertical-align: top;
    right: 5px;
    top: 0px;
  }
  .mediaPlik{
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    padding: 0 10px;
    //width: auto;
    overflow: visible;
  }
  .obiektMedia{
    min-width: 130px;
    height: 40px;
    display: inline-block;
    text-align: left;
    vertical-align: top;
    width: auto;
    overflow: hidden;
    i{
      font-size: 16px;
    }
  }
}
.filesBlock{
  margin: 10px 0 0 0;
}
//dodawanie plików
.addPlik{
  max-width: $szerokoscAddFileMCE;
  width: 100%;
  background: $bialy url("../img/spritemap.png") no-repeat 5px center;
  background-size: contain;
}
.addPlik:hover{
  background: url("../img/spritemap.png") no-repeat 5px center;
  background-size: contain;
}
#drop-area{
  height: 100%;
  width: 100%;
}
.dataDirectory{
  display: none;
}
.dataFile{
  display: none;
}
#addFolder{
  position: absolute;
  left: 50% !important;
  transform: translateX(-50%);
  min-width: 300px;
}
.deleteFolderModal{
  position: absolute;
  left: 50% !important;
  transform: translateX(-50%);
}
.changeFolderModal{
  position: absolute;
  left: 50% !important;
  transform: translateX(-50%);
}
.deleteFileModal{
  position: absolute;
  left: 50% !important;
  transform: translateX(-50%);
}
.renameFileModal{
  position: absolute;
  left: 50% !important;
  transform: translateX(-50%);
  min-width: 300px;
}
#dropdown{
  display: inline-block;
}

//wyświetlanie szczegółów plików
#fileImg{
  max-width: 90%;
  //width: 100%;
  max-height: 180px;
  //height: 100%;
}
.box .box-body p.fileInfoTitle{
  font-size: 11px !important;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
  overflow: hidden;
  span{
    font-weight: normal;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
  }
}
#imgFileInfo{
  max-height: 180px;
  max-width: 420px;
  width: 100%;
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
}
.fileInfoText{
  display: inline-block;
  top: 1px;
  vertical-align: top;
  width: 100%;
}
.fileInfoBox1{
  //height: 220px;
}
.fileInfoBox{
  .configBoxButtonsTinyMCE{
    visibility: visible;
    display: none;
    right: 0;
  }
}
#insertButtonLink{
  margin-top: 10px;
}
@media (max-width: 850px) {
  .fileInfoBox1{
    height: 100%;
  }

}
.copyURLbox{
  margin-top: 20px;
}


.copyURL{
  font-size: 12px;
  font-weight: bold;
  margin-top: 20px;
  color: $szary;
  position: relative;
}
.fileName{
  height: 43px;
  display: block;
}
#fileUrl{
  cursor: pointer;
  color: $szary;
}
.infoCopyUrl{
  display: block;
  position: absolute;
  background-color: $szary-ciemny;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: $szary 0 0 5px;
  top: 0;
  color: $bialy;
  margin: 5px 20px;
  font-weight: normal;
  opacity: 0;

}

.opcjePliku{
  button{
    color: $zielony-jasny;
  }
  button:hover{
    color: $zielony-ciemny;
  }
}

.pojedynczyFormularz{
  margin-top: 30px;
}


.reveal-overlay{
  z-index: 9999;
}

///////////////////////////////////////////////////////
//  TinyMCE Link Generator
///////////////////////////////////////////////////////
#linkiModal{
  max-width: 600px;
  input, select{
    margin: 0;
  }
}