nav.sequence-nav { // TODO (cpennington): This doesn't work anymore. XModules aren't able to // import from external sources. @extend .topbar; border: 1px solid #ccc; height: 44px; @include linear-gradient(top, #eee, #ddd); @include border-radius(25px); margin: -4px -20px 30px; position: relative; @include box-shadow(0 1px 0 #fff inset); ol { @include box-sizing(border-box); display: table; height: 100%; margin: 0; padding-left: 3px; padding-right: 90px; width: 100%; a { @extend .block-link; } li { display: table-cell; min-width: 20px; a { width: 34px; height: 34px; margin: 4px auto; background-position: center 10px; background-repeat: no-repeat; border: 1px solid transparent; @include border-radius(35px); cursor: pointer; display: block; padding: 0; position: relative; @include transition(); &:hover { background-color: #fff; background-repeat: no-repeat; background-position: center 10px; } &.active { border-color: $blue; background-color: #fff; z-index: 9; // &:after { // content: '▲'; // position: absolute; // top: 28px; // left: 50%; // z-index: 9999; // margin-left: -5px; // font-size: 12px; // color: #aaa; // } &:hover { background-color: #fff; background-repeat: no-repeat; background-position: center 10px; } } //video &.seq_video { &.inactive { background-image: url('../images/sequence-nav/video-icon-normal.png'); } &.visited { background-image: url('../images/sequence-nav/video-icon-visited.png'); } &.active { @extend .active; background-image: url('../images/sequence-nav/video-icon-current.png'); } } //other &.seq_other { &.inactive { background-image: url('../images/sequence-nav/document-icon-normal.png'); } &.visited { background-image: url('../images/sequence-nav/document-icon-visited.png'); } &.active { background-image: url('../images/sequence-nav/document-icon-current.png'); } } //vertical & problems &.seq_vertical, &.seq_problem { &.inactive { background-image: url('../images/sequence-nav/list-icon-normal.png'); } &.visited { background-image: url('../images/sequence-nav/list-icon-visited.png'); } &.active { background-image: url('../images/sequence-nav/list-icon-current.png'); } &.progress-none { background-image: url('../images/sequence-nav/list-unstarted.png'); } &.progress-some, &.progress-in_progress { background-image: url('../images/sequence-nav/list-unfinished.png'); } &.progress-done { background-image: url('../images/sequence-nav/list-finished.png'); } } p { background: #333; color: #fff; display: none; font-family: $sans-serif; line-height: lh(); left: 0px; opacity: 0; padding: 6px; position: absolute; top: 48px; text-shadow: 0 -1px 0 #000; @include transition(all, .1s, $ease-in-out-quart); white-space: pre; z-index: 99; &:empty { background: none; &::after { display: none; } } &::after { background: #333; content: " "; display: block; height: 10px; left: 18px; position: absolute; top: -5px; @include transform(rotate(45deg)); width: 10px; } } &:hover { p { display: block; margin-top: 4px; opacity: 1; } } } } } ul { list-style: none; height: 100%; position: absolute; right: 0; top: 0; width: 81px; margin: 5px 5px 0 0; border: none; border-bottom: 0; @include border-radius(3px 3px 0 0); li { float: left; margin-bottom: 0; height: 34px; width: 40px; &.prev, &.next { @include linear-gradient(top, #ccc, #888); @include box-shadow(0 -1px 0 rgba(0, 0, 0, .2) inset); a { background-position: center; background-repeat: no-repeat; display: block; height: 34px; width: 40px; text-indent: -9999px; @include transition(all, .2s, $ease-in-out-quad); &:hover { opacity: .5; } &.disabled { cursor: normal; opacity: .4; } } } &.prev { border-radius: 35px 0 0 35px; a { background-image: url('../images/sequence-nav/previous-icon.png'); background-position: center 10px; } } &.next { border-radius: 0 35px 35px 0; a { border-left: 1px solid #888; background-image: url('../images/sequence-nav/next-icon.png'); background-position: center 10px; } } } } body.touch-based-device & ol li a:hover p { display: none; } } div.seq_contents { display: none; } nav.sequence-bottom { margin: lh(2) 0 0; text-align: center; ul { @extend .clearfix; border: 1px solid $border-color; @include border-radius(3px); @include inline-block(); width: 100px; li { float: left; width: 50%; &.prev, &.next { margin-bottom: 0; a { background-position: center center; background-repeat: no-repeat; border: none; display: block; padding: lh(.5) 4px; text-indent: -9999px; @include transition(all, .2s, $ease-in-out-quad); &:hover { background-color: #ddd; color: #000; opacity: .5; text-decoration: none; } &.disabled { opacity: .4; } } } &.prev { a { background-image: url('../images/sequence-nav/previous-icon.png'); border-right: 1px solid lighten(#c6c6c6, 10%); &:hover { background-color: none; } } } &.next { a { background-image: url('../images/sequence-nav/next-icon.png'); &:hover { background-color: none; } } } } } }