File: anymail-theme.css

package info (click to toggle)
django-anymail 13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,480 kB
  • sloc: python: 27,832; makefile: 132; javascript: 33; sh: 9
file content (85 lines) | stat: -rw-r--r-- 3,045 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* Anymail modifications to sphinx-rtd-theme styles */

/* Sticky table first column (used for ESP feature matrix) */
table.sticky-left td:first-of-type,
table.sticky-left th:first-of-type {
  position: sticky;
  left: 0;
  background-color: #fcfcfc; /* override transparent from .wy-table td */
}
table.sticky-left td:first-of-type[colspan] > p,
table.sticky-left th:first-of-type[colspan] > p {
  /* Hack: the full-width <td colspan=N> section headers can't stick left;
     since those always wrap a rubric <p> (in the specific table that uses this),
     just make the <p> sticky within the <td>. */
  display: inline-block;
  position: sticky;
  left: 17px; /* (.wy-table $table-padding-size) + (docutils border="1" in html) */
}

/* Fix footnote stacking in sticky table */
.rst-content .citation-reference,
.rst-content .footnote-reference {
  /* Original (but `position: relative` creates a new stacking context):
  vertical-align: baseline;
  position: relative;
  top: -.4em;
  */
  vertical-align: 0.4em;
  position: static;
  top: initial; /* (not relevant with `position: static`) */
}

/* Show code cross-reference links as clickable $link-color (blue).

   Sphinx-rtd-theme usually wants `.rst-content a code` to be $link-color [1], but has
   a more specific rule setting `.rst-content a code.xref` to $text-codexref-color,
   bold [2]. And $text-codexref-color is $text-color (black).

   This makes code.xref's inside an <a> use standard link coloring instead.

   [1]: https://github.com/readthedocs/sphinx_rtd_theme/blob/2.0.0/src/sass/_theme_rst.sass#L484
   [2]: https://github.com/readthedocs/sphinx_rtd_theme/blob/2.0.0/src/sass/_theme_rst.sass#L477

   Related: https://github.com/readthedocs/sphinx_rtd_theme/issues/153
            https://github.com/readthedocs/sphinx_rtd_theme/issues/92
*/
.rst-content a code.xref {
  color: inherit;
  /*font-weight: inherit;*/
}
.rst-content a:hover code.xref {
  color: inherit;
}
.rst-content a:visited code.xref {
  color: inherit;
}

/* Inline search forms (Anymail addition) */
.anymail-inline-search-form {
  margin-top: -1em;
  margin-bottom: 1em;
}
.anymail-inline-search-form input[type="search"] {
  width: 280px;
  max-width: 100%;
  border-radius: 50px;
  padding: 6px 12px;
}

/* Improve list item spacing in "open" lists.
   https://github.com/readthedocs/sphinx_rtd_theme/issues/1555

   Undoes this rule in non-.simple lists:
   https://github.com/readthedocs/sphinx_rtd_theme/blob/2.0.0/src/sass/_theme_rst.sass#L174-L175
*/
.rst-content .section ol:not(.simple) > li > p:only-child,
.rst-content .section ol:not(.simple) > li > p:only-child:last-child,
.rst-content .section ul:not(.simple) > li > p:only-child,
.rst-content .section ul:not(.simple) > li > p:only-child:last-child,
.rst-content section ol:not(.simple) > li > p:only-child,
.rst-content section ol:not(.simple) > li > p:only-child:last-child,
.rst-content section ul:not(.simple) > li > p:only-child,
.rst-content section ul:not(.simple) > li > p:only-child:last-child {
  margin-bottom: 12px;
}