From 8c5296c794372218f3e54f27aa69575fc3347414 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 24 Mar 2012 01:05:13 +0100 Subject: Restructure and simplify into only ikiwiki-site and ikiwiki-style. --- default/_ikiwiki.scss | 85 +++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 47 deletions(-) diff --git a/default/_ikiwiki.scss b/default/_ikiwiki.scss index af6887d..855878d 100644 --- a/default/_ikiwiki.scss +++ b/default/_ikiwiki.scss @@ -830,72 +830,63 @@ a.openid_large_btn:focus { @include ikiwiki-plugin-trail; } -@mixin ikiwiki-basic { -} @mixin ikiwiki-site { - @include ikiwiki-header; + // main content + @include ikiwiki-inlinepage; @include ikiwiki-inlineheader; - @include ikiwiki-actions; @include ikiwiki-inlinecontent; + @include ikiwiki-plugin-comments; + // header + @include ikiwiki-header; + @include ikiwiki-plugin-search; + @include ikiwiki-actions; + @include ikiwiki-plugin-po; + // footer @include ikiwiki-footer; @include ikiwiki-pageinfo; @include ikiwiki-tags; @include ikiwiki-backlinks; - @include ikiwiki-blogform; - @include ikiwiki-inlinepage; @include ikiwiki-authorship; - @include ikiwiki-archivepage; + // aside + @include ikiwiki-plugin-sidebar; + @include ikiwiki-plugin-trail; } -@mixin ikiwiki-typography { + +// http://www.louddog.com/2008/create-maintainable-code-with-a-css-styleguide/ +@mixin ikiwiki-style { + // site defaults + @include ikiwiki-images; @include ikiwiki-pre; -} -@mixin ikiwiki-links { -} -@mixin ikiwiki-buttons { + // generic styles + @include ikiwiki-lists; + @include ikiwiki-plugin-img; @include ikiwiki-feedbutton; -} -@mixin ikiwiki-tabs { -} -@mixin ikiwiki-misc { + @include ikiwiki-forms; + @include ikiwiki-alignment; + @include ikiwiki-debug; + @include ikiwiki-plugin-highlight; + @include ikiwiki-plugin-color; + // shell + // layout + @include ikiwiki-site; + @include ikiwiki-site-print; + // modulars @include ikiwiki-infobox; @include ikiwiki-notebook; @include ikiwiki-popup; - @include ikiwiki-alignment; - @include ikiwiki-debug; -} -@mixin ikiwiki-plugins { - @include ikiwiki-plugin-recentchanges; - @include ikiwiki-plugin-po; + @include ikiwiki-plugin-calendar; + @include ikiwiki-plugin-progress; @include ikiwiki-plugin-map; - @include ikiwiki-plugin-img; - @include ikiwiki-plugin-search; - @include ikiwiki-plugin-editpage; - @include ikiwiki-plugin-sidebar; @include ikiwiki-plugin-poll; - @include ikiwiki-plugin-color; - @include ikiwiki-plugin-comments; - @include ikiwiki-plugin-progress; - @include ikiwiki-plugin-highlight; - @include ikiwiki-plugin-calendar; @include ikiwiki-plugin-pagestats; @include ikiwiki-plugin-flattr; - @include ikiwiki-plugin-openid; + @include ikiwiki-blogform; + // section/page specific + @include ikiwiki-archivepage; + @include ikiwiki-plugin-recentchanges; + @include ikiwiki-plugin-editpage; @include ikiwiki-plugin-attachment; - @include ikiwiki-plugin-trail; -} -@mixin ikiwiki-style { - @include ikiwiki-basic; - @include ikiwiki-site; - @include ikiwiki-site-print; - @include ikiwiki-typography; - @include ikiwiki-links; - @include ikiwiki-lists; - @include ikiwiki-images; - @include ikiwiki-buttons; - @include ikiwiki-tabs; - @include ikiwiki-forms; - @include ikiwiki-misc; - @include ikiwiki-plugins; + @include ikiwiki-plugin-openid; } @mixin ikiwiki { -- cgit v1.2.3