forked from randomuser691337/another-webdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nova
committed
Nov 2, 2024
1 parent
d425bc7
commit 866e3bc
Showing
4 changed files
with
203 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,193 @@ | ||
.modernde-topbar{ | ||
.modernde-topbar { | ||
backdrop-filter: blur(16px); | ||
padding: .75rem; | ||
background-color: rgba(0,0,0,0.2); | ||
border-radius: .5rem; | ||
padding: 0.75rem; | ||
position: absolute; | ||
top: 1.5rem; | ||
left: 1.5rem; | ||
background-color: rgba(0, 0, 0, 0.2); | ||
border-radius: 0.5rem; | ||
justify-content: space-between; | ||
display: flex; | ||
align-items: center; | ||
box-sizing: border-box; | ||
width: 100%; | ||
width: calc(100% - calc(1.5rem * 2)); | ||
} | ||
|
||
[class^="modernde"], | ||
[class^="modernde"] * { | ||
text-align: left; | ||
} | ||
[class^=modernde] button{ | ||
|
||
[class^="modernde"] h1 { | ||
font-size: 1.25rem; | ||
line-height: 1.75rem; | ||
font-weight: 600; | ||
text-align: left; | ||
margin-top: 0px; | ||
margin-bottom: 0px; | ||
} | ||
|
||
[class^="modernde"] button { | ||
background-color: transparent !important; | ||
border: 0px; | ||
padding: 0px; | ||
margin: 0px; | ||
height: min-content; | ||
} | ||
.modernde-start, .modernde-start svg{ | ||
|
||
.modernde-start, | ||
.modernde-start svg { | ||
height: 18px; | ||
width: 18px; | ||
color: #fff; | ||
vertical-align:text-bottom; | ||
vertical-align: text-bottom; | ||
} | ||
.modernde-topbar .time{ | ||
|
||
.modernde-topbar .time { | ||
color: #fff; | ||
} | ||
.modernde-topbar > *{ | ||
opacity: .8; | ||
|
||
.modernde-topbar > * { | ||
opacity: 0.8; | ||
} | ||
.modernde-topbar .modernde-title{ | ||
|
||
.modernde-topbar .modernde-title { | ||
margin-left: 8px; | ||
color: #fff; | ||
} | ||
} | ||
|
||
.modernde-wallpaper { | ||
position: absolute; | ||
top: 0px; | ||
left: 0px; | ||
width: 100vw; | ||
height: 100vh; | ||
object-fit: fill; | ||
z-index: -1; | ||
-webkit-user-drag: none; | ||
} | ||
|
||
.modernde-dock { | ||
position: fixed; | ||
bottom: 1rem; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
backdrop-filter: blur(16px); | ||
-webkit-backdrop-filter: blur(16px); | ||
padding: 0.45rem; | ||
--tw-bg-opacity: 0.1; | ||
background-color: rgba(255, 255, 255, var(--tw-bg-opacity)); | ||
border-radius: 9999px; | ||
display: flex; | ||
} | ||
|
||
.modernde-dock-item { | ||
padding: 0.4rem; | ||
/* equivalent to p-2 */ | ||
border-radius: 9999px; | ||
/* equivalent to rounded-full */ | ||
cursor: pointer; | ||
transition: | ||
color 0.2s, | ||
background-color 0.2s; | ||
/* equivalent to transition-colors */ | ||
color: #fff; | ||
height: 40px; | ||
width: 40px; | ||
} | ||
|
||
.modernde-dock-item * { | ||
color: #fff; | ||
} | ||
|
||
.modernde-dock-item img { | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.modernde-dock-item:hover { | ||
background-color: rgba(255, 255, 255, 0.1); | ||
/* equivalent to hover:bg-white with hover:bg-opacity-10 */ | ||
} | ||
|
||
.modernde-card { | ||
background-color: rgba(255, 255, 255, 0.1); | ||
backdrop-filter: blur(16px); | ||
border-radius: 0.5rem; | ||
color: #ffffff; | ||
padding: 1.5rem; | ||
} | ||
|
||
.modernde-deskcardContainer { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
gap: 1.5rem; | ||
/* 6 * 0.25rem */ | ||
width: calc(100% - 3rem); | ||
position: absolute; | ||
top: 5.5rem; | ||
left: 1.5rem; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
/* md breakpoint */ | ||
.modernde-deskcardContainer { | ||
grid-template-columns: repeat(2, 1fr); | ||
} | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
/* lg breakpoint */ | ||
.modernde-deskcardContainer { | ||
grid-template-columns: repeat(3, 1fr); | ||
} | ||
} | ||
|
||
.mde-sysstatcard progress { | ||
float: right; | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
background-color: rgba(255, 255, 255, 0.2); | ||
border: 0px; | ||
border-radius: 9999px; | ||
} | ||
|
||
.mde-sysstatcard progress::-moz-progress-bar, | ||
.mde-sysstatcard progress::-webkit-progress-value { | ||
background: rgb(96, 165, 250); | ||
border-radius: 9999px; | ||
} | ||
|
||
.mde-progress { | ||
float: right; | ||
background-color: rgba(255, 255, 255, 0.2); | ||
border: 0px; | ||
border-radius: 9999px; | ||
width: 40%; | ||
height: 15px; | ||
} | ||
.mde-progress::before { | ||
width: var(--vw); | ||
display: block; | ||
font-size: 0.6em; | ||
content: attr(vtxt); | ||
padding-right: 5px; | ||
height: 15px; | ||
text-align: right; | ||
background: rgb(96, 165, 250); | ||
border-radius: 9999px; | ||
} | ||
.mde-progress::after { | ||
content: attr(subtitle); | ||
font-size: x-small; | ||
position: relative; | ||
top: -5px; | ||
display: inline-block; | ||
} | ||
.mde-statusline { | ||
display: block; | ||
position: relative; | ||
top: 10px; | ||
margin-bottom: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters