summaryrefslogtreecommitdiff
path: root/css/codeq/hint.css
blob: 4f460439f0702fa1846ae9baad13eadd6710aee4 (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
a.hint-static-link {
    cursor: pointer;
}

.hint-static img {
    max-width: 80%;
    /* center img trick */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hints > div {
    border: 1px solid gray;
    border-radius: 4px;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    opacity: 0.8;
    padding: 0.5em;
}

.hints > div:first-child {
    border: 2px solid black;
    opacity: 1;
}

.hints > div:hover {
    opacity: 1;
}

.popup-hint > :last-child {
    margin-bottom: 0;
}

/* the highlighted part of the text, used in pop-up and drop-down hints */
.editor-mark {
    background-color: #e7c3c3;
}

.editor-mark.insert {
    background-color: #a0d850; /* fallback if gradients are not supported */
    background: linear-gradient(to right, #a0d850, transparent);
    border-bottom: 1px solid #70a820;
    border-left: 1px solid #70a820;
}

.editor-mark.remove {
    background-color: #ffbb99;
    border-bottom: 1px solid #cf8b69;
}

.editor-mark.change {
    background-color: #f4dd32;
    border-bottom: 1px solid #c4ad02;
}