1/* -- Extra CSS styles for ACRN content (RTD theme) ----------------------- */
2
3/* make the page width fill the window */
4.wy-nav-content {
5   max-width: 1100px;
6}
7
8/* (temporarily) add an under development tagline to the bread crumb
9.wy-breadcrumbs::after {
10   content: " (Content reorganization in progress)";
11   background-color: #FFFACD;
12   color: red;
13   font-weight: bold;
14}
15*/
16
17/* pygments tweak for white-on-black console */
18
19.highlight-console .highlight {
20   background-color: black;
21}
22.highlight-console .highlight pre, .highlight-console .highlight .go, .highlight-console .highlight .gp {
23   color: white;
24}
25.highlight-console .highlight .hll {
26   background-color: white;
27}
28.highlight-console .highlight .hll .go, .highlight-console .highlight .hll .gp {
29   color: black;
30   font-weight: bold;
31}
32
33/* :option: link color */
34a code span.pre {
35   color: #2980b9;
36}
37
38/* tweak doc version selection */
39.rst-versions {
40   position: static;
41}
42
43.rst-versions .rst-current-version {
44   padding: 5px;
45   background-color: #2B978F;
46   color: #80FF80;
47}
48
49.rst-versions .rst-other-versions {
50   padding: 5px;
51}
52
53div.rst-other-versions dl {
54   margin-bottom: 0;
55}
56
57/* code block highlight color in rtd changed to lime green, no no no */
58
59.rst-content tt.literal, .rst-content code.literal, .highlight {
60   background: #f0f0f0;
61}
62.rst-content tt.literal, .rst-content code.literal {
63    color: #000000;
64}
65
66div.non-compliant-code div.highlight {
67   background: #f7d7d7;
68}
69
70/* Tweak sidebar colors for ACRN theme */
71
72.wy-side-nav-search {
73   background-color: #2B978F;
74}
75
76/* Make the version number more visible */
77.wy-side-nav-search>div.version {
78    color: rgba(255,255,255,1);
79}
80
81/* squish the space between a paragraph before a list but not in a note */
82div:not(.admonition) > p + ul, div:not(.admonition) > p + ol {
83   margin-top: -20px;
84}
85
86/* add some space before the figure caption */
87p.caption  {
88#    border-top: 1px solid;
89    margin-top: 1em;
90}
91
92/* add a colon after the figure/table number (before the caption) */
93span.caption-number::after {
94   content: ": ";
95}
96
97p.extrafooter {
98   text-align: right;
99   margin-top: -36px;
100}
101
102table.align-center {
103   display: table !important;
104}
105
106/* put the table caption at the bottom, as done for figures */
107table {
108   caption-side: bottom;
109}
110
111
112.code-block-caption {
113    color: #000;
114    font: italic 85%/1 arial,sans-serif;
115    padding: 1em 0;
116    text-align: center;
117}
118
119/*  make .. hlist:: tables fill the page */
120table.hlist {
121    width: 95% !important;
122}
123
124/*  override rtd theme white-space no-wrap in table heading and content
125 *  and top align for content too (not middle)
126 */
127th,td {
128    white-space: normal !important;
129    vertical-align: top !important;
130}
131
132/* dbk tweak for doxygen-generated API headings (for RTD theme)
133   hide the "group" name provided by breathe, but keep the description */
134.rst-content dl.group>dt {
135   display:none !important;
136}
137.rst-content dl.group {
138  margin: 0 0 12px 0px;
139}
140.rst-content dl.group>dd {
141  margin-left: 0  !important;
142}
143.rst-content p.breathe-sectiondef-title {
144  text-decoration: underline;  /* dbk for API sub-headings */
145  font-size: 1.25rem;
146  font-weight: bold;
147  margin-bottom: 12px;
148}
149.rst-content div.breathe-sectiondef {
150  padding-left: 0 !important;
151}
152
153/* dbk tweak spacing in breathe api */
154.rst-content dt > span.pre {
155    padding-right: 6px;
156}
157
158/* doxygenXX item color tweaks, light blue background with dark blue top border */
159.rst-content dl:not(.docutils) dl dt {
160  background: #e7f2fa !important;
161  border-top: solid 3px #2980B9 !important;
162  border-left: none !important; */
163}
164
165/* tweak display of option tables to make first column wider */
166col.option {
167  width: 25%;
168}
169
170/* tweak format for <kbd> (:kbd:`F10`) */
171kbd
172{
173  -moz-border-radius:3px;
174  -moz-box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
175  -webkit-border-radius:3px;
176  -webkit-box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
177  background-color:#f7f7f7;
178  border:1px solid #ccc;
179  border-radius:3px;
180  box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
181  color:#333;
182  display:inline-block;
183  font-family:Arial,Helvetica,sans-serif;
184  font-size:11px;
185  line-height:1.4;
186  margin:0 .1em;
187  padding:.1em .6em;
188  text-shadow:0 1px 0 #fff;
189}
190
191/* home page grid display */
192
193.grid {
194    list-style-type: none !important;
195    display: -webkit-box;
196    display: -ms-flexbox;
197    display: flex;
198    -ms-flex-wrap: wrap;
199        flex-wrap: wrap;
200    -webkit-box-pack: center;
201        -ms-flex-pack: center;
202            justify-content: center;
203    margin: 1rem auto;
204    max-width: calc((250px + 2rem) * 3);
205}
206
207.grid-item {
208    list-style-type: none !important;
209    -webkit-box-flex: 0;
210        -ms-flex: 0 0 auto;
211            flex: 0 0 auto;
212    width: 200px;
213    text-align: center;
214    margin: 1rem;
215}
216
217.grid-item a {
218    display: block;
219    width: 200px;
220    height: 200px;
221    padding: 20px;
222    display: -webkit-box;
223    display: -ms-flexbox;
224    display: flex;
225    -webkit-box-orient: vertical;
226    -webkit-box-direction: normal;
227        -ms-flex-direction: column;
228            flex-direction: column;
229    -webkit-box-pack: center;
230        -ms-flex-pack: center;
231            justify-content: center;
232    -webkit-box-align: center;
233        -ms-flex-align: center;
234            align-items: center;
235    border: 1px solid #c6cbce;
236    background-color: #2B978F;
237    border-radius: 30px;
238    color: white;
239}
240
241.grid-item h2 {
242    font-size: 1.1rem;
243}
244
245.grid-item img {
246    /* max-width: 50%;
247    max-height: 50%; */
248    margin-bottom: 0.7rem;
249}
250
251
252.grid-item a:hover {
253    background-color: #51A192;
254    color: white;
255}
256
257
258.grid-item p {
259    margin-top: 0.5rem;
260    font-size: 85%;
261    line-height:1.2;
262    color: #404040;
263}
264
265.grid-icon {
266   line-height: 1.8;
267   font-size: 4rem;
268   color: #114B4F;
269}
270
271
272/* add a class for multi-column support
273 * in docs to replace use of .hlist with
274 * a .. rst-class:: rst-columns
275 */
276
277.rst-columns2 {
278   column-width: 28em;
279   column-fill: balance;
280   margin-bottom: 1em;
281}
282.rst-columns3, .rst-columns {
283   column-width: 18em;
284   column-fill: balance;
285   margin-bottom: 1em;
286}
287
288/* numbered "h2" steps */
289
290body {
291   counter-reset: step-count;
292}
293
294div.numbered-step h2::before,
295section.numbered-step h2::before {
296  counter-increment: step-count;
297  content: counter(step-count);
298  background: #cccccc;
299  border-radius: 0.8em;
300  -moz-border-radius: 0.8em;
301  -webkit-border-radius: 0.8em;
302  color: #ffffff;
303  display: inline-block;
304  font-weight: bold;
305  line-height: 1.6em;
306  margin-right: 5px;
307  margin-left: -1.8em;
308  text-align: center;
309  width: 1.6em;}
310
311/* bold the level1 headings in on-page toctree displays */
312.rst-content  .toctree-l1 > a {
313  font-weight: bold;
314}
315
316/* add icon on external links */
317a.reference.external::after {
318   font-family: 'FontAwesome';
319   font-size: 80%;
320   content: " \f08e";
321}
322
323/* generic light gray box shadow (for use on images via class directive) */
324.drop-shadow {
325   box-shadow: 5px 5px 10px #aaaaaa;
326}
327
328/* add some space after an image with a shadow style applied */
329img.drop-shadow {
330   margin-bottom: 2em !important;
331}
332
333/* tweak last updated section of footer to be right-aligned */
334.lastupdated {
335    float:right;
336}
337
338/* some custom classes used in rst-class directives */
339.centered {
340    text-align: center;
341}
342
343/* colors from ACRN brand pallet */
344.bg-acrn-green {
345    background-color: #006368;
346    color: white;
347}
348.bg-acrn-lightgreen {
349    background-color: #69BFAD;
350}
351.bg-acrn-brown {
352    background-color: #998265;
353    color: white;
354}
355.bg-acrn-lightbrown {
356    background-color: #D7AF96;
357}
358.bg-acrn-blue {
359    background-color: #232256;
360    color: white;
361}
362.bg-acrn-red {
363    background-color: #7F0F24;
364    color: white;
365}
366.bg-acrn-gradient {
367    background: linear-gradient(135deg, #232256 0%, #69BFAD 100%);
368    color: white;
369}
370.bg-lightyellow {
371    background-color: lightyellow;
372}
373.bg-lightgreen {
374    background-color: #D0F0C0; /* tea green */
375}
376.bg-lavender {
377    background-color: lavender;
378}
379.bg-lightgrey {
380    background-color: lightgrey;
381}
382
383/* The style in theme.css for tables uses a slightly smaller font size, but was
384   only affecting paragraphs where the immediate parent was a th or td tag.  Fix
385   this so that all paragraphs within a th or td tag have this style applied.
386   (This shows up if you have a table with a bullet list: the bullet list paragraph
387   fontsize went back to the default.) */
388
389html.writer-html5 .rst-content table.docutils td p {
390   line-height: 1rem;
391   margin-bottom: 0;
392   font-size: .9rem;
393}
394
395/* Simulate look of an option directive on glossary items (particularly used on
396 * config option listings so we can use a glossary to sort config options within
397 * a section of options*/
398div#scenario-configuration-options dl.glossary dt  {
399    display: table;
400    margin: 6px 10px;
401    font-weight: bold;
402    color: #000;
403    line-height: normal;
404    background: #e7f2fa;
405    color: #2980b9;
406    border-top: 3px solid #6ab0de;
407    padding: 6px;
408    position: relative;
409}
410div#scenario-configuration-options dl.glossary dt  {
411   float: left;
412   clear: left;
413}
414div#scenario-configuration-options dl.glossary dd>p  {
415   padding-top: 12px;
416   line-height: normal;
417   clear: right;
418}
419div#scenario-configuration-options dl.glossary dd ul  {
420   clear: both;
421}
422