MediaWiki:Common.css

De Oroza RO Wiki
Ir a la navegación Ir a la búsqueda

Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.

  • Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
  • Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
  • Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
/* =========================================================
   OROZA RO UNIVERSAL WIKI SEARCH
   ---------------------------------------------------------
   - Searches sidebar links by category
   - Searches titles and page content through the MediaWiki API
   - Responsive on desktop, tablet, and mobile
========================================================= */

.oroza-global-search {
  position: relative;
  z-index: 80;
  width: 100%;
  margin-top: 12px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.oroza-global-search-form {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
}

.oroza-global-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  box-sizing: border-box;
  padding: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d8e2ed;
  border-bottom: 3px solid #d6a91d;
  border-radius: 18px;
  box-shadow:
    0 12px 28px rgba(24, 45, 70, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.oroza-global-search-field:focus-within {
  border-color: #c8d8e8;
  border-bottom-color: #e3b822;
  box-shadow:
    0 16px 34px rgba(24, 45, 70, 0.17),
    0 0 0 4px rgba(214, 169, 29, 0.12);
  transform: translateY(-1px);
}

.oroza-global-search-icon {
  flex: 0 0 auto;
  width: 42px;
  text-align: center;
  color: #2b4a6d;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-18deg);
  pointer-events: none;
}

.oroza-global-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 10px 0 2px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1f3044;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

.oroza-global-search-input::placeholder {
  color: #708197;
  font-weight: 500;
  opacity: 1;
}

.oroza-global-search-input::-webkit-search-cancel-button {
  display: none;
}

.oroza-global-search-clear {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf2f7;
  color: #52657a;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.oroza-global-search-clear:hover,
.oroza-global-search-clear:focus {
  background: #dfe8f1;
  color: #22364d;
  transform: scale(1.04);
  outline: none;
}

.oroza-global-search-clear[hidden] {
  display: none !important;
}

.oroza-global-search-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #bd9000;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffe36a 0%, #efc21b 100%);
  color: #1c2b3b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 7px 16px rgba(190, 142, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.oroza-global-search-submit:hover,
.oroza-global-search-submit:focus {
  background: linear-gradient(180deg, #ffea82 0%, #f5cf36 100%);
  transform: translateY(-1px);
  box-shadow:
    0 9px 19px rgba(190, 142, 0, 0.29),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  outline: none;
}

.oroza-global-search-helper {
  margin: 7px 8px 0;
  color: #64768b;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.45;
  text-align: center;
}

.oroza-global-search-helper kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border: 1px solid #cdd8e4;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #ffffff;
  color: #354b63;
  font: 700 10px/1.3 "Segoe UI", Arial, sans-serif;
  box-shadow: 0 1px 2px rgba(26, 44, 64, 0.06);
}

.oroza-global-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 9999;
  width: 100%;
  max-height: min(64vh, 560px);
  overflow-y: auto;
  box-sizing: border-box;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid #d5e0eb;
  border-radius: 18px;
  box-shadow:
    0 24px 55px rgba(16, 31, 49, 0.23),
    0 4px 12px rgba(16, 31, 49, 0.08);
  overscroll-behavior: contain;
}

.oroza-global-search-results[hidden] {
  display: none !important;
}

.oroza-search-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  color: #5a6e84;
  font-size: 13px;
  font-weight: 650;
}

.oroza-search-spinner {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid #d8e2ec;
  border-top-color: #d6a91d;
  border-radius: 50%;
  animation: oroza-search-spin 0.75s linear infinite;
}

@keyframes oroza-search-spin {
  to { transform: rotate(360deg); }
}

.oroza-search-group-title {
  padding: 11px 17px 8px;
  background: #f5f8fb;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #e6edf4;
  color: #556b82;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.75px;
  line-height: 1.2;
  text-transform: uppercase;
}

.oroza-search-group-title:first-child {
  border-top: 0;
  border-radius: 18px 18px 0 0;
}

.oroza-search-result-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 13px 17px;
  border-bottom: 1px solid #edf1f5;
  color: #24374d !important;
  text-decoration: none !important;
  outline: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.oroza-search-result-link:hover,
.oroza-search-result-link:focus,
.oroza-search-result-link.is-active {
  background: linear-gradient(90deg, #f3f8fd 0%, #fffaf0 100%);
  box-shadow: inset 4px 0 0 #d6a91d;
  color: #17283b !important;
  text-decoration: none !important;
}

.oroza-search-result-main {
  min-width: 0;
}

.oroza-search-result-title {
  display: block;
  margin-bottom: 4px;
  color: #1e3d5e;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.oroza-search-result-snippet {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #607389;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.oroza-search-result-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 190px;
  padding: 5px 9px;
  border: 1px solid rgba(214, 169, 29, 0.28);
  border-radius: 999px;
  background: rgba(214, 169, 29, 0.10);
  color: #806300;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.oroza-search-empty {
  padding: 24px 20px;
  text-align: center;
}

.oroza-search-empty-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
}

.oroza-search-empty-title {
  margin: 0 0 5px;
  color: #263d55;
  font-size: 15px;
  font-weight: 850;
}

.oroza-search-empty-text {
  margin: 0;
  color: #687b90;
  font-size: 12px;
  line-height: 1.55;
}

.oroza-search-suggestion {
  display: block;
  margin: 12px 17px;
  padding: 10px 12px;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  background: #f7fafc;
  color: #3e5872;
  font-size: 12px;
  font-weight: 650;
}

.oroza-search-suggestion button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e70bf;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.oroza-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 17px;
  background: #f5f8fb;
  border-radius: 0 0 18px 18px;
  color: #64778c;
  font-size: 11.5px;
  font-weight: 650;
}

.oroza-search-footer a {
  color: #1e5f9d !important;
  font-weight: 850;
  text-decoration: none !important;
}

.oroza-search-footer a:hover {
  color: #173f68 !important;
  text-decoration: underline !important;
}

@media (max-width: 780px) {
  .oroza-global-search {
    margin-top: 10px;
  }

  .oroza-global-search-form {
    width: 100%;
  }

  .oroza-global-search-field {
    min-height: 54px;
    border-radius: 15px;
  }

  .oroza-global-search-icon {
    width: 36px;
    font-size: 23px;
  }

  .oroza-global-search-input {
    height: 40px;
    padding-right: 5px;
    font-size: 13px;
  }

  .oroza-global-search-submit {
    min-width: 50px;
    width: 50px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
  }

  .oroza-global-search-submit span:last-child {
    display: none;
  }

  .oroza-global-search-helper {
    display: none;
  }

  .oroza-global-search-results {
    top: calc(100% + 7px);
    max-height: min(68vh, 520px);
    border-radius: 15px;
  }

  .oroza-search-result-link {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 13px 14px;
  }

  .oroza-search-result-category {
    justify-self: start;
    max-width: 100%;
  }

  .oroza-search-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .oroza-global-search-field {
    padding: 5px;
  }

  .oroza-global-search-icon {
    width: 32px;
    font-size: 21px;
  }

  .oroza-global-search-input {
    font-size: 12px;
  }

  .oroza-global-search-clear {
    width: 32px;
    height: 32px;
    font-size: 21px;
    line-height: 30px;
  }

  .oroza-search-result-title {
    font-size: 13px;
  }

  .oroza-search-result-snippet {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oroza-global-search-field,
  .oroza-global-search-clear,
  .oroza-global-search-submit,
  .oroza-search-result-link {
    transition: none !important;
  }

  .oroza-search-spinner {
    animation-duration: 1.5s;
  }
}