Rekrea UI dokumentace
  • modules
    • accomm_search
    • after_header
    • block-anchor
    • bootstrap-block
    • box
    • button
    • collapse
    • content_head
    • discount_in_head
    • esk-benefits
    • fancybox
    • figure
    • filters
    • flag
    • foot
    • form
    • freestyle_grid
    • hottip
    • icons
    • image_item
    • images-list
    • images_column
    • images_row
    • important
    • inline-list
    • landmark-map
    • list
    • list_item
    • message
    • more
    • nav_inside
    • numbered
    • out-of-box
    • price-date
    • price_table
    • print-catalogues
    • quote
    • recommendation
    • review
    • side_tabs
    • sister-websites
    • site_logo
    • site_nav
    • site_search
    • soft-head
    • stars
    • table
    • text-list
    • text
    • top_badge
  • unique
    • about
    • slovnik

Modul Accommodation Search

.accomm-search

Formulář pro vyhledávání ubytování. Očekává vložení data a počtu a věku lidí.

Na velkých displejích se zobrazuje s obrázkem na pozadí a jeho popiskem v pravém dolním rohu. Samotný formulář je na poloprůhledné vrstvě uprostřed obrázku.

Na malých displejích odpadá maškaráda s obrázkem na pozadí. Formulář je tam vycentrovaný.

Zjednodušeně HTML struktura asi takto:

Základna

Formulář

Sekce formuláře: nadpis, obsah, odesílací tlačítko

Nadpis formuláře

Řádky v těle formuláře: datum, osoby…

Ikony uvnitř formulare

Ikona pro odstranění osoby

Položka formuláře: volba data nebo osoba

Termín pobytu

Osoba

Přidání osoby

Legenda u fotek

.accomm-search {
  margin-bottom: @base-line-height;

  .container & {
    p, h2, a {
      color: white;
    }

    a:hover,
    a:focus,
    a:active {
      color: white;
    }
  }

  label {
    margin: 0;
    padding: 0;
  }

  @media @large-start {
    position: relative; // Kvuli photo-legend
    padding: 3*@base-line-height 10px;
    background-color: #efefef;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }
}



.accomm-search__form {
  @media @large-start {
    width: 320px;
    margin: 0 auto;
  }
}


.accomm-search__head,
.accomm-search__body,
.accomm-search__submit {
  background: black;
  background: fadeout(black, 25%);
  margin: 0 0 1px 0;
  padding: @base-line-height 0;
  text-align: center;
}



.accomm-search__head h2 {
  margin: 0;
}


.accomm-search__date-row {
  .clearfix;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: bold;
}

.accomm-search__persons-row {
  .clearfix;
  text-align: center;
}

.accomm-search__region-row {
  .clearfix;
  text-align: center;
}


.accomm-search__icon {
  vertical-align: middle;
  margin-left: 0;
  margin-right: 5px;

  &.calendar_icon {
    top: -3px;
    margin-left: -5px;
    .opacity(1);
  }
}

.accomm-search__icon-remove {
  position: absolute;
  right: 40px;
  top: 9px;
  width: 10px;
  height: 10px;
  .opacity(0.8);

  &:hover,
  &:focus,
  &:active {
      .opacity(1);
  }
}



.accomm-search__date {
  text-align: center;
  width: auto;
  display: block;
  margin: 0 0 @base-line-height 0;

  @media @large-start {
    width: 150px;
    float: left;

    div > &:first-child {
      margin-left: 11px;
    }
  }
}

.accomm-search__person {
  position: relative; // Kvuli .accomm-search__icon-remove
  text-align: center;
  width: auto;
  display: block;
  margin: 0 0 @base-line-height 0;

  @media @large-start {
    text-align: center;
  }
}


.accomm-search__date-head,
.accomm-search__date {
  display: block;
  @media @large-start {
    display: inline-block;
  }
}

.accomm-search__date-prepos {
  margin-left: -3px;
}



.accomm-search__persons-row {

  select.accomm-search__person-select {
    width: 90px;
  }

  .accomm-search__person-count {
    color: #fff;

    input {
      width: 26px;
    }
  }

}


.accomm-search__person-add {
  clear: both;

  @media @large-start {
    float: none;
    width: 120px;
    margin: 0 auto;
  }

  .accomm-search__icon {
    margin-left: -5px;

    @media @large-start {
      margin-left: 0;
    }
  }
}


.accomm-search__photo-legend {
  font-style: @smaller-font-size;
  line-height: @smaller-line-height;
  display: none;

  @media @large-start {
    display: block;
    position: absolute;
    bottom: @base-line-height;
    right: 20px;
    width: 220px;
    margin: 0;

    .container & a {
      display: block;
      color: white;
      color: fadeout(white, 20%);
      background: black;
      background: fadeout(black, 40%);
      padding: 10px;
    }
  }
}