123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485 |
- <style>
- nav-bar {
- position: absolute;
- height: 48px;
- width: 100%;
- bottom: 10px;
- display: flex;
- justify-content: center;
- }
- nav-bar .nav-container {
- display: flex;
- flex-direction: row;
- margin: 0 10px;
- height: 100%;
- width: 100%;
- justify-content: center;
- }
- nav-bar .animation-control {
- background-color: rgba(91, 93, 107, .75);
- display: flex;
- flex-direction: row;
- height: 100%;
- width: 100%;
- max-width: 1280px;
- justify-content: center;
- }
- nav-bar .flex-container {
- display: flex;
- flex-direction: row;
- justify-content: center;
- height: 100%;
- width: 100%;
- }
- nav-bar button {
- background: none;
- border: none;
- color: white;
- margin: 0;
- padding: 0;
- height: 100%;
- min-width: 48px;
- cursor: pointer;
- }
- nav-bar button:hover,
- nav-bar button:active,
- nav-bar button:focus {
- background: none;
- border: none;
- outline: none;
- }
- nav-bar button:hover {
- background-color: rgba(22, 24, 26, .20);
- }
- nav-bar .control-text {
- font-family: "Segoe UI";
- font-size: 12px;
- font-weight: 400;
- pointer-events: none;
- }
- nav-bar img,
- nav-bar .icon {
- pointer-events: none;
- }
- .logo-button {
- display: flex;
- align-items: center;
- flex-direction: row;
- justify-content: center;
- background-color: rgba(91, 93, 107, .75);
- height: 48px;
- min-width: 48px;
- margin-right: 4px;
- }
- .logo-button img {
- height: 20px;
- width: 20px;
- }
- .types {
- display: flex;
- flex-direction: column;
- width: 48px;
- }
- .types .flex-container,
- .speed .flex-container {
- align-items: center;
- }
- .menu-options {
- position: absolute;
- bottom: 48px;
- width: 48px;
- background-color: rgba(22, 24, 26, .90);
- }
- .logo-button,
- .animation-label,
- .types-icon,
- .help,
- .speed {
- display: none;
- }
- .types-icon:after {
- font-size: 16px;
- content: "\F6BE";
- }
- .up-icon:after {
- line-height: 16px;
- font-size: 12px;
- content: "\E70E";
- }
- .play-icon:after {
- font-size: 16px;
- content: "\E768";
- }
- .pause-icon:after {
- font-size: 16px;
- content: "\E769";
- }
- .fullscreen-icon:after {
- font-size: 16px;
- content: "\E740";
- }
- .help-icon:after {
- /* TODO: wrong Icon, need font update */
- font-size: 16px;
- content: "\F70C";
- }
- .progress-control {
- display: flex;
- flex: 1;
- position: relative;
- overflow: hidden;
- cursor: pointer;
- }
- .animation-number {
- margin: 0 6px;
- }
- .speed-text {
- margin-right: 6px;
- }
- .progress-circle {
- width: 12px;
- height: 12px;
- border: 2px solid rgb(255, 255, 255);
- border-radius: 50%;
- background-color: rgb(91, 93, 107);
- cursor: pointer;
- position: relative;
- bottom: 10px;
- pointer-events: none;
- }
- .default-control {
- display: flex;
- flex-direction: row;
- height: 100%;
- background-color: rgba(91, 93, 107, .75);
- }
- .menu-options button {
- width: 100%;
- height: 48px;
- color: rgb(142, 147, 155);
- }
- .menu-options button {
- width: 100%;
- height: 48px;
- color: rgb(142, 147, 155);
- }
- .menu-options button:hover {
- background-color: transparent;
- color: rgb(255, 255, 255);
- }
- .menu-options .animation-number {
- margin: 0 18px 0 6px;
- }
- .menu-options .speed-text {
- margin-right: 18px;
- }
- .menu-options {
- visibility: hidden;
- }
- .open .menu-options {
- visibility: visible;
- }
- .types .menu-options {
- width: 144px;
- }
- .types .menu-options button {
- padding: 0 8px;
- justify-content: left;
- }
- .types .menu-options button>* {
- display: flex;
- margin: 8px;
- }
- .types .menu-options button span.animation-number {
- display: none;
- }
- @media screen and (min-width: 540px) {
- .help,
- .types-icon,
- .speed {
- display: inline-block;
- }
- .logo-button {
- display: flex;
- }
- .types {
- width: 84px;
- }
- .progress-bar-container {
- margin: 0 12px;
- }
- .speed {
- width: 64px;
- }
- .speed .menu-options {
- width: 64px;
- }
- }
- @media screen and (min-width: 1024px) {
- .animation-label {
- display: block;
- margin-left: 6px;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- nav-bar button.animation-buttons {
- padding: 0 8px;
- justify-content: left;
- }
- .icon.up-icon {
- margin-left: 8px;
- }
- nav-bar button.animation-buttons>div {
- display: flex;
- pointer-events: none;
- }
- .animation-number {
- display: none;
- }
- .progress-bar-container {
- margin: 0 12px;
- }
- .types {
- width: 144px;
- }
- }
- .progress-wrapper {
- -webkit-appearance: none;
- cursor: pointer;
- width: 100%;
- outline: none;
- margin: 0 12px;
- background-color: transparent;
- }
- /*Chrome -webkit */
- .progress-wrapper::-webkit-slider-thumb {
- -webkit-appearance: none;
- width: 20px;
- height: 20px;
- border: 2px solid white;
- border-radius: 50%;
- background: rgba(91, 93, 107, 1);
- margin-top: -10px;
- }
- .progress-wrapper::-webkit-slider-runnable-track {
- height: 2px;
- -webkit-appearance: none;
- background-color: white;
- }
- /** FireFox -moz */
- .progress-wrapper::-moz-range-progress {
- background-color: white;
- height: 2px;
- }
- .progress-wrapper::-moz-range-thumb {
- width: 20px;
- height: 20px;
- border: 2px solid white;
- border-radius: 50%;
- background: rgba(91, 93, 107, 1);
- }
- .progress-wrapper::-moz-range-track {
- background: white;
- height: 2px;
- }
- /** IE -ms */
- .progress-wrapper::-ms-track {
- height: 2px;
- /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
- background: transparent;
- /*leave room for the larger thumb to overflow with a transparent border */
- border-color: transparent;
- border-width: 10px 0;
- /*remove default tick marks*/
- color: transparent;
- }
- .progress-wrapper::-ms-fill-lower {
- background: white;
- border-radius: 5px;
- }
- .progress-wrapper::-ms-fill-upper {
- background: white;
- border-radius: 5px;
- }
- .progress-wrapper::-ms-thumb {
- width: 16px;
- height: 16px;
- border: 2px solid white;
- border-radius: 50%;
- background: rgba(91, 93, 107, 1);
- margin-top: 0px;
- }
- span {
- display: inline-block;
- }
- </style>
- {{#if (or (not animations) hideAnimations)}} {{#if hideLogo}}
- <style>
- nav-bar .nav-container {
- justify-content: flex-end;
- }
- </style>
- {{else}}
- <style>
- nav-bar .nav-container {
- justify-content: space-between;
- }
- </style>
- {{/if}} {{/if}} {{#if disableOnFullscreen}}
- <style>
- viewer:fullscreen nav-bar {
- display: none;
- }
- viewer:-moz-full-screen nav-bar {
- display: none;
- }
- viewer:-webkit-full-screen nav-bar {
- display: none;
- }
- </style>
- {{/if}}
- <div class="nav-container" id="navbar-control">
- {{#unless hideLogo}}
- <div class="logo-button" title="{{logoText}}">
- {{#if logoLink}}
- <a href="{{logoLink}}" target="_blank">
- <img src="{{logoImage}}">
- </a>
- {{else}}
- <img src="{{logoImage}}"> {{/if}}
- </div>
- {{/unless}}{{#unless (or (not animations) hideAnimations)}}
- <div class="animation-control">
- <div class="types">
- <button class="flex-container animation-buttons" id="types-button">
- <!-- <div> -->
- <span class="icon types-icon"></span>
- <span class="control-text animation-label">{{selectedAnimationName}}</span>
- <span class="control-text animation-number">{{selectedAnimation}}</span>
- <!-- </div> -->
- {{#if (gt (count animations) 1)}}
- <span class="icon up-icon"></span>
- {{/if}}
- </button>
- <div class="menu-options">
- {{#each animations}} {{#unless (eq ../selectedAnimation (add @index 1))}}
- <button class="flex-container animation-buttons" id="label-option-button" data-value="{{this}}">
- <!-- <div> -->
- <span class="icon types-icon"></span>
- <span class="control-text animation-label">{{this}}</span>
- <span class="control-text animation-number">{{add @index 1}}</span>
- <!-- </div> -->
- </button>
- {{/unless}} {{/each}}
- </div>
- </div>
- <div class="progress-control" id="progress-control">
- <button class="play-pause" id="play-pause-button">
- {{#if paused}}
- <span class="icon play-icon"></span>
- {{else}}
- <span class="icon pause-icon"></span>
- {{/if}}
- </button>
- <input class="progress-wrapper" id="progress-wrapper" type="range" min="0" max="100" step="0.01">
- </div>
- <div class="speed">
- <button class="flex-container" id="speed-button">
- <span class="control-text speed-text">{{selectedSpeed}}</span>
- <span class="icon up-icon"></span>
- </button>
- <div class="menu-options">
- {{#eachInMap speedList}} {{#unless (eq ../selectedSpeed id)}}
- <button class="flex-container" id="speed-option-button" data-value="{{value}}">
- <span class="control-text speed-text">{{id}}</span>
- </button>
- {{/unless}} {{/eachInMap}}
- </div>
- </div>
- </div>
- {{/unless}}
- <div class="default-control">
- {{#unless hideHelp}}
- <button class="help" id="help-button" title="Help">
- <span class="icon help-icon"></span>
- </button>
- {{/unless}} {{#unless hideFullScreen}}
- <button class="fullscreen" id="fullscreen-button" title="Fullscreen">
- <span class="icon fullscreen-icon"></span>
- </button>
- {{/unless}}
- </div>
- </div>
|