|
1 |
| -/* Read the Docs promotional block, only applicable to RTD.org |
2 |
| -
|
3 |
| -To support sphinx_rtd_theme, a `wy-menu` element is added. Other themes are |
4 |
| -targeted using the theme identifier and use custom elements instead of a CSS |
5 |
| -framework html structure. |
6 |
| -
|
7 |
| -*/ |
8 |
| - |
9 |
| -div.ethical-sidebar, |
10 |
| -div.ethical-footer { |
11 |
| - display: block !important; |
12 |
| -} |
13 |
| -.ethical-sidebar, |
14 |
| -.ethical-footer { |
15 |
| - padding: 0.5em; |
16 |
| - margin: 1em 0; |
17 |
| -} |
18 |
| -.ethical-sidebar img, |
19 |
| -.ethical-footer img { |
20 |
| - width: 120px; |
21 |
| - height: 90px; |
22 |
| - display: inline-block; |
23 |
| -} |
24 |
| -.ethical-sidebar .ethical-callout, |
25 |
| -.ethical-footer .ethical-callout { |
26 |
| - padding-top: 1em; |
27 |
| - clear: both; |
28 |
| -} |
29 |
| -.ethical-sidebar .ethical-pixel, |
30 |
| -.ethical-footer .ethical-pixel, |
31 |
| -.ethical-fixedfooter .ethical-pixel { |
32 |
| - display: none !important; |
33 |
| -} |
34 |
| -.ethical-sidebar .ethical-text, |
35 |
| -.ethical-footer .ethical-text { |
36 |
| - margin-top: 1em; |
37 |
| -} |
38 |
| -.ethical-sidebar .ethical-image-link, |
39 |
| -.ethical-footer .ethical-image-link { |
40 |
| - border: 0; |
41 |
| -} |
42 |
| - |
43 |
| -.ethical-sidebar, |
44 |
| -.ethical-footer { |
45 |
| - background-color: #eee; |
46 |
| - border: 1px solid #ccc; |
47 |
| - border-radius: 5px; |
48 |
| - color: #0a0a0a; |
49 |
| - font-size: 14px; |
50 |
| - line-height: 20px; |
51 |
| -} |
52 |
| - |
53 |
| -/* Techstack badging */ |
54 |
| -.ethical-sidebar ul { |
55 |
| - margin: 0 !important; |
56 |
| - padding-left: 0; |
57 |
| - list-style: none; |
58 |
| -} |
59 |
| -.ethical-sidebar ul li { |
60 |
| - display: inline-block; |
61 |
| - background-color: lightskyblue; |
62 |
| - color: black; |
63 |
| - padding: 0.25em 0.4em; |
64 |
| - font-size: 75%; |
65 |
| - font-weight: 700; |
66 |
| - margin: 0.25em; |
67 |
| - border-radius: 0.25rem; |
68 |
| - text-align: center; |
69 |
| - vertical-align: baseline; |
70 |
| - white-space: nowrap; |
71 |
| - line-height: 1.41; |
72 |
| -} |
73 |
| -.ethical-sidebar ul li:not(:last-child) { |
74 |
| - margin-right: .25rem; |
75 |
| -} |
76 |
| - |
77 |
| -.ethical-sidebar a, |
78 |
| -.ethical-sidebar a:visited, |
79 |
| -.ethical-sidebar a:hover, |
80 |
| -.ethical-sidebar a:active, |
81 |
| -.ethical-footer a, |
82 |
| -.ethical-footer a:visited, |
83 |
| -.ethical-footer a:hover, |
84 |
| -.ethical-footer a:active { |
85 |
| - color: #0a0a0a; |
86 |
| - text-decoration: none !important; |
87 |
| - border-bottom: 0 !important; |
88 |
| -} |
89 |
| - |
90 |
| -.ethical-callout a { |
91 |
| - color: #707070 !important; |
92 |
| - text-decoration: none !important; |
93 |
| -} |
94 |
| - |
95 |
| -/* Sidebar promotions */ |
96 |
| -.ethical-sidebar { |
97 |
| - text-align: center; |
98 |
| - max-width: 300px; |
99 |
| - margin-left: auto; |
100 |
| - margin-right: auto; |
101 |
| -} |
102 |
| - |
103 |
| -/* Footer promotions */ |
104 |
| -.ethical-footer { |
105 |
| - text-align: left; |
106 |
| - |
107 |
| - font-size: 14px; |
108 |
| - line-height: 20px; |
109 |
| -} |
110 |
| -.ethical-footer img { |
111 |
| - float: right; |
112 |
| - margin-left: 25px; |
113 |
| -} |
114 |
| -.ethical-footer .ethical-callout { |
115 |
| - text-align: center; |
116 |
| -} |
117 |
| -.ethical-footer small { |
118 |
| - font-size: 10px; |
119 |
| -} |
120 |
| - |
121 |
| -/* Fixed footer promotions */ |
122 |
| -.ethical-fixedfooter { |
123 |
| - box-sizing: border-box; |
124 |
| - position: fixed; |
125 |
| - bottom: 0; |
126 |
| - left: 0; |
127 |
| - z-index: 100; |
128 |
| - background-color: #eee; |
129 |
| - border-top: 1px solid #bfbfbf; |
130 |
| - font-size: 12px; |
131 |
| - line-height: 1.5; |
132 |
| - padding: 0.5em 1.5em; |
133 |
| - text-align: center; |
134 |
| - color: #404040; |
135 |
| - width: 100%; /* Fallback for Opera Mini */ |
136 |
| - width: 100vw; |
137 |
| -} |
138 |
| -@media (min-width: 769px) { |
139 |
| - /* Improve viewing on non-mobile */ |
140 |
| - .ethical-fixedfooter { |
141 |
| - font-size: 13px; |
142 |
| - padding: 1em 1.5em; |
143 |
| - } |
144 |
| -} |
145 |
| -.ethical-fixedfooter .ethical-text:before { |
146 |
| - margin-right: 4px; |
147 |
| - padding: 2px 6px; |
148 |
| - border-radius: 3px; |
149 |
| - background-color: #4caf50; |
150 |
| - color: #fff; |
151 |
| - content: "Sponsored"; |
152 |
| -} |
153 |
| -.ethical-fixedfooter .ethical-callout { |
154 |
| - color: #999; |
155 |
| - padding-left: 6px; |
156 |
| - white-space: nowrap; |
157 |
| -} |
158 |
| -.ethical-fixedfooter a, |
159 |
| -.ethical-fixedfooter a:hover, |
160 |
| -.ethical-fixedfooter a:active, |
161 |
| -.ethical-fixedfooter a:visited { |
162 |
| - color: #404040; |
163 |
| - text-decoration: none; |
164 |
| -} |
165 |
| -.ethical-fixedfooter .ethical-close { |
166 |
| - position: absolute; |
167 |
| - top: 0; |
168 |
| - right: 5px; |
169 |
| - font-size: 20px; |
170 |
| - line-height: 20px; |
171 |
| -} |
172 |
| - |
173 | 1 | /* Use mdbook theme colors. */
|
174 | 2 |
|
175 |
| -.ethical-sidebar { |
| 3 | +#mdbook-ad-placement .ethical-sidebar { |
176 | 4 | border: none;
|
177 | 5 | box-shadow: none;
|
178 |
| - background: var(--sidebar-bg); |
| 6 | + background-color: var(--sidebar-bg); |
179 | 7 | }
|
180 | 8 |
|
181 |
| -.ethical-sidebar:hover { |
182 |
| - background: var(--sidebar-non-existant); |
| 9 | +#mdbook-ad-placement .ethical-sidebar:hover { |
| 10 | + background-color: var(--theme-hover); |
183 | 11 | }
|
184 | 12 |
|
185 |
| -.ethical-sidebar a { |
| 13 | +#mdbook-ad-placement .ethical-sidebar a { |
186 | 14 | color: var(--sidebar-fg);
|
187 | 15 | }
|
0 commit comments