|
13 | 13 | } |
14 | 14 |
|
15 | 15 |
|
| 16 | +/* Rotate objects */ |
16 | 17 | .rotate-90 { |
17 | 18 | transform: rotate(90deg); /* Equal to rotateZ(90deg) */ |
18 | 19 | } |
|
28 | 29 |
|
29 | 30 | @media screen and (min-width: 45em) { |
30 | 31 | .md-social.generator-right { |
31 | | - padding: .2rem 0 0 |
| 32 | + padding: .2rem 0 0 |
32 | 33 | } |
33 | 34 | } |
34 | 35 |
|
|
45 | 46 | padding: 0 0 .2rem; |
46 | 47 | width:auto |
47 | 48 | } |
| 49 | +} |
48 | 50 |
|
49 | 51 |
|
50 | 52 | /* SparkFun dark brand color: #3c464d */ |
|
195 | 197 | .md-typeset .github > .admonition-title, |
196 | 198 | .md-typeset .github > summary { |
197 | 199 | /* background-image: linear-gradient(to bottom, #8241f9, #4e277b); */ |
198 | | - background-color: rgba(130, 80, 223, 0.1); |
| 200 | + background-color: rgba(130, 80, 223, 0.4); |
| 201 | + /* background-color: rgb(110, 64, 201); */ |
199 | 202 | } |
200 | 203 | .md-typeset .github > .admonition-title::before, |
201 | 204 | .md-typeset .github > summary::before { |
202 | | - /* background-color: #1B1F24; */ |
203 | 205 | background-color: var(--md-typeset-color); |
204 | 206 | -webkit-mask-image: var(--md-admonition-icon--github); |
205 | 207 | mask-image: var(--md-admonition-icon--github); |
206 | 208 | } |
207 | 209 |
|
| 210 | + |
208 | 211 | /* Arduino ========================================================================== */ |
209 | 212 | .md-typeset .admonition.arduino, |
210 | 213 | .md-typeset details.arduino { |
211 | 214 | border-color: #62AEB2; |
| 215 | + /* border-color: #005c5f; */ |
212 | 216 | } |
213 | 217 | .md-typeset .arduino > .admonition-title, |
214 | 218 | .md-typeset .arduino > summary { |
215 | 219 | background-color: #00878F; |
| 220 | + /* background-color: rgba(0, 135, 143, 0.8); */ |
216 | 221 | } |
217 | 222 | .md-typeset .arduino > .admonition-title::before, |
218 | 223 | .md-typeset .arduino > summary::before { |
|
224 | 229 | .md-typeset .arduino > summary { |
225 | 230 | /* color: #E5AD24; */ |
226 | 231 | /* color: #E47128; */ |
| 232 | + /* color: #8C7965; */ |
227 | 233 | color: white; |
228 | 234 | } |
229 | 235 |
|
|
255 | 261 | .md-typeset .admonition.python, |
256 | 262 | .md-typeset details.python { |
257 | 263 | border-color: #646464; |
| 264 | + /* border-color: #4B8BBE; */ |
258 | 265 | } |
259 | 266 | .md-typeset .python > .admonition-title, |
260 | 267 | .md-typeset .python > summary { |
|
264 | 271 | .md-typeset .python > .admonition-title::before, |
265 | 272 | .md-typeset .python > summary::before { |
266 | 273 | background-color: #FFD43B; |
| 274 | + /* background-color: #4B8BBE; */ |
267 | 275 | -webkit-mask-image: var(--md-admonition-icon--python); |
268 | 276 | mask-image: var(--md-admonition-icon--python); |
269 | 277 | } |
270 | 278 | .md-typeset .python > .admonition-title, |
271 | 279 | .md-typeset .python > summary { |
272 | | - color: #FFE873; |
| 280 | + color: white; |
| 281 | + /* color: #646464; */ |
| 282 | + /* color: #FFE873; */ |
273 | 283 | } |
274 | 284 |
|
275 | 285 |
|
|
418 | 428 |
|
419 | 429 |
|
420 | 430 | /* ================================================================================== */ |
421 | | -/* YouTube Videos */ |
| 431 | +/* YouTube Videos */ |
422 | 432 | /* ================================================================================== */ |
423 | 433 |
|
424 | 434 | /* Auto adjust embedded youtube videos size */ |
425 | 435 | /* Aspect ratio: height = 56.25% of width */ |
426 | 436 | /* 90vw = 90% of (viewport width) */ |
427 | 437 |
|
| 438 | +.video { |
| 439 | + position: relative; |
| 440 | + width: 100%; |
| 441 | +} |
| 442 | +.video iframe { |
| 443 | + position: relative; |
| 444 | + top: 0; |
| 445 | + width: 60vw; |
| 446 | + height: 33.75vw; |
| 447 | + border: 0; |
| 448 | + overflow: hidden; |
| 449 | +} |
| 450 | + |
428 | 451 | .video-container { |
429 | 452 | position: relative; |
430 | 453 | padding-bottom: 56.25%; /* 16:9 */ |
|
470 | 493 | overflow: hidden; |
471 | 494 | } |
472 | 495 |
|
| 496 | + |
| 497 | + |
473 | 498 | /* Add compatibility for mobile devices */ |
474 | 499 | /* ================================================================================== */ |
475 | 500 | /* ================================================================================== */ |
|
513 | 538 |
|
514 | 539 | /* No ToC */ |
515 | 540 | /* ================================================================================== */ |
516 | | -@media (max-width: 750px) { |
| 541 | +/* @media (max-width: 750px) { |
517 | 542 | .video-container iframe { |
518 | 543 | width: 60vw; |
519 | 544 | height: 33.75vw; |
520 | 545 | } |
521 | | -} |
| 546 | +} */ |
522 | 547 |
|
523 | 548 |
|
524 | 549 | /* ================================================================================== */ |
|
556 | 581 | } |
557 | 582 |
|
558 | 583 | /* Sets images size in tables */ |
559 | | - .md-typeset table:not([class]) td img { |
560 | | - width: 100%; |
561 | | - max-width: 150px; |
562 | | - max-height: 150px; |
| 584 | + .md-typeset table:not([class]) * + figure img { |
| 585 | + max-width: 75px; |
563 | 586 | } |
564 | 587 |
|
565 | | - |
566 | 588 | /* ================================================================================== */ |
567 | | - /* YoutTube Videos */ |
| 589 | + /* YouTube Videos */ |
568 | 590 | /* ================================================================================== */ |
569 | 591 |
|
570 | | - .video-container iframe { |
| 592 | + .video { |
571 | 593 | display: none; |
572 | 594 | } |
573 | 595 |
|
574 | | - .video-500px iframe { |
| 596 | + .video-container { |
575 | 597 | display: none; |
576 | 598 | } |
577 | 599 |
|
578 | | - .video-300px iframe { |
| 600 | + .video-500px { |
| 601 | + display: none; |
| 602 | + } |
| 603 | + |
| 604 | + .video-300px { |
579 | 605 | display: none; |
580 | 606 | } |
581 | 607 |
|
|
607 | 633 | } |
608 | 634 |
|
609 | 635 |
|
610 | | - |
611 | | - /* Fixes positioning of admonition icon */ |
612 | | - /* .md-typeset :is(.admonition-title,summary):before { |
613 | | - top: 0.6rem; |
614 | | - left: 0.6rem; |
615 | | - } */ |
616 | | - /* Fixes appearance of admonition icon */ |
617 | | - /* .md-typeset :is(.admonition,details)>:last-child { |
618 | | - background-color: transparent; |
619 | | - } */ |
620 | | - |
621 | | - /* Fixes margin spacing for lists */ |
622 | | - /* .md-typeset ol,ul { |
623 | | - margin-left: 1.5rem; |
624 | | - } */ |
625 | | - |
626 | | - /* Adjusts page break for PDF generator */ |
627 | | - article h2,h3,h4,h5,h6,ol,ul { |
628 | | - page-break-before: avoid; |
629 | | - } |
630 | | - article div.admonition { |
631 | | - page-break-before: avoid; |
632 | | - } |
633 | | - article table,ol,ul { |
634 | | - page-break-inside: auto !important; |
635 | | - } |
636 | | - |
637 | | - /* Displays first tab (workaround to rendering issue) */ |
638 | | - /* * + .tabbed-content { |
639 | | - display: contents; |
640 | | - } |
641 | | - * + .tabbed-content .tabbed-block { |
642 | | - display: contents; |
643 | | - page-break-after: always; |
644 | | - } */ |
645 | | - |
646 | 636 | /* Prevents page break when tabs are embedded in an admonition*/ |
647 | 637 | /* article details.note { |
648 | 638 | display: inline-block; |
|
0 commit comments