MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 121: | Line 121: | ||
/* ============================================================ | /* ============================================================ | ||
HERO: | HERO: search bar (works on all MediaWiki installs) | ||
============================================================ */ | ============================================================ */ | ||
| Line 130: | Line 130: | ||
} | } | ||
.bc-hero-search | .bc-hero-search-link { | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr auto; | grid-template-columns: 1fr auto; | ||
gap: 10px; | gap: 10px; | ||
align-items: center; | align-items: center; | ||
height: 46px; | height: 46px; | ||
padding: 0 10px 0 14px; | |||
border-radius: 12px; | border-radius: 12px; | ||
border: 1px solid rgba(255,255,255,.22); | border: 1px solid rgba(255,255,255,.22); | ||
background: rgba(255,255,255,.10); | background: rgba(255,255,255,.10); | ||
text-decoration: none !important; | |||
} | } | ||
.bc-hero-search- | .bc-hero-search-placeholder { | ||
color: rgba(255,255,255,.70); | color: rgba(255,255,255,.70) !important; | ||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | } | ||
.bc-hero-search- | .bc-hero-search-cta { | ||
height: 34px; | |||
display: inline-flex; | |||
align-items: center; | |||
padding: 0 14px; | |||
border-radius: 10px; | |||
padding: 0 | |||
border-radius: | |||
border: 1px solid rgba(255,255,255,.22); | border: 1px solid rgba(255,255,255,.22); | ||
background: rgba(255,255,255,.16); | background: rgba(255,255,255,.16); | ||
color: #fff; | color: #fff !important; | ||
font-weight: 700; | font-weight: 700; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
.bc-hero-search- | .bc-hero-search-link:hover { | ||
background: rgba(255,255,255,. | background: rgba(255,255,255,.14); | ||
border-color: rgba(255,255,255,.30); | border-color: rgba(255,255,255,.30); | ||
} | } | ||
.bc-hero-search-link:hover .bc-hero-search-cta { | |||
.bc- | background: rgba(255,255,255,.22); | ||
border-color: rgba(255,255,255,.30); | |||
.bc- | |||
background: rgba(255,255,255,. | |||
border-color: rgba(255,255,255,. | |||
} | } | ||
/* Mobile: | /* Mobile: keep it clean */ | ||
@media (max-width: 640px) { | @media (max-width: 640px) { | ||
.bc-hero-search | .bc-hero-search-link { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
height: auto; | |||
padding: 12px 14px; | |||
gap: 10px; | |||
} | } | ||
.bc-hero-search- | .bc-hero-search-cta { | ||
width: 100%; | width: 100%; | ||
justify-content: center; | |||
height: 40px; | |||
} | } | ||
} | } | ||
/* ============================================================ | /* ============================================================ | ||