aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DiagramBox.scss
blob: 4bfd4f7cbddf0d72120719b5d3c8a48ea70915d5 (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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
.DiagramBox {
    overflow:hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    .buttonCollections{
        display: flex;
        justify-content: center;
        flex-direction: column;
        height:100%;
        padding:20px;
        padding-right:40px;
        button{
            font-size:15px;
            height:100%;
            width:100%;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            background-color: #007bff;
            color: #fff;
            transition: background-color 0.3s ease;
        }
        button:hover {
            background-color: #0056b3;
        }
        
    }
    .DiagramBox-wrapper {
        overflow:hidden;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        .contentCode{
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction:row;
            padding:10px;
            width:100%;
            height:100%;
            .topbar{
                .backButtonDrawing{
                    padding: 5px 10px;
                    height:23px;
                    border-radius: 10px;
                    text-align: center;
                    padding:0;
                    width:50px;
                    font-size:10px;
                    position:absolute;
                    top:10px;
                    left:10px;
                }
                p{
                    margin-left:60px
                }
            }
            .search-bar {
                overflow:hidden;
                position:absolute;
                top:0;
                .backButton{
                    text-align: center;
                    padding:0;
                    width:50px;
                    font-size:10px;

                }
                .exampleButton{
                    width:100px;
                    height:30px;
                }
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                button {
                    padding: 5px 10px;
                    width:80px;
                    height:23px;
                    border-radius: 3px;
                }
            }
            .exampleButtonContainer{
                display:flex;
                flex-direction: column;
                position: absolute;
                top:37px;
                right:30px;
                width:50px;
                z-index: 200;
                button{
                    width:70px;
                    margin:2px;
                    padding:0px;
                    height:15px;
                    border-radius: 3px;
                }
            }
            textarea {
                position:relative;
                width:40%;
                height: 100%;
                height: calc(100% - 25px);
                top:15px;
                resize:none;
                overflow: hidden;
            }
            .diagramBox{
                flex: 1;
                display: flex;
                justify-content: center;
                align-items: center;
                svg{
                    position: relative;
                    top:25;
                    max-width: none !important;
                    height: calc(100% - 50px);
                }
            }
        }
        .content {
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding:10px;
            width:100%;
            height:100%;
            .topbar{
                .backButtonDrawing{
                    padding: 5px 10px;
                    height:23px;
                    border-radius: 10px;
                    text-align: center;
                    padding:0;
                    width:50px;
                    font-size:10px;
                    position:absolute;
                    top:10px;
                    left:10px;
                }
                p{
                    margin-left:60px
                }
            }
            .search-bar {
                overflow:hidden;
                position:absolute;
                top:0;
                .backButton{
                    text-align: center;
                    padding:0;
                    width:50px;
                    font-size:10px;

                }
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                width: 100%;
                textarea {
                    flex: 1;
                    height: 5px;
                    min-height: 20px;
                    resize:none;
                    overflow: hidden;
                }
                button {
                    padding: 5px 10px;
                    width:80px;
                    height:23px;
                    border-radius: 10px;
                }
                .rightButtons{
                    display:flex;
                    flex-direction: column;
                    button {
                        padding: 5px 10px;
                        width:80px;
                        height:23px;
                        margin:2;
                        border-radius: 10px;
                    }
                }
            }
            .loading-circle {
                position: absolute;
                display:flex;
                align-items: center;
                justify-content: center;
                width: 50px;
                height: 50px;
                border-radius: 50%;
                border: 3px solid #ccc;
                border-top-color: #333;
                animation: spin 1s infinite linear;
            }
            @keyframes spin {
                0% {
                    transform: rotate(0deg);
                }
                100% {
                    transform: rotate(360deg);
                }
            }
            .diagramBox{
                flex: 1;
                display: flex;
                justify-content: center;
                align-items: center;
                svg{
                    position: relative;
                    top:25;
                    max-width: none !important;
                    height: calc(100% - 50px);
                }
            }
        }
    }
}