Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
education.scss 8.74 KiB
#education-page {
    h3 {
        &.big {
            font-size: 30px;
        }
    }
    .title-banner {
        display: flex;
        justify-content: flex-end;
        flex-direction: column;
        height: 20vw;
        min-height: 250px;
        &.game-banner {
            background-image: url("/assets/images/game_studio_banner.png");
        }
        &.popu-banner {
            background-image: url("/assets/images/popularization_banner.png");
        }
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        h2 {
            color: white;
            font-size: 2.5em;
            margin: 40px;
            text-shadow: 0 0 6px #0003;
        }
    }
    .special-announcement {
        background-color: $yellow_2;
        .page-contents-center {
            padding: 0 20px;
            @include flex-center;
            height: 100px;
            p {
                color: $dark_3;
                font-size: 20px;
                font-weight: 600;
                margin: 0;
            }
        }
    }
    .section-contents {
        padding: 20px 40px 60px;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;
        height: auto;
        .full-row {
            grid-column: 1 / span 2;
        }
        .practical-infos {
            grid-column: 2;
            grid-row: 2;
            display: flex;
            flex-direction: column;
            gap: 40px;
            background-image: url("/assets/images/wallpaper_binary_light.png");
            padding: 30px;
            .info-item {
                display: flex;
                flex-direction: column;
                background-color: white;
                padding: 20px;
                strong {
                    margin-bottom: 10px;
                    white-space: nowrap;
                }
                span,
                a {
                    font-size: 14px;
                }
            }
        }
        .list-wrapper {
            grid-column: 1;
            grid-row: 2;
            ul.learning-themes {
                display: flex;
                gap: 20px 30px;
                flex-wrap: wrap;
                li.learning-theme {
                    position: relative;
                    border: solid $light_0;
                    border-width: 0 2px 2px 0;
                    display: flex;
                    flex-direction: column;
                    .title {
                        color: $medium_grey;
                        display: block;
                        position: absolute;
                        background-color: #fffa;
                        padding: 3px 10px;
                        width: 100%;
                    }
                    img {
                        width: 100%;
                        height: auto;
                        image-rendering: pixelated;
                        image-rendering: -moz-crisp-edges;
                        image-rendering: crisp-edges;
                    }
                    .details {
                        background-color: #fffe;
                        position: absolute;
                        top: 25px;
                        left: 25px;
                        width: 300px;
                        height: auto;
                        max-height: 0;
                        visibility: hidden;
                        z-index: 1;
                        transition: max-height 0.6s;
                        padding: 20px;
                        border: solid $light_0;
                        border-width: 0 1px 1px 0;
                        overflow: hidden;
                        display: flex;
                        flex-direction: column;
                        gap: 10px;
                        .comment {
                            font-style: italic;
                            * {
                                color: $medium_grey;
                            }
                        }
                        ul {
                            list-style-type: disc;
                            font-size: 14px;
                            margin-left: 10px;
                            li {
                                color: $medium_grey;
                            }
                        }
                    }
                    &:hover {
                        .details {
                            max-height: 1000px;
                            visibility: visible;
                        }
                    }
                }
            }
        }

        .infos-inscriptions {
            display: flex;
            gap: 40px;
            background-image: url("/assets/images/wallpaper_binary_light.png");
            padding: 30px;
            .groups,
            .pricing {
                background-color: white;
                padding: 20px;
                display: flex;
                flex-direction: column;
                h3 {
                    margin: 0;
                }
                .table-wrapper {
                    table {
                        border: 1px solid #dde;
                        border-collapse: collapse;
                        td {
                            border: 1px solid #dde;
                            padding: 10px 20px;
                        }
                    }
                }
                .download-link {
                    border: 1px solid;
                    padding: 10px;
                    display: inline-block;
                    margin: 10px 0 0;
                }
            }
        }
    }
    @media screen and (max-width: $screen_l) {
        .section-contents {
            .list-wrapper {
                ul.learning-themes {
                    display: block;
                    li.learning-theme {
                        width: 100%;
                        margin-bottom: 20px;
                        .details {
                            background-color: #fff9;
                            position: relative;
                            top: unset;
                            width: 100%;
                            left: unset;
                            max-height: unset;
                            visibility: visible;
                            padding: 10px;
                            box-shadow: none;
                            ul {
                                list-style-type: disc;
                                font-size: 14px;
                                margin-left: 10px;
                            }
                        }
                    }
                }
            }

            .infos-inscriptions {
                flex-direction: column;
            }
        }
    }

    @media screen and (max-width: $screen_s) {
        h3 {
            &.big {
                font-size: 22px;
            }
        }
        .title-banner {
            height: 170px;
            min-height: unset;
            h2 {
                font-size: 2em;
                margin: 20px;
                text-shadow: 0 0 4px #000b;
            }
        }
        .section-contents {
            padding: 20px 10px 40px;
            grid-template-columns: 1fr;
            .full-row {
                grid-column: 1;
            }
            .practical-infos {
                grid-column: 1;
                grid-row: 3;
                gap: 10px;
                padding: 10px;
            }
            .list-wrapper {
                ul.learning-themes {
                    grid-column: 1;
                    grid-row: 2;
                    display: block;
                    li.learning-theme {
                        margin-bottom: 20px;
                        .details {
                            background-color: #fff9;
                            position: relative;
                            top: unset;
                            width: 100%;
                            left: unset;
                            max-height: unset;
                            visibility: visible;
                            padding: 10px;
                            box-shadow: none;
                        }
                    }
                }
            }

            .infos-inscriptions {
                gap: 10px;
                padding: 10px;
                .groups,
                .pricing {
                    background-color: white;
                    padding: 20px;
                    display: flex;
                    flex-direction: column;
                    .table-wrapper {
                        table {
                            width: 100%;
                            td {
                                border: 1px solid #dde;
                                padding: 10px;
                            }
                        }
                    }
                }
            }
        }
    }
}