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 7.83 KiB
Newer Older
peter_rabbit's avatar
peter_rabbit committed
#education-page {
    h1 {
        margin: 15px 40px 0;
        font-size: 25px;
    }
    h3 {
        &.big {
            font-size: 30px;
        }
    }
peter_rabbit's avatar
peter_rabbit committed
    .edu-philo {
        margin: 15px 40px 15px 100px;
        max-width: 800px;
        font-style: italic;
    }
    .title-banner {
        display: flex;
        justify-content: flex-end;
        flex-direction: column;
        height: 15vw;
        min-height: 250px;
        &.game-banner {
            background-image: url("../../../assets/images/game_studio_banner.png");
        }
        &.popu-banner {
            background-image: url("../../../assets/images/popularization_banner.png");
        }
peter_rabbit's avatar
peter_rabbit committed
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
peter_rabbit's avatar
peter_rabbit committed
        h2 {
            color: white;
            font-size: 2.5em;
            margin: 40px;
            text-shadow: 0 0 6px #0003;
peter_rabbit's avatar
peter_rabbit committed
        }
    }
    .section-contents {
        margin: 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;
peter_rabbit's avatar
peter_rabbit committed
            background-color: $light_0;
            padding: 30px;
peter_rabbit's avatar
peter_rabbit committed
            .info-item {
                display: flex;
                flex-direction: column;
                background-color: white;
                padding: 20px;
                strong {
                    margin-bottom: 10px;
                }
                span,
                a {
                    font-size: 14px;
                }
            }
        }
        ul.learning-themes {
            grid-column: 1;
            grid-row: 2;
            display: flex;
            gap: 20px 30px;
peter_rabbit's avatar
peter_rabbit committed
            flex-wrap: wrap;
            li.learning-theme {
                position: relative;
peter_rabbit's avatar
peter_rabbit committed
                border: solid $light_0;
                border-width: 0 2px 2px 0;
                display: flex;
                flex-direction: column;
                    color: $dark_2;
                    display: block;
                    position: absolute;
peter_rabbit's avatar
peter_rabbit committed
                    background-color: #fff9;
                    padding: 5px 25px;
                }
                img {
                    width: 100%;
                    height: auto;
peter_rabbit's avatar
peter_rabbit committed
                    background-color: #fffe;
                    position: absolute;
peter_rabbit's avatar
peter_rabbit committed
                    top: 25px;
                    left: 25px;
                    width: 300px;
                    height: auto;
                    max-height: 0;
                    visibility: hidden;
                    z-index: 1;
                    transition: max-height 0.6s;
                    padding: 20px;
peter_rabbit's avatar
peter_rabbit committed
                    border: solid $light_0;
                    border-width: 0 1px 1px 0;
peter_rabbit's avatar
peter_rabbit committed
                    overflow: hidden;
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
peter_rabbit's avatar
peter_rabbit committed
                    .comment {
                        font-style: italic;
peter_rabbit's avatar
peter_rabbit committed
                    }
                    ul {
                        list-style-type: disc;
                        font-size: 14px;
                        margin-left: 10px;
                    }
                }
                &:hover {
                    .details {
                        max-height: 1000px;
                        visibility: visible;
peter_rabbit's avatar
peter_rabbit committed
                    }
                }
            }
        }

        .infos-inscriptions {
            display: flex;
            gap: 40px;
peter_rabbit's avatar
peter_rabbit committed
            background-color: $light_0;
            padding: 30px;
peter_rabbit's avatar
peter_rabbit committed
            .groups,
            .pricing {
peter_rabbit's avatar
peter_rabbit committed
                background-color: white;
peter_rabbit's avatar
peter_rabbit committed
                padding: 20px;
                display: flex;
                flex-direction: column;
                h3 {
peter_rabbit's avatar
peter_rabbit committed
                    margin: 0;
peter_rabbit's avatar
peter_rabbit committed
                }
                .table-wrapper {
                    table {
                        border: 1px solid #dde;
                        border-collapse: collapse;
                        td {
                            border: 1px solid #dde;
                            padding: 10px 20px;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width: $screen_l) {
        .section-contents {
            ul.learning-themes {
                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;
                        .comment {
                            font-style: italic;
                        }
                        ul {
                            list-style-type: disc;
                            font-size: 14px;
                            margin-left: 10px;
                            li {
                                color: $dark_3;
                            }
                        }
                    }
                }
            }
        }
    }

    @media screen and (max-width: $screen_s) {
        h1 {
            margin: 15px 20px 0;
            font-size: 25px;
        }
        h3 {
            &.big {
                font-size: 22px;
            }
        }
        .edu-philo {
            margin: 15px;
            max-width: unset;
        }
        .title-banner {
            height: 170px;
            min-height: unset;
            h2 {
                font-size: 2em;
                margin: 20px;
                text-shadow: 0 0 4px #000b;
            }
        }
        .section-contents {
            margin: 20px 10px 40px;
            grid-template-columns: 1fr;
            .full-row {
                grid-column: 1;
            }
            .practical-infos {
                grid-column: 1;
                grid-row: 3;
                gap: 10px;
                padding: 10px;
            }
            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;
                        ul {
                            li {
                                color: $dark_3;
                            }
                        }
                    }
                }
            }

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