forked from daniellmb/JavaScript-Scope-Context-Coloring
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.css
More file actions
111 lines (97 loc) · 2.66 KB
/
Copy pathdemo.css
File metadata and controls
111 lines (97 loc) · 2.66 KB
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
/* editor scope levels */
.cm-level0 { color: #ffffff; } /* white */
.cm-level1 { color: #aefab8; } /* green */
.cm-level2 { color: #fafa99; } /* yellow */
.cm-level3 { color: #a9f2ff; } /* blue */
.cm-level4 { color: #faadba; } /* red */
.cm-level5 { color: #c9bfff; } /* cyan */
.cm-level6 { color: #f9b5ff; } /* magenta */
.cm-level7 { color: #c7c7c7; } /* gray */
.cm-level8 { color: #ffc47d; } /* orange */
.cm-level9 { color: #cf9369; } /* crap-brown */
/* You don't need below this line, it's just for this demo page */
/* sticky footer */
html, body { height: 100%; }
#wrap { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -60px; }
#push, #footer { height: 60px; }
#footer { text-align: center; }
.container .credit { margin: 20px 0; }
/* change mode */
#toggleMode { margin-bottom: 5px; }
/* samples */
form { position: relative; }
.samples { position: absolute; top:3px; right:3px; z-index: 5; }
/* editor */
.CodeMirror { height: auto; }
.CodeMirror-scroll { overflow-y: hidden; overflow-x: auto; }
/* scope color legend */
.legend span { font-size: 12px; border: solid 1px #000; padding: 2px; }
.level0 { background-color: #ffffff; }
.level1 { background-color: #aefab8; }
.level2 { background-color: #fafa99; }
.level3 { background-color: #a9f2ff; }
.level4 { background-color: #faadba; }
.level5 { background-color: #c9bfff; }
.level6 { background-color: #f9b5ff; }
.level7 { background-color: #c7c7c7; }
.level8 { background-color: #ffc47d; }
.level9 { background-color: #CF9369; }
/* fork on github */
#fork a {
background: #000;
color: #fff;
text-decoration: none;
font-family: arial, sans-serif;
text-align: center;
font-weight: bold;
padding: 5px 40px;
font-size: 1rem;
line-height: 2rem;
position: relative;
transition: 0.5s;
}
#fork a:hover {
background: #060;
color: #fff;
}
#fork a::before,#fork a::after {
content: "";
width: 100%;
display: block;
position: absolute;
top: 1px;
left: 0;
height: 1px;
background: #fff;
}
#fork a::after {
bottom: 1px;
top: auto;
}
@media screen and (min-width:767px) {
#fork {
position: absolute;
display: block;
top: 0;
right: 0;
width: 200px;
overflow: hidden;
height: 200px;
z-index:10;
}
#fork a {
width: 200px;
position: absolute;
top: 60px;
right: -60px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
box-shadow: 4px 4px 10px rgba(0,0,0,0.8);
}
#footer {
margin-left: -20px;
margin-right: -20px;
padding-left: 20px;
padding-right: 20px;
}
}