UNPKG

qunit-dark

Version:
419 lines (345 loc) 8.18 kB
/*! * QUnit 1.14.0 * http://qunitjs.com/ * * Copyright 2013 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-01-31T16:40Z */ /*! * * Modified by Roy Riojas to have a darker theme */ /** Font Family and Sizes */ html { background: #222; } #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult { font-family: "Source Sans Pro", "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif; } #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: 15px; } #qunit-tests { font-size: smaller; } /** Resets */ #qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter { margin: 0; padding: 0; } /** Header */ #qunit-header { padding: 0.5em 0 0.5em 1em; color: #8699A4; animation: fadeInLeft 0.5s ease-out; } #qunit-header a { text-decoration: none; color: #C2CCD1; font-size: 2.5rem; line-height: 1.3em; font-weight: 500; } #qunit-header a:hover, #qunit-header a:focus { color: #FFF; } #qunit-testrunner-toolbar label { display: inline-block; padding: 0 0.5em 0 0.1em; } #qunit-banner { height: 5px; transition:all 0.5s ease-out; background: rgba(244, 249, 252, 0.1); margin-bottom: 10px; } #qunit-testrunner-toolbar { padding: 0.5em 0 0.5em 2em; color: #6E99A7; position: absolute; max-width: 80%; text-align: right; right: 0; top: 57px; } #qunit-userAgent { color: #eee; font-weight: 400; border-bottom: 5px solid transparent; transition: all 0.5s ease-out; position: absolute; top: 0; right: 0; padding: 8px 10px 3px; font-size: 13px; text-align: right; max-width: 40%; } #qunit-modulefilter-container { float: right; padding-right: 10px; } /** Tests: Pass/Fail */ #qunit-tests { list-style-position: inside; color: #aaa; padding-top: 30px; } #qunit-tests li { padding: 0.4em 0.5em 0.4em 2.5em; list-style-position: inside; padding-right: 50px; } #qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running { display: none; } #qunit-tests li strong { cursor: pointer; } #qunit-tests li a { padding: 0.5em; color: #A5A3A3; text-decoration: none; } #qunit-tests li a:hover, #qunit-tests li a:focus { color: #fff; } #qunit-tests li { position: relative; //min-height: 41px; } #qunit-tests li .runtime { position: absolute; right: 89px; top: 12px; font-size: smaller; } .qunit-assert-list { margin-top: 0.5em; animation: fadeInDown .5s ease-out; } .qunit-collapsed { display: none; } #qunit-tests table { border-collapse: collapse; margin-top: 0.2em; } #qunit-tests th { text-align: right; vertical-align: top; padding: 0 0.5em 0 0; } #qunit-tests td { vertical-align: top; } #qunit-tests pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; font-family: Monaco, Consolas, monospace; font-size: 12px; padding: 3px; color:#C7B0C4; } #qunit-tests del { background-color: #E0F2BE; color: #374E0C; text-decoration: none; } #qunit-tests ins { background-color: #FFCACA; color: #500; text-decoration: none; } /*** Test Counts */ #qunit-tests b.counts { color: #A5A3A3; font-weight: 600; background: #151C22; padding: 5px 10px; margin-left: 10px; margin-right: 10px; display: inline-block; } #qunit-tests b.passed { color: #5E740B; } #qunit-tests b.failed { color: #DF5656; } #qunit-tests li li { padding: 5px; border-bottom: none; list-style-position: inside; } /*** Passing Styles */ #qunit-tests li li.pass { color: #FFEB81; padding-left: 15px; padding-top: 8px; padding-bottom: 10px; border-bottom: 1px solid #557450; } #qunit-tests li li.pass:last-child { border-bottom: none; } #qunit-tests li li .test-message { /*text-transform: capitalize;*/ } #qunit-tests li li.pass .test-message:before { speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "✓"; margin-right: 10px; color: #5DD340; } #qunit-tests .pass { color: #88B17E; } #qunit-tests > .pass { animation: fadeInRight .5s ease-out; } #qunit-tests > .pass:hover { background: #363A33; } #qunit-tests .pass .test-name { color: #EC9F3C; } #qunit-tests .pass .test-actual, #qunit-tests .pass .test-expected { color: #999; } #qunit-banner.qunit-pass { /*background-color: rgba(71, 160, 59, 0.98)*/ } #qunit-banner.qunit-pass + #qunit-testrunner-toolbar { /*background-color: #B5CAA0;*/ /*transition:all .5s ease-out;*/ /*color: #254a25;*/ } #qunit-banner.qunit-pass + #qunit-testrunner-toolbar + #qunit-userAgent { /*background-color: #B5CAA0;*/ /*color: #254a25;*/ } #qunit-banner.qunit-pass + #qunit-testrunner-toolbar + #qunit-userAgent + #qunit-testresult { background: #C3D8AE; color: #254a25; border-bottom: 1px solid rgba(71, 160, 59, 0.98); border-top: 1px solid rgba(71, 160, 59, 0.98); animation: flipInX 1s ease-out; } /*#F59B9B*/ /*** Failing Styles */ #qunit-tests li li.fail { color: #ff8686; white-space: pre; border-bottom: 1px solid indianred; } #qunit-tests li li.fail:last-child { border-bottom: none; } .fail .test-message { color: rgb(162, 122, 122); } #qunit-tests > li:last-child { /*border-radius: 0 0 5px 5px;*/ } #qunit-tests > .fail:nth-child(2n+1) { /*background: rgb(48, 48, 43);*/ } #qunit-tests > .fail:hover { color: #EE5757; background: rgba(93, 37, 37, 0.30); } #qunit-tests .fail .test-name { color: #9D77A7; font-size: 1.3rem; line-height: 2em; } #qunit-tests .fail .module-name { color: #FF8686; font-size: 1.3rem; line-height: 2em; } #qunit-tests .fail .test-actual { color: #EE5757; } #qunit-tests .fail .test-expected { color: #008000; } #qunit-banner.qunit-fail { /*background: #EE5757; */ } #qunit-banner.qunit-fail + #qunit-testrunner-toolbar { /*background-color: #F59B9B;*/ /*transition:all .5s ease-out;*/ /*color: #381616;*/ } #qunit-banner.qunit-fail + #qunit-testrunner-toolbar + #qunit-userAgent { /*background-color: #F59B9B;*/ /*color: #381616;*/ } #qunit-banner.qunit-fail + #qunit-testrunner-toolbar + #qunit-userAgent + #qunit-testresult { background-color: #E48F8F; color: #381616; border-bottom: 1px solid #EE5757; animation: flipInX 1s ease-out; } #qunit-tests li li.fail .test-message:before { speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "×"; margin-right: 10px; color: #ff8686; } /** Result */ #qunit-testresult { padding: 0.5em 0.5em 0.7em 2.5em; color: #aaa; border-bottom: 1px solid rgba(244, 249, 252, 0.1); transition: all 0.7s ease-out; margin-top: 20px; } #qunit-testresult .module-name { font-weight: 700; } /** Fixture */ #qunit-fixture { position: absolute; top: -10000px; left: -10000px; width: 1000px; height: 1000px; } #qunit-tests > .pass:nth-child(2n+1) { background: rgb(48, 48, 43); } #qunit-tests .fail table { background: #333; padding: 10px; width: 100%; margin-top: 10px; margin-bottom: 10px; } .fail table td, #qunit-tests .fail table th{ padding: 8px; } #qunit-tests .fail table th { width: 100px; color: #C7B0C4; background: rgb(83, 52, 71); } #qunit-tests li strong+a { padding: 4px 10px; background: rgb(48, 67, 90); display: inline-block; color: #eee; margin-left: 10px; position: absolute; right: 20px; } #qunit-tests li.running strong+a { display: none; } #qunit-tests li strong+a:hover { padding: 4px 10px; background: rgb(64, 91, 124); display: inline-block; color: #fff; margin-left: 10px; position: absolute; right: 20px; }