MediaWiki:Common.css: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(42 intermediate revisions by 2 users not shown)
Line 251: Line 251:
     background: #0f0;
     background: #0f0;
     font-weight: unset;
     font-weight: unset;
}
/* Math */
mjx-container {
    font-size: 85%!important;
}
}


Line 257: Line 263:
/***********************/
/***********************/


div.math-typesetting p {
    margin: 0 0 2em;
    text-indent: 1.5em;
}


div.math-block mjx-container {
    font-size: 117.4%!important;
}


div.math-block {
    text-align: center;
}




Line 310: Line 326:
.box-links ul {
.box-links ul {
margin: 0.3em 0 0 1.16em;
margin: 0.3em 0 0 1.16em;
}
/* Grid Templates */
.grid-3-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1em;
}
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}
@media screen and (max-width: 800px) {
    .grid-3-col,
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}
}


Line 315: Line 351:
.book-listing {
.book-listing {
     flex: 0 1 300px;
     flex: 0 1 300px;
}
.book-listing .book-cover a img {
    transition: transform linear .2s, filter linear .2s;
}
}


Line 320: Line 360:
     transform: scale(1.025);
     transform: scale(1.025);
     filter: drop-shadow(0px 3px 6px lightgray);
     filter: drop-shadow(0px 3px 6px lightgray);
    transition: linear .2s;
}
}


Line 326: Line 365:
     padding: 0;
     padding: 0;
     margin-top: 0.25em;
     margin-top: 0.25em;
}
/* CardBook */
.card-book {
    display: grid;
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "img info"
        "followon followon";
    gap: 0.75em;
    padding: 0.75em;
    background: #e9e9e9;
    border-radius: 6px;
}
.card-book-img {
    grid-area: img;
}
.card-book-img img {
    border-radius: 3px;
}
.card-book-info {
    grid-area: info;
}
.card-book-title p,
.card-book-authors p {
    line-height: 1.15;
}
.card-book-title p {
    margin: 0 0 0.25em;
}
.card-book-title a {
    font-weight: bold;
}
.card-book-authors p,
.card-book-description p {
    margin: 0 0 0.5em;
}
.card-book-authors {
    font-size: 0.8em;
}
.card-book-description {
    line-height: 1.3;
}
.card-book-followon {
    grid-area: followon;
    line-height: 1.3;
}
.card-book-followon-heading {
    color: #393939;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 0.5em;
}
.mw-collapsed .card-book-followon-heading {
    margin: 0;
}
ul.card-book-followon-list {
    margin: 0;
}
.card-book-followon-list-item {
    list-style: none;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0.75em;
    width: 100%;
}
.card-book-followon-list-item:not(:last-child) {
    margin: 0 0 0.75em;
}
.card-book-followon-img {
    border-radius: 3px;
}
.card-book-followon-title p {
    margin: 0;
}
.card-book-followon-title p,
.card-book-followon-authors p {
    line-height: 1.15;
}
}


Line 404: Line 540:
     display: grid;
     display: grid;
     grid-template-columns: auto auto;
     grid-template-columns: auto auto;
}
.nav-container-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin: 1em 0;
}
.nav-container-flex p {
    margin: 0;
}
}


Line 474: Line 621:
     padding: .5em;
     padding: .5em;
     text-align: center;
     text-align: center;
}
.button-object a {
    transition: background linear .1s;
}
}


.button-object a:hover {
.button-object a:hover {
     background: #c7c7c7;
     background: #c7c7c7;
    transition: linear .1s;
}
}


Line 865: Line 1,015:
}
}


.home-stats p {
.home-title p,
.home-stats p,
.home-intro p {
     margin: 0;
     margin: 0;
}
.home-intro p {
    max-width: 650px;
}
.home-intro-link a {
    background: #ededed;
    border-radius: 4px;
    color: black;
    display: block;
    line-height: 1.1;
    padding: 1rem;
}
.home-intro-link a:first-child {
    margin: 0 0 1rem;
}
}


Line 873: Line 1,042:
     justify-content: space-between;
     justify-content: space-between;
     gap: 1rem;
     gap: 1rem;
}
.home-section {
    margin: 0 0 3rem;
}
.home-section h2,
.home-section h3 {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}
.home-section-info {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0 0;
}
.home-media {
    flex-basis: 50%;
}
.home-direction,
.home-resources {
    flex-grow: 1;
    border-radius: 16px;
    box-shadow: 0px 1px 3px rgb(0 0 0 / 10%), 0px 2px 7px hsl(0deg 0% 0% / 5%);
    padding: 1rem;
}
.home-direction {
    flex-basis: 36%;
}
.home-resources {
    flex-basis: 50%;
}
}