chiark / gitweb /
blog.git
7 years agocss: ignore empty lines and comments when compiling.
Vladimír Vondruš [Mon, 23 Oct 2017 07:12:46 +0000 (09:12 +0200)]
css: ignore empty lines and comments when compiling.

7 years agoREADME update.
Vladimír Vondruš [Sun, 22 Oct 2017 14:00:12 +0000 (16:00 +0200)]
README update.

7 years agodoc: Doxygen tagfile to showcase the m.dox plugin.
Vladimír Vondruš [Sun, 22 Oct 2017 13:37:57 +0000 (15:37 +0200)]
doc: Doxygen tagfile to showcase the m.dox plugin.

7 years agoInitial documentation and website.
Vladimír Vondruš [Sun, 22 Oct 2017 13:37:37 +0000 (15:37 +0200)]
Initial documentation and website.

7 years agocss: updated compiled CSS files.
Vladimír Vondruš [Sun, 22 Oct 2017 13:34:33 +0000 (15:34 +0200)]
css: updated compiled CSS files.

7 years agocss: move unrelated things out of m-grid.css.
Vladimír Vondruš [Sun, 22 Oct 2017 13:33:31 +0000 (15:33 +0200)]
css: move unrelated things out of m-grid.css.

7 years agoplugins: new button directives.
Vladimír Vondruš [Sun, 22 Oct 2017 13:28:09 +0000 (15:28 +0200)]
plugins: new button directives.

7 years agocss: styling for buttons.
Vladimír Vondruš [Sun, 22 Oct 2017 13:27:46 +0000 (15:27 +0200)]
css: styling for buttons.

7 years agocss: make base font size configurable.
Vladimír Vondruš [Sun, 22 Oct 2017 13:26:30 +0000 (15:26 +0200)]
css: make base font size configurable.

7 years agotheme: proper social meta tag URL for overriden index page.
Vladimír Vondruš [Sun, 22 Oct 2017 13:15:49 +0000 (15:15 +0200)]
theme: proper social meta tag URL for overriden index page.

7 years agocss: new .m-small and .m-big CSS classes for text.
Vladimír Vondruš [Sun, 22 Oct 2017 13:15:27 +0000 (15:15 +0200)]
css: new .m-small and .m-big CSS classes for text.

7 years agocss: dark pygments style update.
Vladimír Vondruš [Sun, 22 Oct 2017 13:14:16 +0000 (15:14 +0200)]
css: dark pygments style update.

7 years agocss: get rid of combined margin overrides for inflatable content.
Vladimír Vondruš [Wed, 18 Oct 2017 13:00:00 +0000 (15:00 +0200)]
css: get rid of combined margin overrides for inflatable content.

In particular, these were treated by the browser as having more priority
than the :last-child selectors removing the bottom padding on elements
on bottom of sections / page.

Hopefully I didn't break anything else with this :D

7 years agocss: align tables to center by default.
Vladimír Vondruš [Wed, 18 Oct 2017 12:52:46 +0000 (14:52 +0200)]
css: align tables to center by default.

For consistency with images, figures etc.

7 years agotheme: properly expand links in landing page.
Vladimír Vondruš [Wed, 18 Oct 2017 12:52:22 +0000 (14:52 +0200)]
theme: properly expand links in landing page.

7 years agoplugins: make the expand_links Jinja filter actually working.
Vladimír Vondruš [Wed, 18 Oct 2017 12:51:49 +0000 (14:51 +0200)]
plugins: make the expand_links Jinja filter actually working.

7 years agocss: consistent coloring for primary/info style in dark theme.
Vladimír Vondruš [Wed, 18 Oct 2017 12:48:49 +0000 (14:48 +0200)]
css: consistent coloring for primary/info style in dark theme.

7 years agocss: make border radius configurable.
Vladimír Vondruš [Thu, 12 Oct 2017 09:47:47 +0000 (11:47 +0200)]
css: make border radius configurable.

7 years agoplugins: new m.filesize plugin.
Vladimír Vondruš [Wed, 11 Oct 2017 19:50:00 +0000 (21:50 +0200)]
plugins: new m.filesize plugin.

