@import "zmienne";

.img-container {
  max-width: 640px;
  margin: 20px auto;
  img {
    max-width: 100% !important;

  }
}


#imgAddModal{
  width: 700px;
  height: 600px;
}

//Usuwanie kategorii
.catDeleteQuestion{
  font-weight: bold;
  font-size: 1.5rem;
}

.childrenView{
  list-style: none;
}

.radioDeleteCat label{
  display: inline-block;
  margin-left: 20px;
}

.newCategorySelect{
  max-width: 300px;
}

.confirmDelete{
  opacity: 0.3;
  filter: alpha(opacity=30);
  pointer-events: none;
}

.confirmDeleteSubcategories{
  opacity: 1;
  filter: alpha(opacity=100);
  pointer-events: all;
}

.selectCategories{
  opacity: 0.3;
  filter: alpha(opacity=30);
  pointer-events: none;
}

//Szczegóły newsa
.showNews{
  .imgThumbnail{
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: 100%;
    background: url('../img/noimage.jpg') no-repeat;
    background-size: contain;
    display: block;
    img{
      //max-width: 200px;
      margin: auto;
    }
  }
  h3{
    margin-bottom: 40px;
  }
}
.showNewsButton{
  border-radius: 5px;
  margin-left: 5px;
  margin-top: 2px;
}
.button.warning:focus, .button.warning:hover {
  background-color: #ffae00;
  color: #fefefe;
}
.showCategoryNews{
  pointer-events: none;
}

// Lista newsów
.imgListNews{
  max-width: 50px;
}

.newsListNew{
  margin-top: 10px;
}
.newsListNewTop{
  margin-bottom: 30px;
  display: inline-block;
}

.ListNewsSearch{
  display: flex;
  width: 300px;
  form{
    position: relative;
    .submitFormSearchNewsIndex{
      position: absolute;
      right: 1px;
      top: 1px;
      border-radius: 0;
      padding: 0.86em 1em;
    }
    input{
      width: 300px;
      height: 30px;
      margin-top: 0px;
      padding-right: 40px;
      margin-bottom: 0;
      border: 1px solid $szaryCCC;
    }
  }
}

#selectCategoryForm{
  display: inline-block;
  margin-left: 10px;
}

.selectCategory{
  max-width: 300px;
  width: 100%;
  min-width: 250px;
  color: $szary-ciemny;
  font-size: 13px;
  border: 1px solid $szaryCCC;
  cursor: pointer;
  padding: 3px 25px 3px 5px;
  height: 30px;
  margin-top: 0;
}

.clearFilter i{
  color: rgba($szary-ciemny, 0.5);
}

.sortable:after{
  margin-left: 10px;
  font-family: fontello;
  content: '\f0dc';
}
.asc:after{
  margin-left: 10px;
  font-family: fontello;
  content: '\f0de';
}
.desc:after{
  margin-left: 10px;
  font-family: fontello;
  content: '\f0dd';
}

.icon-minus::before {
  margin-left: 0;
  width: 0.4rem;
  font-size: 6px;
}

.imgThmbnail{
  background: url('../img/noimage.jpg') no-repeat;
  background-size: contain;
  min-width: 50px;
  min-height: 50px;
  max-width: 70px;
  max-height: 70px;
  display: block;
}



//Dodanie newsa
#contentValidation{
  display: none;
}
#contentValidationCat{
  display: none;
}

.chosenSelectCategory{
  width: 100%;
  height: 50px;
  display: inline-block;
}
.chosen-container {
  width: 100% !important;
}

// Cropper
.containerCropper{
  width: 100%;
  height: 100%;
  max-height: 90vh;
  img{
    width: 100%;
    height: 100%;
  }
}
#windowModalCropper{
  top: 5px !important;
}
.previewImage{
  max-width: 200px;
  max-height: 200px;
  margin-bottom: 20px;
  //border: 1px solid rgba($szary-ciemny, 0.3);
}
.InputFileHidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
label.AddImage{
  display: inline-block;
}
.buttonAddImage{
  margin-top: 10px;
}

.image-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;

  li {
    height: 127px;
    list-style: none;
    margin: 0 20px 20px 0;
    overflow: hidden;
    position: relative;
    width: 200px;

    img {
      display: block;
      left: 50%;
      position: relative;
      top: 50%;
      transform: translate(-50%, -50%);
    }

    .remove-image {
      background: rgba(#000, 0.75);
      bottom: 0;
      display: block;
      left: 0;
      position: absolute;
      right: 0;
      text-align: center;
    }
  }
}
.image-list-item-placeholder {
    border: 1px dashed #ccc;
    background: rgba(204, 204, 204, 0.2);
}
.box {
  &.overlay {
    position: relative;

    .box-body {
      opacity: 0.5;
    }

    .overlay {
      background: rgba(0, 0, 0, 0.3);
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1;

      .text {
        background: rgba(0, 0, 0, 0.3);
        color: #fff;
        left: 50%;
        padding: 15px 30px;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }
}
.addTag{

}

.save-as-newsletter-message-modal {
    h1 {
        border-bottom: 1px solid #c5c5c5;
        color: #333;
        font: {
            size: 16px;
            weight: bold;
        }
        line-height: 38px;
        margin: 0;
        padding: 0;
    }

    .option-row {
        padding: 5px 0;

        &:after {
            clear: both;
            content: '';
            display: block;
            height: 0;
            width: 0;
        }

        label {
            box-sizing: border-box;
            color: #0f0f0f;
            font-size: 14px;
            float: left;
            height: 30px;
            line-height: 30px;
            width: 30%;
        }

        .option-content {
            box-sizing: border-box;
            float: left;
            width: 70%;

            select {
                background: {
                    color: #f0f0f0;
                    image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28138, 138, 138%29'></polygon></svg>");
                    origin: content-box;
                    position: right -10px center;
                    repeat: no-repeat;
                    size: 9px 6px;
                }
                border: 1px solid #ccc;
                border-radius: 0;
                box-sizing: border-box;
                display: block;
                font: {
                    family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
                    size: 12px;
                }
                height: 30px;
                padding: 3px 14px 3px 6px;
                width: 100%;
            }
        }

        button {
            &.save-as-message {
                margin-bottom: 0;
            }
        }
    }
}
