|
| 1 | +/* etcd-docsy full file override: we're not tracking changes to the docsy file of the same name. */ |
| 2 | + |
| 3 | +.td-home { |
| 4 | + h1 { |
| 5 | + // @extend .display-1; |
| 6 | + margin-bottom: 2.5rem; |
| 7 | + text-align: center; |
| 8 | + } |
| 9 | + |
| 10 | + h2 { |
| 11 | + // @extend .display-2; |
| 12 | + margin-bottom: 1.5rem; |
| 13 | + text-align: center; |
| 14 | + } |
| 15 | + |
| 16 | + h3 { |
| 17 | + //@extend .display-3; |
| 18 | + } |
| 19 | + |
| 20 | + h4 { |
| 21 | + // @extend .display-4; |
| 22 | + margin-bottom: 1rem; |
| 23 | + } |
| 24 | + |
| 25 | + .home--top-section { |
| 26 | + text-align: center; |
| 27 | + } |
| 28 | + |
| 29 | + .cncf-logo { |
| 30 | + width: 20rem; |
| 31 | + max-width: 80%; |
| 32 | + } |
| 33 | + |
| 34 | + .site-logo { |
| 35 | + max-height: 8rem; |
| 36 | + max-width: 65%; |
| 37 | + } |
| 38 | +} |
| 39 | + |
| 40 | +// Components and objects |
| 41 | + |
| 42 | +.c-features { |
| 43 | + display: flex; |
| 44 | + flex-direction: column; |
| 45 | + flex-wrap: wrap; |
| 46 | + justify-content: center; |
| 47 | + |
| 48 | + h3 { |
| 49 | + color: $etcd-dark-blue; |
| 50 | + } |
| 51 | +} |
| 52 | + |
| 53 | +.o-features__feature { |
| 54 | + display: inline-flex; |
| 55 | + flex-direction: column; |
| 56 | + |
| 57 | + margin-bottom: 1.5rem; |
| 58 | + padding-left: 1rem; |
| 59 | + padding-right: 1rem; |
| 60 | + |
| 61 | + h3 { |
| 62 | + margin-bottom: 1.5rem; |
| 63 | + } |
| 64 | +} |
| 65 | + |
| 66 | +.o-feature__icon { |
| 67 | + width: 100%; |
| 68 | + margin-left: auto; |
| 69 | + margin-right: auto; |
| 70 | + margin-top: 1rem; |
| 71 | + max-width: 15rem; |
| 72 | + max-height: 10rem; |
| 73 | +} |
| 74 | + |
| 75 | +.o-icon { |
| 76 | + margin-right: 0.25rem; |
| 77 | +} |
| 78 | + |
| 79 | +.used-by-logo { |
| 80 | + max-height: 4rem; |
| 81 | + max-width: 100%; |
| 82 | +} |
| 83 | + |
| 84 | +.c-used-by__users { |
| 85 | + display: flex; |
| 86 | + flex-direction: column; |
| 87 | + flex-wrap: wrap; |
| 88 | + align-items: center; |
| 89 | + margin-bottom: -3rem; |
| 90 | +} |
| 91 | + |
| 92 | +.c-used-by__user { |
| 93 | + margin-left: auto; |
| 94 | + margin-right: auto; |
| 95 | + padding-left: 1.5rem; |
| 96 | + padding-right: 1.5rem; |
| 97 | + padding-bottom: 3rem; |
| 98 | +} |
| 99 | + |
| 100 | +@include media-breakpoint-up(sm) { |
| 101 | + .c-features { |
| 102 | + padding-right: 3rem; |
| 103 | + padding-left: 3rem; |
| 104 | + } |
| 105 | +} |
| 106 | + |
| 107 | +@include media-breakpoint-up(md) { |
| 108 | + .c-features { |
| 109 | + flex-direction: row; |
| 110 | + } |
| 111 | + |
| 112 | + .c-used-by__users { |
| 113 | + flex-direction: row; |
| 114 | + justify-content: between; |
| 115 | + } |
| 116 | + |
| 117 | + .c-used-by__user { |
| 118 | + padding-bottom: 1.5rem; |
| 119 | + } |
| 120 | +} |
| 121 | + |
| 122 | +// Bootstrap and Docsy overrides |
| 123 | + |
| 124 | +.alert > p:last-child { |
| 125 | + margin-bottom: 0; |
| 126 | +} |
| 127 | + |
| 128 | +// Utilities |
| 129 | + |
| 130 | +.bg-gray-100 { |
| 131 | + background-color: $gray-100; |
| 132 | +} |
| 133 | + |
| 134 | +// Fixes https://github.com/etcd-io/website/issues/266: the docsy partial |
| 135 | +// shouldn't be hard coding styles by using classes like "text-uppercase". This |
| 136 | +// overrides the docsy styling. |
| 137 | +.navbar-brand > .text-uppercase { |
| 138 | + text-transform: initial !important; |
| 139 | +} |
| 140 | + |
| 141 | + |
| 142 | +// Layout |
| 143 | +.l-container--padded { |
| 144 | + padding-top: 2rem; |
| 145 | + padding-bottom: 2rem; |
| 146 | +} |
| 147 | + |
| 148 | + |
| 149 | +// DOCS |
| 150 | + |
| 151 | +.td-toc { |
| 152 | + padding-top: 1rem; |
| 153 | +} |
| 154 | + |
| 155 | +// Extend the sidebar to the end of the visible page. |
| 156 | +.td-sidebar-toc { |
| 157 | + height: initial; |
| 158 | + padding-top: 4.75rem; |
| 159 | +} |
| 160 | + |
| 161 | +.td-sidebar-nav__section { |
| 162 | + .ul-1 ul { padding-left: 1rem; } |
| 163 | + .ul-2 { padding-left: 0 !important; } |
| 164 | +} |
| 165 | + |
| 166 | +// Custom in-page toc. Apply this class as a modifier on top of the Docsy-provided .td-toc |
| 167 | +.td-toc--inline { |
| 168 | + padding-top: 0; |
| 169 | + padding-bottom: 1rem; |
| 170 | + border-left: none; |
| 171 | + position: static; |
| 172 | + height: auto; |
| 173 | + |
| 174 | + & + .td-content { |
| 175 | + margin-top: 1.5rem; |
| 176 | + } |
| 177 | + |
| 178 | + // Workaround to prevent the first three entries from being hidden |
| 179 | + & #td-content__toc.collapse:not(.show) { |
| 180 | + display: block; |
| 181 | + overflow: hidden; |
| 182 | + min-height: 5.5rem; |
| 183 | + height: 5.5rem; |
| 184 | + } |
| 185 | + |
| 186 | + & #td-content__toc.collapsing { |
| 187 | + height: 5rem; |
| 188 | + } |
| 189 | + |
| 190 | + & #td-content__toc.collapse:not(.show) + #td-content__toc-link-expanded::before, |
| 191 | + & #toc-contents.collapse:not(.show) + #td-content__toc-link-expanded::before { |
| 192 | + content: "…"; |
| 193 | + } |
| 194 | + |
| 195 | + & #td-content__toc.collapse.show + #td-content__toc-link-expanded::before, |
| 196 | + & #toc-contents + #td-content__toc-link-expanded::before { |
| 197 | + content: "\2303"; |
| 198 | + } |
| 199 | +} |
| 200 | + |
| 201 | +#td-content__toc-link span i.fa-chevron-right { |
| 202 | + transition: transform 250ms ease-in-out; |
| 203 | +} |
| 204 | + |
| 205 | +#td-content__toc-link[aria-expanded="true"] span i.fa-chevron-right { |
| 206 | + transform: rotate(-90deg); |
| 207 | +} |
| 208 | + |
| 209 | +#td-content__toc-link-expanded { |
| 210 | + background-color: $gray-200; |
| 211 | +} |
| 212 | + |
| 213 | +// add icon to signify that a link is external |
| 214 | +// from https://fontawesome.com/v5.15/icons/external-link-alt?style=solid |
| 215 | + |
| 216 | +.td-content a[href^="http://"]:after, |
| 217 | +.td-content a[href^="https://"]:after { |
| 218 | + @extend .fas; |
| 219 | + font-size: 50%; |
| 220 | + margin-left: 1px; |
| 221 | + opacity: 0.8; |
| 222 | + vertical-align: text-top; |
| 223 | + content: fa-content($fa-var-external-link-alt); |
| 224 | +} |
| 225 | + |
| 226 | +.card-title { |
| 227 | + .fab::before, .fas::before { margin-right: .5rem; } |
| 228 | +} |
| 229 | + |
| 230 | +// ************************************ |
| 231 | +// Version menu |
| 232 | +// ************************************ |
| 233 | + |
| 234 | +.cncf-vers-menu--item { |
| 235 | + &:hover { |
| 236 | + background: $primary; |
| 237 | + color: white; |
| 238 | + } |
| 239 | +} |
| 240 | + |
| 241 | +.cncf-vers-menu--item__not-found { |
| 242 | + color: $gray-600; |
| 243 | + &:hover { |
| 244 | + background: lighten($primary, 60%); |
| 245 | + color: $gray-900; |
| 246 | + } |
| 247 | + &:after { |
| 248 | + @extend .fas; |
| 249 | + font-size: .8rem; |
| 250 | + padding-left: 6px; |
| 251 | + content: fa-content($fa-var-home); |
| 252 | + color: lighten($primary, 15%); |
| 253 | + } |
| 254 | +} |
0 commit comments