RevelaOS/src/style.less
2023-10-25 23:43:58 +00:00

221 lines
No EOL
3.9 KiB
Text

@import url(https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css);
@import url(https://api.fontshare.com/v2/css?f[]=satoshi@1,2&display=swap);
:root {
--text: #cdd6f4;
--surface-2: #585b70;
--surface-1: #45475a;
--surface-0: #313244;
--base: #1e1e2e;
--mantle: #181825;
--crust: #11111b;
}
body,
html {
background-color: var(--crust);
width: 100vw;
height: 100vh;
margin: 10px;
display: flex;
flex-direction: column;
overflow: hidden;
}
*::-webkit-scrollbar {
display: none;
}
* {
-ms-overflow-style: none;
scrollbar-width: none;
font-family: "Satoshi", sans-serif;
font-weight: 600;
color: var(--text);
}
.bx {
font-size: 25px;
}
toolbar {
width: calc(100% - 40px);
display: flex;
gap: 10px;
margin: 0 0 0 0;
justify-content: center;
div[data-toolbar-id="appview"] {
background: linear-gradient(45deg, var(--crust), var(--surface-0));
}
& > div {
background: var(--base);
padding: 5px;
border-radius: 5px;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1), 0 0px 10px rgba(0, 0, 0, 0.1);
height: 40px !important;
display: flex;
app {
display: flex;
gap: 10px;
align-items: center;
cursor: pointer;
img {
aspect-ratio: 1 / 1;
height: 2em;
border-radius: 40%;
}
}
}
}
window-area {
position: relative;
width: calc(100% - 40px);
margin-top: 20px;
margin-bottom: 20px;
height: 100%;
overflow: hidden;
window {
background: var(--base);
display: flex;
flex-direction: column;
border-radius: 5px;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2), 0 0px 10px rgba(0, 0, 0, 0.2);
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.2);
background: var(--crust);
transition: 0.2s opacity, 0.2s width, 0.2s height;
window-header {
height: 20px;
padding: 7.5px;
display: flex;
align-items: center;
gap: 7.5px;
img {
aspect-ratio: 1 / 1;
height: 1.2em;
border-radius: 40%;
}
}
window-content {
height: 100%;
border-radius: 10px 10px 0 0;
background: var(--mantle);
overflow: scroll;
h1 {
margin-top: 0;
}
}
}
}
launcher {
position: absolute;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
top: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 99999999999999999999999;
width: calc(100vw + 20px);
height: calc(100vh + 20px);
gap: 20px;
transition: 0.2s opacity, 0.2s backdrop-filter;
margin: 0;
left: 0;
apps {
max-height: 70vh;
padding: 20px;
margin: 40px;
justify-content: center;
display: flex;
flex-wrap: wrap;
gap: 40px;
app {
flex: 1 0 21%;
flex-grow: 0;
align-items: center;
justify-content: center;
display: flex;
flex-direction: column;
gap: 10px;
min-width: 125px;
max-width: 125px;
text-align: center;
overflow: hidden;
img {
width: 100%;
border-radius: 40%;
aspect-ratio: 1 / 1;
}
div {
overflow: hidden;
text-overflow: ellipsis;
width: fit-content;
height: 100%;
white-space: nowrap;
}
}
}
input {
background: var(--mantle);
border: 2px solid var(--crust);
border-radius: 10px;
padding: 10px;
width: 300px;
max-width: 100vw;
text-align: center;
transition: border 0.2s;
&:focus {
outline: none;
border: 2px solid var(--text);
}
}
}
preloader {
position: absolute;
z-index: 999999999999999999;
top: 0;
left: 0;
background: var(--crust);
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: opacity 1s;
.status, .done {
text-align: center;
}
.done div {
display: flex;
align-items: center;
gap: 2px;
}
}