aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/imageEditor/ImageEditor.scss
blob: 942a7d4c6347b65510ab46d5adbd998fb4fe1961 (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
$navHeight: 5rem;
$canvasSize: 1024px;
$scale: 0.5;

.imageEditorContainer {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 9999;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    .imageEditorTopBar {
        flex-shrink: 0;
        height: $navHeight;
        color: #000000;
        background-color: #ffffff;
        z-index: 999;
        width: 100%;
        display: flex;
        gap: 3rem;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #c7cdd0;
        padding: 0 2rem;

        .imageEditorControls {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        h1 {
            font-size: 1.5rem;
        }
    }

    .drawingArea {
        cursor: none;
        touch-action: none;
        position: relative;
        flex-grow: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        background-color: #f0f4f6;

        canvas {
            display: block;
            position: absolute;
            transform-origin: 50% 50%;
        }

        .pointer {
            pointer-events: none;
            position: absolute;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            border: 1px solid #ffffff;
            transform: translate(-50%, -50%);
            display: flex;
            justify-content: center;
            align-items: center;

            .innerPointer {
                width: 100%;
                height: 100%;
                border: 1px solid #000000;
                border-radius: 50%;
            }
        }

        .sideControlsContainer {
            width: 160px;
            position: absolute;
            left: 0px;
            height: 100%;

            .sideControls {
                position: absolute;
                width: 120px;
                top: 3rem;
                left: 2rem;
                display: flex;
                flex-direction: column;
                gap: 1rem;

                .imageToolsContainer {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                }

                .cutToolsContainer {
                    display: grid;
                    gap: 5px;
                    grid-template-columns: 1fr 1fr;
                }

                .undoRedoContainer {
                    justify-content: center;
                    display: flex;
                    flex-direction: row;
                }

                .sliderContainer {
                    margin: 3rem 0;
                    height: 225px;
                    width: 100%;
                    display: flex;
                    justify-content: center;
                    cursor: pointer;
                }
            }
        }

        .editsBox {
            position: absolute;
            top: 2rem;
            right: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;

            .originalImageLabel {
                position: absolute;
                bottom: 10px;
                left: 10px;
                color: #ffffff;
                font-size: 0.8rem;
                letter-spacing: 1px;
                text-transform: uppercase;
            }

            img {
                cursor: pointer;
                transition: all 0.2s ease-in-out;
                &:hover {
                    opacity: 0.8;
                }
            }
        }
    }
}