github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/website/source/assets/stylesheets/_home.scss (about) 1 // 2 // Home 3 // -------------------------------------------------- 4 5 #hero{ 6 text-align: center; 7 padding-bottom: 60px; 8 9 #hero-graphic{ 10 position: relative; 11 display: inline-block; 12 width: 1016px; 13 height: 357px; 14 margin: 0 auto 10px; 15 //@include translate3d(30px, 0, 0); 16 background: image-url('../images/graphic-hero.png') 6px 0 no-repeat; 17 @include img-retina("../images/graphic-hero.png", "../images/graphic-hero@2x.png", 1010px, 357px); 18 } 19 20 #hero-text{ 21 position: relative; 22 text: center; 23 margin-top: 60px; 24 25 h1{ 26 margin-bottom: 8px; 27 color: $black; 28 font-size: $font-size-l; 29 } 30 31 h3{ 32 margin-top: 6px; 33 color: $blue-dark; 34 font-size: 19px; 35 font-weight: $font-weight-light; 36 line-height: 34px; 37 //text-transform: uppercase; 38 39 span{ 40 display: inline-block; 41 width: 122px; 42 height: 33px; 43 margin-bottom: -11px; 44 margin-left: 4px; 45 text-indent: 100%; 46 white-space: nowrap; 47 overflow: hidden; 48 background: image-url('../images/vagrant-logo.png') 0 0 no-repeat; 49 @include img-retina("../images/vagrant-logo.png", "../images/vagrant-logo@2x.png", 122px, 33px); 50 } 51 } 52 53 #hero-btns{ 54 margin-top: 26px; 55 a{ 56 57 } 58 } 59 } 60 61 #tag-line{ 62 margin: 15px 0 20px 0; 63 font-size: 24px; 64 font-weight: 300; 65 } 66 67 p{ 68 margin-top: 60px; 69 text-align: left; 70 font-size: 18px; 71 font-weight: 300; 72 line-height: 2em; 73 74 .strong{ 75 font-size: 20px; 76 font-weight: 500; 77 } 78 } 79 } 80 81 #subhero-banner{ 82 .otto-lrg-white{ 83 margin-top: $small-pad; 84 width: 235px; 85 height: 191px; 86 background: image-url('../images/otto-subhero.png') 0 0 no-repeat; 87 @include img-retina("../images/otto-subhero.png", "../images/otto-subhero@2x.png", 235px, 191px); 88 } 89 90 h2,p{ 91 text-align: left; 92 } 93 94 h2{ 95 margin-bottom: $xsmall-pad; 96 } 97 98 p{ 99 //color: $blue-faint; 100 opacity: .8; 101 font-size: $font-size-reg; 102 font-weight: $font-weight-light; 103 line-height: $font-size-reg + $line-height-factor; 104 margin-bottom: $small-pad; 105 } 106 107 a{ 108 float: left; 109 } 110 } 111 112 #features-split{ 113 border-top: 3px solid $black; 114 display: flex; 115 116 .r50{ 117 text-align: center; 118 flex: 1; 119 120 .feature-graphic{ 121 display: inline-block; 122 height: 279px; 123 margin-bottom: $small-pad; 124 } 125 126 p{ 127 opacity: .8; 128 } 129 } 130 } 131 132 .feature{ 133 .feature-header{ 134 text-align: center; 135 136 h3{ 137 margin-bottom: $xsmall-pad; 138 font-size: $font-size-m; 139 line-height: $font-size-m + 6; 140 } 141 142 p{ 143 margin-bottom: $small-pad; 144 } 145 } 146 147 .feature-footer{ 148 text-align: center; 149 } 150 151 &#automate{ 152 .feature-graphic{ 153 width: 307px; 154 height: 307px; 155 background: image-url('../images/graphic-automate.png') 0 0 no-repeat; 156 @include img-retina("../images/graphic-automate.png", "../images/graphic-automate@2x.png", 305px, 307px); 157 } 158 159 .feature-content{ 160 margin-top: $med-pad; 161 } 162 163 .feature-terminal{ 164 text-align: center; 165 margin-top: $large-pad; 166 167 .terminal-graphic{ 168 margin-bottom: $xsmall-pad; 169 170 a{ 171 display: inline-block; 172 margin: 0 auto; 173 width: 165px; 174 height: 135px; 175 background: image-url('../images/graphic-terminal-play.png') 0 0 no-repeat; 176 @include img-retina("../images/graphic-terminal-play.png", "../images/graphic-terminal-play@2x.png", 165px, 135px); 177 } 178 } 179 180 p{ 181 font-size: $font-size-sm; 182 padding: 0 $small-pad; 183 } 184 185 .h-btn.minimal{ 186 font-size: $font-size-m; 187 margin-bottom: $xsmall-pad; 188 189 .mono-block{ 190 position: relative; 191 top: -5px; 192 margin-left: 10px; 193 } 194 195 span.h-caret{ 196 position: relative; 197 top: -4px; 198 } 199 } 200 } 201 } 202 203 &#focus{ 204 .feature-graphic{ 205 width: 290px; 206 background: image-url('../images/graphic-focus.png') 0 0 no-repeat; 207 @include img-retina("../images/graphic-focus.png", "../images/graphic-focus@2x.png", 290px, 261px); 208 } 209 } 210 211 &#deployment{ 212 .feature-graphic{ 213 width: 346px; 214 background: image-url('../images/graphic-deploy.png') 0 0 no-repeat; 215 @include img-retina("../images/graphic-deploy.png", "../images/graphic-deploy@2x.png", 346px, 279px); 216 } 217 } 218 219 &#microservices{ 220 border-top: 3px solid $black; 221 222 .container{ 223 position: relative; 224 height: 507px; 225 226 .feature-content{ 227 border: 3px solid $black; 228 padding: 20px; 229 border-radius: 5px; 230 text-align: center; 231 232 .micro-docker{ 233 display: inline-block; 234 width: 249px; 235 height: 65px; 236 margin-bottom: $small-pad; 237 background: image-url('../images/graphic-micro-docker.png') 0 0 no-repeat; 238 @include img-retina("../images/graphic-micro-docker.png", "../images/graphic-micro-docker@2x.png", 249px, 65px); 239 } 240 241 p{ 242 opacity: .8; 243 } 244 } 245 246 .feature-graphic{ 247 position: absolute; 248 top: 0; 249 right: 40%; 250 width: 665px; 251 height: 507px; 252 background: image-url('../images/graphic-micro-2.jpg') 0 0 no-repeat; 253 @include img-retina("../images/graphic-micro-2.jpg", "../images/graphic-micro-2@2x.jpg", 665px, 507px); 254 background-position: 0 0; 255 } 256 } 257 } 258 } 259 260 #cta-banner{ 261 text-align: center; 262 padding: 80px 0; 263 background-color: $orange; 264 color: $white; 265 266 p{ 267 margin-bottom: $xsmall-pad; 268 } 269 } 270 271 #use-cases{ 272 273 .r50 { 274 padding-top: $small-pad; 275 } 276 277 >h2{ 278 background-color: $black; 279 color: $white; 280 padding: $med-pad; 281 margin-bottom: 0; 282 } 283 284 #use-case-nav{ 285 background-color: $black; 286 287 a{ 288 color: $white; 289 opacity: .4; 290 border-radius: 0; 291 border: none; 292 293 &:hover{ 294 background-color: $black; 295 opacity: .1; 296 color: $white; 297 } 298 } 299 300 > li.active > a{ 301 color: $orange; 302 opacity: 1; 303 background-color: $black; 304 border-bottom: 3px solid $orange; 305 } 306 } 307 308 .use-case{ 309 @include clearfix(); 310 311 .use-overview{ 312 h2{ 313 margin-bottom: $small-pad; 314 } 315 .use-subtitle{ 316 font-weight: $font-weight-light; 317 color: $orange; 318 } 319 320 .use-icons{ 321 margin-bottom: $xsmall-pad; 322 323 ul{ 324 list-style-type: none; 325 } 326 327 li{ 328 display: inline-block; 329 height: 58px; 330 margin-right: 12px; 331 } 332 333 .icon{ 334 display: inline-block; 335 height: 100%; 336 text-indent: 100%; 337 white-space: nowrap; 338 overflow: hidden; 339 340 &.rails{ 341 width: 47px; 342 background: image-url('../images/icon-rails.png') center center no-repeat; 343 @include img-retina("../images/icon-rails.png", "../images/icon-rails@2x.png", 47px, 58px); 344 } 345 &.aws{ 346 width: 112px; 347 background: image-url('../images/icon-aws.png') center center no-repeat; 348 @include img-retina("../images/icon-aws.png", "../images/icon-aws@2x.png", 112px, 44px); 349 } 350 } 351 } 352 } 353 354 .use-steps{ 355 .use-step{ 356 margin-bottom: $small-pad; 357 358 h3{ 359 color: $orange; 360 margin-bottom: $small-pad; 361 362 .use-count{ 363 border-bottom: 3px solid $orange; 364 } 365 } 366 367 p{ 368 margin-bottom: $xsmall-pad; 369 } 370 371 .prettyprint{ 372 margin-bottom: $xsmall-pad; 373 font-family: $font-family-bitstream; 374 } 375 } 376 } 377 } 378 } 379 380 @media (min-width: 1200px) { 381 382 } 383 384 385 @media (max-width: 1200px) { 386 #hero{ 387 #hero-graphic{ 388 //@include translate3d(-30px, 0, 0); 389 width: 900px; 390 height: 319px; 391 background: image-url('../images/graphic-hero.png') 6px 0 no-repeat; 392 @include img-retina("../images/graphic-hero.png", "../images/graphic-hero@2x.png", 900px, 319px); 393 } 394 } 395 } 396 397 // @media (min-width: 992px) and (max-width:1200px) { 398 // #cta a { 399 // margin-top: 15px; 400 // font-size: 18px; 401 // } 402 // } 403 // 404 // @media (min-width: 768px) and (max-width:992px) { 405 // #cta a { 406 // margin-top: 10px; 407 // } 408 // } 409 410 @media (max-width: 992px) { 411 412 .section.section-50{ 413 flex-direction: column; 414 .r50{ 415 width: 100%; 416 //padding-bottom: 120px; 417 } 418 } 419 420 #hero{ 421 #hero-graphic{ 422 //@include translate3d(-30px, 0, 0); 423 width: 700px; 424 height: 249px; 425 background: image-url('../images/graphic-hero.png') 6px 0 no-repeat; 426 @include img-retina("../images/graphic-hero.png", "../images/graphic-hero@2x.png", 700px, 249px); 427 } 428 } 429 430 #subhero-banner{ 431 text-align: center; 432 433 h2, p{ 434 text-align: center; 435 } 436 437 a{ 438 float: none; 439 } 440 441 .otto-lrg-white{ 442 margin: $small-pad 0 $med-pad; 443 width: 100%; 444 height: 147px; 445 background: image-url('../images/otto-subhero.png') center 0 no-repeat; 446 @include img-retina("../images/otto-subhero.png", "../images/otto-subhero@2x.png", 180px, 147px); 447 } 448 } 449 450 .feature{ 451 &#microservices{ 452 .container{ 453 height: 450px + 300px; //? 454 455 .feature-graphic{ 456 position: absolute; 457 margin-top: 300px; 458 right: 5%; 459 } 460 } 461 } 462 } 463 } 464 465 @media (max-width: 768px) { 466 467 #hero{ 468 #hero-graphic{ 469 //@include translate3d(-30px, 0, 0); 470 margin: $small-pad 0; 471 width: 100%; 472 height: 420px; 473 background: image-url('../images/graphic-hero-mobile.png') center 0 no-repeat; 474 @include img-retina("../images/graphic-hero-mobile.png", "../images/graphic-hero-mobile@2x.png", 291px, 420px); 475 } 476 477 #hero-text{ 478 position: relative; 479 text: center; 480 margin-top: 60px; 481 482 h1{ 483 margin-bottom: 8px; 484 color: $black; 485 font-size: $font-size-l; 486 } 487 488 h3{ 489 margin-top: 6px; 490 color: $blue-dark; 491 font-size: $font-size-reg; 492 493 } 494 } 495 } 496 497 .feature{ 498 // .feature-header{ 499 // text-align: center; 500 // 501 // h3{ 502 // margin-bottom: $xsmall-pad; 503 // font-size: $font-size-m; 504 // line-height: $font-size-m + 6; 505 // } 506 // 507 // p{ 508 // margin-bottom: $small-pad; 509 // } 510 // } 511 // 512 // .feature-footer{ 513 // text-align: center; 514 // } 515 516 &#automate{ 517 .feature-graphic{ 518 width: 100%; 519 height: 280px; 520 background: image-url('../images/graphic-automate.png') center 0 no-repeat; 521 @include img-retina("../images/graphic-automate.png", "../images/graphic-automate@2x.png", 280px, 280px); 522 } 523 } 524 525 &#focus{ 526 .feature-graphic{ 527 width: 100%; 528 height: 232px; 529 background: image-url('../images/graphic-focus.png') center 0 no-repeat; 530 @include img-retina("../images/graphic-focus.png", "../images/graphic-focus@2x.png", 248px, 232px); 531 } 532 } 533 534 &#deployment{ 535 .feature-graphic{ 536 width: 100%; 537 height: 236px; 538 background: image-url('../images/graphic-deploy.png') center 0 no-repeat; 539 @include img-retina("../images/graphic-deploy.png", "../images/graphic-deploy@2x.png", 280px, 236px); 540 } 541 } 542 543 &#microservices{ 544 .container{ 545 height: auto; 546 547 .feature-graphic{ 548 position: relative; 549 margin-top: 30px; 550 right: auto; 551 width: 100%; 552 height: 450px; 553 background: image-url('../images/graphic-micro-2.jpg') center center no-repeat; 554 @include img-retina("../images/graphic-micro-2.jpg", "../images/graphic-micro-2@2x.jpg", 450px, 343px); 555 background-size: 824px 525px; 556 } 557 } 558 } 559 } 560 // #cta{ 561 // .intro{ 562 // text-align: center; 563 // p{ 564 // text-align: center; 565 // margin-bottom: 15px; 566 // } 567 // } 568 // } 569 } 570 571 572 @media (max-width: 480px) { 573 .feature-footer{ 574 text-align: center; 575 a{ 576 margin-bottom: 15px; 577 margin-left: 0 !important; 578 } 579 } 580 581 .feature{ 582 &#microservices{ 583 .container{ 584 .feature-content{ 585 border: none; 586 } 587 588 .feature-graphic{ 589 height: 213px; 590 background: image-url('../images/graphic-micro-2.jpg') center center no-repeat; 591 @include img-retina("../images/graphic-micro-2.jpg", "../images/graphic-micro-2@2x.jpg", 280px, 213px); 592 } 593 } 594 } 595 } 596 } 597 598 599 @media (max-width: 320px) { 600 #cta a { 601 font-size: 14px; 602 font-weight: 400; 603 } 604 }