2023-02-11 11:03:51 -05:00
|
|
|
///////////////////////////////////////////
|
2023-02-14 14:46:18 -05:00
|
|
|
// Configuration for Theming ///
|
|
|
|
///////////////////////////////////////////
|
2023-01-27 23:18:17 -05:00
|
|
|
|
2023-01-23 00:07:07 -05:00
|
|
|
:root {
|
2023-02-09 17:28:07 -05:00
|
|
|
--TabActiveBackground: #8FECFB;
|
|
|
|
--TabActiveText: black;
|
2023-01-23 00:07:07 -05:00
|
|
|
}
|
|
|
|
|
2023-02-17 00:10:52 -05:00
|
|
|
///////////////////////////////////////////
|
|
|
|
// Theme: Auto | Light | Dark ///
|
|
|
|
///////////////////////////////////////////
|
|
|
|
|
|
|
|
// The "Auto" theme does appear to work
|
|
|
|
// on Linux, tested on GNOME 43 and KDE 2.27.
|
|
|
|
// The "Auto" option is disabled for Linux.
|
|
|
|
|
|
|
|
html.theme-auto { // Auto
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
--SidebarBackground: rgb(239 240 241 / 75%);
|
|
|
|
--ContentBackground: #EFF0F1;
|
|
|
|
|
|
|
|
--TextColor: black;
|
|
|
|
--CardBackground: white;
|
|
|
|
|
|
|
|
--WebviewControlsColor: white;
|
|
|
|
--WebViewControlBackground: #EFF0F1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
--SidebarBackground: rgba(35, 35, 35, 0.75);
|
|
|
|
--ContentBackground: #232323;
|
|
|
|
|
|
|
|
--TextColor: white;
|
|
|
|
--CardBackground: #282828;
|
|
|
|
|
|
|
|
--WebviewControlsColor: white;
|
|
|
|
--WebViewControlBackground: #232323;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html.theme-light { // Light
|
|
|
|
--SidebarBackground: rgb(239 240 241 / 75%);
|
|
|
|
--ContentBackground: #EFF0F1;
|
|
|
|
|
|
|
|
--TextColor: black;
|
|
|
|
--CardBackground: white;
|
|
|
|
|
|
|
|
--WebviewControlsColor: white;
|
|
|
|
--WebViewControlBackground: #EFF0F1;
|
|
|
|
}
|
|
|
|
|
|
|
|
html.theme-dark { // Dark
|
|
|
|
--SidebarBackground: rgba(35, 35, 35, 0.75);
|
|
|
|
--ContentBackground: #232323;
|
|
|
|
|
|
|
|
--TextColor: white;
|
|
|
|
--CardBackground: #282828;
|
|
|
|
|
|
|
|
--WebviewControlsColor: white;
|
|
|
|
--WebViewControlBackground: #232323;
|
|
|
|
}
|
|
|
|
|
2023-02-11 11:03:51 -05:00
|
|
|
///////////////////////////////////////////
|
|
|
|
|
|
|
|
* {outline: none}
|
|
|
|
|
2023-01-23 00:07:07 -05:00
|
|
|
body {
|
|
|
|
background: transparent;
|
2023-02-17 00:10:52 -05:00
|
|
|
color: var(--TextColor);
|
2023-01-23 00:07:07 -05:00
|
|
|
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;
|
2023-02-17 00:10:52 -05:00
|
|
|
background: var(--SidebarBackground);
|
2023-07-11 00:16:55 -05:00
|
|
|
z-index: 5;
|
2023-02-24 04:02:02 -05:00
|
|
|
.drag-area {
|
|
|
|
position: absolute;
|
2023-07-11 00:16:55 -05:00
|
|
|
width: 200px;
|
2023-02-24 04:02:02 -05:00
|
|
|
height: 74px;
|
|
|
|
app-region: drag;
|
|
|
|
}
|
2023-02-01 14:10:17 -05:00
|
|
|
.sidebar-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: 20px;
|
|
|
|
p {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
width: 32px;
|
2023-07-11 00:16:55 -05:00
|
|
|
height: 32px;
|
2023-02-01 14:10:17 -05:00
|
|
|
margin-right: 16px;
|
|
|
|
pointer-events: none;
|
2023-07-11 00:16:55 -05:00
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
.sidebar-header-left {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.sidebar-header-right {
|
|
|
|
margin-inline-start: auto;
|
|
|
|
button {
|
|
|
|
border-radius: 6px;
|
|
|
|
border: none;
|
|
|
|
fill: white;
|
|
|
|
padding: 8px 8px 6px 8px;
|
|
|
|
background: transparent;
|
|
|
|
font-size: 16px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
button:hover {
|
|
|
|
background: rgb(255 255 255 / 10%);
|
|
|
|
}
|
2023-02-01 14:10:17 -05:00
|
|
|
}
|
|
|
|
}
|
2023-01-23 00:07:07 -05:00
|
|
|
.sidebar-top {
|
|
|
|
padding-top: 24px;
|
|
|
|
}
|
|
|
|
.sidebar-bottom {
|
|
|
|
padding-bottom: 24px;
|
|
|
|
align-self: end;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
cursor: pointer;
|
2023-02-17 00:10:52 -05:00
|
|
|
color: var(--TextColor);
|
2023-01-23 00:07:07 -05:00
|
|
|
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 {
|
2023-02-17 00:10:52 -05:00
|
|
|
background: rgb(255 255 255 / 10%);
|
2023-01-23 00:07:07 -05:00
|
|
|
}
|
|
|
|
li.active {
|
2023-02-09 17:28:07 -05:00
|
|
|
background: var(--TabActiveBackground);
|
|
|
|
color: var(--TabActiveText);
|
2023-01-27 23:18:17 -05:00
|
|
|
}
|
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%;
|
2023-02-17 00:10:52 -05:00
|
|
|
background: var(--ContentBackground);
|
2023-01-24 22:40:15 -05:00
|
|
|
.page {
|
|
|
|
display: none;
|
|
|
|
&.active {display: block}
|
2023-02-17 00:10:52 -05:00
|
|
|
background: var(--ContentBackground);
|
2023-01-24 22:40:15 -05:00
|
|
|
}
|
2023-01-23 00:07:07 -05:00
|
|
|
}
|
|
|
|
|
2023-01-24 22:40:15 -05:00
|
|
|
|
|
|
|
|
|
|
|
// Webview Navigation
|
|
|
|
/// Top Bar
|
|
|
|
.webview-navigation#TopBar {
|
2023-02-17 00:10:52 -05:00
|
|
|
background: var(--ContentBackground);
|
2023-01-24 22:40:15 -05:00
|
|
|
padding: 6px;
|
|
|
|
cursor: default;
|
|
|
|
button {
|
2023-02-17 00:10:52 -05:00
|
|
|
fill: var(--WebviewControlsColor);
|
|
|
|
background: var(--WebViewControlBackground);
|
2023-01-24 22:40:15 -05:00
|
|
|
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;
|
|
|
|
}
|
2023-02-17 18:03:03 -05:00
|
|
|
.active .loading-indicator {
|
|
|
|
display: grid;
|
|
|
|
opacity: 0;
|
|
|
|
transition: 0.3s opacity;
|
|
|
|
}
|
|
|
|
.loading-indicator {
|
|
|
|
position: absolute;
|
|
|
|
left: 20px;
|
|
|
|
background: var(--TabActiveBackground);
|
|
|
|
color: var(--TabActiveText);
|
|
|
|
border-radius: 50px;
|
|
|
|
display: none;
|
|
|
|
}
|
2023-01-27 23:18:17 -05:00
|
|
|
.webview-navigation#Tab {
|
|
|
|
display: none;
|
|
|
|
grid-auto-flow: column;
|
|
|
|
position: absolute;
|
|
|
|
right: 26px;
|
2023-02-09 17:28:07 -05:00
|
|
|
background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--TabActiveBackground) 5%, var(--TabActiveBackground) 100%);
|
2023-01-27 23:18:17 -05:00
|
|
|
button {
|
|
|
|
aspect-ratio: 1;
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
2023-02-17 18:03:03 -05:00
|
|
|
color: var(--WebviewControlsColor);
|
2023-02-17 00:10:52 -05:00
|
|
|
fill: var(--WebviewControlsColor);
|
|
|
|
background: var(--WebViewControlBackground);
|
2023-01-27 23:18:17 -05:00
|
|
|
border: none;
|
|
|
|
border-radius: 6px;
|
|
|
|
margin-left: 6px;
|
|
|
|
svg {
|
|
|
|
margin: 0px;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
button:hover {
|
2023-02-17 00:10:52 -05:00
|
|
|
background: var(--WebViewControlBackground);
|
2023-01-27 23:18:17 -05:00
|
|
|
}
|
2023-01-23 00:07:07 -05:00
|
|
|
}
|