Notes/src/styles/index.css

291 lines
4.4 KiB
CSS
Raw Normal View History

2023-09-23 02:56:59 -04:00
@import "./breadcrumbs.css";
@import "./externallinks.css";
@import "./navbar.css";
@import "./sidebar.css";
2023-09-22 23:57:17 -04:00
@import "./swagger.css";
2023-09-23 02:56:59 -04:00
@import "./toc.css";
@import "./mobile.css";
2023-09-22 23:57:17 -04:00
2023-09-20 03:38:55 -04:00
* {box-sizing: border-box;}
:root {
--shadow: 0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
--blue: #3E82E5;
--blue-strong: #008CBD;
--gray: gray;
--ck-color-table-caption-text: gray;
--bg-primary: #1E1E1E;
--bg-secondary: #3C3C3C;
2023-09-22 23:57:17 -04:00
--text-muted: #777;
2023-09-20 03:38:55 -04:00
--text-primary: #ddd;
--text-heading: #fff;
--bottom-layer: #040405;
--middle-layer: #0C0D10;
--top-layer: #14151B;
--accent-layer: #20212B;
--accent-color: #3E82E5;
--container-width: 1400px /*calc(100% - 10%)*/;
--pane-size: 20%;
2023-09-23 02:56:59 -04:00
2023-09-20 03:38:55 -04:00
scroll-padding-top: calc(72px + 1rem);
2023-09-22 23:57:17 -04:00
color-scheme: dark;
2023-09-20 03:38:55 -04:00
}
body {
margin: 0px;
padding: 0px;
background: var(--middle-layer);
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: var(--text-primary);
margin-bottom: 200px;
}
a {
text-decoration: none;
color: var(--text-primary);
transition: color 200ms ease;
}
a:hover {
color: var(--accent-color);
}
#content {
font-size: 16px;
font-weight: 400;
-webkit-font-smoothing: subpixel-antialiased;
line-height: 1.5;
overflow-wrap: break-word;
word-wrap: break-word;
hyphens: auto;
letter-spacing: 0.02em;
}
#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6 {
color: var(--text-heading);
line-height: 36px;
padding: 5px 0px;
letter-spacing: 0.02em;
font-weight: 800;
position: relative;
}
/* #content h2::before,
#content h3::before,
#content h4::before{
content: '#';
color: var(--blue);
position: absolute;
left: -20px;
} */
#main h1 a,
#main h2 a,
#main h3 a,
#main h4 a,
#main h5 a,
#main h6 a {
color: var(--blue);
margin-left: 10px;
}
#content h2 {
font-size: 24px;
}
#content h3 {
font-size: 20px;
}
#content h4 {
font-size: 16px;
}
#content p {
margin-block-start: 12px;
margin-block-end: 12px;
text-align: justify;
overflow: hidden;
}
#content hr {
height: 1px;
}
#content blockquote {
margin-block-start: 12px;
margin-block-end: 24px;
margin-inline-start: 32px;
margin-inline-end: 32px;
padding-block-start: 12px;
padding-block-end: 12px;
padding-inline-start: 16px;
padding-inline-end: 16px;
background-color: hsla(0deg, 0%, 0%, 0.054);
}
#noteClippedFrom {
color: var(--gray);
margin-bottom: 0.5rem;
font-style:italic;
}
.table {
overflow-wrap: anywhere;
}
.pdf-view {
width: 100%;
min-height: 40rem;
}
.type-file > button {
display: block;
margin: 2rem auto;
background-color: var(--blue);
border: none;
color: white;
padding: 1rem 2rem;
text-align: center;
text-decoration: none;
font-size: 1rem;
border-radius: 0.25rem;
box-shadow: var(--shadow);
}
.mermaid {
text-align: center;
}
/* Menu */
#toggleMenuButton {
display: none;
}
body {
display: flex;
justify-content: center;
}
#layout {
display: flex;
flex-direction: row;
width: var(--container-width);
max-width: var(--container-width);
margin-top: calc(72px + 1rem);
position: relative;
height: 100%;
gap: 16px;
}
@media screen and (max-width: 1500px) {
#layout {
width: 1300px;
max-width: 1300px;
}
}
@media screen and (max-width: 1300px) {
#layout {
width: 1100px;
max-width: 1200px;
}
}
2023-09-23 02:56:59 -04:00
2023-09-20 03:38:55 -04:00
#main {
flex: 100%;
}
#layout.toc #main,
#sidebar + #main {
flex: calc(100% - var(--pane-size));
}
#layout.toc #sidebar + #main {
flex: calc(100% - (2 * var(--pane-size)));
}
#main {
contain: content;
background-color: var(--top-layer);
padding: 1rem 3rem 2rem 3rem;
box-shadow: 0 2px 10px #00000040;
border-radius: 6px;
}
.ck-content code {
background-color: var(--accent-layer);
border-radius: 6px;
padding: 3px;
}
.ck-content pre {
background: var(--accent-layer);
border-radius: 6px;
border: 0;
box-shadow: 0 2px 4px #0003;
}
#childLinks.list {
display: none;
}
#parentLink {
display: none;
}
#childLinks.grid ul li a {
border: 1px solid rgba(255, 255, 255, 0.1);
}
#childLinks.grid ul li a:hover {
background: rgba(255, 255, 255, 0.1);
}