aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DiagramBox.scss
blob: df1a3276f91927a769a45e6f7e23de20b1e69623 (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
.DIYNodeBox {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;

    .DIYNodeBox {
        /* existing code */

        .DIYNodeBox-iframe {
            height: 100%;
            width: 100%;
            border: none;
        }
    }

    .DIYNodeBox-searchbar {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 10px;

        input[type='text'] {
            flex: 1;
            margin-right: 10px;
        }

        button {
            padding: 5px 10px;
        }
    }

    .DIYNodeBox-content {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        .diagramBox {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            svg {
                flex: 1;
                display: flex;
                justify-content: center;
                align-items: center;
                width: 100%;
                height: 100%;
            }
        }
    }

    .loading-circle {
        position: relative;
        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);
        }
    }
}