Swap the locations of the FPS meter and the settings button in preparation for more UI
This commit is contained in:
parent
3378fb3447
commit
2cce20db10
|
@ -3,7 +3,13 @@
|
||||||
left: 1em;
|
left: 1em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
#pf-settings-container {
|
||||||
|
margin-right: 1rem;
|
||||||
|
pointer-events: none;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
#pf-settings {
|
#pf-settings {
|
||||||
|
text-align: initial;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
|
@ -56,7 +62,7 @@ button > svg path {
|
||||||
|
|
||||||
.pf-arrow-box:after, .pf-arrow-box:before {
|
.pf-arrow-box:after, .pf-arrow-box:before {
|
||||||
top: 100%;
|
top: 100%;
|
||||||
left: 22px;
|
right: 22px;
|
||||||
border: solid transparent;
|
border: solid transparent;
|
||||||
content: " ";
|
content: " ";
|
||||||
height: 0;
|
height: 0;
|
||||||
|
@ -68,13 +74,13 @@ button > svg path {
|
||||||
border-color: rgba(0, 0, 0, 0);
|
border-color: rgba(0, 0, 0, 0);
|
||||||
border-top-color: white;
|
border-top-color: white;
|
||||||
border-width: 14px;
|
border-width: 14px;
|
||||||
margin-left: -14px;
|
margin-right: -14px;
|
||||||
}
|
}
|
||||||
.pf-arrow-box:before {
|
.pf-arrow-box:before {
|
||||||
border-color: rgba(0, 0, 0, 0);
|
border-color: rgba(0, 0, 0, 0);
|
||||||
border-top-color: rgba(0, 0, 0, 0.125);
|
border-top-color: rgba(0, 0, 0, 0.125);
|
||||||
border-width: 15px;
|
border-width: 15px;
|
||||||
margin-left: -15px;
|
margin-right: -15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.github-corner > svg {
|
.github-corner > svg {
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
{{>partials/navbar.html isDemo=true}}
|
{{>partials/navbar.html isDemo=true}}
|
||||||
<canvas id="pf-canvas" width="400" height="300"></canvas>
|
<canvas id="pf-canvas" width="400" height="300"></canvas>
|
||||||
<div class="fixed-bottom mb-3 d-flex justify-content-between align-items-end pf-pointer-events-none">
|
<div class="fixed-bottom mb-3 d-flex justify-content-between align-items-end pf-pointer-events-none">
|
||||||
<div class="ml-3 pf-pointer-events-none">
|
<div class="rounded py-1 px-3 ml-3" id="pf-fps-label">0 ms</div>
|
||||||
|
<div id="pf-settings-container">
|
||||||
<div id="pf-settings" class="card mb-4 pf-invisible">
|
<div id="pf-settings" class="card mb-4 pf-invisible">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<button id="pf-settings-close-button" type="button" class="close"
|
<button id="pf-settings-close-button" type="button" class="close"
|
||||||
|
@ -36,7 +37,6 @@
|
||||||
{{octicon "gear"}}
|
{{octicon "gear"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded py-1 px-3 mr-3" id="pf-fps-label">0 ms</div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
<canvas id="pf-canvas" width="400" height="300"></canvas>
|
<canvas id="pf-canvas" width="400" height="300"></canvas>
|
||||||
<svg id="pf-svg" xmlns="http://www.w3.org/2000/svg" width="400" height="300"></svg>
|
<svg id="pf-svg" xmlns="http://www.w3.org/2000/svg" width="400" height="300"></svg>
|
||||||
<div class="fixed-bottom mb-3 d-flex justify-content-between align-items-end pf-pointer-events-none">
|
<div class="fixed-bottom mb-3 d-flex justify-content-between align-items-end pf-pointer-events-none">
|
||||||
<div class="ml-3 pf-pointer-events-none">
|
<div class="rounded py-1 px-3 ml-3" id="pf-fps-label">0 ms</div>
|
||||||
|
<div id="pf-settings-container">
|
||||||
<div id="pf-settings" class="card mb-4 pf-invisible">
|
<div id="pf-settings" class="card mb-4 pf-invisible">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<button id="pf-settings-close-button" type="button" class="close"
|
<button id="pf-settings-close-button" type="button" class="close"
|
||||||
|
@ -45,7 +46,6 @@
|
||||||
{{octicon "gear"}}
|
{{octicon "gear"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded py-1 px-3 mr-3" id="pf-fps-label">0 ms</div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
{{>partials/navbar.html isDemo=true}}
|
{{>partials/navbar.html isDemo=true}}
|
||||||
<canvas id="pf-canvas" width="400" height="300"></canvas>
|
<canvas id="pf-canvas" width="400" height="300"></canvas>
|
||||||
<div class="fixed-bottom mb-3 d-flex justify-content-between align-items-end pf-pointer-events-none">
|
<div class="fixed-bottom mb-3 d-flex justify-content-between align-items-end pf-pointer-events-none">
|
||||||
<div class="ml-3 pf-pointer-events-none">
|
<div class="rounded py-1 px-3 ml-3" id="pf-fps-label">0 ms</div>
|
||||||
|
<div id="pf-settings-container">
|
||||||
<div id="pf-settings" class="card mb-4 pf-invisible">
|
<div id="pf-settings" class="card mb-4 pf-invisible">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<button id="pf-settings-close-button" type="button" class="close"
|
<button id="pf-settings-close-button" type="button" class="close"
|
||||||
|
@ -51,7 +52,6 @@
|
||||||
<button id="pf-settings-button" type="button" class="btn btn-outline-secondary"
|
<button id="pf-settings-button" type="button" class="btn btn-outline-secondary"
|
||||||
aria-expanded="false" aria-controls="#pf-settings">{{octicon "gear"}}</button>
|
aria-expanded="false" aria-controls="#pf-settings">{{octicon "gear"}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded py-1 px-3 mr-3" id="pf-fps-label">0 ms</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal fade" id="pf-edit-text-modal" tabindex="-1" role="dialog"
|
<div class="modal fade" id="pf-edit-text-modal" tabindex="-1" role="dialog"
|
||||||
aria-labelledby="pf-edit-text-label" aria-hidden="true">
|
aria-labelledby="pf-edit-text-label" aria-hidden="true">
|
||||||
|
|
Loading…
Reference in New Issue