aboutsummaryrefslogtreecommitdiff
path: root/src/components/editors/scss/address-editor.scss
blob: 50db4a9489b3fb673bffa8742a9e3ea378d5ab1d (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
/* OpenBills-web - Web based libre billing software
 * Copyright (C) 2022  Vidhu Kant Sharma <vidhukant@vidhukant.xyz>

 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

@import "colors";
@import "editor";

.address-editor {
    min-height: 18rem;
    position: relative;

    .heading {
      font-size: 1.1rem;
      color: $primaryAccentColor;
      font-weight: bold;
      align: center;
    }

    .remove-button {
        opacity: 0;
        position: absolute;
        font-size: 2rem;
        top: 0.8rem;
        right: 1rem;
        color: $secondaryAccentColor;
        transition: opacity 0.2s, color 0.3s;
    }

    .remove-button:hover {
        color: $warningColor;
    }

    .checkbox-label {
        border: none;
        max-width: none;
        justify-content: left;
        input {
            display: inline;
            width: 1.4rem;
        }
    }

    .labels-wrapper {
        @include label;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;

        div {
            width: 50%;
            max-width: 20rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            input, textarea {
                width: 100%;
                max-width: none;
                margin-top: 0.2rem;
            }
            textarea {
                min-height: 6rem;
                max-height: 6rem;
                resize: none;
            }
        }
    }
}

.address-editor:hover .remove-button {
    opacity: 1;
}