github.com/billybanfield/evergreen@v0.0.0-20170525200750-eeee692790f7/public/static/less/global_styles.less (about) 1 // MMS Colors 2 @green0: #365221; 3 @green1: #507b32; 4 @green2: #6ba442; 5 @green3: #89b668; 6 @green4: #a6c88e; 7 @green5: #c4dbb3; 8 9 // default text color is @gray1 10 @gray0: #313030; 11 @gray1: #494747; 12 @gray2: #615f5f; 13 @gray3: #807f7f; 14 @gray4: #a09f9e; 15 @gray5: #bfbfbe; 16 17 // UI Grays 18 @gray6: #dee0e3; 19 @gray7: #ebebed; 20 @gray8: #f5f6f7; 21 22 // Other Colors (from MMS) 23 @red: #ed271c; 24 @lightRed: #ffeaea; 25 @purple: #800080; 26 @yellow: #ffb618; 27 @pw: #fff; 28 @cautionOrange: #ffbc91; 29 @errorBackground: #fdd0d1; 30 @pageBackground: #f5f6f7; 31 32 // Text Colors 33 @linkText: #006cbc; 34 @warningText: #ffb618; 35 @successText: #6ca439; 36 @errorText: #ed271c; 37 @mutedText: #9b9694; 38 @veryMutedText: #b6b3b2; 39 @subNavText: #6f6763; 40 // END MMS Colors 41 42 43 @errorRed: #d9534f; 44 @quietErrorRed: #e7908e; 45 @successGreen: #5cb85c; 46 47 // Standard colors for page sections 48 @section-bg: #f0f0f0; 49 @section-border: #d0d0d0; 50 @section-border-width: 1px; 51 52 // Styling for execution results 53 @success-text: #0ED400; 54 @failed-text: #F24738; 55 @system-failed-text: @purple; 56 @cancelled-text: #F10FF2; 57 @started-text: #F29200; 58 @not-started-text: #808080; 59 60 // Styling for exec results on icons 61 @success-icon: #29941D; 62 @failed-icon: darken(#F24738, 10%); 63 @cancelled-icon: #111; 64 65 @started-border: #C4A208; 66 @started: #FFD20A; 67 68 // Nav bar styling 69 @nav-bar-height: 30px; 70 71 @default-bg-color: @gray5; 72 @started-bg-color: @yellow; 73 @sys-failure-bg-color: @purple; 74 75 @default-text-color: #888; 76 77 // Link stylings 78 @link-opacity: .8; 79 .div-link { 80 opacity: @link-opacity; 81 cursor: pointer; 82 } 83 @vibrant-link-opacity: .5; 84 .div-vibrant-link { 85 opacity: @vibrant-link-opacity; 86 cursor: pointer; 87 } 88 89 /* Fonts! */ 90 //Reg 91 @font-face { 92 font-family: 'Akzidenz'; 93 src: url('/static/font/akzidgrostdreg.eot'); 94 src: url('/static/font/akzidgrostdreg.eot?#iefix') format('embedded-opentype'), 95 url('/static/font/akzidgrostdreg.woff') format('woff'), 96 url('/static/font/akzidgrostdreg.ttf') format('truetype'); 97 font-style: normal; 98 font-weight: normal; 99 } 100 //Reg Italic 101 @font-face { 102 font-family: 'Akzidenz'; 103 src: url('/static/font/akzidgrostdita.eot'); 104 src: url('/static/font/akzidgrostdita.eot?#iefix') format('embedded-opentype'), 105 url('/static/font/akzidgrostdita.woff') format('woff'), 106 url('/static/font/akzidgrostdita.ttf') format('truetype'); 107 font-style: italic; 108 font-weight: normal; 109 } 110 //Bold 111 @font-face { 112 font-family: 'Akzidenz'; 113 src: url('/static/font/akzidgrostdmed.eot'); 114 src: url('/static/font/akzidgrostdmed.eot?#iefix') format('embedded-opentype'), 115 url('/static/font/akzidgrostdmed.woff') format('woff'), 116 url('/static/font/akzidgrostdmed.ttf') format('truetype'); 117 font-style: normal; 118 font-weight: bold; 119 } 120 //Bold Italic 121 @font-face { 122 font-family: 'Akzidenz'; 123 src: url('/static/font/akzidgrostdmedita.eot'); 124 src: url('/static/font/akzidgrostdmedita.eot?#iefix') format('embedded-opentype'), 125 url('/static/font/akzidgrostdmedita.woff') format('woff'), 126 url('/static/font/akzidgrostdmedita.ttf') format('truetype'); 127 font-style: italic; 128 font-weight: bold; 129 } 130 //Light 131 @font-face { 132 font-family: 'Akzidenz'; 133 src: url('/static/font/akzidgrostdlig.eot'); 134 src: url('/static/font/akzidgrostdlig.eot?#iefix') format('embedded-opentype'), 135 url('/static/font/akzidgrostdlig.woff') format('woff'), 136 url('/static/font/akzidgrostdlig.ttf') format('truetype'); 137 font-style: normal; 138 font-weight: 200; 139 } 140 //Light Italic 141 @font-face { 142 font-family: 'Akzidenz'; 143 src: url('/static/font/akzidgrostdligita.eot'); 144 src: url('/static/font/akzidgrostdligita.eot?#iefix') format('embedded-opentype'), 145 url('/static/font/akzidgrostdligita.woff') format('woff'), 146 url('/static/font/akzidgrostdligita.ttf') format('truetype'); 147 font-style: italic; 148 font-weight: 200; 149 } 150 //Condensed weights and styles 151 @font-face { 152 font-family: 'Akzidenz Cnd'; 153 src: url('/static/font/akzidgrostdligcnd.eot'); 154 src: url('/static/font/akzidgrostdligcnd.eot?#iefix') format('embedded-opentype'), 155 url('/static/font/akzidgrostdligcnd.woff') format('woff'), 156 url('/static/font/akzidgrostdligcnd.ttf') format('truetype'); 157 font-style: normal; 158 font-weight: 200; 159 } 160 161 //////////////////////// 162 // new global MCI styles 163 body { 164 padding-top: 50px; // compensate for 50px tall fixed navbar 165 } 166 167 h4, 168 h5, 169 h6, 170 .h4, 171 .h5, 172 .h6 { 173 font-weight: bold; 174 } 175 176 header { 177 h1 { 178 display: inline-block; 179 font-size: 24px; 180 margin-top: 15px; 181 182 &.one-liner { 183 display: inline-block; 184 width: 85%; 185 } 186 } 187 .status-label { 188 font-size: 12px; 189 } 190 .form-inline.header-form { 191 display: inline-block; 192 margin-left: 10px; 193 194 .form-control { 195 margin-top: -10px; 196 width: 150px; 197 } 198 .checkbox { 199 margin-top: -10px; 200 margin-left: 10px; 201 } 202 } 203 204 .header-pagination { 205 float: right; 206 margin-top: 15px; 207 } 208 } 209 210 .one-liner { 211 overflow: hidden; 212 white-space: nowrap; 213 text-overflow: ellipsis; 214 display: block; 215 } 216 217 ol.breadcrumb { 218 background: none; 219 border-radius: 0; 220 margin: 15px 0 0 0; 221 padding: 0; 222 223 li { 224 text-transform: none; 225 font-size: 12px; 226 font-weight: normal; 227 } 228 } 229 230 .page-actions { 231 margin-top: 15px; 232 } 233 .dropdown { 234 .admin-disabled a { 235 cursor: default; 236 color: @gray5; 237 238 &:hover { 239 background: transparent; 240 color: @gray5; 241 } 242 } 243 } 244 245 pre { 246 background: @pw; 247 border-radius: 0; 248 border: 1px solid @gray8; 249 } 250 251 .mci-pod { 252 padding: 15px; 253 margin-bottom: 20px; 254 background: @pw; 255 } 256 257 h3.section-heading { 258 margin: 15px 0 10px; 259 } 260 261 .btn.btn-hash { 262 text-transform: none; 263 font-family: Menlo, Monaco, monospace; 264 } 265 266 .mono { 267 font-family: monospace; 268 } 269 // END new global MCI styles 270 //////////////////////////// 271 272 // To allow absolute placement of children within parents 273 .allow-absolute-children { 274 position: relative; 275 } 276 277 .absolute-child { 278 position: absolute; 279 } 280 281 .logs-display { 282 font-family: "Fixed"; 283 } 284 285 .rounded-corners { 286 border-radius: 5px; 287 -moz-border-radius: 5px; 288 } 289 290 .section-block { 291 background-color: @section-bg; 292 border: solid @section-border-width @section-border; 293 } 294 295 .tooltip { 296 overflow: hidden; 297 } 298 299 // List styling 300 .no-decoration { 301 margin-left: 0; 302 list-style-type: none; 303 } 304 305 // progress bar stuff 306 .progress-bar-danger { 307 background-color: @errorRed; 308 } 309 .progress-bar-success { 310 background-color: @successGreen; 311 } 312 .progress-bar-system-failed { 313 background-color: @purple; 314 } 315 .progress-bar-failed { 316 background-color: @errorRed; 317 } 318 .progress-bar-silently-failed { 319 background-color: @quietErrorRed; 320 } 321 322 // for wrapping a status label 323 .status-label { 324 width: 100%; 325 font-size: 18px; 326 padding: 5px 10px; 327 text-align: center; 328 vertical-align: middle; 329 } 330 331 // Execution result classes 332 .status-success { 333 color: @success-text; 334 } 335 336 .status-failed { 337 color: @failed-text; 338 } 339 340 .status-cancelled { 341 color: @cancelled-text; 342 } 343 344 .status-started { 345 color: @started-text; 346 } 347 348 .status-dispatched { 349 color: @started-text; 350 } 351 352 .status-undispatched { 353 color: @not-started-text; 354 } 355 356 .status-unstarted { 357 color: @not-started-text; 358 } 359 360 361 //Execution result classes for icons (not text) 362 .icon-invisible{ 363 visibility:hidden; 364 } 365 366 .status-icon-success{ 367 color: @success-icon; 368 } 369 370 .status-icon-started{ 371 opacity:0.0; 372 -webkit-animation: pulsate 1s ease-out; 373 -webkit-animation-iteration-count: infinite; 374 } 375 @-webkit-keyframes pulsate { 376 0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.4;} 377 50% {opacity: 1.0;} 378 100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.2;} 379 } 380 381 .status-icon-dispatched{ 382 -webkit-animation: pulsate 1s ease-out; 383 -webkit-animation-iteration-count: infinite; 384 } 385 386 .status-icon-failed{ 387 color: @failed-icon; 388 } 389 390 .status-icon-cancelled{ 391 color: @cancelled-icon; 392 } 393 394 .block-status-success { 395 color: black; 396 background-color: @success-text; 397 border: 1px solid @success-text; 398 } 399 400 .block-status-inactive { 401 color: black; 402 background-color: @gray7; 403 border: 1px solid @success-text; 404 } 405 406 .block-status-failed { 407 color: black; 408 background-color: @failed-text; 409 border: 1px solid @failed-text; 410 } 411 412 .block-status-system-failed { 413 color: black; 414 background-color: @system-failed-text; 415 border: 1px solid @system-failed-text; 416 } 417 418 .block-status-started { 419 color: black; 420 background-color: @started; 421 border: 1px solid @started-border; 422 } 423 424 .block-status-dispatched { 425 color: black; 426 background-color: @started; 427 border: 1px solid @started-border; 428 } 429 430 // for the new version - the others should be phased out 431 .success { 432 background-color: @successGreen; 433 color: white; 434 } 435 .failed { 436 background-color: @errorRed; 437 color: white; 438 } 439 .dispatched { 440 background-color: @started-bg-color; 441 } 442 .undispatched { 443 background-color: @default-bg-color; 444 } 445 .started { 446 background-color: @started-bg-color; 447 } 448 .system-failed { 449 background-color: @sys-failure-bg-color; 450 color: white; 451 } 452 .unstarted { 453 background-color: @default-bg-color; 454 } 455 .created { 456 background-color: @default-bg-color; 457 } 458 .inactive { 459 background-color: @gray7; 460 } 461 462 // only modifies the text color, not the background color 463 .success-text { 464 color: #1e781e; 465 } 466 .failed-text { 467 color: #ff3500; 468 } 469 .gitspec { 470 color: #333; 471 font-family: monospace; 472 font-weight: bold; 473 } 474 .pointer { 475 cursor: pointer; 476 } 477 .semi-muted { 478 color: #666666; 479 } 480 .muted { 481 color: #999999; 482 } 483 484 .result-slice { 485 height: 23px; 486 float: left; 487 border-left: 1px solid rgba(255,255,255,0.75); 488 489 &.success { 490 background-color: @successGreen; 491 } 492 &.failed { 493 background-color: @errorRed; 494 color: white; 495 } 496 &.system-failed { 497 background-color: @sys-failure-bg-color; 498 color: white; 499 } 500 &.started { 501 background-color: @started-bg-color; 502 } 503 &.undispatched { 504 background-color: @gray5; 505 } 506 &.unscheduled { 507 background-color: @gray7; 508 } 509 } 510 511 .result-slice:first-of-type { 512 border: none; 513 } 514 515 .history-row { 516 padding-top: 10px; 517 padding-bottom: 10px; 518 519 &.active { 520 background: fade(@yellow, 15%); 521 } 522 .progress { 523 margin-bottom: 0; 524 } 525 } 526 527 .history-row:first-of-type { 528 margin-top: -10px; 529 } 530 531 .repo-div { 532 border-bottom: 1px solid #ddd; 533 } 534 535 .repo-name { 536 font-weight: bold; 537 padding: 4px 10px; 538 } 539 540 // github commit widget 541 .commit-panel { 542 margin: 0 0 25px; 543 } 544 .commit-message-large { 545 font-size: 16px; 546 } 547 .commit-meta-data-wrapper { 548 max-width: 80%; 549 float: left; 550 } 551 .commit-message { 552 overflow: hidden; 553 white-space: nowrap; 554 text-overflow: ellipsis; 555 } 556 .commit-message-author { 557 overflow: hidden; 558 white-space: nowrap; 559 text-overflow: ellipsis; 560 display: block; 561 font-size: 13px; 562 } 563 .commit-message a { 564 color: @linkText; 565 } 566 .commit-message a.highlight { 567 color: @linkText; 568 } 569 570 img.gravatar-small { 571 float: left; 572 margin-right: 8px; 573 border-radius: 18px; 574 height: 36px; 575 width: 36px; 576 } 577 img.gravatar-medium { 578 float: left; 579 margin-right: 10px; 580 border-radius: 6px; 581 height: 50px; 582 width: 50px; 583 } 584 585 586 // needed on /patches, not sure where else 587 ul { 588 padding-left: 0px !important; 589 } 590 ul.inline { 591 list-style: none !important; 592 margin-left: 0px !important; 593 } 594 ul.inline li { 595 display: inline-block !important; 596 line-height: 20px !important; 597 } 598 599 // new subclass .force-inline that preserves inline forms at smaller breakpoints 600 .form-inline.force-inline .form-group { 601 display: inline-block; 602 margin-bottom: 0; 603 vertical-align: middle; 604 } 605 .form-inline.force-inline .form-control { 606 display: inline-block; 607 width: auto; 608 vertical-align: middle; 609 } 610 .form-inline.force-inline .input-group > .form-control { 611 width: 100%; 612 } 613 .form-inline.force-inline .control-label { 614 margin-bottom: 0; 615 vertical-align: middle; 616 } 617 .form-inline.force-inline .radio, 618 .form-inline.force-inline .checkbox { 619 display: inline-block; 620 padding-left: 0; 621 margin-top: 0; 622 margin-bottom: 0; 623 vertical-align: middle; 624 } 625 .form-inline.force-inline .radio input[type="radio"], 626 .form-inline.force-inline .checkbox input[type="checkbox"] { 627 float: none; 628 margin-left: 0; 629 } 630 .form-inline.force-inline .has-feedback .form-control-feedback { 631 top: 0; 632 } 633 634 #help-btn { 635 font-size: 20px; 636 } 637 638 .alert{ 639 font-size:2em; 640 } 641 button.alert-close { 642 padding: 0; 643 cursor: pointer; 644 background: 0 0; 645 border: 0; 646 font-size: 1.2em; 647 margin-right: 15px; 648 font-weight: 700; 649 line-height: 1; 650 color: #000; 651 text-shadow: 0 1px 0 #fff; 652 opacity: .2; 653 } 654 655 .warning-text { 656 color: @warningText; 657 } 658 659 .error-text { 660 color: @errorText; 661 } 662 663 // Prevent text selection 664 .noselect { 665 -webkit-touch-callout: none; /* iOS Safari */ 666 -webkit-user-select: none; /* Chrome/Safari/Opera */ 667 -khtml-user-select: none; /* Konqueror */ 668 -moz-user-select: none; /* Firefox */ 669 -ms-user-select: none; /* IE/Edge */ 670 user-select: none; /* non-prefixed version, currently not supported by any browser */ 671 } 672 673 .mono { 674 font-family: monospace; 675 } 676 677 .nowrap { 678 white-space: nowrap; 679 } 680 681 /* for integrating text inline with labels but without background/all-caps */ 682 .label.unlabel{ 683 text-transform:none; 684 } 685 686