Web s BEM a OOCSS

Sloupce v BEM a OOCSS

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular

Ukázka kódu Sloupců

Sloupce mají podobnou strukturu jako ve Foundation. Rozdíl je, že nepoužívají 12 sloupcovou strukturu, ale pouze procentuální šířku, která může být zcela libovolná. Záleží pouze na tom, jak široké jednotlivé sloupce chceme, ale zůstává, že bychom měli mít vždy 100 jako součet při použití více sloupců v jednom řádku. Další změna je zde obrácená logika při posuzování šířky stránky, která určuje responzivitu. Setkáváme s větším množstvím tříd, ale je tím pádem možné lépe rozeznat využití. Bloků je zde rovnou 5, grid, který se stará o sloupcové rozložení, heading určuje velikost nadpisů, indentation má za úkol horizontální mezery, media blok združuje jakýkoliv mediální obsah a paragraph je pro odstavce.

<hr class="indentation indentation_space_20">
<div class="grid">
  <h3 class="heading heading_3">Sloupce v BEM a OOCSS</h3> 
    <div class="grid__line grid_size_25">
      <div class="media">
        <div class="media__content">
          <p class="paragraph ">
            ...
          </p >
        </div> 
      </div>  
    </div> 
      <div class="grid__line grid_size_50"> 
        <div class="media"> 
          <div class="media__content">
            <p class="paragraph ">
              ...
            </p> 
          </div> 
        </div> 
      </div> 
      <div class="grid__line grid_size_25">
        <div class="media">
          <div class="media__content">
            <p class="paragraph ">
              ...
            </p> 
          </div>
        </div> 
      </div>  
</div> 
                  
.indentation {
  display:block;
  float:none;
  clear:both;
  width:100%;
  border:none;
  margin:auto;
} 

.indentation_space_20 {
  height:20px;
} 
                
.grid {
  max-width:75rem;
  margin-right:auto;
  margin-left:auto;
}

.heading{
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: Helvetica, Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: normal;
}

.heading_3{
  font-size: 1.9375rem;
}

.grid__line {
  float:left;
  padding-right:0.9375rem;
  padding-left:0.9375rem;
}

.grid_size_25 {
  width:25%;
} 

.grid_size_50 {
  width:50%;
}

.media {
  overflow:hidden;
}

.media__content {
  margin-bottom:1rem;
}

.paragraph {
  text-rendering:optimizeLegibility;
  color:black;
  font-size:16px;
}

@media print, screen and (max-width: 63.99em){
  .grid__line {
    width:100%;
  }
}

@media print, screen and (max-width: 39.99em){
  .grid__line {
    width:100%;
    float:left;
    padding-right:0.625rem;
    padding-left:0.625rem;
  }
  .heading_3{
    font-size: 1.1875rem;
  }
}

.grid:before {
  content:"";
  display:table;
  clear:both;
}

.grid:after {
  content:'';
  display:table;
}
                  
              

Ikony v BEM a OOCSS


Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular


Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular


Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular

Ukázka kódu Ikon

Ikony jsou pro metodologii trošku problém. Úplně stejné vlastnosti, které ve Foudation měly pouze jednu třídu se zde výrazně rozšířily. Hlavně kvůli rozdělení do bloků a modifikací. Je tedy lepší čitelnost kódu a dá se poznat, co jaká třída dělá, ale jejich počet velice narostl. Některé mají pouze 1 nebo 2 řádky a připomínají atomický kód. Výhodou je znovupoužití v další ukázce.

              
<div class="grid">
  <h3 class="heading heading_3">Ikony v BEM a OOCSS</h3>
  <div class="grid__line grid_size_33">
    <div class="media">
      <div class="icon icon_size_s icon__border icon__border_size_s icon__border_round media__icon_center"> 
        <i class="fa fa-university" aria-hidden="true"> </i > 
      </div> 
      <hr class="indentation indentation_line">
      <div class="media__content">
        <p class="paragraph  paragraph_align_right">
        ...
        </p > 
      </div> 
    </div> 
  </div> 
                

.grid_size_33 {
  width:33%;
}

.icon {
  text-rendering:auto;
  -webkit-font-smoothing:antialiased;
}

.media__icon_center {
  text-align:center;
}

.icon_size_s {
  font-size:40px;
}

.icon__border {
  border: 2px #000 solid;
  text-align:center;
  padding:20px 0 0 0;
  margin:0  auto;
} 

