aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/FormattedTextBoxComment.scss
blob: 9089e703958c2d088cad9df982e82f9c43317d4f (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
.FormattedTextBox-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 20;
    background: white;
    border: 1px solid silver;
    border-radius: 2px;
    margin-bottom: 7px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.FormattedTextBox-tooltip:before {
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    left: 50%;
    margin-left: -5px;
    bottom: -6px;
    border: 5px solid transparent;
    border-bottom-width: 0;
    border-top-color: silver;
}

.FormattedTextBox-tooltip:after {
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    left: 50%;
    margin-left: -5px;
    bottom: -4.5px;
    border: 5px solid transparent;
    border-bottom-width: 0;
    border-top-color: white;
}

.FormattedTextBoxComment-buttons {
    display: none;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);

    .FormattedTextBoxComment-button {
        width: 20px;
        height: 20px;
        margin: 0;
        margin-right: 6px;
        border-radius: 50%;
        pointer-events: auto;
        background-color: rgb(38, 40, 41);
        color: rgb(178, 181, 184);
        font-size: 65%;
        transition: transform 0.2s;
        text-align: center;
        position: relative;

        // margin-top: "auto";
        //     margin-bottom: "auto";
        //     background: black;
        //     color: white;
        //     display: inline-block;
        //     border-radius: 18px;
        //     font-size: 12.5px;
        //     width: 18px;
        //     height: 18px;
        //     margin-top: auto;
        //     margin-bottom: auto;
        //     margin-right: 3px;
        //     cursor: pointer;
        //     transition: transform 0.2s;

        .FormattedTextBoxComment-fa-icon {
            margin-top: "auto";
            margin-bottom: "auto";
            background: black;
            color: white;
            display: inline-block;
            border-radius: 18px;
            font-size: 12.5px;
            width: 18px;
            height: 18px;
            margin-top: auto;
            margin-bottom: auto;
            margin-right: 3px;
            cursor: pointer;
            transition: transform 0.2s;
            // position: absolute;
            // top: 50%;
            // left: 50%;
            // transform: translate(-50%, -50%);
        }

        &:last-child {
            margin-right: 0;
        }

        &:hover {
            background: rgb(53, 146, 199);
            ;
        }
    }
}