7 years agocss: updated compiled versions of CSS files.
Vladimír Vondruš [Wed, 11 Oct 2017 19:41:03 +0000 (21:41 +0200)]
css: updated compiled versions of CSS files.

7 years agotheme: make the index page equivalent to archives if not overriden.
Vladimír Vondruš [Wed, 11 Oct 2017 19:39:58 +0000 (21:39 +0200)]
theme: make the index page equivalent to archives if not overriden.

7 years agotheme: don't crash if majority of configuration is missing.
Vladimír Vondruš [Wed, 11 Oct 2017 19:39:36 +0000 (21:39 +0200)]
theme: don't crash if majority of configuration is missing.

7 years agotheme: make it possible to provide more than one extra CSS for a page.
Vladimír Vondruš [Wed, 11 Oct 2017 19:39:04 +0000 (21:39 +0200)]
theme: make it possible to provide more than one extra CSS for a page.

To make it consistent with CSS_FILES.

7 years agotheme: provide social meta tags for pages as well.
Vladimír Vondruš [Wed, 11 Oct 2017 19:38:46 +0000 (21:38 +0200)]
theme: provide social meta tags for pages as well.

7 years agotheme: provide twitter:card meta tag even if article cover is not present.
Vladimír Vondruš [Wed, 11 Oct 2017 19:38:17 +0000 (21:38 +0200)]
theme: provide twitter:card meta tag even if article cover is not present.

7 years agotheme: no need to strip tags from article title.
Vladimír Vondruš [Wed, 11 Oct 2017 19:36:39 +0000 (21:36 +0200)]
theme: no need to strip tags from article title.

Also: might be harmful if using quotes etc.

7 years agotheme: provide <link rel="prev"> etc. for paginated listings.
Vladimír Vondruš [Wed, 11 Oct 2017 19:36:00 +0000 (21:36 +0200)]
theme: provide <link rel="prev"> etc. for paginated listings.

7 years agocss: import also the pygments style to make things easy.
Vladimír Vondruš [Wed, 11 Oct 2017 19:35:17 +0000 (21:35 +0200)]
css: import also the pygments style to make things easy.

7 years agocss: sane default height of the top navpanel.
Vladimír Vondruš [Wed, 11 Oct 2017 19:34:34 +0000 (21:34 +0200)]
css: sane default height of the top navpanel.

So it's not too tiny when there's nothing inside.

7 years agotheme: moved the CSS files outside of the arbitrary inc/ directory.
Vladimír Vondruš [Wed, 11 Oct 2017 19:33:11 +0000 (21:33 +0200)]
theme: moved the CSS files outside of the arbitrary inc/ directory.

The user shall have the full power where to put those files using
THEME_STATIC_DIR.

7 years agocss, theme: support for landing pages.
Vladimír Vondruš [Wed, 20 Sep 2017 11:24:37 +0000 (13:24 +0200)]
css, theme: support for landing pages.

Also goes together with improved layout for jumbo articles, as the two
are now kinda similar use cases, but in a different context.

7 years agotheme: highlight navbar items based on slug, not title.
Vladimír Vondruš [Tue, 19 Sep 2017 19:26:56 +0000 (21:26 +0200)]
theme: highlight navbar items based on slug, not title.

Because more than one subpage can (and usually does) have the same
title.

7 years agotheme: support for page breadcrumb attributes.
Vladimír Vondruš [Tue, 19 Sep 2017 19:22:23 +0000 (21:22 +0200)]
theme: support for page breadcrumb attributes.

7 years agotheme: adapt to link expansion API changes.
Vladimír Vondruš [Tue, 19 Sep 2017 19:20:15 +0000 (21:20 +0200)]
theme: adapt to link expansion API changes.

7 years agom.htmlsanity: add expand_link[s] Jinja2 filters.
Vladimír Vondruš [Tue, 19 Sep 2017 18:56:19 +0000 (20:56 +0200)]
m.htmlsanity: add expand_link[s] Jinja2 filters.

This depends on part of https://github.com/getpelican/pelican/pull/2164
(in particular having the _link_expander() function), everything else
from the PR is implemented here.

