aboutsummaryrefslogtreecommitdiff
path: root/src/scss/landscape-warning.scss
blob: 443102acc5448b2542f6be98a365acf261df2034 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.landscape-warning {
    display: none;
    position: absolute;
    z-index: 9999999;
    width: 100%;
    height: 100%;
    padding-top: 50%;
    background-color: $background-base;
    text-align: center;

    &-content {
        position: relative;
        top: -50px;
    }

    i { font-size: 5em; }

    h1 {
        font-size: 1em;
        margin: 10px;
    }

    button {
        border: none;
        background-color: $background-z1;
        color: $foreground-z1;
        padding: 10px;
        width: 140px;
        height: 40px;
    }

    .ignore-landscape-warning & { display: none !important; }
}

@media screen and (orientation:portrait) {
    .landscape-warning {
        display: block;
    }
}