@import "zmienne";


// style boxa
.mediaBox{
  background-color: $tloMediaBox;
}



//Kafelki plików i folderów
.mediaPlik{
  width: $szerokosc;
  height: $wysokosc;
  border-radius: 2px;
  display: inline-block;
  overflow: hidden;
  margin: 3px;
  padding: $padding;
  position: relative;
  background-color: $bialy;
  box-shadow: rgba($szary, 0.3) 0 0 4px;
  vertical-align: top;
  img{
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .obiektMedia{
    position: relative;
    width: $szerokoscPadd;
    height: $wysokoscPadd;
    text-align: center;
    overflow: hidden;
    i{
      font-size: 80px;
    }

  }
  .tytulPliku{
    display: block;
    font-size: 11px;
    transform: translateY(-21px);
    width: $szerokoscPadd;
    padding: 0 5px;
    word-wrap: break-word;
    background: $bialy;
    color: $szary-ciemny;
    line-height: 21px;
  }
  .opcje{
    display: block;
    bottom: 1px;
    position: absolute;
    width: 20px;
    height: 20px;
    margin-bottom: $wysokoscPadd - 30px;
    margin-left: $szerokoscPadd - 30px;
  }
}
.zmiennazwe{
  margin: 20px;
  button{
    display: inline-block;
  }
  input{
    display: inline-block;

  }
}
.kreska{
  width: $szerokosc;
  height: $padding;
  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: $szerokoscFunkcj;
  background-color: transparent;
  box-shadow: rgba($szary, 0.4) 0 0 4px;
  .tytulPliku{
    width: $szerokoscFunkcjPadd;
  }
}
.buttonOpcje{
  background-color: rgba($bialy, 0.6);
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: $bialy 0 0 2px;
  cursor: pointer;
}
.opcje{
  .configBoxButtons{
    max-width: 150px;
  }
  li{
    height: 30px;
    a{
      span{
        display: inline-block;
        text-align: center;
        line-height: 30px;
      }
    }
  }
}
.box .box-header .box-title span.youAreHere{
  color: #444;
  top: 0;
  left: 0;
}

.combackFolder{
  .mediaPlik{
    height: 40px;
    font-size: 20px;
    line-height: 40px;
    padding: 0 10px;
  }
}
.folderGroup{
  margin-top: 5px;
  margin-bottom: 10px;
  .funkcjonalnosc{
    line-height: 40px;
    font-size: 20px;
    padding: 0 10px;
  }
  .mediaPlik{
    height: 40px;
    padding: 0 10px;
    width: auto;
    overflow: visible;
  }
  .obiektMedia{
    height: 40px;
    font-size: 20px;
    line-height: 40px;
    padding: 0 10px;
    width: auto;
    display: inline-block;
    vertical-align: top;
    min-width: $szerokosc;
    i{
      font-size: 20px;
    }
  }
  .opcje{
    display: inline-block;
    position: relative;
    vertical-align: top;
    margin: 10px 0 0 0 ;
  }
}
.filesGroup{
  margin-top: 5px;
}
//dodawanie plików
.addPlik{
  max-width: $szerokoscAddFile;
  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;
  background-color: transparent;
}
#drop-area{
  height: 100%;
  width: 100%;
}
.dataDirectory{
  display: none;
}
.dataFile{
  display: none;
}

//wyświetlanie szczegółów plików
#fileImg{
  max-width: 90%;
  //width: 100%;
  max-height: 100%;
  //height: 100%;
}
.box .box-body p.fileInfoTitle{
  font-size: 16px !important;
  font-weight: bold;
  span{
    font-weight: normal;
  }
}
#imgFileInfo{
  max-width: 420px;
  width: 100%;
  display: inline-block;
  vertical-align: top;
  //padding: 10px;
  max-height: none;
}
.fileInfoText{
  display: inline-block;
  padding: 10px;
  margin-left: 20px;
  top: 1px;
  vertical-align: top;
  width: auto;
}
.fileInfoBox1{
}

@media (max-width: 850px) {
  .fileInfoBox1{
    height: 100%;
  }
  
}

.copyURL{
  font-size: 16px;
  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;
}



.switch-admin {
  margin: 0;
}
