aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/RichTextMenu.scss
blob: 7c747de1e9e2b99b31a595f8de1655e183e99f93 (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
@use '../../global/globalCssVariables.module.scss' as global;

.button-dropdown-wrapper {
    position: relative;
    display: flex;

    .dropdown-button {
        width: 15px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .dropdown-button-combined {
        width: 50px;
        display: flex;
        justify-content: space-between;

        svg:nth-child(2) {
            margin-top: 2px;
        }
    }

    .dropdown {
        position: absolute;
        top: 35px;
        left: 0px;
        background-color: #323232;
        color: global.$light-gray;
        border: 1px solid #4d4d4d;
        border-radius: 0 6px 6px 6px;
        box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.25);
        min-width: 150px;
        padding: 5px;
        font-size: 12px;
        z-index: 10001;

        button {
            background-color: #323232;
            border: 1px solid black;
            border-radius: 1px;
            padding: 6px;
            margin: 5px 0;
            font-size: 10px;

            &:hover {
                background-color: black;
            }

            &:last-child {
                margin-bottom: 0px;
            }
        }
    }

    input {
        color: black;
    }
}

.richTextMenu {
    select {
        background-color: #323232;
        color: white;
        border: 1px solid black;
        // border-top: none;
        // border-bottom: none;
        font-size: 12px;
        height: 100%;
        margin-right: 3px;

        &:focus,
        &:hover {
            background-color: black;
        }

        &::-ms-expand {
            color: white;
        }
    }
    .richTextMenu-divider {
        margin: auto;
        border-left: solid #ffffff70 0.5px;
        height: 20px;
        width: 1px;
    }
}

.link-menu {
    .divider {
        background-color: white;
        height: 1px;
        width: 100%;
    }
}

.color-preview-button {
    .color-preview {
        width: 60%;
        top: 80%;
        position: absolute;
        height: 4px;
    }
}

.color-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    button.color-button {
        width: 20px;
        height: 20px;
        border-radius: 15px !important;
        margin: 3px;
        border: 2px solid transparent !important;
        padding: 3px;

        &.active {
            border: 2px solid white !important;
        }
    }
}

.row-2 {
    display: flex;
    justify-content: space-between;

    > div {
        display: flex;
    }
}