aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview/PresElementBox.scss
blob: dbe6b0d4f34ce51305c26240960bc8df077649e9 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
.presElementBox-item {
    display: inline-block;
    background-color: #eeeeee;
    pointer-events: all;
    width: 100%;
    height: 100%;
    outline-color: maroon;
    outline-style: dashed;
    border-radius: 6px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all .1s;
    padding: 0px;
    padding-bottom: 3px;

    .documentView-node {
        position: absolute;
        z-index: 1;
    }
}

.presElementBox-item-above {
    border-top: black 2px solid;
}

.presElementBox-item-below {
    border-bottom: black 2px solid;
}

.presElementBox-item:hover {
    transition: all .1s;
    background: #AAAAAA;
    border-radius: 6px;
}

.presElementBox-active {
    background: gray;
    color: black;
    border-radius: 6px;
    box-shadow: black 2px 2px 5px;
}

.presElementBox-closeIcon {
    border-radius: 20px;
    transform: scale(0.7);
    position: absolute;
    right: 0;
    top: 0;
    padding: 8px;
}


.presElementBox-buttons {
    display: flow-root;
    position: relative;
    width: 100%;
    height: auto;

    .presElementBox-interaction {
        color: gray;
        float: left;
        padding: 0px;
        width: 20px;
        height: 20px;
    }

    .presElementBox-interaction-selected {
        color: white;
        float: left;
        padding: 0px;
        width: 20px;
        height: 20px;
        border: solid 1px darkgray;
    }
}

.presElementBox-name {
    font-size: 12px;
    position: absolute;
    display: inline-block;
    width: calc(100% - 45px);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: pre;
}

.presElementBox-embedded {
    position: relative;
    display: flex;
    width: auto;
    justify-content: center;
    margin: auto;
}

.presElementBox-embeddedMask {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: transparent;
    z-index: 2;
}

@media only screen and (max-device-width: 480px) {
    .presElementBox-buttons {
        display: inline-flex;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 3;
        width: 50%;

        .presElementBox-interaction {
            width: 50;
            height: 50;
        }

        .presElementBox-interaction-selected {
            width: 50;
            height: 50;
        }
    }

    .presElementBox-item {
        display: inline-flex;
        overflow: hidden;
    }

    .presElementBox-closeIcon {
        transform: scale(1.5);
        right: 10;
        top: 10;
    }

    .presElementBox-name {
        font-size: 30px;
        top: 10px;
        z-index: 3;
        width: 50%;
    }

    .presElementBox-embedded {
        transform: translate(0, 90px) scale(1.5);
    }
}