mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 04:35:20 +00:00
664 lines
11 KiB
SCSS
664 lines
11 KiB
SCSS
/***
|
||
* DO NOT ADD/MODIFY STYLING HERE. IT WILL BE OVERWRITTEN IF YOU UPDATE THE TEMPLATE VERSION.
|
||
* MODIFY THE custom-style.scss FILE INSTEAD.
|
||
***/
|
||
|
||
body {
|
||
overflow-x: hidden;
|
||
}
|
||
.content {
|
||
max-width: 800px;
|
||
margin: auto;
|
||
font-size: 22px;
|
||
line-height: 1.5;
|
||
margin-top: 75px;
|
||
}
|
||
|
||
.external-link {
|
||
background-position: center right;
|
||
background-repeat: no-repeat;
|
||
background-image: linear-gradient(transparent, transparent), url('/img/outgoing.svg');
|
||
background-size: 13px;
|
||
padding-right: 16px;
|
||
background-position-y: 4px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.markdown-preview-view pre.mermaid {
|
||
background: white;
|
||
border-radius: 25px;
|
||
padding: 10px;
|
||
}
|
||
|
||
div.translusion {
|
||
border-left: 4px solid gray;
|
||
padding-left: 10px;
|
||
}
|
||
|
||
.admonition-title {
|
||
font-size: 1.4rem;
|
||
}
|
||
|
||
div[class*="language-ad-"] .admonition-title::before,
|
||
div[class*="callout-"] .admonition-title::before {
|
||
font-size: 1.4rem;
|
||
margin-bottom: 10px;
|
||
margin-right: 10px;
|
||
}
|
||
|
||
code[class*="language-ad-"] {
|
||
font-family: 'Roboto', sans-serif;
|
||
white-space: normal !important;
|
||
}
|
||
|
||
.theme-light div[class*="language-ad-"] {
|
||
color: rgb(12, 12, 12);
|
||
}
|
||
|
||
.theme-dark div[class*="language-ad-"] {
|
||
color: rgb(230, 230, 230);
|
||
}
|
||
|
||
ul.task-list {
|
||
list-style: none;
|
||
padding-left: 15px;
|
||
}
|
||
|
||
.sidebar {
|
||
position: fixed;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
right: 0;
|
||
height: 100%;
|
||
min-width: 25px;
|
||
display: flex;
|
||
z-index: 3;
|
||
max-width: 350px;
|
||
margin-top: 75px;
|
||
}
|
||
|
||
.expand-line {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
}
|
||
|
||
.sidebar-container {
|
||
padding-right: 20px;
|
||
width: 100%;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.backlinks {
|
||
margin-top: 50px;
|
||
background-color: var(--background-secondary);
|
||
border-radius: 10px;
|
||
padding: 10px;
|
||
|
||
.backlink-title {
|
||
margin: 4px 0;
|
||
font-size: 18px !important;
|
||
}
|
||
}
|
||
|
||
.backlink-card {
|
||
padding-bottom: 4px;
|
||
border-radius: 4px;
|
||
width: 100%;
|
||
font-size: 1rem;
|
||
}
|
||
|
||
.graph{
|
||
.graph-title{
|
||
width: fit-content;
|
||
background-color: var(--background-secondary);
|
||
margin: 10px 0 0 0;
|
||
padding: 12px;
|
||
font-size: 18px !important;
|
||
border-radius: 10px 10px 0 0;
|
||
}
|
||
}
|
||
|
||
#link-graph {
|
||
background-color: var(--background-secondary);
|
||
margin-bottom: 20px;
|
||
border-radius: 10px 0 10px 10px;
|
||
width: fit-content;
|
||
}
|
||
|
||
@media(max-width: 1490px) {
|
||
.sidebar {
|
||
position: relative;
|
||
transform: none;
|
||
border-radius: 4px;
|
||
margin-top: 50px;
|
||
}
|
||
|
||
.graph{
|
||
display: none;
|
||
}
|
||
.backlinks {
|
||
margin-top: 0;
|
||
}
|
||
}
|
||
|
||
.filetree-sidebar {
|
||
margin: 0;
|
||
z-index: 10;
|
||
padding: 10px;
|
||
top:0px;
|
||
left:0;
|
||
position: fixed;
|
||
height: 100%;
|
||
background-color: var(--background-secondary);
|
||
color: var(--text-muted);
|
||
overflow-y:auto;
|
||
width: 250px;
|
||
}
|
||
|
||
.navbar {
|
||
background-color: var(--background-secondary);
|
||
position: absolute;
|
||
width: 100%;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
z-index: 3;
|
||
padding-left: var(--file-margins);
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
|
||
.navbar-inner {
|
||
display: flex;
|
||
align-items: center;
|
||
cursor: pointer;
|
||
}
|
||
}
|
||
|
||
.notelink {
|
||
padding: 2px 0 2px 25px;
|
||
}
|
||
|
||
.foldername {
|
||
margin-left: 5px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.inner-folder {
|
||
padding: 3px 0 3px 10px;
|
||
}
|
||
|
||
.filelist {
|
||
border-left: 1px solid var(--text-mark);
|
||
}
|
||
|
||
.fullpage-overlay{
|
||
background-color: rgba(0,0,0,0.5);
|
||
position: absolute;
|
||
top:0;
|
||
right:0;
|
||
left:0;
|
||
bottom:0;
|
||
z-index: 5
|
||
}
|
||
|
||
|
||
.search-container {
|
||
background-color: rgba(0,0,0,0.5);
|
||
position: fixed;
|
||
top: 0;
|
||
right: 0;
|
||
left: 0;
|
||
bottom: 0;
|
||
z-index: 15;
|
||
height: 100%;
|
||
justify-content: center;
|
||
display: none;
|
||
}
|
||
|
||
.search-container.active {
|
||
display: flex;
|
||
}
|
||
|
||
.search-box {
|
||
transform: translateY(200px);
|
||
background-color: var(--background-primary);
|
||
max-width: 80%;
|
||
width: 900px;
|
||
border-radius: 15px;
|
||
padding: 10px;
|
||
height: fit-content;
|
||
}
|
||
|
||
.search-box input {
|
||
width: 100%;
|
||
padding: 10px;
|
||
border: none;
|
||
border-radius: 5px;
|
||
font-size: 2rem;
|
||
background-color: var(--background-primary);
|
||
color: var(--text-primary);
|
||
|
||
}
|
||
.search-box input:focus {
|
||
outline: none;
|
||
}
|
||
|
||
#search-results {
|
||
margin-top: 20px;
|
||
overflow-y: auto;
|
||
padding: 20px;
|
||
display: flex;
|
||
justify-content: center;
|
||
max-height: 500px;
|
||
}
|
||
|
||
#search-results ul {
|
||
padding-inline-start: 0;
|
||
width: 100%;
|
||
}
|
||
|
||
#search-results .searchresult {
|
||
margin-bottom: 15px;
|
||
list-style: none;
|
||
background-color: var(--background-secondary);
|
||
padding: 10px;
|
||
border-radius: 10px;
|
||
font-size: 1.2rem;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.searchresult.active {
|
||
border: 2px solid var(--text-accent);
|
||
}
|
||
|
||
.search-box-footer {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
margin-top: 10px;
|
||
}
|
||
|
||
.navigation-hint {
|
||
font-size: 1rem;
|
||
color: var(--text-secondary);
|
||
margin-right: 20px;
|
||
}
|
||
.search-link {
|
||
display: block;
|
||
margin-bottom: 4px;
|
||
font-size: 1.2rem;
|
||
}
|
||
|
||
.search-button {
|
||
background-color: var(--background-primary);
|
||
border-radius: 20px;
|
||
height: 2em;
|
||
display: flex;
|
||
align-items: center;
|
||
min-width: 150px;
|
||
margin: 10px 65px;
|
||
cursor: pointer;
|
||
>span{
|
||
padding: 3px 3px 3px 15px;
|
||
}
|
||
>i{
|
||
margin-left: 10px;
|
||
}
|
||
|
||
&:hover{
|
||
border: 1px solid var(--text-accent);
|
||
}
|
||
}
|
||
|
||
div[class*="language-ad-"],
|
||
div[class*="callout-"] {
|
||
font-family: 'Roboto', sans-serif;
|
||
word-wrap: break-word;
|
||
border-radius: 6px;
|
||
display: block;
|
||
font-size: 1rem;
|
||
margin-top: 1rem;
|
||
outline-color: rgb(230, 230, 230);
|
||
padding: 1rem;
|
||
position: relative;
|
||
transition: height .5s ease-in, opacity .5s ease-in;
|
||
word-break: break-word;
|
||
white-space: normal !important;
|
||
}
|
||
|
||
div.language-ad-note,
|
||
div.callout-note {
|
||
.admonition-title::before {
|
||
content: "🖊️";
|
||
}
|
||
}
|
||
|
||
div.language-ad-tip,
|
||
div.callout-tip {
|
||
.admonition-title::before {
|
||
content: "💡";
|
||
}
|
||
}
|
||
|
||
div.language-ad-warning,
|
||
div.callout-warning {
|
||
.admonition-title::before {
|
||
content: "⚠️";
|
||
}
|
||
}
|
||
|
||
div.language-ad-important,
|
||
div.callout-important {
|
||
.admonition-title::before {
|
||
content: "❗️";
|
||
}
|
||
}
|
||
|
||
div.language-ad-caution,
|
||
div.callout-caution {
|
||
.admonition-title::before {
|
||
content: "⚠️";
|
||
}
|
||
}
|
||
|
||
div.language-ad-info,
|
||
div.callout-info {
|
||
.admonition-title::before {
|
||
content: "ℹ";
|
||
}
|
||
}
|
||
|
||
div.language-ad-example,
|
||
div.callout-example {
|
||
.admonition-title::before {
|
||
content: "🗒️";
|
||
}
|
||
}
|
||
|
||
div.language-ad-seealso,
|
||
div.callout-seealso {
|
||
.admonition-title::before {
|
||
content: "🖊️";
|
||
}
|
||
}
|
||
|
||
div.language-ad-abstract,
|
||
div.callout-abstract {
|
||
.admonition-title::before {
|
||
content: '📚'
|
||
}
|
||
}
|
||
|
||
div.language-ad-summary,
|
||
div.callout-summary {
|
||
.admonition-title::before {
|
||
content: '📚'
|
||
}
|
||
}
|
||
|
||
div.language-ad-tldr,
|
||
div.callout-tldr {
|
||
.admonition-title::before {
|
||
content: '📚'
|
||
}
|
||
}
|
||
|
||
div.language-ad-todo,
|
||
div.callout-todo {
|
||
.admonition-title::before {
|
||
content: '☑️'
|
||
}
|
||
}
|
||
|
||
div.language-ad-hint,
|
||
div.callout-hint {
|
||
.admonition-title::before {
|
||
content: '🔥'
|
||
}
|
||
}
|
||
|
||
div.language-ad-success,
|
||
div.callout-success {
|
||
.admonition-title::before {
|
||
content: ✅
|
||
}
|
||
}
|
||
|
||
div.language-ad-check,
|
||
div.callout-check {
|
||
.admonition-title::before {
|
||
content: '✅'
|
||
}
|
||
}
|
||
|
||
div.language-ad-done,
|
||
div.callout-done {
|
||
.admonition-title::before {
|
||
content: '✅'
|
||
}
|
||
}
|
||
|
||
div.language-ad-question,
|
||
div.callout-question {
|
||
.admonition-title::before {
|
||
content: '❓'
|
||
}
|
||
}
|
||
|
||
div.language-ad-help,
|
||
div.callout-help {
|
||
.admonition-title::before {
|
||
content: '❓'
|
||
}
|
||
}
|
||
|
||
div.language-ad-faq,
|
||
div.callout-faq {
|
||
.admonition-title::before {
|
||
content: '❓'
|
||
}
|
||
}
|
||
|
||
div.language-ad-attention,
|
||
div.callout-attention {
|
||
.admonition-title::before {
|
||
content: '⚠️'
|
||
}
|
||
}
|
||
|
||
div.language-ad-failure,
|
||
div.callout-failure {
|
||
.admonition-title::before {
|
||
content: '❌'
|
||
}
|
||
}
|
||
|
||
div.language-ad-fail,
|
||
div.callout-fail {
|
||
.admonition-title::before {
|
||
content: '❌'
|
||
}
|
||
}
|
||
|
||
div.language-ad-missing,
|
||
div.callout-missing {
|
||
.admonition-title::before {
|
||
content: '❌'
|
||
}
|
||
}
|
||
|
||
div.language-ad-danger,
|
||
div.callout-danger {
|
||
.admonition-title::before {
|
||
content: '⚡'
|
||
}
|
||
}
|
||
|
||
div.language-ad-error,
|
||
div.callout-error {
|
||
.admonition-title::before {
|
||
content: '⚡'
|
||
}
|
||
}
|
||
|
||
div.language-ad-bug,
|
||
div.callout-bug {
|
||
.admonition-title::before {
|
||
content: '🐞'
|
||
}
|
||
}
|
||
|
||
div.language-ad-quote,
|
||
div.callout-quote {
|
||
.admonition-title::before {
|
||
content: '💬'
|
||
}
|
||
}
|
||
|
||
div.language-ad-cite,
|
||
div.callout-cite {
|
||
.admonition-title::before {
|
||
content: '💬'
|
||
}
|
||
}
|
||
|
||
div.language-ad-note,
|
||
div.callout-note {
|
||
background-color: rgba(68, 138, 255, .5)
|
||
}
|
||
|
||
div.language-ad-seealso,
|
||
div.callout-seealso {
|
||
background-color: rgba(68, 138, 255, .5)
|
||
}
|
||
|
||
div.language-ad-abstract,
|
||
div.callout-abstract {
|
||
background-color: rgba(0, 176, 255, .5)
|
||
}
|
||
|
||
div.language-ad-summary,
|
||
div.callout-summary {
|
||
background-color: rgba(0, 176, 255, .5)
|
||
}
|
||
|
||
div.language-ad-tldr,
|
||
div.callout-tldr {
|
||
background-color: rgba(0, 176, 255, .5)
|
||
}
|
||
|
||
div.language-ad-info,
|
||
div.callout-info {
|
||
background-color: rgba(0, 184, 212, .5)
|
||
}
|
||
|
||
div.language-ad-todo,
|
||
div.callout-todo {
|
||
background-color: rgba(0, 184, 212, .5)
|
||
}
|
||
|
||
div.language-ad-tip,
|
||
div.callout-tip {
|
||
background-color: rgba(0, 191, 165, .5)
|
||
}
|
||
|
||
div.language-ad-hint,
|
||
div.callout-hint {
|
||
background-color: rgba(0, 191, 165, .5)
|
||
}
|
||
|
||
div.language-ad-important,
|
||
div.callout-important {
|
||
background-color: rgba(0, 191, 165, .5)
|
||
}
|
||
|
||
div.language-ad-success,
|
||
div.callout-success {
|
||
background-color: rgba(0, 200, 83, .5)
|
||
}
|
||
|
||
div.language-ad-check,
|
||
div.callout-check {
|
||
background-color: rgba(0, 200, 83, .5)
|
||
}
|
||
|
||
div.language-ad-done,
|
||
div.callout-done {
|
||
background-color: rgba(0, 200, 83, .5)
|
||
}
|
||
|
||
div.language-ad-question,
|
||
div.callout-question {
|
||
background-color: rgba(100, 221, 23, .5)
|
||
}
|
||
|
||
div.language-ad-help,
|
||
div.callout-help {
|
||
background-color: rgba(100, 221, 23, .5)
|
||
}
|
||
|
||
div.language-ad-faq,
|
||
div.callout-faq {
|
||
background-color: rgba(100, 221, 23, .5)
|
||
}
|
||
|
||
div.language-ad-warning,
|
||
div.callout-warning {
|
||
background-color: rgba(255, 145, 0, .5)
|
||
}
|
||
|
||
div.language-ad-caution,
|
||
div.callout-caution {
|
||
background-color: rgba(255, 145, 0, .5)
|
||
}
|
||
|
||
div.language-ad-attention,
|
||
div.callout-attention {
|
||
background-color: rgba(255, 145, 0, .5)
|
||
}
|
||
|
||
div.language-ad-failure,
|
||
div.callout-failure {
|
||
background-color: rgba(255, 82, 82, .5)
|
||
}
|
||
|
||
div.language-ad-fail,
|
||
div.callout-fail {
|
||
background-color: rgba(255, 82, 82, .5)
|
||
}
|
||
|
||
div.language-ad-missing,
|
||
div.callout-missing {
|
||
background-color: rgba(255, 82, 82, .5)
|
||
}
|
||
|
||
div.language-ad-danger,
|
||
div.callout-danger {
|
||
background-color: rgba(255, 23, 68, .5)
|
||
}
|
||
|
||
div.language-ad-error,
|
||
div.callout-error {
|
||
background-color: rgba(255, 23, 68, .5)
|
||
}
|
||
|
||
div.language-ad-bug,
|
||
div.callout-bug {
|
||
background-color: rgba(245, 0, 87, .5)
|
||
}
|
||
|
||
div.language-ad-example,
|
||
div.callout-example {
|
||
background-color: rgba(124, 77, 255, .5)
|
||
}
|
||
|
||
div.language-ad-quote,
|
||
div.callout-quote {
|
||
background-color: rgba(158, 158, 158, .5)
|
||
}
|
||
|
||
div.language-ad-cite,
|
||
div.callout-cite {
|
||
background-color: rgba(158, 158, 158, .5)
|
||
} |