-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathidl-styles.css
158 lines (136 loc) · 2.81 KB
/
idl-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
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
/* CSS file that specifies the different syntax highlighting for each part of IDL code. */
/* class for idl links to the documentation */
.idl_docs_link {
text-decoration: none;
}
/* class for block of IDL code which exists as a pre*/
pre.idl_code_block {
color: black;
padding-left: 15px;
background-color: #f5f5f5;
border-style:solid;
border-width:1px;
border-color:#cccccc;
overflow: visible;
/* word break, not working right
overflow-y: visible;
overflow-x: scroll;
white-space:pre-wrap;
word-break: break-word;
*/
}
/* class for IDL code that is embedded in a line */
code.idl_line {
color:black;
background:#f5f5f5;
border-style:solid;
border-width:1px;
border-color:#cccccc;
border-radius: 5px;
}
/* tooltips class in IDL*/
.idl_tt{
display: inline;
position: relative;
}
/* makes the content for the tooltip*/
.idl_tt:hover:after{
background: #333;
background: rgba(0,0,0,.8);
border-radius: 5px;
bottom: 26px;
color: #fff;
/* the idl_tt class elements also need an idl_tt attribute with the tooltip*/
content: attr(idl_tt);
left: 20%;
padding: 5px 15px;
position: absolute;
z-index:97;
/*word wrap*/
white-space:pre-line;
width:250px;
word-break: break-word;
}
/* makes the arrow for the tooltip */
.idl_tt:hover:before{
border: solid;
border-color: #333 transparent;
border-width: 6px 6px 0 6px;
bottom: 20px;
content: "";
left: 50%;
position: absolute;
z-index:98;
}
/* allow overflow so that the tooltips dont disappear out of their elements*/
body {
overflow: visible;
}
/* Makes text underlined and makes cursor turn into a question mark*/
.tt_text {
border-bottom-style: inset;
cursor: help;
}
/* IDL comments*/
.idl_comment {
color:#29A3A3;
}
/* IDL strings*/
.idl_str {
color:#FF0000;
}
/* IDL numbers*/
.idl_num {
color:#808000;
font-weight:bold;
}
/* IDL control statements*/
.idl_control {
color:#7F0000;
font-weight:bold;
}
/* IDL PRO code functions*/
.idl_lib_func {
color:#00CCCC;
font-weight:bold;
}
/* IDL PRO code procedures*/
.idl_lib_pro {
color:#006666;
font-weight:bold;
}
/* IDL internal functions*/
.idl_sys_func {
color:#0000FF;
font-weight:bold;
}
/* IDL internal procedures*/
.idl_sys_pro {
color:#00007F;
font-weight:bold;
}
/* Bold things. "IDL>" OR "ENVI>"*/
.idl_bold {
font-weight:bold;
}
/*gray lines*/
.idl_gray {
color:#A9A9A9;
}
/* IDL system variables "!NULL"*/
.idl_sysv {
color:black;
font-weight:bold;
}
/* IDL properties "something.property"*/
.idl_prop {
font-style:italic;
}
/* IDL executive commands ".edit"*/
.idl_exec {
font-style:italic;
}
/* structure definition tags "something:"*/
.idl_struct_tag {
font-style:italic;
}