mirror of
https://github.com/manilarome/the-glorious-startpage.git
synced 2024-11-23 16:13:28 +01:00
add dock
This commit is contained in:
parent
49a2462854
commit
12dbdbd79f
@ -1,4 +1,5 @@
|
||||
.bar {
|
||||
z-index: 5;
|
||||
background: var(--panel-bg);
|
||||
backdrop-filter: blur(var(--blur-strength));
|
||||
z-index: 5;
|
||||
}
|
31
css/dock.css
Normal file
31
css/dock.css
Normal file
@ -0,0 +1,31 @@
|
||||
.dockContainer {
|
||||
background: transparent;
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
margin: 0 auto;
|
||||
bottom: 0;
|
||||
|
||||
/*On bottom, center horizontally*/
|
||||
left: 50%;
|
||||
-ms-transform: translateX(-50%);
|
||||
transform: translateX(-50%);
|
||||
|
||||
/*Add transition*/
|
||||
transition: opacity var(--transition-speed);
|
||||
}
|
||||
|
||||
#dock {
|
||||
background: var(--panel-bg);
|
||||
border-radius: var(--rounded-radius);
|
||||
|
||||
display: flex;
|
||||
position: relative;
|
||||
height: auto;
|
||||
width: auto;
|
||||
|
||||
padding: 5px;
|
||||
margin: 10px;
|
||||
|
||||
transition: transform var(--transition-speed);
|
||||
z-index: 1 !important;
|
||||
}
|
@ -3,6 +3,7 @@
|
||||
@import url('bar.css');
|
||||
@import url('top-panel.css');
|
||||
@import url('clock.css');
|
||||
@import url('dock.css');
|
||||
|
||||
:root {
|
||||
/* Colors */
|
||||
|
13
index.html
13
index.html
@ -34,10 +34,17 @@
|
||||
<body>
|
||||
|
||||
<!-- The place where we set the background/image -->
|
||||
<div id="bodyBackground"></div>
|
||||
<div id='bodyBackground'></div>
|
||||
|
||||
<div class="bar" id="topPanel">
|
||||
<div id="clock"></div>
|
||||
<div class='bar' id='topPanel'>
|
||||
<div id='clock'></div>
|
||||
</div>
|
||||
|
||||
<div class='dockContainer'>
|
||||
<div class='bar' id='dock'>
|
||||
<h4>gag</h4>
|
||||
<!-- Javascript will generate a list here -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user