-
Notifications
You must be signed in to change notification settings - Fork 26
/
template.html
169 lines (144 loc) · 4.45 KB
/
template.html
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; connect-src 'self' https://cksource.com http://*.cke-cs.com; script-src 'self' https://cksource.com; img-src * data:; style-src 'self' 'unsafe-inline'; frame-src *">
<title>Manual Test</title>
<style>
:root {
--ck-manual-test-sidebar-width: 390px;
--ck-manual-test-container-padding: 40px;
--ck-manual-test-transition-time: .2s;
}
.manual-test-list-container,
.manual-test-sidebar {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
font-style: normal;
font-variant: normal;
line-height: 26px;
}
.manual-test-list-container {
padding: 2em;
margin: 0;
}
.manual-test-container {
padding: var(--ck-manual-test-container-padding);
transition: padding .2s ease-in-out;
}
/*
* Disable all transitions until the DOM is fully loaded. This prevents
* annoying unnecessary animations on page load
*/
.manual-test-container.manual-test-container_no-transitions,
.manual-test-container.manual-test-container_no-transitions > .manual-test-sidebar,
.manual-test-container.manual-test-container_no-transitions > .manual-test-sidebar__toggle,
.manual-test-container.manual-test-container_no-transitions > .manual-test-sidebar__toggle > * {
transition: none !important;
}
.manual-test-container_pinned-sidebar {
padding-left: calc( var(--ck-manual-test-sidebar-width) + var(--ck-manual-test-container-padding));
}
/* ------------ Sidebar ----------------------------------------------------------------- */
.manual-test-sidebar {
line-height: 18px;
box-sizing: border-box;
position: fixed;
top: 0;
left: calc( -1 * var(--ck-manual-test-sidebar-width) );
bottom: 0;
width: min(100vw, var(--ck-manual-test-sidebar-width));
background-color: #f7f7f7;
border-right: 1px solid #bfbfbf;
color: #333;
padding: 15px;
overflow-x: hidden;
overflow-y: auto;
z-index: 9999;
transition: left var(--ck-manual-test-transition-time) ease-in-out;
}
.manual-test-container_pinned-sidebar .manual-test-sidebar {
left: 0;
box-shadow: 0 0 8px rgba(0,0,0,.15);
}
.manual-test-sidebar h1 {
font-size: 22px;
}
.manual-test-sidebar h2 {
font-size: 18px;
}
.manual-test-sidebar h3 {
font-size: 16px;
}
.manual-test-sidebar h4 {
font-size: 14px;
}
/* ------------ Sidebar toggle button ----------------------------------------------------------------- */
.manual-test-sidebar__toggle {
background: none;
width: 24px;
height: 24px;
display: block;
overflow: hidden;
position: fixed;
top: 10px;
left: 10px;
border: none;
padding: 0;
margin: 0;
outline: none;
transition: left var(--ck-manual-test-transition-time) ease-in-out;
opacity: .5;
z-index: 10000;
}
.manual-test-sidebar__toggle:hover {
opacity: 1;
}
.manual-test-sidebar__toggle span {
display: block;
width: 20px;
height: 3px;
background: black;
border-radius: 3px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: transform var(--ck-manual-test-transition-time) ease-in-out, opacity var(--ck-manual-test-transition-time) ease-in-out;
}
.manual-test-sidebar__toggle span:nth-child(1) {
transform: translate(-50%, calc(-50% - 5px));
}
.manual-test-sidebar__toggle span:nth-child(3) {
transform: translate(-50%, calc(-50% + 5px));
}
.manual-test-container_pinned-sidebar .manual-test-sidebar__toggle {
left: min(calc(100vw - 35px), 350px);
}
.manual-test-container_pinned-sidebar .manual-test-sidebar__toggle span:nth-child(1) {
transform: translate(-50%, -50%) rotate(-45deg);
}
.manual-test-container_pinned-sidebar .manual-test-sidebar__toggle span:nth-child(2) {
opacity: 0;
}
.manual-test-container_pinned-sidebar .manual-test-sidebar__toggle span:nth-child(3) {
transform: translate(-50%, -50%) rotate(45deg);
}
/* ------------ "Back to the list" button styles ----------------------------------------------------------------- */
.manual-test-sidebar__root-link {
display: inline-block;
padding: 8px 0;
text-align: center;
border-radius: 2px;
line-height: 15px;
text-decoration: none;
}
.manual-test-sidebar__root-link:hover {
text-decoration: underline;
}
</style>
</head>
<body>
</body>
</html>