github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/docs/assets/css/examples.scss (about) 1 .examples__container { 2 max-width: 1200px; 3 padding: 15px 50px; 4 margin-left: auto; 5 margin-right: auto; 6 .examples__nav { 7 display: flex; 8 align-items: stretch; 9 border-bottom: 1px solid $gray-color-1; 10 11 .hidden-navs, .hidden-navs__static-links { 12 display: none; 13 } 14 15 .navs { 16 display: flex; 17 align-items: stretch; 18 width: 100%; 19 position: relative; 20 21 .examples__nav-item { 22 flex: 1; 23 height: 80px; 24 display: flex; 25 align-items: center; 26 justify-content: center; 27 flex-direction: column; 28 padding: 5px; 29 max-width: 200px; 30 min-width: 100px; 31 border-bottom: 2px solid #fff; 32 max-height: 100px; 33 cursor: pointer; 34 35 img { 36 max-width: 120px; 37 max-height: 80px; 38 margin-bottom: 5px; 39 } 40 41 .name { 42 font-size: $font-size-xxs; 43 font-weight: bold; 44 color: $gray-color-2; 45 text-transform: uppercase; 46 letter-spacing: 0.2px; 47 } 48 49 &.active { 50 border-bottom: 2px solid $primary-color-2; 51 .name { 52 color: $primary-color-2; 53 } 54 } 55 56 &:not(.active) { 57 img { 58 -webkit-filter: grayscale(100%); 59 filter: grayscale(100%); 60 opacity: 0.25; 61 } 62 &:hover { 63 img { 64 opacity: 1; 65 -webkit-filter: grayscale(0%); 66 filter: grayscale(0%); 67 } 68 .name { 69 color: $primary-color-2; 70 } 71 } 72 } 73 74 img { 75 width: 100%; 76 } 77 } 78 79 .navs__visible-bar { 80 flex: 1; 81 display: flex; 82 align-items: stretch; 83 } 84 85 .navs__dropdown-input { 86 width: 150px; 87 } 88 89 .navs__dropdown-arrow { 90 width: 100px; 91 display: flex; 92 justify-content: center; 93 align-items: center; 94 } 95 96 .navs__dropdown-menu { 97 position: absolute; 98 top: 80px; 99 right: 0px; 100 display: none; 101 min-width: 260px; 102 width: 100%; 103 max-width: 400px; 104 border: 1px solid $gray-color-1; 105 border-radius: 4px; 106 flex-direction: column; 107 justify-content: center; 108 align-items: stretch; 109 box-shadow: $box-shadow-sm; 110 background: #fff; 111 112 .examples__nav-item { 113 padding: 20px 10px; 114 width: 100%; 115 max-width: 100%; 116 border-bottom: 1px solid $gray-color-1; 117 &:last-child { 118 border-width: 0px; 119 } 120 } 121 122 &.active { 123 display: flex; 124 z-index: 10; 125 } 126 } 127 128 @media all and (max-width: 439px) { 129 .navs__visible-bar { 130 display: none; 131 } 132 .navs__dropdown-input { 133 width: 100%; 134 .examples__nav-item { 135 max-width: 100%; 136 } 137 } 138 } 139 } 140 } 141 142 .examples__block { 143 display: none; 144 145 &.active { 146 display: block; 147 } 148 149 .examples__tabs { 150 display: flex; 151 margin-top: 30px; 152 .tab { 153 min-width: 50px; 154 display: flex; 155 flex-direction: column; 156 border: 1px solid $gray-color-1; 157 border-bottom: 2px solid $gray-color-1; 158 padding: 10px 15px; 159 cursor: pointer; 160 label { 161 line-height: 1; 162 font-weight: normal; 163 font-size: $font-size-xxs; 164 color: $gray-color-3; 165 } 166 .filename { 167 font-size: $font-size-xs; 168 color: $gray-color-3; 169 } 170 171 &.active { 172 border-bottom: 2px solid $primary-color-2; 173 label { 174 font-weight: bold; 175 color: $primary-color-2; 176 } 177 .filename { 178 color: $text-color; 179 } 180 } 181 &:hover { 182 opacity: 0.7; 183 border-bottom: 2px solid $primary-color-2; 184 label { 185 color: $primary-color-2; 186 } 187 .filename { 188 color: $text-color; 189 } 190 } 191 } 192 } 193 194 @media all and (max-width: 800px) { 195 .examples__tabs { 196 flex-direction: column; 197 } 198 } 199 200 .examples__code { 201 display: none; 202 width: 60%; 203 position: relative; 204 margin-bottom: 50px; 205 206 pre[class*="language-"] { 207 font-size: 14px; 208 margin-top: 0px; 209 border-top-left-radius: 0; 210 code { 211 font-size: 11px; 212 line-height: 22px; 213 } 214 } 215 216 &.active { 217 display: block; 218 } 219 } 220 221 .example__file-link { 222 padding-top: 20px; 223 padding-bottom: 20px; 224 font-size: $font-size-xs; 225 word-break: break-all; 226 p { 227 margin-bottom: 4px; 228 font-weight: bold; 229 } 230 231 @media all and (max-width: 768px) { 232 font-size: 12px; 233 } 234 } 235 236 .description { 237 display: none; 238 } 239 240 .examples__learn-more { 241 min-height: 300px; 242 padding: 15px 50px; 243 text-align: center; 244 margin-top: 50px; 245 246 .title { 247 font-size: 44px; 248 font-weight: 300; 249 } 250 251 ul { 252 list-style: none; 253 padding-left: 0px; 254 li { 255 padding: 5px 10px; 256 a { 257 font-size: $font-size-lg; 258 font-weight: bold; 259 color: $primary-color-2; 260 text-decoration: none; 261 &:hover, &:focus, &:active { 262 text-decoration: none; 263 } 264 &:hover { 265 opacity: .8; 266 } 267 } 268 } 269 } 270 } 271 } 272 } 273 274 @media all and (max-width: 800px) { 275 .examples__container { 276 padding-left: 10px; 277 padding-right: 10px; 278 279 .examples__block { 280 .examples__code { 281 width: 100%; 282 } 283 } 284 } 285 } 286 287 @media all and (max-width: 768px) { 288 .examples__container { 289 .examples__block { 290 .description { 291 column-count: 1; 292 } 293 } 294 } 295 } 296 297 .code-popup-handler { 298 position: absolute; 299 right: 0px; 300 width: 28px; 301 height: 28px; 302 color: #fff; 303 margin-right: -14px; 304 margin-top: -16px; 305 cursor: pointer; 306 z-index: 1; 307 308 .number { 309 border-radius: 50%; 310 font-weight: bold; 311 font-family: 'Source Sans Pro', sans-serif; 312 display: flex; 313 align-items: center; 314 justify-content: center; 315 background: $secondary-gradient-start-color; 316 background: -webkit-linear-gradient(-45deg, $secondary-gradient-start-color, $secondary-gradient-stop-color); 317 background: linear-gradient(135deg, $secondary-gradient-start-color, $secondary-gradient-stop-color); 318 } 319 320 &.sm-scale .number, 321 &.sm-scale .shadow-bg-1, 322 &.sm-scale .shadow-bg-2 { 323 transform: scale(0.88); 324 } 325 326 .shadow-bg-1 { 327 z-index: -1; 328 position: absolute; 329 width: 34px; 330 height: 34px; 331 opacity: 0.2; 332 top: 50%; 333 margin-top: -17px; 334 left: 50%; 335 margin-left: -17px; 336 background: #068ee4; 337 border-radius: 50%; 338 } 339 340 .shadow-bg-2 { 341 z-index: -2; 342 position: absolute; 343 width: 40px; 344 height: 40px; 345 opacity: 0.2; 346 top: 50%; 347 margin-top: -20px; 348 left: 50%; 349 margin-left: -20px; 350 background: #068ee4; 351 border-radius: 50%; 352 } 353 354 &:hover { 355 .shadow-bg-1, .shadow-bg-2 { 356 opacity: 0.28; 357 } 358 } 359 360 .popup { 361 display: none; 362 width: 300px; 363 background: #fff; 364 box-shadow: $box-shadow-sm; 365 color: $text-color; 366 align-items: stretch; 367 border-radius: 4px; 368 .left-border { 369 border-top-left-radius: 4px; 370 border-bottom-left-radius: 4px; 371 width: 4px; 372 min-width: 4px; 373 background: $secondary-gradient-start-color; 374 background: -webkit-linear-gradient(90deg, $secondary-gradient-start-color, $secondary-gradient-stop-color); 375 background: linear-gradient(180deg, $secondary-gradient-start-color, $secondary-gradient-stop-color); 376 } 377 .content { 378 padding: 5px; 379 .title { 380 font-size: $font-size-xxs; 381 font-weight: bold; 382 } 383 p, .text { 384 font-size: $font-size-xxs; 385 font-weight: normal; 386 margin-bottom: 0; 387 } 388 } 389 } 390 391 &.active { 392 transform: scale(1.2); 393 .number { 394 background: $primary-gradient-start-color; 395 background: -webkit-linear-gradient(0deg, $primary-gradient-start-color, $primary-gradient-stop-color); 396 background: linear-gradient(90deg, $primary-gradient-start-color, $primary-gradient-stop-color); 397 } 398 399 .shadow-bg-1, .shadow-bg-2 { 400 display: none; 401 } 402 403 .popup { 404 display: flex; 405 position: absolute; 406 left: 50px; 407 top: 0; 408 } 409 } 410 411 &.active.sm-scale { 412 .number { 413 transform: scale(0.92); 414 } 415 } 416 } 417 418 @media all and (max-width: 1200px) { 419 .code-popup-handler { 420 .popup { 421 width: 200px; 422 } 423 } 424 } 425 426 @media all and (max-width: 800px) { 427 .code-popup-handler { 428 margin-right: 0; 429 right: 5px; 430 431 &.active { 432 .popup { 433 left: -220px; 434 } 435 } 436 } 437 } 438 439 @media all and (max-width: 350px) { 440 .code-popup-handler { 441 margin-right: 0; 442 right: 3px; 443 444 &.active { 445 .popup { 446 width: 180px; 447 left: -182px; 448 } 449 } 450 } 451 } 452 453 .examples__container.quick-start-examples { 454 padding: 0; 455 456 .examples__nav { 457 display: none; 458 } 459 460 .examples__code { 461 margin-bottom: 30px; 462 } 463 } 464 465 .examples__container.wide { 466 .examples__block { 467 .examples__code { 468 width: 100%; 469 } 470 } 471 472 .code-popup-handler { 473 .popup { 474 left: 40px; 475 width: 280px; 476 } 477 478 @media all and (max-width: 1600px) { 479 .popup { 480 width: 220px; 481 } 482 } 483 484 @media all and (max-width: 1450px) { 485 .popup { 486 width: 180px; 487 } 488 } 489 490 @media all and (max-width: 1366px) { 491 .popup { 492 width: 280px; 493 right: 40px; 494 left: auto; 495 } 496 } 497 498 @media all and (max-width: 400px) { 499 .popup { 500 width: 200px; 501 } 502 } 503 } 504 }