.site-footer {
  .masthead();
  padding: 20px 0;
}

.site-footer,
.site-footer label,
.site-footer small {
  color: @footerTextColor;
}

.site-footer a {
  color: @footerLinkColor;
}

.footer-links,
.attribution {
  .makeColumn(6);
}

.footer-links {
  margin-left: 0;
}

.footer-links li {
  display: inline-block;
  width: 44%;
  margin-right: 5%;
  margin-bottom: 5px;
}

.attribution small {
  color: @footerTextColor;
  font-size: 12px;
}

.attribution .ckan-footer-logo {
  display: block;
  width: 68px;
  height: 21px;
  margin-top: 2px;
  background: url("@{imagePath}/ckan-logo-footer.png") no-repeat top left;
  text-indent: -900em;
}

.lang-select {
  .clearfix;
}

.lang-select label,
.lang-select select,
.lang-select .lang-container {
  float: left;
  margin-top: 0;
}

.lang-dropdown {
  color: @inputColor;
}

.lang-dropdown li {
  width: auto;
}

.flag-background-position(@position) {
  background-position: 0 ( 0 - ( @position * 11px ) );
}

// Apply flags to the items in browsers that support :before
.lang-dropdown .select2-result-label {
  &[data-value]:before {
    content: "";
    display: inline-block;
    background-image: url("@{imagePath}/flags.png?1");
    background-repeat: no-repeat;
    background-position: 0 11px;
    width: 16px;
    height: 11px;
    position: relative;
    top: 1px;
  }

  &[data-value*="/sq/"]:before { .flag-background-position(0); }
  &[data-value*="/bg/"]:before { .flag-background-position(1); }
  &[data-value*="/my_MM/"]:before { .flag-background-position(2); }
  &[data-value*="/ca/"]:before { .flag-background-position(3); }
  &[data-value*="/zh_CN/"]:before { .flag-background-position(4); }
  &[data-value*="/zh_TW/"]:before { .flag-background-position(5); }
  &[data-value*="/cs_CZ/"]:before { .flag-background-position(6); }
  &[data-value*="/dv/"]:before { .flag-background-position(7); }
  &[data-value*="/nl/"]:before { .flag-background-position(8); }
  &[data-value*="/en_GB/"]:before { .flag-background-position(9); }
  &[data-value*="/en/"]:before { .flag-background-position(10); }
  &[data-value*="/fi/"]:before { .flag-background-position(11); }
  &[data-value*="/fr/"]:before { .flag-background-position(12); }
  &[data-value*="/de/"]:before { .flag-background-position(13); }
  &[data-value*="/el/"]:before { .flag-background-position(14); }
  &[data-value*="/hu/"]:before { .flag-background-position(15); }
  &[data-value*="/is/"]:before { .flag-background-position(16); }
  &[data-value*="/id/"]:before { .flag-background-position(17); }
  &[data-value*="/it/"]:before { .flag-background-position(18); }
  &[data-value*="/ja/"]:before { .flag-background-position(19); }
  &[data-value*="/ko_KR/"]:before { .flag-background-position(20); }
  &[data-value*="/lv/"]:before { .flag-background-position(21); }
  &[data-value*="/lt/"]:before { .flag-background-position(22); }
  &[data-value*="/no/"]:before { .flag-background-position(23); }
  &[data-value*="/fa_IR/"]:before { .flag-background-position(24); }
  &[data-value*="/pl/"]:before { .flag-background-position(25); }
  &[data-value*="/pt_BR/"]:before { .flag-background-position(26); }
  &[data-value*="/ro/"]:before { .flag-background-position(27); }
  &[data-value*="/ru/"]:before { .flag-background-position(28); }
  &[data-value*="/sr/"]:before { .flag-background-position(29); }
  &[data-value*="/sr_Latn/"]:before { .flag-background-position(30); }
  &[data-value*="/sk/"]:before { .flag-background-position(31); }
  &[data-value*="/sl/"]:before { .flag-background-position(32); }
  &[data-value*="/es/"]:before { .flag-background-position(33); }
  &[data-value*="/es_AR/"]:before { .flag-background-position(34); }
  &[data-value*="/sv/"]:before { .flag-background-position(35); }
  &[data-value*="/tr/"]:before { .flag-background-position(36); }
  &[data-value*="/uk_UA/"]:before { .flag-background-position(37); }


}
