MediaWiki:Common.css: Difference between revisions
From Makerpedia
Tags: Undo Reverted |
Tags: Undo Reverted |
||
| Line 53: | Line 53: | ||
.gallery-container { | .gallery-container { | ||
display: | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | |||
gap: 10px; | gap: 10px; | ||
} | } | ||
@media (max-width: 768px) { /* Adjust for mobile */ | |||
.gallery-container { | |||
grid-template-columns: repeat(3, 1fr); | |||
padding-top: 20px; | |||
} | |||
} | |||
.gallery-item { | .gallery-item { | ||
text-align: center; | text-align: center; | ||
} | } | ||
.gallery-item img { | .gallery-item img { | ||
width: | width: 100%; /* Adjust width to be responsive */ | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); | box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); | ||
| Line 76: | Line 79: | ||
margin-top: 5px; | margin-top: 5px; | ||
font-size: 14px; | font-size: 14px; | ||
} | } | ||
Revision as of 19:02, 19 February 2025
/* CSS placed here will be applied to all skins */
.cautionBox {
border: 1px solid #ddcc55;
background-color: #ffedaa;
padding: 1em;
border-radius: .5vmin;
}
.warningBox {
border: 1px solid #dd5555;
background-color: #ffaaaa;
padding: 1em;
border-radius: .5vmin;
}
.introBox {
border: 2px solid #f505f5;
background-color: #c2cbde;
border-radius: .5vmin;
padding: 1em;
padding-top: .25em;
}
.ytplayer {
max-width: 90vw;
}
.big-edit-button {
position: fixed;
bottom: 2vh;
right: 2vh;
z-index: 100;
background-color: var(--medik);
color: white;
border-radius: 5em;
padding: 1em;
}
.big-edit-button p {
margin: 0em;
}
.big-edit-button p::before {
background-image: url("images/icons/edit.svg");
background-repeat: no-repeat;
content: '';
display: inline;
background-size: 1.75em;
padding: .25em 1em;
filter: invert(100%) sepia(100%) saturate(2%) hue-rotate(141deg) brightness(103%) contrast(101%);
}
.gallery-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
@media (max-width: 768px) { /* Adjust for mobile */
.gallery-container {
grid-template-columns: repeat(3, 1fr);
padding-top: 20px;
}
}
.gallery-item {
text-align: center;
}
.gallery-item img {
width: 100%; /* Adjust width to be responsive */
border-radius: 8px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.gallery-caption {
margin-top: 5px;
font-size: 14px;
}