.icon__border_size_s {
  height:100px;
  width:100px;
}

.icon__border_round {
  border-radius:50%;
}

.paragraph {
  margin-bottom:1rem;
  text-rendering:optimizeLegibility;
  color:black;
  font-size:16px;
}

.paragraph_align_right {
  text-align:right;
}
                
  <div class="grid__line grid_size_33">
    <div class="media">
      <div class="icon icon_size_s icon__border icon__border_size_s media__icon_center"> 
        <i class="fa fa-building" aria-hidden="true"> </i > 
      </div> 
      <hr class="indentation indentation_line">
      <div class="media__content">
        <p class="paragraph  paragraph_align_center">
          ...
        </p > 
      </div> 
    </div> 
  </div> 

.paragraph_align_center {
  text-align:center;
}

  <div class="grid__line grid_size_33">
    <div class="media">
      <div class="icon icon_rotate icon_size_b icon__border icon__border_size_s icon__border_bold media__icon_center"> 
        <i class="fa fa-umbrella" aria-hidden="true"> </i > 
      </div> 
      <hr class="indentation indentation_line">
      <div class="media__content">
        <p class="paragraph  paragraph_align_left">
          ...
        </p > 
      </div> 
    </div> 
  </div> 
</div> 

.icon__border_bold {
  border: 10px #000 solid;
}

.icon_rotate {
  transform: rotate(180deg);
  padding: 0 0 0 0;
} 

.paragraph_align_left {
  text-align:left;
}
                

Ikony jinak v BEM a OOCSS

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular

Ukázka kódu ikony Glóbus

K vytvářením těchto objektů se metodologie opravdu moc nehodí. Foudation sice vázalo vizuální styl ke struktuře, ale nepotřebovalo ani částečně tolik tříd a řádků.

<div class="grid">
  <h3 class="heading heading_3">Ikony jinak v BEM a OOCSS</h3>
  <div class="grid__line grid_size_100">
    <div class="media">
      <div class="icon media__icon_center icon_size_b"> 
        <i class="icon_spacing   fa fa-university" aria-hidden="true"> </i > 
      </div> 
      <div class="media__content">
        <p class=""paragraph  paragraph_align_center">
        ...
        </p > 
      </div>
    </div>
  </div>
</div>


.icon {
  text-rendering:auto;
  -webkit-font-smoothing:antialiased;
}

.media__icon_center {
  text-align:center;
}
                  
.icon_spacing {
  padding: 5px 5px;
} 

.icon_size_b {
  font-size: 50px;
} 

                  
                

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular

Ukázka kódu ikony Signál

Zde nastávají problémy, jak funguje vykreslování ikon. Foudation bychom mohli podle struktury nastavit velikost elementu i a považovat práci za hotovou. Podle metodologie ale přesně toto nejde, musíme tedy vytvořit třídu, která stejně jako samotné vykreslení ikony ovlivňuje objekt před elementem i.

               

<div class="grid">
  <div class="grid__line grid_size_50">
    <div class="media">
      <div class="media__content">
        <p class="paragraph  paragraph_align_center">
          <i class="icon_spacing  icon_size_b_before fa fa-university" aria-hidden="true"> </i > 
          ...
        </p > 
    </div> 
  </div> 
</div> 

.icon {
  text-rendering:auto;
  -webkit-font-smoothing:antialiased;
}  

.icon_spacing {
  padding: 5px 5px;
} 

.icon_size_b_before:before {
  font-size: 50px;
} 
              

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. Contrary to popular

Locksmith
Ukázka kódu ikony Zámek

Znovu je tu stejný problém jako na ukázce vlevo. Navíc zde musíme přidat další element abychom mohli ovlivňovat velikost písma za ikonou.

<div class="grid">
  <div class="grid__line grid_size_50">
    <div class="media">
      <div class="media__content">
        <p class=""paragraph  paragraph_align_center">
          ...
        </p > 
        <i class="icon icon_spacing  icon_size_b_before fa fa-university" aria-hidden="true"> <span class="icon_size_b"> Locksmith </span></i > 
      </div>
    </div>
  </div> 
</div> 

.icon {
  text-rendering:auto;
  -webkit-font-smoothing:antialiased;
}  

.icon_spacing {
  padding: 5px 5px;
} 

