-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathknowlstyle.css
137 lines (123 loc) · 2.42 KB
/
knowlstyle.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
/** page wide defs for knowls, the *[knowl] is a selector for
* all elements, that have a knowl attribute set to any value */
.knowl-content {
padding: 10px 10px 10px 10px;
}
.knowl-content h1 {
margin: 0px 0px 10px 0px;
}
.knowl-content h2 {
margin: 0px 0px 5px 0px;
}
/* next defninition is needed to over-ride the default, which is the
default font size, which is 16pt */
.knowl p {
margin-bottom: 0;
margin-top: 10px;
}
.knowl-content > p:first-child {
margin-top: 0;
}
*[knowl] {
display: inline;
border-bottom: 1px dotted #00a;
color: #00a;
cursor: pointer;
border-radius: 0;
margin: 3px 0 0 0;
}
*[knowl]:hover,
*[knowl].active {
border-bottom: 1px solid #aaf;
background: #ddf;
color: #006;
/* no point in these being different when hovering
padding: 0;
margin: 0 0 0 0;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
*/
}
div > *[knowl], p > *[knowl] {
position: relative;
}
.knowl-error {
color: red;
border-bottom: 0;
}
.knowl-output {
background: #eef;
border-top: 10px solid #ddf;
border-left: 10px solid #ddf;
border-right: 10px solid #ddf;
border-bottom: 10px solid #ddf;
border-bottom-left-radius: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
display: none;
padding: 0px;
margin-top: 10px;
margin-bottom: 0px;
margin-right: 0px;
}
.knowl-output .knowl-output {
border-width: 6px;
background: white;
border-radius: 4px;
margin-bottom: 1.25em;
}
.knowl-output .knowl-output,
.knowl-output .knowl-output.loading {
margin-left: 0;
margin-right: 0;
}
.knowl-output.loading {
color: grey;
font-style: italic;
font-size: small;
}
.knowl-output h1, .knowl-output h2 {
margin: 5px 0;
}
.knowl-output h1 {
color: #006;
}
.knowl-output h2 {
color: #006;
}
.knowl-output a { display: inline; }
.knowl-footer {
position: relative;
bottom: -9px;
font-size: x-small;
background: #ddf;
color: grey;
padding: 0 0 0 12px;
margin: -10px 0 0 0;
}
.knowl-output .knowl-output .knowl-footer {
bottom: -5px;
margin: -5px 0 0 0;
}
.knowl-output + .knowl-output {
margin-top: 0;
}
.knowl-footer a {
color: #006;
}
.knowl-footer a:hover {
background: none;
color: #88f;
}
.knowl-footer:after {
content: "\2002";
}
.knowl-output.processing {
display:block!important;
height:0pt;
overflow:hidden;
}
.MathJax a .MathJax_knowl:hover {
background-color: #afa;
}