-
-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathtest-container-styles.css
75 lines (64 loc) · 1.48 KB
/
test-container-styles.css
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
/* Override QUnit's default styles that place #qunit-fixture outside the viewport */
#qunit-fixture {
position: relative;
left: auto;
top: auto;
width: auto;
height: auto;
}
#ember-testing-container {
position: fixed;
background-color: #fff;
background-image:
linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee),
linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee);
background-position: 0 0, 10px 10px;
background-size: 20px 20px;
bottom: 0;
right: 0;
width: 640px;
height: 384px;
overflow: auto;
z-index: 98;
border: 1px solid #ccc;
margin: 0 auto;
/* Prevent leaking position fixed elements outside the testing container */
transform: translateZ(0);
}
#ember-testing-container.ember-testing-container-full-screen {
width: 100%;
height: 100%;
overflow: auto;
z-index: 98;
border: none;
right: 0;
}
#ember-testing-container.ember-testing-container-hidden {
opacity: 0;
pointer-events: none;
}
#ember-testing {
width: 200%;
height: 200%;
transform: scale(0.5);
transform-origin: top left;
}
.ember-testing-container-full-screen #ember-testing {
position: absolute;
width: 100%;
height: 100%;
transform: scale(1);
}
#qunit-tests > li:last-child {
margin-bottom: 384px;
}
@supports (display: flex) or (display: -webkit-box) {
@media (min-height: 500px) {
#qunit-tests {
overflow: auto;
}
#ember-testing-container {
right: 30px;
}
}
}