/*
 * Ikona X (dawniej Twitter).
 * Font Awesome 5.0.13 używany na froncie nie ma ikony X (pojawiła się w FA 6.4),
 * więc rysujemy logo maską SVG w kolorze tekstu (currentColor).
 * Obejmuje też stare "fa-twitter" – np. klasę zapisaną w bazie dla ikon w stopce.
 */
.fa-x-twitter::before,
.fab.fa-twitter::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Przyciski logowania / udostępniania w kolorach X zamiast niebieskiego Twittera. */
.btn-twitter,
.btn-x {
  background: #000;
  color: #fff;
}

.btn-twitter:hover,
.btn-twitter:focus,
.btn-x:hover,
.btn-x:focus {
  background: #333;
  color: #fff;
}