.icon_size_b_before:before {
  font-size: 50px;

Galerie v BEM a OOCSS


Ukázka kódu Galerie

Galerie se od jejího protějšku ve Foudation moc neliší. Struktura je skoro stejná. Metodologie zakazují in-line styl, takže ho nahrazuje třída. Další rozdíl je rozhodně počet tříd, ale je z nich lépe rozeznat funkce.

<div class="grid">
  <h3 class="heading heading_3">Galerie v BEM a OOCSS</h3>
  <div class="grid__line grid_size_100">
    <div class="gallery">  
            
      <div class="gallery__images gallery_fade">   
        <div class="gallery__text gallery__text_number "> 1 / 4 </div>  
          <img src="1.jfif"class="gallery__images_positon gallery__images_size_tall" alt="city"> 
        <div class="gallery__text gallery__text_caption "> Dark clouds </div>    
      </div>

      <div class="gallery__images gallery_fade">   
        <div class="gallery__text gallery__text_number "> 2 / 4 </div>  
          <img src="2.jfif"class="gallery__images_positon gallery__images_size_wide" alt="clouds"> 
        <div class="gallery__text gallery__text_caption "> Night city </div>    
      </div>

      <div class="gallery__images gallery_fade">   
        <div class="gallery__text gallery__text_number "> 3 / 4 </div>  
          <img src="3.jfif"class="gallery__images_positon gallery__images_size_wide" alt="table"> 
        <div class="gallery__text gallery__text_caption "> Table decorations </div>    
      </div>

      <div class="gallery__images gallery_fade">   
        <div class="gallery__text gallery__text_number "> 4 / 4 </div>  
          <img src="4.jfif"class="gallery__images_positon gallery__images_size_tall" alt="tree"> 
        <div class="gallery__text gallery__text_caption "> Christmas tree </div>    
      </div>

      <a class="gallery__prev gallery__prev_appearance" onclick="plusSlides(-1)"> &#10094; </a>    
      <a class="gallery__next gallery__next_appearance" onclick="plusSlides(1)"> &#10095; </a>    
                 
      <div class="gallery_positon" >  
        <span class="gallery__dot" currentSlide="plusSlides(1)">  </span>   
        <span class="gallery__dot" currentSlide="plusSlides(2)">  </span>    
        <span class="gallery__dot" currentSlide="plusSlides(3)">  </span>    
        <span class="gallery__dot" currentSlide="plusSlides(4)">  </span>    
      </div>

    </div>
  </div>
</div>

.gallery {
  max-width: 700px;
  position: relative;
  margin: auto;
  z-index: 1;
}
                    
.gallery__images {
   display: none;
}
                    
.gallery__images_positon {
  display: block;
  margin-left: auto;
  margin-right: auto;
 }
                    
.gallery__images_size_tall {
  width: 45%;
}
                    
.gallery__images_size_wide {
  width: 100%;
}
                    
.gallery__prev, .gallery__next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  transition: 0.6s ease;
}
                    
.gallery__prev_text, .gallery__next_text {
  color: red;
  font-weight: bold;
  font-size: 18px;
}
                    
.gallery__next {
  right: 0;
}
                    
.gallery__prev:hover>, .gallery__next:hover {
  background-color: black;
  color: #1779ba;
}
                    
.gallery__text {
  padding: 8px 12px;
  position: absolute;
}

.gallery__text_caption {
  bottom: 8px;
  width: 100%;
  text-align: center;
  font-size: 15px;
}
                    
.gallery__text_number {
  top: 0;
  font-size: 12px;
  background-color: grey;
}

.gallery_positon {
  text-align: center;
}
                     
.gallery__dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
                    
.gallery_active, .gallery__dot:hover {
  background-color: >#717171;
}
                    
.gallery_fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.4s;
  animation-name: fade;
  animation-duration: 1.4s;
}
                    
@-webkit-keyframes fade {
  from {
    opacity: .5;
  }
  to {
     opacity: 1;
  }
}
                    
@keyframes fade {
  from {
    opacity: .5;
  }
  to {
    opacity: 1;
  }
}
            

Formulář v BEM a OOCSS

Pole označena červeně musí být vyplněna

1 2 3
Ukázka kódu Formuláře

Formulář je naproti Foudation tvořen jednotlivými třídy bloku form a dochází k lepší orientaci v kódu. Foundation má ale výhodu již hotového kódu pro formulář a nemusíme se tedy vůbec ničím zabývat, pokud nechceme. Nejde tedy moc určit, co je lepší. Záleží na naší preferenci.

