/*amazeui doc style*/

/*====================================================================*/

.amp-content {
    counter-reset: header2
}

.amp-content > h2 {
    counter-increment: header2;
    counter-reset: header3
}

.amp-content > h2:before {
    content: counter(header2) ". ";
    color: #888;
    font-weight: 400
}

.amp-content > h3 {
    counter-increment: header3;
    counter-reset: header4
}

.amp-content > h3:before,
.amp-content > h4:before {
    content: counter(header2) "." counter(header3) " ";
    color: #888;
    font-weight: 400
}

.amp-content > h4 {
    counter-increment: header4
}

.amp-content > h4:before {
    content: counter(header2) "." counter(header3) "." counter(header4) " "
}

.amdoc-container {
    max-width: 1200px;
    margin: 0 auto;
}

.amdoc-example {
    position: relative;
    padding: 1rem 0 0;
    border: 1px solid #eee;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-radius: 2px;
    margin-top: 1rem;
    background: #fff;
}

.amdoc-example:after {
    content: '';
    display: table;
    clear: both
}

/*.amdoc-example:before {
    content: '\u0020';
    display: block;
    color: #bbb;
    text-transform: uppercase;
    margin: 0 0 10px -10px;
    font-size: 12px
}*/

.amdoc-example.amdoc-demo:before {
    margin: 0 5px 10px;
}

.amdoc-example + .doc-code {
    margin-top: -1px
}

.amdoc-example + .doc-code pre {
    margin-top: 0;
    border-color: #eee;
    border-top-right-radius: 0;
    border-top-left-radius: 0
}

.doc-code {
    position: relative
}

.doc-code:after {
    position: absolute;
    right: 5px;
    bottom: 5px;
    color: #ccc;
    display: inline-block;
    font: 1.6rem/1 "FontAwesome", sans-serif;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    content: "\f121"
}

.doc-code .am-pre-scrollable::-webkit-scrollbar {
    width: 5px
}

.doc-code .am-pre-scrollable::-webkit-scrollbar-track-piece {
    background: 0 0
}

.doc-code .am-pre-scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .15);
    border-radius: 5px
}

.doc-code .am-pre-scrollable::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, .3)
}

.hljs {
    display: block;
    overflow-x: auto;
    padding: .5em;
    background: #fdf6e3;
    color: #657b83;
    -webkit-text-size-adjust: none
}

.diff .hljs-header,
.hljs-comment,
.hljs-doctype,
.hljs-javadoc,
.hljs-pi,
.lisp .hljs-string {
    color: #93a1a1
}

.hljs-tag,
.hljs-addition,
.hljs-keyword,
.hljs-request,
.hljs-status,
.hljs-winutils,
.method,
.nginx .hljs-title {
    /*color: #859900;*/
    color: #e54d42
}

.hljs-command,
.hljs-dartdoc,
.hljs-hexcolor,
.hljs-link_url,
.hljs-number,
.hljs-phpdoc,
.hljs-regexp,
.hljs-rules .hljs-value,
.hljs-string,
.hljs-tag .hljs-value,
.tex .hljs-formula,
.hljs-selector-pseudo,
.hljs-selector-tag {
    color: #27bb99;
}

.css .hljs-function,
.hljs-built_in,
.hljs-chunk,
.hljs-decorator,
.hljs-id,
.hljs-identifier,
.hljs-localvars,
.hljs-title,
.vhdl .hljs-literal {
    color: #268bd2
}

.hljs-attribute,
.hljs-class .hljs-title,
.hljs-constant,
.hljs-link_reference,
.hljs-parent,
.hljs-type,
.hljs-variable,
.lisp .hljs-body,
.smalltalk .hljs-number {
    color: #b58900
}

.css .hljs-pseudo,
.diff .hljs-change,
.hljs-attr_selector,
.hljs-cdata,
.hljs-header,
.hljs-pragma,
.hljs-preprocessor,
.hljs-preprocessor .hljs-keyword,
.hljs-shebang,
.hljs-special,
.hljs-subst,
.hljs-symbol,
.hljs-symbol .hljs-string {
    color: #cb4b16
}

