MediaWiki:Common.css: Difference between revisions
From Akal Lokal
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
.uls-menu { | |||
top: 0!important; | |||
right: 0!important; | |||
} | |||
.category-menu { | |||
background-color: #f8fafc; | |||
} | |||
.category-menu .container { | |||
display: flex; | |||
align-items: center; | |||
justify-content: flex-start; | |||
padding: .5rem 0; | |||
gap: 1rem; | |||
} | |||
.category-menu .btn:focus { | |||
box-shadow: unset; | |||
} | |||
.nav-container { | |||
display: flex; | |||
flex-wrap: wrap; | |||
align-items: center; | |||
justify-content: space-between; | |||
padding: 0; | |||
} | |||
.p-navbar { | .p-navbar { | ||
| Line 10: | Line 39: | ||
.p-navbar .navbar-form button:focus { | .p-navbar .navbar-form button:focus { | ||
color: white; | color: white; | ||
} | |||
.mw-body { | |||
padding: 0; | |||
} | } | ||
| Line 18: | Line 51: | ||
.hero-section { | .hero-section { | ||
margin-bottom: 1rem; | margin-bottom: 1rem; | ||
} | |||
.hero-section .mw-inputbox-centered { | |||
text-align: left; | |||
} | } | ||
| Line 25: | Line 62: | ||
} | } | ||
.hero- | .hero-content .mw-ui-button { | ||
color: white !important; | color: white!important; | ||
background: #4f9cd5; | |||
border: none; | |||
} | } | ||
.hero- | .hero-content .mw-ui-button:hover { | ||
background: #3a77a6; | |||
} | } | ||
| Line 80: | Line 119: | ||
} | } | ||
.mainpage-dynamicpagelist li.gallerybox > div { | .mainpage-dynamicpagelist li.gallerybox>div { | ||
margin: auto; | margin: auto; | ||
} | } | ||
| Line 121: | Line 160: | ||
margin-top: .5rem; | margin-top: .5rem; | ||
color: black !important; | color: black !important; | ||
} | |||
/* Hide mainpage's catlink */ | |||
.mw-body:has(.bodyContent .hero-section) + #catlinks { | |||
display: none; | |||
} | } | ||
| Line 133: | Line 177: | ||
.mainpage-dynamicpagelist .gallery.mw-gallery-traditional { | .mainpage-dynamicpagelist .gallery.mw-gallery-traditional { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | |||
.hero-content { | |||
top: 2rem; | |||
} | |||
.category-menu .container { | |||
flex-wrap: wrap; | |||
justify-content: center; | |||
} | } | ||
} | } | ||
Revision as of 08:25, 31 August 2024
/* CSS placed here will be applied to all skins */
.uls-menu {
top: 0!important;
right: 0!important;
}
.category-menu {
background-color: #f8fafc;
}
.category-menu .container {
display: flex;
align-items: center;
justify-content: flex-start;
padding: .5rem 0;
gap: 1rem;
}
.category-menu .btn:focus {
box-shadow: unset;
}
.nav-container {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: 0;
}
.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 {
padding: 0;
}
.mw-body:has(.bodyContent .hero-section) .contentHeader {
display: none;
}
.hero-section {
margin-bottom: 1rem;
}
.hero-section .mw-inputbox-centered {
text-align: left;
}
.hero-content {
position: absolute;
top: 4rem;
}
.hero-content .mw-ui-button {
color: white!important;
background: #4f9cd5;
border: none;
}
.hero-content .mw-ui-button:hover {
background: #3a77a6;
}
.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;
}
.mainpage-dynamicpagelist .gallery.mw-gallery-traditional {
display: grid !important;
grid-template-columns: 1fr 1fr 1fr;
margin: 0 auto !important;
max-width: none !important;
column-gap: 2.5rem;
padding: 1rem 0;
}
.mainpage-dynamicpagelist li.gallerybox,
.mainpage-dynamicpagelist li.gallerybox div.thumb {
width: auto !important;
}
.mainpage-dynamicpagelist li.gallerybox>div {
margin: auto;
}
.mainpage-dynamicpagelist li.gallerybox div.thumb {
max-height: 180px;
}
.mainpage-dynamicpagelist li.gallerybox div.thumb {
border: none !important;
overflow: hidden;
border-radius: 6px;
background: lightgray;
display: grid;
place-content: center;
}
.mainpage-dynamicpagelist li.gallerybox div.thumb:has(img) {
place-content: unset;
}
.mainpage-dynamicpagelist li.gallerybox div.thumb div {
margin: 0 !important;
}
.mainpage-dynamicpagelist li.gallerybox div.thumb img {
display: block;
margin: 0 auto;
width: 100%;
object-fit: cover;
height: 180px;
transition: transform .5s ease;
}
.mainpage-dynamicpagelist li.gallerybox div.thumb img:hover {
transform: scale(1.2);
}
.mainpage-dynamicpagelist .galleryfilename {
margin-top: .5rem;
color: black !important;
}
/* Hide mainpage's catlink */
.mw-body:has(.bodyContent .hero-section) + #catlinks {
display: none;
}
@media (max-width: 1200px) {
.mainpage-dynamicpagelist .gallery.mw-gallery-traditional {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 768px) {
.mainpage-dynamicpagelist .gallery.mw-gallery-traditional {
grid-template-columns: 1fr;
}
.hero-content {
top: 2rem;
}
.category-menu .container {
flex-wrap: wrap;
justify-content: center;
}
}
