391 lines
7.1 KiB
CSS
391 lines
7.1 KiB
CSS
/* Modern Dark Theme for YaCy */
|
|
|
|
/* Base colors */
|
|
:root {
|
|
--background-color: #121212;
|
|
--surface-color: #1E1E1E;
|
|
--primary-color: #1E90FF; /* Updated to a more appropriate blue */
|
|
--secondary-color: #03DAC6;
|
|
--text-color: #E0E0E0;
|
|
--text-muted-color: #B0B0B0;
|
|
--border-color: #333333;
|
|
--hover-color: #1E90FF; /* Updated hover color */
|
|
--sidebar-background-color: #2A2A2A;
|
|
--highlight-color: #FFB74D; /* For the highlighted buttons */
|
|
}
|
|
|
|
/* General settings */
|
|
body {
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding-top: 60px; /* Adjust this value to your navbar height */
|
|
display: flex;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
a:link, a:visited {
|
|
color: var(--primary-color);
|
|
background-color: transparent;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--hover-color);
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Navbar */
|
|
.navbar, .navbar-default, .navbar-fixed-top {
|
|
background-color: var(--surface-color) !important;
|
|
border-color: var(--border-color) !important;
|
|
color: var(--text-color) !important;
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
z-index: 1000; /* Ensure navbar is on top */
|
|
}
|
|
|
|
.navbar-default .navbar-nav>li>a, .navbar-default .navbar-brand {
|
|
color: var(--text-color) !important;
|
|
}
|
|
|
|
.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-brand:hover {
|
|
color: var(--primary-color) !important;
|
|
}
|
|
|
|
/* Sidebar */
|
|
#sidebar {
|
|
background-color: var(--sidebar-background-color);
|
|
color: var(--text-color);
|
|
padding: 20px;
|
|
position: fixed;
|
|
top: 60px; /* Adjust based on navbar height */
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 300px;
|
|
overflow-y: auto;
|
|
z-index: 999; /* Ensure sidebar is on top */
|
|
}
|
|
|
|
/* Main content area */
|
|
#main-content {
|
|
margin-left: 20px;
|
|
margin-right: 320px; /* Adjust based on sidebar width */
|
|
padding: 20px;
|
|
flex-grow: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.menugroup h3, .SubMenugroup h3, .SubMenu h3 {
|
|
border-radius: 3px;
|
|
background-color: var(--primary-color);
|
|
font-weight: bold;
|
|
padding: 6px;
|
|
color: white;
|
|
}
|
|
|
|
a.MenuItemLink, ul.SubMenu em {
|
|
background-color: var(--surface-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
div.SubMenu h3 {
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
a:hover.MenuItemLink {
|
|
background-color: transparent;
|
|
color: var(--hover-color);
|
|
}
|
|
|
|
/* Head */
|
|
div.head h1 {
|
|
background-color: transparent;
|
|
text-align: left;
|
|
padding-left: 70px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* Tables */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th, td {
|
|
padding: 8px;
|
|
text-align: left;
|
|
}
|
|
|
|
.TableHeader {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.TableCellDark {
|
|
background-color: var(--surface-color);
|
|
}
|
|
|
|
.TableCellLight {
|
|
background-color: var(--background-color);
|
|
}
|
|
|
|
.TableCellDark:target, .TableCellLight:target, .TableCellSummary, .TableCellActive {
|
|
background-color: #FFCCCC;
|
|
}
|
|
|
|
/* Blog and Wiki */
|
|
.Post {
|
|
background-color: var(--surface-color);
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.PostSubject {
|
|
background-color: var(--surface-color);
|
|
padding: 10px;
|
|
}
|
|
|
|
.PostSubject a {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.PostInfo {
|
|
background-color: var(--surface-color);
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Wiki */
|
|
.WikiTOCBox {
|
|
border: 1px solid var(--border-color);
|
|
background-color: var(--background-color);
|
|
padding: 10px;
|
|
}
|
|
|
|
a.unknown {
|
|
color: #990000;
|
|
}
|
|
|
|
a.known {
|
|
color: #009900;
|
|
}
|
|
|
|
a.extern {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* in Bookmarks */
|
|
.bookmark {
|
|
border-bottom: 1px dashed var(--border-color);
|
|
}
|
|
|
|
a.bookmarkTitle, a:hover.bookmarkTitle {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
a.bookmarkTags, a:hover.bookmarkTags {
|
|
color: var(--secondary-color);
|
|
}
|
|
|
|
a.bookmarkAction {
|
|
color: var(--text-muted-color);
|
|
}
|
|
|
|
.Tags {
|
|
border-left: 2px solid var(--text-color);
|
|
}
|
|
|
|
.diff {
|
|
background-color: var(--surface-color);
|
|
}
|
|
|
|
.diff .unchanged {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.diff .added {
|
|
color: #090;
|
|
background-color: #B5F0B5;
|
|
}
|
|
|
|
.diff .deleted {
|
|
color: #B00;
|
|
background-color: #F9B5B5;
|
|
}
|
|
|
|
/* in Status.html */
|
|
.ProgressBar {
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
div.ProgressBarFill {
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
/* Searchresults */
|
|
fieldset.maininput, fieldset.yacys {
|
|
background-color: var(--surface-color);
|
|
border-radius: 3px;
|
|
padding: 10px;
|
|
}
|
|
|
|
form.search.small h2 {
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.searchresults {
|
|
margin-top: 15px;
|
|
padding: 10px;
|
|
background-color: var(--surface-color);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.searchresult {
|
|
padding: 15px;
|
|
margin-bottom: 15px;
|
|
border-radius: 5px;
|
|
background-color: var(--surface-color);
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.searchresult h4 a {
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
margin-bottom: 5px;
|
|
display: block;
|
|
}
|
|
|
|
.searchresult h4 a:hover {
|
|
color: var(--hover-color);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.snippetLoaded {
|
|
font-size: 1.2em;
|
|
line-height: 1.5;
|
|
color: var(--text-muted-color);
|
|
}
|
|
|
|
.snippetLoaded strong {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.searchresult .url a {
|
|
font-size: 1.2em;
|
|
color: var(--secondary-color);
|
|
text-decoration: none;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.searchresult .url a:hover {
|
|
color: var(--hover-color);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Sidebar section styling */
|
|
#sidebar .section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#sidebar .section h3 {
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
background-color: var(--highlight-color);
|
|
color: white;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
#sidebar .section .content {
|
|
background-color: var(--surface-color);
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#sidebar .section .content a {
|
|
display: block;
|
|
padding: 5px 0;
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
#sidebar .section .content a:hover {
|
|
color: var(--hover-color);
|
|
}
|
|
|
|
/* Other */
|
|
.settingsValue {
|
|
color: #556699;
|
|
}
|
|
|
|
.Headline, .Heading {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.error, .warning {
|
|
color: red;
|
|
}
|
|
|
|
.success {
|
|
color: green;
|
|
}
|
|
|
|
.Message {
|
|
background-color: var(--surface-color);
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.example {
|
|
background-color: #D3D3D3;
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.hides:hover .hoverShow {
|
|
background-color: var(--background-color);
|
|
}
|
|
|
|
/* Log */
|
|
body#ViewLog pre {
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Forms */
|
|
fieldset {
|
|
background-color: var(--surface-color);
|
|
color: var(--text-color);
|
|
border: 0px solid var(--surface-color);
|
|
border-radius: 3px;
|
|
padding: 10px;
|
|
}
|
|
|
|
legend {
|
|
background-color: var(--primary-color);
|
|
border-radius: 3px;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
color: white;
|
|
}
|
|
|
|
legend a:link, legend a:hover {
|
|
color: white;
|
|
}
|
|
|
|
form dt, dl.pairs dt {
|
|
background-color: var(--surface-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
form dd, dl.pairs dd {
|
|
background-color: var(--surface-color);
|
|
}
|