7 years agocss: .m-jumbo class and related unique things are now IDs.
Vladimír Vondruš [Mon, 18 Sep 2017 17:00:40 +0000 (19:00 +0200)]
css: .m-jumbo class and related unique things are now IDs.

Because there can be only one on the page.

7 years agocss: styling for breadcrumb navigation.
Vladimír Vondruš [Sat, 16 Sep 2017 19:20:40 +0000 (21:20 +0200)]
css: styling for breadcrumb navigation.

7 years agocss: properly align the navbar with contents.
Vladimír Vondruš [Fri, 15 Sep 2017 20:01:18 +0000 (22:01 +0200)]
css: properly align the navbar with contents.

Was narrower by 0.25rem from each side. Also simplified the markup a
bit.

7 years agocss: updated compiled versions of CSS styles.
Vladimír Vondruš [Fri, 15 Sep 2017 18:47:31 +0000 (20:47 +0200)]
css: updated compiled versions of CSS styles.

7 years agocss: avoid IE doing ugly things where it shouldn't.
Vladimír Vondruš [Fri, 15 Sep 2017 18:47:01 +0000 (20:47 +0200)]
css: avoid IE doing ugly things where it shouldn't.

7 years agocss, m.images: delimit image grid rows with a wrapper <div>.
Vladimír Vondruš [Fri, 15 Sep 2017 18:42:32 +0000 (20:42 +0200)]
css, m.images: delimit image grid rows with a wrapper <div>.

Allows me to remove the ugly hack from m-grid.css, fixes misalignment
in some browsers (IE, Edge, FF) and makes the images properly span the
full content width in *all* cases now.

7 years agocss: provide postprocessed versions of CSS files.
Vladimír Vondruš [Fri, 15 Sep 2017 18:18:48 +0000 (20:18 +0200)]
css: provide postprocessed versions of CSS files.

Makes the whole thing work on IE and Edge! Yay!

7 years agocss: fix variable names.
Vladimír Vondruš [Fri, 15 Sep 2017 16:13:12 +0000 (18:13 +0200)]
css: fix variable names.

7 years agocss: get rid of CSS "initial" value.
Vladimír Vondruš [Fri, 15 Sep 2017 16:12:25 +0000 (18:12 +0200)]
css: get rid of CSS "initial" value.

I thought this behaves like the "reset" value. It doesn't. And support
for the "reset" value is poor.

7 years agoNew "code figure" element.
Vladimír Vondruš [Fri, 15 Sep 2017 11:08:37 +0000 (13:08 +0200)]
New "code figure" element.

7 years agocss: fix z-order for figure.m-figure.
Vladimír Vondruš [Fri, 15 Sep 2017 11:08:04 +0000 (13:08 +0200)]
css: fix z-order for figure.m-figure.

7 years agocss: minor cleanup.
Vladimír Vondruš [Fri, 15 Sep 2017 11:07:43 +0000 (13:07 +0200)]
css: minor cleanup.

7 years agoplugins: new m.abbr plugin.
Vladimír Vondruš [Thu, 14 Sep 2017 22:06:49 +0000 (00:06 +0200)]
plugins: new m.abbr plugin.

Makes the :abbr: directive syntax consistent with links. Also required
patching in m.htmlsanity.

7 years agom.images: we don't need 1000 bits of precision for image grid.
Vladimír Vondruš [Thu, 14 Sep 2017 22:05:43 +0000 (00:05 +0200)]
m.images: we don't need 1000 bits of precision for image grid.

Limit the image width percentage to 3 decimal points. More than enough.

7 years agom.components: use a container node for text-* directives.
Vladimír Vondruš [Thu, 14 Sep 2017 22:04:19 +0000 (00:04 +0200)]
m.components: use a container node for text-* directives.

It's *not* a topic.

7 years agom.math: apply https://github.com/tuxu/latex2svg/pull/1.
Vladimír Vondruš [Thu, 14 Sep 2017 22:03:02 +0000 (00:03 +0200)]
m.math: apply https://github.com/tuxu/latex2svg/pull/1.

Fixes crashes in some corner cases.

7 years agom.components: :class: option for notes, blocks, frame and text.
Vladimír Vondruš [Thu, 14 Sep 2017 21:50:16 +0000 (23:50 +0200)]
m.components: :class: option for notes, blocks, frame and text.

