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
style.scss 7.96 KiB
Newer Older
@import "./theme.scss";

peter_rabbit's avatar
peter_rabbit committed
body {
peter_rabbit's avatar
peter_rabbit committed
    * {
        box-sizing: border-box;
        color: $dark_1;
peter_rabbit's avatar
peter_rabbit committed
        line-height: 1.3em;;
peter_rabbit's avatar
peter_rabbit committed
    }
    font-family: Arial, Helvetica, sans-serif;
peter_rabbit's avatar
peter_rabbit committed
    margin: 0;
    ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }
    a {
        color: $blue_2;
        text-decoration: none;
        &:hover {
            color: $blue_3;
        }
    }

    blue {
        color: $blue_2;
    }
peter_rabbit's avatar
peter_rabbit committed

    .grid-3 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .bg-blue {
        background-color: $blue_2;
        color: white;
peter_rabbit's avatar
peter_rabbit committed
    }
peter_rabbit's avatar
peter_rabbit committed
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
peter_rabbit's avatar
peter_rabbit committed

    .warning-banner {
        background: url("/assets/images/wallpaper_warning.svg");
        width: 100%;
        height: 40px;
        padding: 20px 10%;
        @include flex-center;
        strong {
            font-size: 18px;
            color: $blue_1;
        }
    }

    .image-carousel {
        overflow: hidden;
        @include flex-center;
        background-color: black;
        position: relative;
        img {
            position: absolute;
            max-width: 100%;
            max-height: 400px;
        }
        .carousel-bullets {
            position: absolute;
            bottom: 0;
            padding: 20px;
            display: flex;
            gap: 10px;
            .bullet {
                cursor: pointer;
                width: 8px;
                height: 8px;
                background-color: $medium_grey;
                border-radius: 100%;
                box-shadow: 0 0 3px black;
                &.active {
                    background-color: $light_0;
                }
            }
        }
        @media screen and (max-width: $screen_l) {
            img {
                max-height: 100%;
            }
            .carousel-bullets {
                gap: 15px;
                .bullet {
                    width: 12px;
                    height: 12px;
                }
            }
        }
    }

    header {
        width: 100%;
        nav {
            display: flex;
            align-items: center;
            height: $navbar_height;
            .home {
                margin: 0 10px;
peter_rabbit's avatar
peter_rabbit committed
                a {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    img {
                        height: 40px;
                        width: auto;
                    }
                    img.logo-text {
                        width: 120px;
                        height: auto;
                    }
            ul {
                display: flex;
                padding: 0;
                margin: 0;
                list-style-type: none;
peter_rabbit's avatar
peter_rabbit committed
                height: 100%;
                li {
peter_rabbit's avatar
peter_rabbit committed
                    position: relative;
                    a {
                        display: flex;
peter_rabbit's avatar
peter_rabbit committed
                        align-items: center;
                        height: 100%;
                        padding: 10px 20px;
peter_rabbit's avatar
peter_rabbit committed
                        color: $light_1;
                        font-weight: 800;
                        text-decoration: none;
                    }
peter_rabbit's avatar
peter_rabbit committed

                    .submenu {
                        visibility: hidden;
peter_rabbit's avatar
peter_rabbit committed
                        overflow: hidden;
peter_rabbit's avatar
peter_rabbit committed
                        position: absolute;
                        height: auto;
                        max-height: 0;
                        transition: max-height 0.6s;
peter_rabbit's avatar
peter_rabbit committed
                        top: 100%;
                        left: 50%;
                        flex-direction: column;
peter_rabbit's avatar
peter_rabbit committed
                        background-color: white;
peter_rabbit's avatar
peter_rabbit committed
                        white-space: nowrap;
                    }
                    &.active {
                        a {
peter_rabbit's avatar
peter_rabbit committed
                            color: $dark_2;
peter_rabbit's avatar
peter_rabbit committed
                            border-bottom: 3px solid;
peter_rabbit's avatar
peter_rabbit committed
                    &:hover {
peter_rabbit's avatar
peter_rabbit committed
                            color: $dark_2;
peter_rabbit's avatar
peter_rabbit committed
                        .submenu {
                            visibility: unset;
                            max-height: 1000px;
peter_rabbit's avatar
peter_rabbit committed
                            a {
peter_rabbit's avatar
peter_rabbit committed
                                color: $light_1;
                                border: none;
peter_rabbit's avatar
peter_rabbit committed
                            }
                            li {
                                &:hover {
                                    a {
peter_rabbit's avatar
peter_rabbit committed
                                        color: $dark_2;
peter_rabbit's avatar
peter_rabbit committed
                                    }
                                }
                            }
peter_rabbit's avatar
peter_rabbit committed
                        }
                    }
            .burger {
                display: none;
            }
            @media screen and (max-width: $screen_s) {
                justify-content: space-between;
                .burger {
peter_rabbit's avatar
peter_rabbit committed
                    @include flex-center-col;
                    font-weight: bold;
                    border: 1px solid;
                    margin: 0 20px;
                    cursor: pointer;
                    border-radius: 100%;
peter_rabbit's avatar
peter_rabbit committed
                    width: 35px;
                    height: 35px;
peter_rabbit's avatar
peter_rabbit committed
                    font-size: 25px;
                }
                ul {
                    display: none;
                    &.responsive-show {
                        display: flex;
peter_rabbit's avatar
peter_rabbit committed
                        flex-direction: column;
                        position: absolute;
                        right: 0;
                        max-width: 100vw;
                        min-width: 50vw;
                        top: $navbar_height;
                        background-color: white;
                        box-shadow: 0 4px 6px 2px #0000000a;
peter_rabbit's avatar
peter_rabbit committed
                        height: unset;
                        li {
                            &.active {
                                a {
                                    border: none;
                                }
                            }
                            .submenu {
                                display: flex;
                                visibility: visible;
                                position: relative;
                                height: unset;
                                max-height: unset;
                                transition: max-height 0.6s;
                                top: unset;
                                left: unset;
                                li {
                                    a {
                                        font-weight: 400;
peter_rabbit's avatar
peter_rabbit committed
                                        font-size: 14px;
        }
    }
    #page-container {
        width: 100%;
        flex: 1;
peter_rabbit's avatar
peter_rabbit committed
        .page-header {
peter_rabbit's avatar
peter_rabbit committed
            @include page-header;
        }
peter_rabbit's avatar
peter_rabbit committed
        .page-philo {
            @include page-philo;
        }
peter_rabbit's avatar
peter_rabbit committed
        .page-contents-center {
            @include page-contents-center;
peter_rabbit's avatar
peter_rabbit committed
        }
peter_rabbit's avatar
peter_rabbit committed
        .project-status {
            @include project-status
        }
peter_rabbit's avatar
peter_rabbit committed
        @import "./homepage.scss";
peter_rabbit's avatar
peter_rabbit committed
        @import "./pages/education/education.scss";
peter_rabbit's avatar
peter_rabbit committed
        @import "./pages/games/games.scss";
peter_rabbit's avatar
peter_rabbit committed
        @import "./pages/software-development/software-development.scss";
    }
    footer {
peter_rabbit's avatar
peter_rabbit committed
        @include flex-center-col;
        width: 100%;
peter_rabbit's avatar
peter_rabbit committed
        background-image: url("/assets/images/wallpaper_binary.png");
peter_rabbit's avatar
peter_rabbit committed
        padding: 40px 20px;
peter_rabbit's avatar
peter_rabbit committed
        gap: 20px;
        font-size: 12px;
        span {
            color: $light_1;
peter_rabbit's avatar
peter_rabbit committed
            text-align: center;
peter_rabbit's avatar
peter_rabbit committed
        }
        .logo {
peter_rabbit's avatar
peter_rabbit committed
            @include flex-center;
peter_rabbit's avatar
peter_rabbit committed
            gap: 10px;
            img {
                width: 35px;
                &.text-logo {
                    width: 100px;
                }
            }
        }
peter_rabbit's avatar
peter_rabbit committed
}