1
Fork 0
This repository has been archived on 2024-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
Nexus-Polestar/astro/styles/index.scss

165 lines
3 KiB
SCSS
Raw Normal View History

2023-01-27 23:18:17 -05:00
* {
outline: none;
}
2023-01-23 00:07:07 -05:00
:root {
--accent: #343434;
}
body {
background: transparent;
color: white;
font-family: arial;
}
::-webkit-scrollbar {
background: #232323;
width: 12px;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 24px;
border: 4px #232323 solid;
}
2023-01-24 22:40:15 -05:00
// WebViews and iFrames
2023-01-23 00:07:07 -05:00
.fullview {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
border: none;
}
2023-01-24 22:40:15 -05:00
.with-controls {
top: 44px;
height: calc(100% - 44px);
}
2023-01-23 00:07:07 -05:00
2023-01-24 22:40:15 -05:00
// Sidebar
2023-01-23 00:07:07 -05:00
.sidebar {
position: fixed;
top: 0px;
left: 0px;
width: 240px;
height: 100%;
padding: 0px 20px;
display: grid;
2023-02-01 14:10:17 -05:00
grid-template-rows: 50px auto auto;
.sidebar-header {
display: flex;
align-items: center;
margin-top: 20px;
p {
pointer-events: none;
}
img {
width: 32px;
margin-right: 16px;
pointer-events: none;
}
}
2023-01-23 00:07:07 -05:00
.sidebar-top {
padding-top: 24px;
}
.sidebar-bottom {
padding-bottom: 24px;
align-self: end;
}
li {
cursor: pointer;
color: white;
display: flex;
width: 100%;
border-radius: 6px;
margin-bottom: 6px;
align-items: center;
2023-01-24 22:40:15 -05:00
padding: 12px 0px;
p {margin: 0px}
svg {margin: 0px 16px}
2023-01-23 00:07:07 -05:00
}
li:hover {
background: rgba(51, 51, 51, 0.5);
}
li.active {
background: var(--accent);
}
2023-02-01 14:10:17 -05:00
.webview-navigation#Tab {
display: none !important;
}
.has-navigation.active > .webview-navigation#Tab {
display: grid !important;
}
2023-01-27 23:18:17 -05:00
.has-navigation.active p {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 72px;
}
2023-01-23 00:07:07 -05:00
}
2023-01-24 22:40:15 -05:00
// Content
2023-01-23 00:07:07 -05:00
.pages {
position: absolute;
top: 0px;
left: 280px;
width: calc(100% - 280px);
max-width: calc(100% - 280px);
height: 100%;
background: #232323;
2023-01-24 22:40:15 -05:00
.page {
display: none;
&.active {display: block}
background: #232323;
}
2023-01-23 00:07:07 -05:00
}
2023-01-24 22:40:15 -05:00
// Webview Navigation
/// Top Bar
.webview-navigation#TopBar {
background: black;
padding: 6px;
cursor: default;
button {
color: white;
background: #202020;
border: none;
aspect-ratio: 1;
width: 32px;
border-radius: 6px;
cursor: pointer;
}
button:hover {
background: var(--accent);
}
2023-01-27 23:18:17 -05:00
}
/// Tab
.active .webview-navigation#Tab {
display: grid;
}
.webview-navigation#Tab {
display: none;
grid-auto-flow: column;
position: absolute;
right: 26px;
button {
aspect-ratio: 1;
height: 32px;
width: 32px;
color: white;
background: #232323;
border: none;
border-radius: 6px;
margin-left: 6px;
svg {
margin: 0px;
font-size: 12px;
}
}
button:hover {
background: #4b4b4b;
}
2023-01-23 00:07:07 -05:00
}