draft shits
This commit is contained in:
262
internal/web/static/css/main.css
Normal file
262
internal/web/static/css/main.css
Normal file
@ -0,0 +1,262 @@
|
||||
:root {
|
||||
--background1: #ffffff;
|
||||
--background2: #f0f0f0;
|
||||
--background3: #c4c3c3;
|
||||
--heading1: #2a2a2a;
|
||||
--heading2: #4a4a4a;
|
||||
--heading3: #7c7b7b;
|
||||
--text1: #5a5a5a;
|
||||
--code1: #6a6a6a;
|
||||
--url: #090b0e;
|
||||
--border-color: #d0d0d0;
|
||||
--font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
--font-size-base: 16px;
|
||||
--line-height: 1.5;
|
||||
--padding-main: 1cm;
|
||||
--max-width-main: 210mm;
|
||||
}
|
||||
|
||||
@page {
|
||||
size: A4;
|
||||
}
|
||||
|
||||
@media print {
|
||||
body {
|
||||
margin: 2cm 1.5cm 2cm 1.5cm;
|
||||
}
|
||||
|
||||
/* Don't display the list of notes in the printed page */
|
||||
aside,
|
||||
.note-metadata {
|
||||
display: none;
|
||||
}
|
||||
|
||||
main {
|
||||
margin-top: 0;
|
||||
break-after: always;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen {
|
||||
|
||||
aside,
|
||||
main {
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
@media all {
|
||||
body {
|
||||
display: flex;
|
||||
background: var(--background1);
|
||||
margin: 0;
|
||||
font-family: var(--font-main);
|
||||
font-size: var(--font-size-base);
|
||||
line-height: var(--line-height);
|
||||
color: var(--text1);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--url);
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
pre {
|
||||
background: var(--background2);
|
||||
padding: 0.8em;
|
||||
}
|
||||
|
||||
pre code {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
code {
|
||||
line-break: loose;
|
||||
background-color: var(--background2);
|
||||
padding: 0.2em 0.4em;
|
||||
border-radius: 3px;
|
||||
font-family: monospace;
|
||||
color: var(--code1);
|
||||
overflow-x: auto;
|
||||
text-wrap: wrap;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
color: var(--heading1);
|
||||
font-size: 2em;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding-bottom: 1em;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
aside {
|
||||
flex: 0 0 400px;
|
||||
width: 250px;
|
||||
border-right: 1px solid var(--border-color);
|
||||
padding: var(--padding-main);
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
aside ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
aside ul li {
|
||||
padding: 0.5em 0;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
aside ul li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
aside ul li a {
|
||||
display: block;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
aside ul li a:hover {
|
||||
background-color: var(--background2);
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
margin: 0 auto;
|
||||
padding: var(--padding-main);
|
||||
overflow-y: auto;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
main a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
main ul {
|
||||
padding: 0;
|
||||
margin: 0 1em;
|
||||
}
|
||||
|
||||
main h1 {
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding-bottom: 0.3em;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
main h2 {
|
||||
padding: 0.7em 0;
|
||||
border-bottom: 2px dotted var(--border-color);
|
||||
}
|
||||
|
||||
|
||||
main h3, main h4 {
|
||||
color: var(--heading3);
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
margin-bottom: 0.5em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: var(--heading1);
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: var(--heading1);
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: var(--heading2);
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 1em 0;
|
||||
padding: 0 1em;
|
||||
border-left: 3px solid var(--border-color);
|
||||
color: var(--heading2);
|
||||
}
|
||||
|
||||
.active-note {
|
||||
background: var(--background3);
|
||||
}
|
||||
|
||||
.last-modified {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.folder {
|
||||
font-weight: bold;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.folder span {
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
.search-form {
|
||||
display: flex;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.search-form > * {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* Add this to the end of the file */
|
||||
.search-bar {
|
||||
width: 100%;
|
||||
padding: 0.5em;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 4px;
|
||||
font-family: var(--font-main);
|
||||
font-size: var(--font-size-base);
|
||||
color: var(--text1);
|
||||
}
|
||||
|
||||
.search-bar:focus {
|
||||
outline: none;
|
||||
border-color: var(--heading1);
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.search-results {
|
||||
margin-bottom: 1em;
|
||||
margin: 1em 0;
|
||||
border-bottom: dotted 2px var(--heading1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user