MediaWiki:Common.css

From Akal Lokal
Revision as of 08:51, 20 August 2024 by Admin (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

.p-navbar {
  background: white;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
}

.p-navbar .navbar-form button,
.p-navbar .navbar-form button:hover,
.p-navbar .navbar-form button:focus {
  color: white;
}

.mw-body:has(.bodyContent .hero-section) .contentHeader {
  display: none;
}

.hero-section {
  margin-bottom: 1rem;
}

.hero-content {
  position: absolute;
  top: 4rem;
}

.hero-btn a {
  color: white !important;
}

.hero-btn a:hover {
  text-decoration: none !important;
}

.hero-content h1,
.hero-content p {
  border-bottom: 0;
  color: white;
}

.hero-content p {
  margin-bottom: 2rem;
}

.img-wrapper {
  position: relative;
  top: 0;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: -1;
  background: black;
}

.img {
  background-image: url('https://plus.unsplash.com/premium_photo-1718198500346-d042a3ee723f?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  padding: 50px 20px;
  color: white;
  text-align: center;
  height: 500px;
  opacity: 0.6;
}

.gallery.mw-gallery-traditional {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0 auto !important;
  max-width: none !important;
  gap: 2rem;
}

li.gallerybox,
li.gallerybox div,
li.gallerybox div.thumb {
  width: auto !important;
}

li.gallerybox div.thumb {
  border: none!important;
  background-color: none!important;
}

li.gallerybox div.thumb div {
  margin: 0!important;
}

li.gallerybox div.thumb img {
  display: block;
  margin: 0 auto;
  width: 100%;
  object-fit: cover;
  height: 210px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .gallery.mw-gallery-traditional {
    grid-template-columns: 1fr;
  }
}