7 years agotheme: unbreak footer links with empty SITEURL.
Vladimír Vondruš [Thu, 14 Sep 2017 21:45:28 +0000 (23:45 +0200)]
theme: unbreak footer links with empty SITEURL.

7 years agocss: don't include the debug CSS by default.
Vladimír Vondruš [Tue, 12 Sep 2017 19:58:16 +0000 (21:58 +0200)]
css: don't include the debug CSS by default.

The user is now responsible for including it.

7 years agocss: styling for SVG math.
Vladimír Vondruš [Tue, 12 Sep 2017 19:57:59 +0000 (21:57 +0200)]
css: styling for SVG math.

7 years agoplugins: new m.math plugin.
Vladimír Vondruš [Tue, 12 Sep 2017 19:56:50 +0000 (21:56 +0200)]
plugins: new m.math plugin.

7 years agocss: simplify code styles after docutils output has been fixed.
Vladimír Vondruš [Tue, 12 Sep 2017 19:55:59 +0000 (21:55 +0200)]
css: simplify code styles after docutils output has been fixed.

7 years agoplugins: new m.code plugin.
Vladimír Vondruš [Tue, 12 Sep 2017 19:53:46 +0000 (21:53 +0200)]
plugins: new m.code plugin.

Unifies and simplifies the highlighting without additional useless
wrapper <div>s and meaningless classes.

7 years agocss: don't wrap top navbar items on large screens.
Vladimír Vondruš [Tue, 12 Sep 2017 10:14:09 +0000 (12:14 +0200)]
css: don't wrap top navbar items on large screens.

Breaks everything. It's okay on small screens though.

7 years agom.htmlsanity: take inline language into account for hyphenation.
Vladimír Vondruš [Mon, 11 Sep 2017 17:02:23 +0000 (19:02 +0200)]
m.htmlsanity: take inline language into account for hyphenation.

And also don't crash if given language is not supported.

7 years agom.htmlsanity: don't print a warning if smart quote lang isn't available.
Vladimír Vondruš [Mon, 11 Sep 2017 17:01:42 +0000 (19:01 +0200)]
m.htmlsanity: don't print a warning if smart quote lang isn't available.

Because that makes Pelican stop.

7 years agotemplate: no need to use dehyphenate for document titles anymore.
Vladimír Vondruš [Mon, 11 Sep 2017 16:30:21 +0000 (18:30 +0200)]
template: no need to use dehyphenate for document titles anymore.

7 years agom.htmlsanity: make hyphenation scope saner.
Vladimír Vondruš [Tue, 12 Sep 2017 10:09:22 +0000 (12:09 +0200)]
m.htmlsanity: make hyphenation scope saner.

Article summary is now hyphenated, document title and other fields are
not. Also not hyphenating inline raw nodes (breaks math).

7 years agom.components: components for colored text blocks.
Vladimír Vondruš [Tue, 12 Sep 2017 10:08:11 +0000 (12:08 +0200)]
m.components: components for colored text blocks.

7 years agom.images: override the Figure directive as well.
Vladimír Vondruš [Mon, 11 Sep 2017 15:19:01 +0000 (17:19 +0200)]
m.images: override the Figure directive as well.

And add the m-figure class implicitly.

7 years agom.images: add outer <div> with all classes if the image has a target.
Vladimír Vondruš [Mon, 11 Sep 2017 15:18:30 +0000 (17:18 +0200)]
m.images: add outer <div> with all classes if the image has a target.

To match the expectations of m.css.

7 years agom.images: properly support the image :target: option.
Vladimír Vondruš [Mon, 11 Sep 2017 15:17:57 +0000 (17:17 +0200)]
m.images: properly support the image :target: option.

7 years agom.images: don't fail if Pillow is not available.
Vladimír Vondruš [Mon, 11 Sep 2017 15:16:52 +0000 (17:16 +0200)]
m.images: don't fail if Pillow is not available.

