MediaWiki:Common.css: Difference between revisions
From Akal Lokal
No edit summary |
No edit summary |
||
| (31 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
.uls-menu { | |||
left: 0!important; | |||
right: 0!important; | |||
top: 0!important; | |||
z-index: 99999!important; | |||
} | |||
.p-personal-tools #pt-uls { | |||
display: none; | |||
} | |||
#pt-uls .uls-trigger { | |||
padding-left: 1rem!important; | |||
padding-top: 0.3em !important; | |||
} | |||
#pt-uls .uls-trigger::before { | |||
margin: 0!important; | |||
} | |||
.category-menu { | |||
background: white; | |||
border-bottom: 1px solid lightgray; | |||
} | |||
.category-menu .btn { | |||
text-wrap: nowrap; | |||
} | |||
.category-menu .dropdown-menu { | |||
max-width: 300px; | |||
} | |||
.category-menu .dropdown-item { | |||
text-wrap: wrap; | |||
} | |||
.category-menu .btn-group { | |||
position: static; | |||
} | |||
.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 { | ||
background: white; | background: white; | ||
border-bottom: 1px solid lightgray; | |||
} | } | ||
| Line 10: | Line 71: | ||
.p-navbar .navbar-form button:focus { | .p-navbar .navbar-form button:focus { | ||
color: white; | color: white; | ||
} | |||
.p-navbar .navbar-brand img { | |||
height: 4.5rem; | |||
top: -1.2rem; | |||
} | |||
.mw-body { | |||
padding: 0; | |||
} | } | ||
| Line 18: | Line 88: | ||
.hero-section { | .hero-section { | ||
margin-bottom: 1rem; | margin-bottom: 1rem; | ||
} | |||
.hero-section .mw-inputbox-centered { | |||
text-align: left; | |||
} | } | ||
| Line 25: | Line 99: | ||
} | } | ||
.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 43: | Line 119: | ||
} | } | ||
.img-wrapper { | .hero-section .img-wrapper { | ||
position: relative; | position: relative; | ||
top: 0; | top: 0; | ||
| Line 55: | Line 131: | ||
} | } | ||
.img { | .hero-section .img { | ||
background-image: url('https:// | background-image: url('https://akallokal.or.id/images/tmpediahero.jpg'); | ||
background-size: cover; | background-size: cover; | ||
background-position: center; | background-position: center; | ||
| Line 80: | Line 156: | ||
} | } | ||
.mainpage-dynamicpagelist li.gallerybox > div { | .mainpage-dynamicpagelist li.gallerybox>div { | ||
margin: auto; | margin: auto; | ||
} | } | ||
| Line 121: | Line 197: | ||
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; | |||
} | |||
.artikel-pilihan-thumbnail { | |||
object-fit: cover; | |||
max-height: 180px; | |||
} | |||
.category-contributors-section { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); | |||
column-gap: 3rem; | |||
margin-bottom: 40px; | |||
} | |||
.category-contributors-section .mw-pager-navigation-bar { | |||
display: none; | |||
} | |||
.partner-section { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
gap: 1rem; | |||
flex-wrap: wrap; | |||
margin-bottom: 45px; | |||
} | |||
.partner-section h3 { | |||
text-align: left; | |||
border-bottom: 0; | |||
} | |||
.partner-container { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
} | |||
.partner-container h2 { | |||
text-align: center; | |||
} | |||
.partner-flex { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
gap: 20px; | |||
} | |||
.partner-card { | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
padding: 20px; | |||
border-radius: 8px; | |||
text-decoration: none; | |||
color: inherit; | |||
transition: transform 0.2s; | |||
background: #fff; | |||
} | |||
.partner-card:hover { | |||
transform: translateY(-5px); | |||
} | |||
.partner-logo { | |||
width: 48px; | |||
height: 48px; | |||
object-fit: contain; | |||
margin-bottom: 15px; | |||
} | |||
.partner-title { | |||
font-size: 1em; | |||
font-weight: bold; | |||
margin: 0; | |||
text-align: center; | |||
} | |||
.partner-subtitle { | |||
font-size: 0.9em; | |||
color: #666; | |||
margin: 5px 0 0; | |||
text-align: center; | |||
} | |||
.footer-container .footer-logo img { | |||
width: 5rem; | |||
} | } | ||
| Line 129: | Line 297: | ||
} | } | ||
@media (max-width: 768px) { | |||
#pt-uls .uls-trigger { | |||
padding-left: 0 !important; | |||
} | |||
.mainpage-dynamicpagelist .gallery.mw-gallery-traditional { | .mainpage-dynamicpagelist .gallery.mw-gallery-traditional { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
.hero-section { | |||
position: relative; | |||
} | |||
.hero-content { | |||
position: absolute; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
} | |||
.hero-section .img { | |||
height: 750px; | |||
} | |||
.category-menu .container { | |||
overflow-y: hidden; | |||
} | |||
.category-menu-item a { | |||
font-size: 14px; | |||
} | |||
.mw-parser-output > #toc { | |||
display: none; | |||
} | |||
.partner-section { | |||
flex-direction: column; | |||
} | |||
.partner-section h3 { | |||
text-align: center; | |||
} | |||
.partner-flex { | |||
flex-direction: column; | |||
} | |||
.author-card { | |||
background: #f9f9f9; | |||
padding: 12px; | |||
border-left: 5px solid #007acc; | |||
border-radius: 8px; | |||
margin-top: 20px; | |||
font-size: 0.95em; | |||
font-style: italic; | |||
color: #333; | |||
} | |||
} | } | ||
Latest revision as of 04:41, 11 July 2025
/* CSS placed here will be applied to all skins */
.uls-menu {
left: 0!important;
right: 0!important;
top: 0!important;
z-index: 99999!important;
}
.p-personal-tools #pt-uls {
display: none;
}
#pt-uls .uls-trigger {
padding-left: 1rem!important;
padding-top: 0.3em !important;
}
#pt-uls .uls-trigger::before {
margin: 0!important;
}
.category-menu {
background: white;
border-bottom: 1px solid lightgray;
}
.category-menu .btn {
text-wrap: nowrap;
}
.category-menu .dropdown-menu {
max-width: 300px;
}
.category-menu .dropdown-item {
text-wrap: wrap;
}
.category-menu .btn-group {
position: static;
}
.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;
border-bottom: 1px solid lightgray;
}
.p-navbar .navbar-form button,
.p-navbar .navbar-form button:hover,
.p-navbar .navbar-form button:focus {
color: white;
}
.p-navbar .navbar-brand img {
height: 4.5rem;
top: -1.2rem;
}
.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;
}
.hero-section .img-wrapper {
position: relative;
top: 0;
width: 100vw;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
z-index: -1;
background: black;
}
.hero-section .img {
background-image: url('https://akallokal.or.id/images/tmpediahero.jpg');
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;
}
.artikel-pilihan-thumbnail {
object-fit: cover;
max-height: 180px;
}
.category-contributors-section {
display: grid;
grid-template-columns: repeat(auto-fill,minmax(340px,1fr));
column-gap: 3rem;
margin-bottom: 40px;
}
.category-contributors-section .mw-pager-navigation-bar {
display: none;
}
.partner-section {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
margin-bottom: 45px;
}
.partner-section h3 {
text-align: left;
border-bottom: 0;
}
.partner-container {
max-width: 1200px;
margin: 0 auto;
}
.partner-container h2 {
text-align: center;
}
.partner-flex {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
}
.partner-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
border-radius: 8px;
text-decoration: none;
color: inherit;
transition: transform 0.2s;
background: #fff;
}
.partner-card:hover {
transform: translateY(-5px);
}
.partner-logo {
width: 48px;
height: 48px;
object-fit: contain;
margin-bottom: 15px;
}
.partner-title {
font-size: 1em;
font-weight: bold;
margin: 0;
text-align: center;
}
.partner-subtitle {
font-size: 0.9em;
color: #666;
margin: 5px 0 0;
text-align: center;
}
.footer-container .footer-logo img {
width: 5rem;
}
@media (max-width: 1200px) {
.mainpage-dynamicpagelist .gallery.mw-gallery-traditional {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 768px) {
#pt-uls .uls-trigger {
padding-left: 0 !important;
}
.mainpage-dynamicpagelist .gallery.mw-gallery-traditional {
grid-template-columns: 1fr;
}
.hero-section {
position: relative;
}
.hero-content {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.hero-section .img {
height: 750px;
}
.category-menu .container {
overflow-y: hidden;
}
.category-menu-item a {
font-size: 14px;
}
.mw-parser-output > #toc {
display: none;
}
.partner-section {
flex-direction: column;
}
.partner-section h3 {
text-align: center;
}
.partner-flex {
flex-direction: column;
}
.author-card {
background: #f9f9f9;
padding: 12px;
border-left: 5px solid #007acc;
border-radius: 8px;
margin-top: 20px;
font-size: 0.95em;
font-style: italic;
color: #333;
}
}
