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
article-view.scss 6.27 KiB
Newer Older
#article-view-container {
    position: relative;

    article {
        &.game-article {
            background-color: black;

            #article-banner {
                width: 100%;
                height: 500px;
                background-size: cover;
                background-position: center center;
                image-rendering: pixelated;
                image-rendering: -moz-crisp-edges;
                image-rendering: crisp-edges;
                position: relative;

                #header-text-container {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
                    padding: 50px;
                    display: flex;
                    flex-direction: column;
                    justify-content: flex-end;

                    .header-text {
                        color: #ffffffbb;
                        margin: 0;

                        &.h1 {
                            font-size: 100px;
                            margin: 0;
                        }

                        &.h2 {
                            font-style: italic;
                            margin: 0 0 0 150px;
                            font-size: 32px;
                            max-width: 50%;
                        }
                    }

                    .play-button {
                        position: absolute;
                        right: 40px;
                        bottom: 10px;
                        padding: 20px 40px;
                        border: 1px solid;
                        border-radius: 10px;
                        background-color: unset;
                        font-weight: bold;
                        font-size: 20px;
                        cursor: pointer;
                        color: $blue_2;

                        &:hover {
                            color: $blue_3;
                        }
                    }
                }
            }

            #article-contents {
                padding: 40px;

                #article-body {
                    display: grid;
                    grid-template-columns: 1fr auto;
                    gap: 20px;

                    p {
                        margin: 0;
                        color: $light_1;
                        font-size: 20px;
                        font-weight: 600;
                        text-align: justify;
                    }

                    iframe {
                        width: 400px;
                        height: 250px;
                    }
                }

                .image-carousel {
                    width: 100%;
                    height: 600px;
                }

                .article-details {
                    margin-top: 80px;

                    .details-list {
                        * {
                            color: $light_1;
                        }

                        .detail {
                            display: grid;
                            grid-template-columns: 1fr auto;
                            border-bottom: 1px solid #fff5;
                            padding: 5px 0;

                            label {
                                font-weight: bold;
                            }
                        }
                    }
                }
            }

            @media screen and (max-width:1000px) {
                #article-contents {
                    max-width: 100%;

                    #article-body {
                        grid-template-columns: 1fr;

                        iframe {
                            width: 100%;
                            height: 400px;
                        }
                    }


                }
            }

            @media screen and (max-width:850px) {
                #article-banner {
                    height: 350px;

                    #header-text-container {
                        padding: 20px;

                        .header-text {

                            &.h1 {
                                font-size: 60px;
                            }

                            &.h2 {
                                margin: 0 0 0 50px;
                                font-size: 25px;
                            }
                        }

                        .play-button {
                            bottom: unset;
                            top: 10px;
                            right: 20px;
                            background-color: #0005;
                        }
                    }
                }

                #article-contents {
                    padding: 20px;

                    #article-body {
                        iframe {
                            height: 300px;
                        }
                    }

                    .image-carousel {
                        height: 300px;
                    }

                    .article-details {
                        margin-top: 40px;
                    }
                }
            }

            @media screen and (max-width:750px) {
                #article-banner {
                    height: 250px;

                    #header-text-container {
                        .header-text {
                            &.h1 {
                                font-size: 40px;
                            }

                            &.h2 {
                                font-style: italic;
                                margin: 0;
                                font-size: 20px;
                            }
                        }

                        .play-button {
                            // TODO handle cases where game can be played on a mobile device
                            display: none;
                        }
                    }
                }

                #article-contents {
                    #article-body {
                        p {
                            font-size: initial;
                        }

                        iframe {
                            height: 250px;
                        }
                    }

                    .image-carousel {
                        height: 250px;
                    }