|
| 1 | +/* |
| 2 | + * Styles shared by the cpp-linter docs sites. Each site loads this file from |
| 3 | + * https://cpp-linter.github.io/stylesheets/shared.css before its own stylesheet, |
| 4 | + * so rules that only one site needs belong in that site's stylesheet instead. |
| 5 | + */ |
| 6 | + |
| 7 | +th { |
| 8 | + background-color: var(--md-default-fg-color--lightest); |
| 9 | +} |
| 10 | + |
| 11 | +/* "important" admonitions */ |
| 12 | +.md-typeset .admonition.important, |
| 13 | +.md-typeset details.important { |
| 14 | + border-color: #00b8d4; |
| 15 | +} |
| 16 | + |
| 17 | +.md-typeset .important>.admonition-title::before, |
| 18 | +.md-typeset .important>summary::before { |
| 19 | + background-color: #00b8d4; |
| 20 | + -webkit-mask-image: var(--md-admonition-icon--info); |
| 21 | + mask-image: var(--md-admonition-icon--info); |
| 22 | +} |
| 23 | + |
| 24 | +.md-typeset .important>.admonition-title, |
| 25 | +.md-typeset .important>summary { |
| 26 | + background-color: #00b8d41a; |
| 27 | +} |
| 28 | + |
| 29 | +/* badges next to inputs and options */ |
| 30 | +.md-typeset .mdx-badge { |
| 31 | + font-size: .85em; |
| 32 | +} |
| 33 | + |
| 34 | +.md-typeset .mdx-badge--right { |
| 35 | + float: right; |
| 36 | + margin-left: .35em; |
| 37 | +} |
| 38 | + |
| 39 | +[dir=ltr] .md-typeset .mdx-badge__icon { |
| 40 | + border-top-left-radius: .1rem; |
| 41 | + border-bottom-left-radius: .1rem; |
| 42 | +} |
| 43 | + |
| 44 | +[dir=rtl] .md-typeset .mdx-badge__icon { |
| 45 | + border-top-right-radius: .1rem; |
| 46 | + border-bottom-right-radius: .1rem; |
| 47 | +} |
| 48 | + |
| 49 | +.md-typeset .mdx-badge__icon { |
| 50 | + background: var(--md-accent-fg-color--transparent); |
| 51 | + padding: .2rem; |
| 52 | +} |
| 53 | + |
| 54 | +.md-typeset .mdx-badge__icon:last-child { |
| 55 | + border-radius: .1rem; |
| 56 | +} |
| 57 | + |
| 58 | +[dir=ltr] .md-typeset .mdx-badge__text { |
| 59 | + border-top-right-radius: .1rem; |
| 60 | + border-bottom-right-radius: .1rem; |
| 61 | +} |
| 62 | + |
| 63 | +[dir=rtl] .md-typeset .mdx-badge__text { |
| 64 | + border-top-left-radius: .1rem; |
| 65 | + border-bottom-left-radius: .1rem; |
| 66 | +} |
| 67 | + |
| 68 | +.md-typeset .mdx-badge__text { |
| 69 | + box-shadow: 0 0 0 1px inset var(--md-accent-fg-color--transparent); |
| 70 | + padding: .2rem .3rem; |
| 71 | +} |
| 72 | + |
| 73 | +/* the "experimental" badge icon: an inline SVG in MkDocs, a ::before mask in Sphinx */ |
| 74 | +@keyframes heart { |
| 75 | + |
| 76 | + 0%, |
| 77 | + 40%, |
| 78 | + 80%, |
| 79 | + to { |
| 80 | + transform: scale(1); |
| 81 | + } |
| 82 | + |
| 83 | + 20%, |
| 84 | + 60% { |
| 85 | + transform: scale(1.15); |
| 86 | + } |
| 87 | +} |
| 88 | + |
| 89 | +.md-typeset .mdx-badge--heart { |
| 90 | + color: #ff4281; |
| 91 | +} |
| 92 | + |
| 93 | +.md-typeset .mdx-badge--heart.twemoji { |
| 94 | + animation: heart 1s infinite; |
| 95 | +} |
| 96 | + |
| 97 | +.md-typeset .mdx-badge--heart::before { |
| 98 | + background-color: #ff4281; |
| 99 | +} |
| 100 | + |
| 101 | +.md-typeset .mdx-heart::before { |
| 102 | + animation: heart 1s infinite; |
| 103 | +} |
| 104 | + |
| 105 | +/* code annotation buttons: round, pulsing in the accent color */ |
| 106 | +a.md-annotation__index { |
| 107 | + border-radius: 2.2ch; |
| 108 | +} |
| 109 | + |
| 110 | +@keyframes pulse { |
| 111 | + 0% { |
| 112 | + box-shadow: 0 0 0 0 var(--md-accent-fg-color); |
| 113 | + transform: scale(.95); |
| 114 | + } |
| 115 | + |
| 116 | + 75% { |
| 117 | + box-shadow: 0 0 0 .625em transparent; |
| 118 | + transform: scale(1); |
| 119 | + } |
| 120 | + |
| 121 | + to { |
| 122 | + box-shadow: 0 0 0 0 transparent; |
| 123 | + transform: scale(.95); |
| 124 | + } |
| 125 | +} |
0 commit comments