﻿/***** Стиль. Вкладки в постах вв-кодами. (done by Kolobdur) *****/

/* Оформление в посту */
.wrapper {
    display: grid;
    grid-template:
        ". buttop ." auto
        "butleft windows butright" auto
        ". butbottom ." auto / 20% 1fr auto;
    overflow: hidden;
}

* 


.buttop {grid-area: buttop;}
.butleft {grid-area: butleft;}
.butright {grid-area: butright;}
.butbottom {grid-area: butbottom;}

.buttons {z-index: 2;}

.buttons div {
    padding: 16px 2px;
  transition: background-color .3s;
  text-align: center;
  cursor:pointer;
}

.buttop, .butbottom {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

/*.windows{
  display: grid;
  grid-area: windows;
   max-height: 600px;
    border: 2px solid #23322d;
    background: transparent;
}*/

.window {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  overflow: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s, transform 0.2s;
  transition-delay: 0.4s;
  padding: 10px;
  z-index: 0;
}

.wrapper > br, .wrapper > p, .buttons > br, .buttons > p, .windows > br, .windows > p {
  display: none;
}

.windows > div {
  transition: transform 0.2s;
  transform: translateX(86%);
}
 
.windows > .activevkladka {
  transform: translateY(0px);
  transform: translateX(0%);
  opacity: 1;
  z-index: 1;
}

/*.buttons div:hover,
.buttons > .activevkladka {
     background: #23322d !important;
    color: #bebebe !important;
}*/

/* Оформление вв-кода */
.icons-vkladka:before {
  content: '\412\043A\043B\0430\0434\043A\0438';
} 
.icons-vkladka:hover:before{margin-top: -4px;}
.icons-vkladka:hover, .tab-list:hover {
  color: #129FEA;
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -webkit-transition: transform 0.2s ease-in-out;
  -moz-transition: transform 0.2s ease-in-out;
  -ms-transition: transform 0.2s ease-in-out;
}
#vkladka-area div {
  cursor: pointer;
  font-weight: normal;
  width: 220px;
  margin-bottom: 10px;
}
#vkladka-area div:hover {overflow: hidden;}
.tab-list:hover {transform-origin: center left;}
#vkladka-area span {display: none;}

@media screen and (max-device-width: 580px) {
    .wrapper {
        grid-template:
        ". buttop ." auto
        "butleft windows butright" auto
        ". butbottom ." auto / 29% 1fr auto;
    }

.buttons div {
    padding: 12px 2px;

}}