<div class="grid">
  <h3 class="heading heading_3">Formulář v BEM a OOCSS</h3>
  <div class="grid__line grid_size_100">
    <form class="form" method="post" action="#" onsubmit="return validateForm(this,['jmeno','email','text','vyber','aktiv','vyber1']))">  
      <p id="form__error_msg" class="form__error_msg"> Pole označena červeně musí být vyplněna </p> 
      <div class="form__row">
        <label class="form__label " for="jmeno"> Jmeno: </label>
        <input class="form__input form_appearance form_focus" type="text" name="jmeno" id="in-jmeno" value=""> 
      </div>
          
      <div class="form__row">
        <label class="form__label " for="in-email"> Email: </label>
        <input class="form__input form_appearance form_focus" type="email" name="email" id="in-email" value=""> 
      </div>
          
      <div class="form__row">
        <label class="form__label " for="in-vyber"> Vyber: </label>
        <select class="form__input form__select form_appearance form_focus" name="vyber" id="in-vyber" > </select>
          <option value="1" > První </option>
          <option value="2" > Druhý </option>
          <option value="3" > Třetí </option>
        </div>

      <div class="form__row">
        <label class="form__label " for="in-text"> Text: </label>
        <textarea class="form__input form__text_area form_appearance form_focus" name="text" id="in-text" > </textarea>
      </div>
    
      <div class="form__row">
        <label class="form__label " id="in-aktiv"> Aktivita: </label>
        <input class="form__input_checkbox" name="aktiv" type="checkbox" value="1" > 
      </div>

      <div class="form__row">
        <label class="form__label " id="in-vyber1"> Vyber: </label>
        <input class="form__input_radio" name="vyber1" type="radio value="1" > 
        <input class="form__input_radio" name="vyber1" type="radio value="2" > 
        <input class="form__input_radio" name="vyber1" type="radio value="3" > 
      </div>
    
      <div class="form__row">
        <input type="submit" class="button button_send" value="odeslat" > 
      </div>
    </form>
  </div>
</div>
    
    
.form {
  margin: 0;
  padding: 0;
}

.form__error_msg {
  display: none;
  size: 25em;
  color: red;
  line-height: 1.6;
}

.form_warning {
  border: 2px red solid;
}
                              
.form__label {
  display: block;
  margin: 0;
  font-size:0.875rem ;
  font-weight: normal;
  line-height: 1.8;
  color: #0a0a0a;
}
                              
.form__input {
  display: block;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 2.4375rem;
  margin: 0 0 1rem;
  padding: 0.5rem;
}

.form__input_checkbox, .form__input_radio {
  margin:0 0 1rem ;
  font-weight: normal;
  line-height: 1.8;
  color: #0a0a0a;
}

.form__select {
  background-image: url(...);
  background-origin:inherit;
  background-position: 1rem;
  background-repeat: normal;
  background-size:1.5 ;
  padding-right: 1.5rem;
}

.form__text_area {
  min-height:50px ;
  border-radiu: 0;
  max-width: 100%;
}
                            
.form_appearance {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #cacaca;
  border-radius: 0;
  background-color: #fefefe;
  -webkit-box-shadow:inset  0 1px 2px rgba(10, 10, 10, 0.1);
  box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  font-family:inherit;
  font-size: 1rem;
  font-weight: normal;
  line-height:1.5 ;
  color: #0a0a0a;
  -webkit-transition: border-color 0.25s ease-in-out,  -webkit-box-shadow 0.5s;
  transition: border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
  transition: box-shadow 0.5s, border-color 0.25s >ease-in-out;
  transition: box-shadow 0.5s, border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
}

.form_focus:focus {
  outline: none ;
  border: 1px solid #8a8a8a;
  background-color: #fefefe;
  box-shadow: 0 0 5px #cacaca;
  transition: box-shadow 0.5s, border-color 0.25s >ease-in-out; 
}

.button {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 1rem 0;
  padding: 0.85em 1em;
  border: 1px solid transparent;
  border-radius: 0;
  -webkit-transition: background-color 0.25s >ease-out, color 0.25s ease-out;
  transition: background-color 0.25s  ease-out,  color 0.25s ease-out;
  -webkit-appearance: none;
  cursor: pointer;
}
                              
.button_send {
  background-color: #1779ba;
  color: #fefefe;
  font-family:inherit ;
  font-size: 0.9rem;
  line-height: 1;
  text-align: center;
}
                              
.button_send:hover {
  background-color: #14679f;
}