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.59 KiB
Newer Older
  • Learn to ignore specific revisions
  • 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;
                    }
                }
            }
    
    peter_rabbit's avatar
    peter_rabbit committed
            .list-wrapper {
    
    peter_rabbit's avatar
    peter_rabbit committed
                grid-column: 1;
                grid-row: 2;
    
    peter_rabbit's avatar
    peter_rabbit committed
                ul.learning-themes {
    
    peter_rabbit's avatar
    peter_rabbit committed
                    gap: 20px 30px;
                    flex-wrap: wrap;
                    li.learning-theme {
                        position: relative;
    
    peter_rabbit's avatar
    peter_rabbit committed
                        border: solid $light_0;
    
    peter_rabbit's avatar
    peter_rabbit committed
                        border-width: 0 2px 2px 0;
    
    peter_rabbit's avatar
    peter_rabbit committed
                        display: flex;
    
                        flex-direction: column;
    
    peter_rabbit's avatar
    peter_rabbit committed
                        .title {
                            color: $dark_2;
                            display: block;
                            position: absolute;
                            background-color: #fff9;
                            padding: 5px 25px;
    
    peter_rabbit's avatar
    peter_rabbit committed
                        img {
                            width: 100%;
                            height: auto;
                            image-rendering: pixelated;
                            image-rendering: -moz-crisp-edges;
                            image-rendering: crisp-edges;
    
    peter_rabbit's avatar
    peter_rabbit committed
                            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;
                            }
    
    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;
                            }
                        }
                    }
    
    peter_rabbit's avatar
    peter_rabbit committed
                    .download-link {
                        border: 1px solid;
                        padding: 10px;
                        display: inline-block;
                        margin: 10px 0 0;
                    }
    
        @media screen and (max-width: $screen_l) {
            .section-contents {
    
    peter_rabbit's avatar
    peter_rabbit committed
                .list-wrapper {
                    ul.learning-themes {
                        display: block;
                        li.learning-theme {
    
    peter_rabbit's avatar
    peter_rabbit committed
                            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;
    
    peter_rabbit's avatar
    peter_rabbit committed
    
                .infos-inscriptions {
                    flex-direction: column;
                }
    
            }
        }
    
        @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;
                }
    
    peter_rabbit's avatar
    peter_rabbit committed
                .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;
                                }
                            }
                        }
                    }
                }
            }
        }