aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/frontend/src/main/components/pageSummary/pageSummary.scss
blob: aaa897a827daf38a10afc86c4da905e09d2e7fff (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@import "src/main/scss/index.scss";

.page-summary {
    background: $white;
    border: 1px solid $grey-border;
    position: fixed;
    top: 25%;
    max-height: 70vh;
    right: -2px;
    width: 250px;
    z-index: 8;
    transition: width .2s;

    &.hidden {
        width: 3em;
        writing-mode: vertical-rl;
        text-orientation: mixed;

        .content-wrapper {
            h4 {
                margin: 0;
                padding: 8px;
            }
        }
    }

    .content-wrapper {
        padding: 0.5em 0 1em 0;
        letter-spacing: 0.2px;

        h4 {
            margin: 0 2em;
            font-weight: 600;
        }

        ul {
            list-style-type: none;
            width: 100%;
            padding: 0;
            margin: 1em 0;
            overflow-x: hidden;
            overflow-y: auto;
            max-height: 60vh;

            li {
                width: 100%;
                padding: 4px 0;

                &:hover {
                    background: $list-background-hover;
                }

                &>a {
                    margin: 0 2em;
                    cursor: pointer;
                }

                &.selected {
                    border-left: 4px solid $hover-link-color;
                }
            }
        }
    }
}

@media screen and (max-width: 759px){
    /* hide it on smaller screens since it looks super weird when displayed with hidden menu */
    .page-summary {
        display: none;
    }
}