add centered box

This commit is contained in:
Gerome Matilla 2020-06-04 09:00:27 +08:00
parent a11a2acc8a
commit 5b0e897407
3 changed files with 21 additions and 0 deletions

13
css/centered-box.css Normal file
View File

@ -0,0 +1,13 @@
.centeredBar {
background: #ff00ff;
width: 100%;
height: auto;
border: none;
pointer-events: none;
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}

View File

@ -5,6 +5,7 @@
@import url('clock.css');
@import url('dock.css');
@import url('dock-buttons.css');
@import url('centered-box.css');
:root {
/* Colors */

View File

@ -46,6 +46,13 @@
</div>
</div>
<div class='centeredBar' id='centeredBox'>
<div id='profileImageContainer'>
<div id='profile'></div>
</div>
<input type="text" id="searchBox" autocomplete="off" autofocus="off" placeholder="Type to search"/>
</div>
<script src="js/body-background-set.js"></script>
<script src="js/clock.js"></script>