123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370 |
- <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 {
- 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;
- }
- .progress-bar-container {
- position: relative;
- overflow: hidden;
- }
- .progress-bar {
- align-self: center;
- flex: 1;
- background-color: rgb(255, 255, 255);
- height: 2px;
- position: absolute;
- width: 100%;
- right: 0;
- pointer-events: none;
- }
- .animation-number {
- margin: 0 6px;
- }
- .speed-text {
- margin-right: 6px;
- }
- .progress-wrapper {
- height: 0px;
- background-color: rgba(91, 93, 107, .75);
- width: 100%;
- border-top: 2px solid rgba(204, 210, 214, .4);
- }
- .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;
- }
- @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;
- }
- .types .menu-options {
- width: 84px;
- }
- .speed {
- width: 64px;
- }
- .speed .menu-options {
- width: 64px;
- }
- }
- @media screen and (min-width: 1024px) {
- .animation-label {
- display: block;
- margin-left: 6px;
- }
- .progress-bar-container {
- margin: 0 12px;
- }
- .types {
- width: 144px;
- }
- .types .menu-options {
- width: 144px;
- }
- }
- </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}}
- <div class="nav-container" id="navbar-control">
- {{#unless hideLogo}}
- <div class="logo-button" title="{{logoText}}">
- <img src="{{logoImg}}">
- </div>
- {{/unless}} {{#unless (or (not animations) hideAnimations)}}
- <div class="animation-control">
- <div class="types">
- <button class="flex-container" id="types-button">
- <span class="icon types-icon"></span>
- <span class="control-text animation-label">Animation</span>
- <span class="control-text animation-number">{{selectedAnimation}}</span>
- {{#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" id="label-option-button" data-value="{{this}}">
- <span class="icon types-icon"></span>
- <span class="control-text animation-label">Animation</span>
- <span class="control-text animation-number">{{add @index 1}}</span>
- </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>
- <div class="progress-bar-container flex-container" id="progress-bar-container">
- <div class="progress-bar">
- <div class="progress-wrapper" id="progress-wrapper">
- <div class="progress-circle" id="progress-circle"></div>
- </div>
- </div>
- </div>
- </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>
|