« MediaWiki:Common.css » : différence entre les versions

Page de l’interface de MediaWiki
Aucun résumé des modifications
Aucun résumé des modifications
 
(30 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
/* Le CSS placé ici sera appliqué à tous les habillages. */
.tile-halves {
.tile-halves {
    display: flex;
            display: flex;
    flex-flow: row wrap;
            flex-flow: row wrap;
    border: 1px solid var(--tile-border-color);
            border-radius: 10px;
    background: var(--tile-background-color);
        }
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
}


.tile-halves h2 {
        .tile-halves h2 {
    font-size: 1.4em;
            font-family: "Anton";
    font-weight: bold;
            font-size: 1.4em;
    border: none;
            font-weight: bold;
    margin: 0 0 0.4em;
            border: none;
    text-align: center;
            margin: 0 0 0.4em;
}
            text-align: center;
        }


.tile-halves .byline + h2 {
        .tile-mainTitle {
    margin-top: -0.5em;
            font-family: "Anton";
}
            font-size: 2.4em;
            font-weight: bold;
            border: none;
            margin: 0 0 0.4em;
            text-align: center;
        }


.tile-top {
        .tile-top {
    width: 100%;
            width: 100%;
    padding: 1.3rem 1.5rem 0.6rem;
            padding: 1.3rem 1.5rem 0.6rem;
}
        }


.tile-top.tile-image {
        .tile-top.tile-image {
    display: flex;
            border-radius: 10px;
    align-items: center;
            height: fit-content;
    background-color: var(--byline-color);
            max-height: 20em;
    overflow: hidden;
            object-fit: cover;
    padding: 0;
            display: flex;
    height: 13vw;
            align-items: center;
    max-height: 12em;
            overflow: hidden;
    transition: 0.4s ease-out;
            padding: 0;
}
            transition: 0.4s ease-out;
        }


.tile-halves:hover .tile-top.tile-image img {
        .tile-halves:hover .tile-top.tile-image img {
    transform: scale(1.1);
            transform: scale(1.1);
    transition: 0.5s ease-out;
            transition: 0.5s ease-out;
}
        }


.tile-top.tile-image a {
        .tile-top.tile-image a {
    width: 100%;
            width: 100%;
}
            height: 100%;
        }  


.tile-top.tile-image img {
        .tile-bottom {
    width: 100%;
            width: 100%;
    object-fit: cover;
            padding: 1rem 1.5rem 0.6rem;
    height: auto;
        }
    max-height: 200px;
    transition: 0.4s ease-out;
}


.tile-bottom {
        .tile-bottom.link-button {
    background: var(--tile-background-color);
            align-self: flex-end;
    border-top: 1px solid var(--tile-border-color);
            padding: 3;
    width: 100%;
        }
    padding: 1rem 1.5rem 0.6rem;
}


.tile-bottom.link-button {
        .tile-bottom.link-button a {
    align-self: flex-end;
            display: block;
    padding: 0;
            text-align: center;
}
            padding: 0.75em 1.5em 0.8em;
            text-decoration: none;
        }


.tile-bottom.link-button a {
        .tile-bottom.read-more {
    display: block;
            background: var(--tile-link-button-color);
    text-align: center;
            transition: 0.3s ease-out;
    padding: 0.75em 1.5em 0.8em;
        }
    text-decoration: none;
}


.tile-bottom.read-more {
        .tile-bottom.read-more a {
    background: var(--tile-link-button-color);
            font-weight: bold;
    transition: 0.3s ease-out;
            text-align: right;
}
        }


.tile-bottom.read-more a {
        .tile-bottom.read-more:hover .arrow {
    color: var(--byline-color);
            transform: translateX(50%);
    font-weight: bold;
        }
    text-align: right;
}


.tile-bottom.read-more:hover {
        .tile-bottom.read-more .arrow {
    background: var(--tile-link-button-highlight-color);
            filter: var(--byline-arrow-filter);
}
            margin-left: 0.4em;
            transition: 0.3s ease-out;
        }


.tile-bottom.read-more:hover .arrow {
        .tile-row {
    transform: translateX(50%);
            display: flex;
}
            flex-flow: row wrap;
            margin-bottom: 1em;
        }


.tile-bottom.read-more .arrow {
        .mainpage-contents .tile-halves {
    filter: var(--byline-arrow-filter);
            flex: 1;
    margin-left: 0.4em;
            margin-right: 0.9rem;
    transition: 0.3s ease-out;
        }
}


.tile-row {
        .mainpage-contents .tile-halves:hover img {
    display: flex;
            transform: scale(1.04);
    flex-flow: row wrap;
        }
    margin-bottom: 1em;
}


.mainpage-contents .tile-halves {
        .mainpage-contents .tile-halves:last-child {
    flex: 1;
            margin-right: 0;
    margin-right: 0.9rem;
        }
}


.mainpage-contents .tile-halves:hover .tile-top img {
        .mainpage-contents .tile-top {
    transform: scale(1.04);
            position: relative;
}
        }


.mainpage-contents .tile-halves:last-child {
        .mainpage-contents .tile-top h2 a {
    margin-right: 0;
            display: block;
}
            text-align: center;
            text-decoration: none;
            line-height: 4.5rem;
            padding-left: 0.45rem;
        }


.mainpage-contents .tile-top {
        .mainpage-contents h2 {
    height: 4.5rem;
            margin: 0;
    position: relative;
            padding: 0;
}
        }


.mainpage-contents .tile-top h2 a {
        .animate-charcter {
    display: block;
            background-image: linear-gradient(
    text-align: center;
                -225deg,
    text-decoration: none;
                #231557 0%,
    line-height: 4.5rem;
                #44107a 29%,
    padding-left: 0.45rem;
                #ff1361 67%,
}
                #fff800 87%,
 
                #231557 100%
.mainpage-contents h2 {
            );
    margin: 0;
            background-size: auto auto;
    padding: 0;
            background-clip: border-box;
}
            background-size: 200% auto;
            color: #fff;
            background-clip: text;
            text-fill-color: transparent;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: textclip 5s linear infinite;
        }


.patterns {
         @keyframes textclip {
        position: relative;
            to {
        height: 40vh;
                background-position: 200% center;
        width: 90vh;
             }
        top: 50%;
        left: 50%;
       
    }
    svg text {
        font-family: "nunito";
        letter-spacing: 10px;
        stroke: #f2cd86;
        font-size: 150px;
        font-weight: 700;
         stroke-width: 3;
        animation: textAnimate 5s infinite alternate;
    }
 
    @keyframes textAnimate {
        0% {
            stroke-dasharray: 0 50%;
             stroke-dashoffset:  20%;
            fill:hsl(189, 68%, 75%)
        }
        100% {
            stroke-dasharray: 50% 0;
            stroke-dashoffstet: -20%;
            fill: hsla(189, 68%, 75%,0%)
         }
         }
    }

Version actuelle datée du 11 juillet 2023 à 17:02

.tile-halves {
            display: flex;
            flex-flow: row wrap;
            border-radius: 10px;
        }

        .tile-halves h2 {
            font-family: "Anton";
            font-size: 1.4em;
            font-weight: bold;
            border: none;
            margin: 0 0 0.4em;
            text-align: center;
        }

        .tile-mainTitle {
            font-family: "Anton";
            font-size: 2.4em;
            font-weight: bold;
            border: none;
            margin: 0 0 0.4em;
            text-align: center;
        }

        .tile-top {
            width: 100%;
            padding: 1.3rem 1.5rem 0.6rem;
        }

        .tile-top.tile-image {
            border-radius: 10px;
            height: fit-content;
            max-height: 20em;
            object-fit: cover;
            display: flex;
            align-items: center;
            overflow: hidden;
            padding: 0;
            transition: 0.4s ease-out;
        }

        .tile-halves:hover .tile-top.tile-image img {
            transform: scale(1.1);
            transition: 0.5s ease-out;
        }

        .tile-top.tile-image a {
            width: 100%;
            height: 100%;
        } 

        .tile-bottom {
            width: 100%;
            padding: 1rem 1.5rem 0.6rem;
        }

        .tile-bottom.link-button {
            align-self: flex-end;
            padding: 3;
        }

        .tile-bottom.link-button a {
            display: block;
            text-align: center;
            padding: 0.75em 1.5em 0.8em;
            text-decoration: none;
        }

        .tile-bottom.read-more {
            background: var(--tile-link-button-color);
            transition: 0.3s ease-out;
        }

        .tile-bottom.read-more a {
            font-weight: bold;
            text-align: right;
        }

        .tile-bottom.read-more:hover .arrow {
            transform: translateX(50%);
        }

        .tile-bottom.read-more .arrow {
            filter: var(--byline-arrow-filter);
            margin-left: 0.4em;
            transition: 0.3s ease-out;
        }

        .tile-row {
            display: flex;
            flex-flow: row wrap;
            margin-bottom: 1em;
        }

        .mainpage-contents .tile-halves {
            flex: 1;
            margin-right: 0.9rem;
        }

        .mainpage-contents .tile-halves:hover img {
            transform: scale(1.04);
        }

        .mainpage-contents .tile-halves:last-child {
            margin-right: 0;
        }

        .mainpage-contents .tile-top {
            position: relative;
        }

        .mainpage-contents .tile-top h2 a {
            display: block;
            text-align: center;
            text-decoration: none;
            line-height: 4.5rem;
            padding-left: 0.45rem;
        }

        .mainpage-contents h2 {
            margin: 0;
            padding: 0;
        }

        .animate-charcter {
            background-image: linear-gradient(
                -225deg,
                #231557 0%,
                #44107a 29%,
                #ff1361 67%,
                #fff800 87%,
                #231557 100%
            );
            background-size: auto auto;
            background-clip: border-box;
            background-size: 200% auto;
            color: #fff;
            background-clip: text;
            text-fill-color: transparent;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: textclip 5s linear infinite;
        }

        @keyframes textclip {
            to {
                background-position: 200% center;
            }
        }