.hljs-deletion,
.hljs-important {
    color: #dc322f
}

.hljs-link_label {
    color: #6c71c4
}

.tex .hljs-formula {
    background: #eee8d5
}

/*this is new style for doc*/

/*2017/1/18*/

/*==========================================================*/

.amdoc-body {
    /*position: static;*/
    font-size: 0.9375rem;
    background: #fff;
}

.amdoc-header {
    background: #fff;
    box-shadow: 0px 2px 5px #f0f0f0;
}

.amdoc-header-title {
    width: 130px;
    height: 25px;
    color: rgba(0, 0, 0, 0) !important;
    background: url(http://s.amazeui.org/newlogo-2017.png) no-repeat left center;
    background-size: 125px 24px;;
}

.amdoc-nav > li:hover {
    border-bottom: 2px solid #5085ff;
}

.amdoc-nav-active {
    border-bottom: 2px solid #5085ff;
}

.amdoc-content {
    max-width: 1200px;
    position: relative;
    margin: 2rem 0;
    overflow: hidden;
}

.amdoc-main {
    float: right;
    width: 73.17%;
    margin-left: 3.5%;
}

.amdoc-sidebar {
    z-index: 999;
    float: left;
    width: 23.33%;
    font-size: 14px;
    padding-top: 1.25rem;
    border-radius: 4px;
    border-right: 1px solid #eee;
    background-color: #fff;
    overflow: auto;
}

.amdoc-sidebar-list {
    padding-left: 0;
    list-style: none;
}

.amdoc-sidebar-header {
    font-size: 16px;
    /*padding-left: 1.25rem;*/
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.amdoc-sidebar-item {
    display: inline-block;
    width: 100%;
    padding-left: 2.5rem;
}

.amdoc-sidebar-item > a {
    display: table-cell;
    width: 100%;
    color: #666;
    padding: 0.3rem 0;
}

.amdoc-sidebar-item:hover {
    color: #5085FF;
    border-right: 2px solid #5085FF;
    background: #dce7ff;
    cursor: pointer;
}

.amdoc-sidebar-item:hover a {
    color: #5085FF;
}

.amdoc-active {
    color: #5085FF;
    border-right: 2px solid #5085FF;
    background: #dce7ff;
}

.amdoc-active a {
    color: #5085FF;
}

.amdoc-rendered {
    padding: 0 1rem 1rem 1rem;
}

.amdoc-panel {
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
}

.amdoc-example-code {
    border-right: 1px solid #ebebeb;
    padding: 0.5rem;
}

.amdoc-example-desc {
    font-size: 0.875rem;
    padding: 1rem;
    /*border-left: 1px solid #f0f0f0;*/
}

.amdoc-example-desc code {
    white-space: normal;
}

@media screen and (max-width: 641px) {
    .amdoc-example-code {
        border-right: 0;
        border-bottom: 1px solid #ebebeb;
    }
}

.amdoc-example-code > pre {
    background: #fff;
    border: 0;
    padding: 1rem;
    margin: 0;
}

.amdoc-nocode {
    padding: 1rem;
}

.amdoc-collapse {
    position: relative;
    border-top: 1px solid #ebebeb;
}

.am-panel-hd.amdoc-panel-hd {
    color: #b5b5b5;
    background-color: #fff;
    padding: 0;
    text-align: center;
    border: 0;
    border-top: 1px solid #ebebeb;
}

.amdoc-panel-title {
    display: block;
    cursor: pointer;
    padding: 0.5rem;
}

.amdoc-panel-title:hover {
    color: #0f9ae0;
    background: #f0f0f0;
}

.amdoc-panel-title:hover .amdoc-icon-down {
    animation: 0.8s linear infinite;
    animation-name: showcode;
}

.amdoc-panel-title:hover .amdoc-icon-up {
    animation: 0.8s linear infinite;
    animation-name: hidecode;
}

@keyframes showcode {
    0% {
        transform: translateY(0px)
    }
    50% {
        transform: translateY(25px)
    }
    51% {
        transform: translateY(-25px)
    }
    100% {
        transform: translateY(0px)
    }
}

@keyframes hidecode {
    0% {
        transform: translateY(0px)
    }
    50% {
        transform: translateY(-22px)
    }
    51% {
        transform: translateY(22px)
    }
    100% {
        transform: translateY(0px)
    }
}

@media only screen and (min-width: 641px) {
    .amdoc-offcanvas {
        display: block;
        position: relative;
        height: 100%;
    }

    .amdoc-offcanvas-bar {
        position: relative;
        width: 100%;
        background: #fff;
        transform: none;
    }

    .amdoc-offcanvas-bar:after {
        display: none;
    }

    .amdoc-offcanvas-bar > .am-offcanvas-content {
        padding: 0;
        color: #333;
    }
}

.amdoc-offcanvas-bar:after {
    display: none;
}

.amdoc-offcanvas-bar {
    background: #fff;
}

.amdoc-offcanvas-bar > .am-offcanvas-content {
    padding: 0;
    color: #333;
}

@media only screen and (max-width: 641px) {
    .amdoc-sidebar {
        float: none;
        width: 100%;
        top: 0;
        background: rgba(0, 0, 0, 0.15);
        transition: background 1000ms;
        overflow: hidden;
        z-index: 9999;
    }

    /*fixed position error*/
    .amdoc-content {
        /*padding: 0 0.5rem;*/
        left: 0;
        transform: none;
    }

    .amdoc-main {
        width: 100%;
        margin-left: 0;
    }

    .amdoc-sidebar-list {
        margin: 0;
    }

    .amdoc-sidebar-header {
        padding: 0.5rem 0 0.5rem 0.5rem;
        margin-bottom: 0.2rem;
        background: #f3f3f3;
    }

    .amdoc-sidebar-item {
        padding-left: 1.5rem;
        border-bottom: 1px solid #f3f3f3;
    }

    .amdoc-sidebar-item > a {
        /*padding: 0;*/
    }
}

.amdoc-totop {
    position: fixed;
    display: none;
    z-index: 999;
    right: 2rem;
    bottom: 2rem;
}

.amdoc-totop:hover {
    -webkit-transform: rotate(-45deg) scale(1.2);
    transform: rotate(-45deg) scale(1.2);
    -webkit-transition: 100ms;
    transition: 100ms;
}

@media screen and (max-width: 641px) {
    .amdoc-totop {
        right: 10px;
        bottom: 4.5rem;
        background-color: #e1e1e1;
        border-color: #e1e1e1;
        border-radius: 1000px;
    }
}

.amdoc-sidebar-trigger {
    position: fixed;
    z-index: 999;
    right: 10px;
    bottom: 110px;
}

.am-offcanvas.am-active {
    display: block;
    background: rgba(0, 0, 0, 0.15);
    transition: background 1000ms;
}

.amdoc-action {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 33.4%;
    font-size: 0.75rem;
    color: #bbb;
    padding: 0px 2px 0px 4px;
    cursor: pointer;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-bottom-left-radius: 4px;
    z-index: 9;
}

@media screen and (max-width: 641px) {
    .amdoc-action {
        right: 0
    }
}

.amdoc-action:hover {
    color: #fff;
    border-color: #5085FF;
    background: #5085FF;
}

.amdoc-footer {
    /*height: 5rem;*/
    padding: 1rem 0 0;
    overflow: hidden;
    text-align: center;
    background: #333;
}

.amdoc-footer-list {
    margin: 0 auto;
    padding-left: 0;
}

.amdoc-footer-list li {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0 1rem;
    list-style: none;
}

.amdoc-footer a {
    color: #e1e1e1;
}

.amdoc-footer p {
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
    color: #999;
}

.amdoc-footer-logo {
    display: inline-block;
    width: 120px;
    height: 40px;
    margin-bottom: 1rem;
    border-left: 0px !important;
    background: url("http://s.amazeui.org/newlogo-color-2017.png") no-repeat center center;
}

.amdoc-version {
    color: #999;
    margin: 1rem 0 0.2rem !important;
}

