/
tag.scss
73 lines (62 loc) · 1.7 KB
/
tag.scss
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
.reporter-tag {
border-radius: 4px;
color: $gray-100;
display: inline-block;
font-family: $monospace;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 18px;
height: 18px;
max-width: 200px;
overflow: hidden;
padding: 0 4px;
text-overflow: ellipsis;
vertical-align: text-top;
white-space: nowrap;
}
.reporter-tag.reporter-tag-content {
&.route, // alias for xhr stubs/spies through cy.intercept() & cy.route()
&.agent, // alias for spies/stubs through cy.spy() and cy.stub()
&.primitive { // default
background-color: $purple-500;
}
&.dom { // alias for dom reference
background-color: $indigo-500;
}
&.count { // num of children or num of element tag
background-color: rgba($gray-600, .25);
}
&.successful-status {
background-color: $gray-1000;
border: $gray-900 1px solid;
color: $jade-300;
}
&.warned-status {
background-color: $gray-1000;
border: $gray-900 1px solid;
color: $warn-text;
}
&.failed-status {
background-color: $red-500;
}
&.reporter-tag-has-count {
border-radius: 4px 0 0 4px;
padding: 0 2px 0 4px;
}
}
.reporter-tag.reporter-tag-count {
border-radius: 0 4px 4px 0;
&.route, // alias for xhr stubs/spies through cy.intercept() & cy.route()
&.agent, // alias for spies/stubs through cy.spy() and cy.stub()
&.primitive { // default
background-color: $purple-400;
}
&.dom { // alias for dom reference
background-color: $indigo-400;
}
}
.session-item:hover > .session-tag > .reporter-tag.successful-status,
.command-wrapper:hover > .command-pin-target > .command-wrapper-text > .command-controls > .reporter-tag.successful-status {
border-color: $gray-700;
}