aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/WebBox.scss
blob: cdeac4bd1c7d1de721814158c504ca6bc104fcad (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
@import "../globalCssVariables.scss";


.webBox-container, .webBox-container-dragging {
    transform-origin: top left;
    .webBox-outerContent {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        overflow: auto;
        .webBox-innerContent { 
            width:100%;
        }
    }
    div.webBox-outerContent::-webkit-scrollbar-thumb {
        display:none;
    }
}
.webBox-cont {
    padding: 0vw;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: top left;
    overflow: auto;
    pointer-events: none;
}

.webBox-cont-interactive {
    span {
        user-select: text !important;
    }
}

#webBox-htmlSpan {
    position: absolute;
    top: 0;
    left: 0;
}

.webBox-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
}

.webBox-button {
    padding: 0vw;
    border: none;
    width: 100%;
    height: 100%;
}

.webBox-urlEditor {
    position: relative;
    opacity: 0.9;
    z-index: 9001;
    transition: top .5s;
    background: lightgrey;
    padding: 10px;


    .urlEditor {
        display: grid;
        grid-template-columns: 1fr auto;
        padding-bottom: 10px;
        overflow: hidden;

        .webBox-freeze {
            display: flex;
            align-items: center; 
            justify-content: center;
        }

        .editorBase {
            display: flex;

            .editor-collapse {
                transition: all .5s, opacity 0.3s;
                position: absolute;
                width: 40px;
                transform-origin: top left;
            }

            .switchToText {
                color: $main-accent;
            }

            .switchToText:hover {
                color: $dark-color;
            }
        }

        button:hover {
            transform: scale(1);
        }
    }
}

.webpage-urlInput {
    padding: 12px 10px 11px 10px;
    border: 0px;
    color: grey;
    letter-spacing: 2px;
    outline-color: black;
    background: rgb(238, 238, 238);
    width: 100%;
    margin-right: 10px;
    height: 100%;
}

.touch-iframe-overlay {
    width: 100%;
    height: 100%;
    position: absolute;

    .indicator {
        position: absolute;

        &.active {
            background-color: rgba(0, 0, 0, 0.1);
        }
    }
}