2021-03-15 21:37:17 +01:00
|
|
|
.btn,
|
|
|
|
a.btn {
|
|
|
|
text-align: center;
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
touch-action: manipulation;
|
|
|
|
cursor: pointer;
|
|
|
|
background-image: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
user-select: none;
|
|
|
|
transition: 0.2s ease-in-out;
|
|
|
|
padding: var(--padding-base-vertical) var(--padding-base-horizontal);
|
|
|
|
font-size: var(--font-size-small);
|
|
|
|
border-radius: var(--border-radius);
|
2021-11-28 17:48:05 +01:00
|
|
|
background-color: rgba(255 255 255 / 10%);
|
2021-03-15 21:37:17 +01:00
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
font-family: var(--font-family-headings);
|
|
|
|
font-weight: var(--font-weight-headings);
|
|
|
|
color: var(--text-color);
|
|
|
|
text-transform: uppercase;
|
2023-11-05 12:44:56 +01:00
|
|
|
text-decoration: none;
|
2021-03-15 21:37:17 +01:00
|
|
|
box-shadow: var(--box-shadow);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn:hover,
|
|
|
|
.btn:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
outline: 0;
|
2021-11-28 17:48:05 +01:00
|
|
|
background-color: rgba(255 255 255 / 15%);
|
2021-03-15 21:37:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn:active {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* // Disabled State */
|
|
|
|
.btn.disabled,
|
|
|
|
.btn[disabled] {
|
|
|
|
cursor: not-allowed;
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0.6;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn span {
|
|
|
|
font-size: var(--font-size-mini);
|
|
|
|
color: var(--text-color-light);
|
|
|
|
margin-left: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 30rem) {
|
|
|
|
.btn,
|
|
|
|
a.btn {
|
|
|
|
max-width: 20rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button.link {
|
|
|
|
color: var(--link-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
button.link:hover,
|
|
|
|
button.link:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* // Primary Button */
|
|
|
|
.btn-primary,
|
|
|
|
a.btn-primary {
|
|
|
|
/* dark variant of `--body-background-color` */
|
|
|
|
color: #161a1b;
|
2021-11-28 17:48:05 +01:00
|
|
|
text-shadow: 0 1px 0 rgba(255 255 255 / 30%);
|
2021-03-15 21:37:17 +01:00
|
|
|
background: var(--link-color);
|
|
|
|
border-color: var(--link-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-primary:hover,
|
2023-11-05 12:44:56 +01:00
|
|
|
.btn-primary:focus,
|
|
|
|
article a.btn-primary:hover,
|
|
|
|
article a.btn-primary:focus {
|
|
|
|
color: #161a1b;
|
2021-03-15 21:37:17 +01:00
|
|
|
background: var(--link-color-hover);
|
2021-11-28 17:48:05 +01:00
|
|
|
text-shadow: 0 1px 0 rgba(255 255 255 / 30%);
|
2021-03-15 21:37:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-primary:active {
|
|
|
|
background: var(--link-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-block {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn[class*='icon-']::before {
|
|
|
|
content: '';
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 0.3rem;
|
|
|
|
margin-bottom: -0.2rem;
|
|
|
|
opacity: 0.75;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center center;
|
|
|
|
background-size: 100%;
|
|
|
|
}
|
|
|
|
|
Gatsby → Astro (#829)
* basic astro setup, kick out all gatsby configs
* move content folder
* src/pages setup
* more file reorg
* more config updates
* more reorgs
* refactor
* refactor
* bump astro
* refactor
* svg icon build system, theme switch
* remark plugin for lead paragraph, more refactor
* make images work
* post meta
* custom Picture component
* Pagination, More component, 404 fixes
* linking fixes
* add table of contents
* post actions fixes
* tag fixes
* content changes
* content changes: move media files to their posts
* more content moving, remove media folder
* refactor remark-lead-paragraph
* link css file when defined in post frontmatter
* move content up again
* kbd post update
* allow js
* downloads solution
* add astro check
* redirect_from solution
* githubLink solution
* reorg
* exif solution as prebuild step
* exif solution on each post during build
* isolate lead paragraph extraction to articles
* restore Exif components
* deploy script update
* fix redirects
* xml & json feeds
* build fix
* fix exif readout in production
* head and seo tweaks, add feeds
* tweak image display
* archive pages with single layout
* restore tags archive
* sitemap setup
* restore thanks page functionality
* reorg
* cleanup
* parallel scripts during prebuild
* restore jest setup
* remove jest, switch to vitest as test runner
* adapt CI
* test refactor
* typescript tweaks
* avatar fixes
* typings
* restore search functionality
* theme switch with nanostores
* fixes
* test fixes
* restore changelog functionality
* umami script
* border color tweak
* related posts with fuse.js
* plawright e2e testing setup
* search tweaks
* simplify typekit loading
* photo fix
* e2e tests
* related posts fix
* fix tags archive
* tweaks
* tweaks
* linux snapshots
* fix header test
* new symlink tactic
* fix dev server in codespaces
* fix yaml
* ci fixes
* changelog loading tweaks
* e2e against dev server on ci
* changelog tweaks
* ci tweaks
* ci tweaks
* ci tweaks
* docs updates
* ci tweaks
* refactor photo creation script
* package updates
* refactor search
* ci tweak
* ci tweaks
* test tweaks, more unit tests
* more unit tests
* post creation script tweaks
* refactor new scripts, test them for real life
* more tests
* refactor
* codeclimate-action update
* uses update
* limit ci runs
* fix theme toggle, test it
* more tests
* favicon files cleanup
* icon components location change
* type checking through ci
* command fixes
* ci fix
* search tweaks
* ci tweaks
* revised favicons, write post draft about it
* drafts filtering fix
* lint fix, favicon fixes
* copy changes
* fix related search images
* content updates
* new codeblock styles, copy tweaks, fixes
* package updates
* typing fixes
* lint fix
* content updates
* restore link posts
* faster theme switching
* split up astro utils
* related posts fixes
* fix
* refactor
* fixes
* copy tweaks
* fixes
* picture tweaks
* image fixes
* feed fixes, adapt for json feed v1.1
* e2e test updates
* layout tweaks
* update snaphots
* migrate to createMarkdownProcessor
* ci cache tweaks
* activate more browsers for e2e testing
* switch to macos-13 images
* build caching tweaks
* markdown fix
* set image quality
* remove avif generation
* picture tweaks
* head fixes
* add og:image:alt
* create-icons test
* new post: Favicon Generation with Astro
2023-09-18 03:16:53 +02:00
|
|
|
[data-theme='dark'] .btn[class*='icon-']::before {
|
2021-03-15 21:37:17 +01:00
|
|
|
filter: invert(0.75);
|
|
|
|
}
|
2021-11-28 17:48:05 +01:00
|
|
|
|
Gatsby → Astro (#829)
* basic astro setup, kick out all gatsby configs
* move content folder
* src/pages setup
* more file reorg
* more config updates
* more reorgs
* refactor
* refactor
* bump astro
* refactor
* svg icon build system, theme switch
* remark plugin for lead paragraph, more refactor
* make images work
* post meta
* custom Picture component
* Pagination, More component, 404 fixes
* linking fixes
* add table of contents
* post actions fixes
* tag fixes
* content changes
* content changes: move media files to their posts
* more content moving, remove media folder
* refactor remark-lead-paragraph
* link css file when defined in post frontmatter
* move content up again
* kbd post update
* allow js
* downloads solution
* add astro check
* redirect_from solution
* githubLink solution
* reorg
* exif solution as prebuild step
* exif solution on each post during build
* isolate lead paragraph extraction to articles
* restore Exif components
* deploy script update
* fix redirects
* xml & json feeds
* build fix
* fix exif readout in production
* head and seo tweaks, add feeds
* tweak image display
* archive pages with single layout
* restore tags archive
* sitemap setup
* restore thanks page functionality
* reorg
* cleanup
* parallel scripts during prebuild
* restore jest setup
* remove jest, switch to vitest as test runner
* adapt CI
* test refactor
* typescript tweaks
* avatar fixes
* typings
* restore search functionality
* theme switch with nanostores
* fixes
* test fixes
* restore changelog functionality
* umami script
* border color tweak
* related posts with fuse.js
* plawright e2e testing setup
* search tweaks
* simplify typekit loading
* photo fix
* e2e tests
* related posts fix
* fix tags archive
* tweaks
* tweaks
* linux snapshots
* fix header test
* new symlink tactic
* fix dev server in codespaces
* fix yaml
* ci fixes
* changelog loading tweaks
* e2e against dev server on ci
* changelog tweaks
* ci tweaks
* ci tweaks
* ci tweaks
* docs updates
* ci tweaks
* refactor photo creation script
* package updates
* refactor search
* ci tweak
* ci tweaks
* test tweaks, more unit tests
* more unit tests
* post creation script tweaks
* refactor new scripts, test them for real life
* more tests
* refactor
* codeclimate-action update
* uses update
* limit ci runs
* fix theme toggle, test it
* more tests
* favicon files cleanup
* icon components location change
* type checking through ci
* command fixes
* ci fix
* search tweaks
* ci tweaks
* revised favicons, write post draft about it
* drafts filtering fix
* lint fix, favicon fixes
* copy changes
* fix related search images
* content updates
* new codeblock styles, copy tweaks, fixes
* package updates
* typing fixes
* lint fix
* content updates
* restore link posts
* faster theme switching
* split up astro utils
* related posts fixes
* fix
* refactor
* fixes
* copy tweaks
* fixes
* picture tweaks
* image fixes
* feed fixes, adapt for json feed v1.1
* e2e test updates
* layout tweaks
* update snaphots
* migrate to createMarkdownProcessor
* ci cache tweaks
* activate more browsers for e2e testing
* switch to macos-13 images
* build caching tweaks
* markdown fix
* set image quality
* remove avif generation
* picture tweaks
* head fixes
* add og:image:alt
* create-icons test
* new post: Favicon Generation with Astro
2023-09-18 03:16:53 +02:00
|
|
|
[data-theme='dark'] .btn.btn-primary[class*='icon-']::before {
|
2021-03-15 21:37:17 +01:00
|
|
|
filter: invert(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* // some helper classes for old content
|
|
|
|
///////////////////////////////////// */
|
|
|
|
|
|
|
|
.content-download {
|
|
|
|
text-align: center;
|
|
|
|
display: block;
|
|
|
|
margin-top: calc(var(--spacer) * 2);
|
|
|
|
margin-bottom: calc(var(--spacer) * 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 30rem) {
|
|
|
|
.content-download {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-download .btn {
|
|
|
|
margin-bottom: calc(var(--spacer) / 2);
|
2023-11-05 12:44:56 +01:00
|
|
|
text-decoration: none;
|
2021-03-15 21:37:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.content-download .btn:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-download .btn:only-child {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-download .btn span {
|
|
|
|
font-size: var(--font-size-mini);
|
|
|
|
color: var(--brand-grey);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 30rem) {
|
|
|
|
.content-download .btn {
|
|
|
|
flex: 1;
|
|
|
|
margin-left: calc(var(--spacer) / 2);
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-download::before {
|
|
|
|
background-image: url('../../node_modules/feather-icons/dist/icons/arrow-down-circle.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-heart::before {
|
|
|
|
background-image: url('../../node_modules/feather-icons/dist/icons/heart.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-github::before {
|
|
|
|
background-image: url('../../node_modules/feather-icons/dist/icons/github.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-compass::before {
|
|
|
|
background-image: url('../../node_modules/feather-icons/dist/icons/compass.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-code::before {
|
|
|
|
background-image: url('../../node_modules/feather-icons/dist/icons/code.svg');
|
|
|
|
}
|