techstack.hadan.de/theme/default/css/main.css

339 lines
7.1 KiB
CSS
Raw Permalink Normal View History

2025-02-18 12:48:15 +01:00
[data-color-mode*='dark'],
[data-color-mode*='dark'] body {
--color-header-bg: #3a3a3a8f;
--color-header-border: #21262d7a;
--color-hover: #ffffff1c;
--color-hoc-bg: #fffefe08;
--color-border-default: #d0d7de;
--color-accent-fg: #0969da;
--color-accent-emphasis: #0969da;
--color-danger-fg: #d1242f;
--color-danger-emphasis: #cf222e;
--color-attention-fg: #9a6700;
--color-attention-emphasis: #9a6700;
--color-done-fg: #8250df;
--color-done-emphasis: #8250df;
--color-success-fg: #1a7f37;
--color-success-emphasis: #1f883d;
}
[data-color-mode*='light'],
[data-color-mode*='light'] body {
--color-header-bg: #ffffff52;
--color-header-border: #0000001c;
--color-hover: #0000001a;
--color-hoc-bg: #00000008;
--color-border-default: #30363d;
--color-accent-fg: #58a6ff;
--color-accent-emphasis: #1f6feb;
--color-danger-fg: #f85149;
--color-danger-emphasis: #da3633;
--color-attention-fg: #d29922;
--color-attention-emphasis: #9e6a03;
--color-done-fg: #a371f7;
--color-done-emphasis: #8957e5;
--color-success-fg: #3fb950;
--color-success-emphasis: #238636;
}
*,
:after,
:before {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-size: 14px;
font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}
a {
text-decoration: none;
color: var(--color-accent-fg);
}
a:hover {
text-decoration: underline;
}
.warpper {
max-width: 960px;
margin: 0 auto;
}
.warpper dark-mode {
font-size: 18px;
}
markdown-style {
min-height: 60vh;
grid-area: main;
margin-bottom: 18px !important;
}
markdown-style img {
background-color: transparent !important;
}
.warpper-content {
padding: 0 20px;
padding-top: 32px;
margin-top: 48px;
display: grid;
grid-template-columns: minmax(0, 3.5fr) minmax(0, 15rem);
grid-template-areas: 'main toc';
grid-gap: 18px;
gap: 18px;
}
.warpper-content.sidebar {
grid-template-columns: 180px minmax(0, 3.5fr) minmax(0, 15rem);
grid-template-areas: 'sidebar main toc';
}
.warpper-content.notocs {
grid-template-columns: minmax(0, 3.5fr);
grid-template-areas: 'main';
}
.warpper-content.sidebar.notocs {
grid-template-columns: 180px minmax(0, 3.5fr);
grid-template-areas: 'sidebar main';
}
nav.tocs .is-position-fixed {
top: 58px !important;
max-height: calc(100% - 68px);
}
nav.tocs {
position: relative;
grid-area: toc;
}
nav.tocs p {
color: var(--color-fg-muted);
margin-bottom: 0;
}
nav.tocs a {
color: var(--color-fg-muted);
display: block;
padding: 0 5px;
}
nav.tocs .inner {
padding: 10px 10px 10px 10px;
background-color: var(--color-hoc-bg);
max-width: 240px;
width: 240px;
}
a.gototop {
position: fixed;
bottom: 10px;
right: 10px;
display: inline-block;
background: var(--color-theme-text);
padding: 5px;
border-radius: 5px;
z-index: 9999;
color: var(--color-theme-bg);
font-size: 10px;
opacity: 0;
transition: all 0.3s;
}
a.gototop:hover {
opacity: 1;
}
.header {
position: fixed;
width: 100%;
background: var(--color-header-bg);
backdrop-filter: saturate(180%) blur(0.4rem);
background-color: var(--color-header-bg);
border-bottom: 1px solid var(--color-header-border);
z-index: 99;
top: 0;
}
.header .inner {
display: flex;
justify-content: space-between;
min-height: 45px;
padding-left: 10px;
padding-right: 10px;
}
.header .logo {
font-weight: bold;
display: flex;
color: var(--color-theme-text);
align-items: center;
}
.header .logo:hover {
text-decoration: none;
}
.header .logo .title {
padding-left: 8px;
display: flex;
}
.header .logo .title sup {
margin-top: -5px;
padding-left: 2px;
font-weight: normal;
color: var(--color-fg-subtle);
}
.header .logo img,
.header .logo svg {
height: 26px;
display: block;
}
.header .content {
display: flex;
align-items: center;
}
.header .menu {
padding: 0;
margin: 0;
display: flex;
list-style: none;
padding-right: 10px;
}
.header .menu li {
display: flex;
align-items: center;
}
.header a {
color: var(--color-theme-text);
font-weight: bold;
}
.header .menu a {
padding: 3px 7px;
font-size: 14px;
border-radius: 2px;
}
.header .menu a.active {
background-color: var(--color-hover);
}
.header .github {
width: 18px;
height: 18px;
margin-right: 8px;
}
section.article-footer {
display: flex;
align-items: center;
font-size: 14px;
justify-content: space-between;
margin-top: 12px;
}
section.article-footer a {
display: flex;
align-items: center;
}
.edit-button {
padding-right: 8px;
}
.edit-button svg {
height: 15px;
margin-right: 6px;
}
section.article-footer .atime {
font-size: 12px;
color: var(--color-fg-muted);
margin-top: 2px;
}
.previous {
display: flex;
align-items: center;
justify-content: space-between;
grid-gap: 12px;
gap: 12px;
background-color: var(--color-canvas-subtle);
padding: 10px;
font-size: 14px;
border-radius: 5px;
margin-top: 26px;
}
.previous a {
display: flex;
align-items: center;
}
.previous a.prev svg {
margin-right: 3px;
}
.previous a.next svg {
margin-left: 3px;
}
.footer {
text-align: center;
border-top: 1px solid var(--color-header-border);
padding: 32px 0 110px 0;
color: var(--color-fg-muted);
font-size: 14px;
}
.markdown-alert {
border-left: 0.25em solid var(--borderColor-default, var(--color-border-default));
color: inherit;
margin-bottom: 16px;
padding: 0.5rem 1em;
}
.markdown-alert > :last-child {
margin-bottom: 0 !important;
}
.markdown-alert .markdown-alert-title {
align-items: center;
display: flex;
font-size: 14px;
font-weight: 500;
line-height: 1;
}
.markdown-alert .markdown-alert-title svg.octicon {
margin-right: 8px !important;
margin-right: var(--base-size-8, 8px) !important;
}
.markdown-alert.markdown-alert-note {
border-left-color: var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
}
.markdown-alert.markdown-alert-note .markdown-alert-title {
color: var(--color-accent-fg);
color: var(--fgColor-accent, var(--color-accent-fg));
}
.markdown-alert.markdown-alert-tip {
border-left-color: var(--borderColor-success-emphasis, var(--color-success-emphasis));
}
.markdown-alert.markdown-alert-tip .markdown-alert-title {
color: var(--color-success-fg);
color: var(--fgColor-success, var(--color-success-fg));
}
.markdown-alert.markdown-alert-important {
border-left-color: var(--borderColor-done-emphasis, var(--color-done-emphasis));
}
.markdown-alert.markdown-alert-important .markdown-alert-title {
color: var(--color-done-fg);
color: var(--fgColor-done, var(--color-done-fg));
}
.markdown-alert.markdown-alert-warning {
border-left-color: var(--borderColor-attention-emphasis, var(--color-attention-emphasis));
}
.markdown-alert.markdown-alert-warning .markdown-alert-title {
color: var(--color-attention-fg);
color: var(--fgColor-attention, var(--color-attention-fg));
}
.markdown-alert.markdown-alert-caution {
border-left-color: var(--borderColor-danger-emphasis, var(--color-danger-emphasis));
}
.markdown-alert.markdown-alert-caution .markdown-alert-title {
color: var(--color-danger-fg);
color: var(--fgColor-danger, var(--color-danger-fg));
}