Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the minimal theme to Marmite #215

Merged
merged 6 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
217 changes: 217 additions & 0 deletions example/static/colorschemes/minimal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
/* Marmite Minimal Theme */
/* picocss.com */
:root {
--pico-border-radius: 0;
}

.content-tags a:where(a:not([role=button])),
[role=link] {
--pico-color: revert;
}

[data-theme=light],
:root:not([data-theme=dark]) {
--pico-background-color: #fff8ef;
--pico-card-background-color: #fff8ef;
--pico-card-sectioning-background-color: var(--pico-background-color);
--pico-primary: #20453f;
--pico-primary-opacity-25: #20453f27;
--pico-primary-hover: #20453f;
--pico-secondary: #20453f;
--pico-color: #24292f;
--pico-tag: #24292f;
--pico-h1-color: var(--pico-primary);
--pico-code-background-color: var(--pico-background-color);
--pico-table-border-color: var(--pico-primary-opacity-25);
--pico-color-azure-550: var(--pico-primary);
--pico-h1-color: var(--pico-primary);
--pico-h2-color: var(--pico-primary);
--pico-h3-color: var(--pico-primary);
--pico-h4-color: var(--pico-primary);
--pico-h5-color: var(--pico-primary);
--pico-h6-color: var(--pico-primary);
}

[data-theme=light] pre:has(> code.language-mermaid) {
background-color: var(--pico-card-background-color);
}

[data-theme=dark],
:root:not([data-theme=light]) {
--pico-background-color: #20453f;
--pico-card-background-color: #20453f;
--pico-card-sectioning-background-color: var(--pico-background-color);
--pico-primary: #fff8ef;
--pico-primary-opacity-25: #fff8ef50;
--pico-primary-hover: #fff8ef;
--pico-secondary: #fff8ef;
--pico-color: #fff8ef;
--pico-tag: #fff8ef;
--pico-h1-color: var(--pico-color);
--pico-code-background-color: #20453f;
--pico-table-border-color: var(--pico-primary-opacity-25);
--pico-color-azure-550: var(--pico-primary);
--pico-h1-color: var(--pico-primary);
--pico-h2-color: var(--pico-primary);
--pico-h3-color: var(--pico-primary);
--pico-h4-color: var(--pico-primary);
--pico-h5-color: var(--pico-primary);
--pico-h6-color: var(--pico-primary);
--pico-muted-color: var(--pico-primary-opacity-25);
}

[data-theme=dark] pre:has(> code.language-mermaid) {
background-color: var(--pico-code-background-color);
}

body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
article {
box-shadow: none;
padding-left: 0;
padding-right: 0;
margin-bottom: 0;
}
.content-list-item {
margin-top: 2rem;
margin-bottom: 2rem;
}
article>footer {
margin-top: 0;
margin-bottom: calc(var(--pico-block-spacing-vertical)* -1);
border-top: none;
border-bottom: 0 solid var(--pico-primary-opacity-25);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
padding-top: 0.2rem;
}
.content-excerpt {
font-size: 90%;
opacity: 0.8;
margin-bottom: 0;
}
.content-title {
font-weight: 500;
}
.data-tags-footer .content-date {
font-size: 90%;
position: relative;
bottom: -0.25rem;
}
.content-tags {
position: relative;
bottom: -0.25rem;
padding-left: 0;

li a {
font-size: 90%;
}
li:hover {
border: 1px solid transparent;
}
}
.content-html {
border-top: 1px var(--pico-primary-opacity-25) solid;
border-bottom: 1px var(--pico-primary-opacity-25) solid;
padding-top: 1rem;
padding-bottom: 1rem;
}
.content-banner-image {
border-radius: 0.5rem;
}
.content-authors ul {
margin-bottom: 0;
}
p {
margin-bottom: 0.85rem;
line-height: 1.4;
}
code, kbd {
display: inline-block;
padding: 0 .375rem;
}
pre code.hljs {
display: block;
overflow-x: auto;
padding: 0 1em;
}
blockquote {
border-left: .15rem solid var(--pico-table-border-color);
}
.announcement-wrapper {
background-color: var(--pico-primary);
padding: 0.5rem;
margin-bottom: 1rem;

p {
font-size: 1rem;
margin: 0;
}
}
.footer-content {
padding: 1.5rem 0;
opacity: 0.75;
font-weight: 300;
font-size: 0.85rem;
border-top: 1px #869d99 solid;

select {
font-size: 95%;
}
div {
text-align: left;
}
}
hgroup>:not(:first-child):last-child {
--pico-color: var(--pico-primary);
--pico-font-weight: unset;
font-size: 1rem;
opacity: 0.8;
}
.theme-toggle {
cursor: pointer;
color: var(--pico-primary);
padding: 0.45rem 0.65rem 0.35rem 0.65rem;
border: 1px var(--pico-primary-opacity-25) solid;
border-radius: 0.25rem;
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.search-magnifier {
border: 2px solid var(--pico-primary);

&::after {
background-color: var(--pico-primary);
}
}
details summary[role=button]::after {
margin-bottom: -10px;
}
.content-list-with-sidebar {
ul {
padding-left: 0.85rem;
position: relative;
top: -0.35rem;
}
.right {
padding-left: 1rem;
margin-left: 0.5rem;
border-left: 1px solid var(--pico-primary-opacity-25);
}
}
.header-menu {
@media (max-width: 1025px) {
box-shadow: 0px 0px 0px 0px var(--pico-contrast-focus);
width: 100%;
border: 1px var(--pico-primary-opacity-25) solid;
}
}
.hamburger {
color: var(--pico-primary);
}
1 change: 1 addition & 0 deletions example/static/marmite.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ function colorschemeSwitcher() {
'github',
'gruvbox',
'iceberg',
'minimal',
'monokai',
'nord',
'one',
Expand Down
Loading