It should be possible to use the plugin even w/o Pillow (but then image
grid won't work).

7 years agom.htmlsanity: patch image node writing to not include useless alt attrib.
Vladimír Vondruš [Mon, 11 Sep 2017 15:15:54 +0000 (17:15 +0200)]
m.htmlsanity: patch image node writing to not include useless alt attrib.

7 years agom.htmlsanity: actually add the highlight CSS class to inline code.
Vladimír Vondruš [Mon, 11 Sep 2017 15:15:09 +0000 (17:15 +0200)]
m.htmlsanity: actually add the highlight CSS class to inline code.

So I don't have to add it manually every time.

7 years agom.htmlsanity: patch for difference between docutils 0.13 and 0.14.
Vladimír Vondruš [Mon, 11 Sep 2017 15:14:00 +0000 (17:14 +0200)]
m.htmlsanity: patch for difference between docutils 0.13 and 0.14.

With the default being for 0.14 (forward-compatible).

7 years agom.htmlsanity: we're replacing builtin SmartQuotes.
Vladimír Vondruš [Mon, 11 Sep 2017 15:13:25 +0000 (17:13 +0200)]
m.htmlsanity: we're replacing builtin SmartQuotes.

No need to mess w/ priority.

7 years agocss: fix clickable .m-image.
Vladimír Vondruš [Mon, 11 Sep 2017 14:18:29 +0000 (16:18 +0200)]
css: fix clickable .m-image.

The bottom margin was not applied because of the outer <a> element,
moreover the <a> element was spanning the whole page width instead of
just the image. A fix requires additional outer <div> now.

7 years agocss: make image grid inflated the same way as notes, blocks and frames.
Vladimír Vondruš [Mon, 11 Sep 2017 14:08:39 +0000 (16:08 +0200)]
css: make image grid inflated the same way as notes, blocks and frames.

Looks better on mobile, as the images span the full width then.
Unfortunately this required a hack that I'm not really proud of.

7 years agocss: more code reordering.
Vladimír Vondruš [Mon, 11 Sep 2017 11:30:35 +0000 (13:30 +0200)]
css: more code reordering.

7 years agocss: make it image grid more flexible.
Vladimír Vondruš [Mon, 11 Sep 2017 11:26:45 +0000 (13:26 +0200)]
css: make it image grid more flexible.

It's now possible to omit the link, omit the caption or both.

7 years agocss: don't highlight blocks/notes/frames/codeblocks that are not inflated.
Vladimír Vondruš [Mon, 11 Sep 2017 11:25:40 +0000 (13:25 +0200)]
css: don't highlight blocks/notes/frames/codeblocks that are not inflated.

This assumes that <section> elements are only part of an <article> and
nothing else.

7 years agocss: styling for higlighted lines in code blocks.
Vladimír Vondruš [Mon, 11 Sep 2017 11:24:49 +0000 (13:24 +0200)]
css: styling for higlighted lines in code blocks.

And support for .m-inverted-highlight.

7 years agom.images: use <figcaption> instead of <div> for image grid caption.
Vladimír Vondruš [Mon, 11 Sep 2017 11:24:13 +0000 (13:24 +0200)]
m.images: use <figcaption> instead of <div> for image grid caption.

7 years agom.images: avoid conflict of PIL with my own Image class.
Vladimír Vondruš [Mon, 11 Sep 2017 11:23:52 +0000 (13:23 +0200)]
m.images: avoid conflict of PIL with my own Image class.

7 years agom.components: add block-flat directive to match the CSS components.
Vladimír Vondruš [Mon, 11 Sep 2017 11:23:27 +0000 (13:23 +0200)]
m.components: add block-flat directive to match the CSS components.

7 years agom.gh: repository link title doesn't need to be a full URL.
Vladimír Vondruš [Mon, 11 Sep 2017 11:22:27 +0000 (13:22 +0200)]
m.gh: repository link title doesn't need to be a full URL.

Because it's obvious what's meant.

7 years agom.gh: shorten the commit link title to 7 chars of the SHA-1.
Vladimír Vondruš [Mon, 11 Sep 2017 11:22:00 +0000 (13:22 +0200)]
m.gh: shorten the commit link title to 7 chars of the SHA-1.

7 years agom.gl: fix link target of :glfn:.
Vladimír Vondruš [Mon, 11 Sep 2017 11:21:30 +0000 (13:21 +0200)]
m.gl: fix link target of :glfn:.

7 years agotheme: various updates.
Vladimír Vondruš [Mon, 11 Sep 2017 11:19:54 +0000 (13:19 +0200)]
theme: various updates.

Fixed code indentation on a bunch of places, got rid of TAGCLOUD_LEVELS
as the style had it hardcoded anyway, adapted to padding changes in the
CSS style.

7 years agocss: remove top/bottom padding of .m-container, make it more flexible.
Vladimír Vondruš [Mon, 11 Sep 2017 11:17:59 +0000 (13:17 +0200)]
css: remove top/bottom padding of .m-container, make it more flexible.

Updated padding of other elements accordingly, added new .m-nopad*
classes to make things easier for the templates.

7 years agocss: fix article section highlighting for some components.
Vladimír Vondruš [Sun, 10 Sep 2017 20:08:53 +0000 (22:08 +0200)]
css: fix article section highlighting for some components.

 * Non-inflated code blocks were mistakenly inflated in highlighted
   sections. Code blocks with additional classes were not inflated by
   mistake.
 * The content of blocks, frames and notes is now properly padded to
   align with the rest of the page and doesn't jump on highlight.
 * Inflated notes now have their left border colored when highlighted.

7 years agocss: coloring also for <th> elements.
Vladimír Vondruš [Sun, 10 Sep 2017 16:54:06 +0000 (18:54 +0200)]
css: coloring also for <th> elements.

7 years agocss: compress the code a bit, finish the doc comment.
Vladimír Vondruš [Sun, 10 Sep 2017 16:50:16 +0000 (18:50 +0200)]
css: compress the code a bit, finish the doc comment.

7 years agocss: code reordering.
Vladimír Vondruš [Sun, 10 Sep 2017 16:43:29 +0000 (18:43 +0200)]
css: code reordering.

7 years agom.htmlsanity: add dehyphenate filter and use it straight away.
Vladimír Vondruš [Fri, 8 Sep 2017 09:35:44 +0000 (11:35 +0200)]
m.htmlsanity: add dehyphenate filter and use it straight away.

7 years agom.htmlsanity: produce &shy; instead of U+00AD in the hyphenate filter.
Vladimír Vondruš [Fri, 8 Sep 2017 09:34:48 +0000 (11:34 +0200)]
m.htmlsanity: produce &shy; instead of U+00AD in the hyphenate filter.

Makes the result easier to spot in the resulting HTML code.

7 years agoMinor README update.
Vladimír Vondruš [Tue, 12 Sep 2017 10:00:13 +0000 (12:00 +0200)]
Minor README update.

7 years agotheme: proper jumbo article header splitting.
Vladimír Vondruš [Fri, 25 Aug 2017 23:12:38 +0000 (01:12 +0200)]
theme: proper jumbo article header splitting.

7 years agotheme: support large Twitter cards.
Vladimír Vondruš [Fri, 25 Aug 2017 23:12:25 +0000 (01:12 +0200)]
theme: support large Twitter cards.

7 years agocss: remove stupid defaults for <pre>.
Vladimír Vondruš [Fri, 25 Aug 2017 11:05:37 +0000 (13:05 +0200)]
css: remove stupid defaults for <pre>.

7 years agocss: better full-width for the <pre> tag.
Vladimír Vondruš [Fri, 25 Aug 2017 11:05:00 +0000 (13:05 +0200)]
css: better full-width for the <pre> tag.

Content-box sizing only makes problems.

7 years agocss: superfluous semicolon.
Vladimír Vondruš [Thu, 24 Aug 2017 11:15:55 +0000 (13:15 +0200)]
css: superfluous semicolon.

7 years agocss: use proper gradient background for jumbo articles.
Vladimír Vondruš [Thu, 24 Aug 2017 11:15:09 +0000 (13:15 +0200)]
css: use proper gradient background for jumbo articles.

7 years agotheme: consistent padding for (jumbo) articles.
Vladimír Vondruš [Thu, 24 Aug 2017 11:14:15 +0000 (13:14 +0200)]
theme: consistent padding for (jumbo) articles.