File: tooltips.css

package info (click to toggle)
elixir-ex-doc 0.35.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: javascript: 2,848; makefile: 15; xml: 12; sh: 5
file content (67 lines) | stat: -rw-r--r-- 1,437 bytes parent folder | download
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
.tooltip {
  box-shadow: 0 0 10px var(--black-opacity-10);
  max-height: 300px;
  max-width: 500px;
  padding: 0;
  position: absolute;
  pointer-events: none;
  margin: 0;
  z-index: 99;
  top: 0;
  left: 0;
  visibility: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: .2s visibility ease-out, .2s transform ease-out, .2s opacity ease-out;
}

/*
Show-up animation
======
Note: it's fine to hide the tooltip with `visibility: hidden` (rather than `display: none`)
as it has absolute positioning, so doesn't impact the layout and click events pass through.
*/
.tooltip.tooltip-shown {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

.tooltip .tooltip-body {
  border: 1px solid var(--codeBorder);
}

.tooltip .tooltip-body .signature {
  min-width: 320px;
  width: 100%;
}

.tooltip .tooltip-body .detail-header {
  border-left: 0;
  margin-bottom: 0;
  margin-top: 0;
}

.tooltip .tooltip-body .docstring {
  background-color: var(--background);
  padding: 1.2em;
  margin: 0;
  width: 498px; /* Taking 2 * 1px of border into account */
}

/* Used for simple tooltips having only description. */
.tooltip .tooltip-body .docstring-plain {
  max-width: 498px;
  width: auto;
}

.tooltip .tooltip-body .version-info {
  float: right;
  line-height: 1.6rem;
  font-family: var(--monoFontFamily);
  font-size: .9rem;
  font-weight: normal;
  margin-bottom: -6px;
  opacity: .3;
  padding-left: .3em;
}