From 52380ceab6efe701edb69ea542e4e9b87a0528ed Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Tue, 28 Oct 2014 21:34:13 +0300 Subject: [PATCH 1/3] Simplify base.html, include favicon and feed content --- alchemy/static/js/{libs => }/jquery.min.js | 0 alchemy/templates/base.html | 66 +++++++++++++--------- alchemy/templates/include/favicon.html | 7 --- alchemy/templates/include/feeds.html | 6 -- 4 files changed, 40 insertions(+), 39 deletions(-) rename alchemy/static/js/{libs => }/jquery.min.js (100%) delete mode 100644 alchemy/templates/include/favicon.html delete mode 100644 alchemy/templates/include/feeds.html diff --git a/alchemy/static/js/libs/jquery.min.js b/alchemy/static/js/jquery.min.js similarity index 100% rename from alchemy/static/js/libs/jquery.min.js rename to alchemy/static/js/jquery.min.js diff --git a/alchemy/templates/base.html b/alchemy/templates/base.html index 441d294..30bc5ad 100644 --- a/alchemy/templates/base.html +++ b/alchemy/templates/base.html @@ -1,37 +1,51 @@ - - {% block head %} - - - + + {% block head %} + + + - {% block title %}{{ SITE_SUBTEXT }}{% endblock title %} + {% block title %}{{ SITE_SUBTEXT }}{% endblock title %} - {% include "include/favicon.html" %} - {% include "include/feeds.html" %} - + {% if EXTRA_FAVICON %} + + + + + + {% endif %} - - {% include "include/google_analytics.html" %} - {% endblock %} - + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} - - {% include "include/header.html" %} -
- {% block content %}{% endblock %} -
- {% include "include/footer.html" %} + - - - + + + {% include "include/google_analytics.html" %} + {% endblock %} + + + + {% include "include/header.html" %} +
+ {% block content %}{% endblock %} +
+ {% include "include/footer.html" %} + + + + diff --git a/alchemy/templates/include/favicon.html b/alchemy/templates/include/favicon.html deleted file mode 100644 index 50a0826..0000000 --- a/alchemy/templates/include/favicon.html +++ /dev/null @@ -1,7 +0,0 @@ -{% if EXTRA_FAVICON %} - - - - - -{% endif %} diff --git a/alchemy/templates/include/feeds.html b/alchemy/templates/include/feeds.html deleted file mode 100644 index 85403e5..0000000 --- a/alchemy/templates/include/feeds.html +++ /dev/null @@ -1,6 +0,0 @@ -{% if FEED_ATOM %} - -{% endif %} -{% if FEED_RSS %} - -{% endif %} From 288e6464bdbc630732d94cd71ac8fc90fb1eaacd Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Tue, 28 Oct 2014 21:37:47 +0300 Subject: [PATCH 2/3] Reduce html files (space) tab size 4 -> 2 --- alchemy/templates/archives.html | 16 ++-- alchemy/templates/article.html | 74 +++++++-------- alchemy/templates/author.html | 4 +- alchemy/templates/authors.html | 14 +-- alchemy/templates/base.html | 66 +++++++------- alchemy/templates/categories.html | 14 +-- alchemy/templates/category.html | 4 +- .../templates/include/disqus_comments.html | 44 ++++----- alchemy/templates/include/footer.html | 14 +-- .../templates/include/google_analytics.html | 30 +++---- alchemy/templates/include/header.html | 90 +++++++++---------- alchemy/templates/include/pagination.html | 18 ++-- alchemy/templates/index.html | 70 +++++++-------- alchemy/templates/page.html | 28 +++--- alchemy/templates/tag.html | 4 +- alchemy/templates/tags.html | 14 +-- 16 files changed, 252 insertions(+), 252 deletions(-) diff --git a/alchemy/templates/archives.html b/alchemy/templates/archives.html index f6edca0..686a1de 100644 --- a/alchemy/templates/archives.html +++ b/alchemy/templates/archives.html @@ -1,15 +1,15 @@ {% extends "base.html" %} {% block title %} - {{ SITENAME }} — Archives + {{ SITENAME }} — Archives {% endblock %} {% block content %} -

Archives

-
- {% for article in dates %} -
{{ article.locale_date }}
-
{{ article.title }}
- {% endfor %} -
+

Archives

+
+ {% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+ {% endfor %} +
{% endblock %} diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 4b6b64a..375cab9 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -1,48 +1,48 @@ {% extends "base.html" %} {% block head %} - {{ super() }} - {% if article.author %} - - {% endif %} - {% if article.summary %} - - {% endif %} - + {{ super() }} + {% if article.author %} + + {% endif %} + {% if article.summary %} + + {% endif %} + {% endblock %} {% block title %} - {{ SITENAME }} — {{ article.title|striptags }} + {{ SITENAME }} — {{ article.title|striptags }} {% endblock %} {% block content %} -
-

- {{ article.title }} -

- -
- {{ article.content }} -
-
-
-
- {% include 'include/disqus_comments.html' %} +
+

+ {{ article.title }} +

+ +
+ {{ article.content }}
+
+
+
+ {% include 'include/disqus_comments.html' %} +
{% endblock %} diff --git a/alchemy/templates/author.html b/alchemy/templates/author.html index 260eda4..f457216 100644 --- a/alchemy/templates/author.html +++ b/alchemy/templates/author.html @@ -1,9 +1,9 @@ {% extends "index.html" %} {% block title %} - {{ SITENAME }} — Articles by {{ author }} + {{ SITENAME }} — Articles by {{ author }} {% endblock %} {% block page_title %} -

Articles by {{ author }}

+

Articles by {{ author }}

{% endblock %} diff --git a/alchemy/templates/authors.html b/alchemy/templates/authors.html index ffccd94..220c7f4 100644 --- a/alchemy/templates/authors.html +++ b/alchemy/templates/authors.html @@ -1,14 +1,14 @@ {% extends "base.html" %} {% block title %} - {{ SITENAME }} — Authors + {{ SITENAME }} — Authors {% endblock %} {% block content %} -

Authors on {{ SITENAME }}

-
    - {% for author, articles in authors|sort %} -
  • {{ author }} ({{ articles|count }})
  • - {% endfor %} -
+

Authors on {{ SITENAME }}

+
    + {% for author, articles in authors|sort %} +
  • {{ author }} ({{ articles|count }})
  • + {% endfor %} +
{% endblock %} diff --git a/alchemy/templates/base.html b/alchemy/templates/base.html index 30bc5ad..a182f61 100644 --- a/alchemy/templates/base.html +++ b/alchemy/templates/base.html @@ -2,50 +2,50 @@ - {% block head %} - - - + {% block head %} + + + - {% block title %}{{ SITE_SUBTEXT }}{% endblock title %} + {% block title %}{{ SITE_SUBTEXT }}{% endblock title %} - {% if EXTRA_FAVICON %} - - - - - - {% endif %} + {% if EXTRA_FAVICON %} + + + + + + {% endif %} - {% if FEED_ATOM %} - - {% endif %} - {% if FEED_RSS %} - - {% endif %} + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} - + - + - {% include "include/google_analytics.html" %} - {% endblock %} + {% include "include/google_analytics.html" %} + {% endblock %} - {% include "include/header.html" %} -
- {% block content %}{% endblock %} -
- {% include "include/footer.html" %} + {% include "include/header.html" %} +
+ {% block content %}{% endblock %} +
+ {% include "include/footer.html" %} - - + + diff --git a/alchemy/templates/categories.html b/alchemy/templates/categories.html index 99c1dce..25a5b30 100644 --- a/alchemy/templates/categories.html +++ b/alchemy/templates/categories.html @@ -1,14 +1,14 @@ {% extends "base.html" %} {% block title %} - {{ SITENAME }} — Categories + {{ SITENAME }} — Categories {% endblock %} {% block content %} -

Categories on {{ SITENAME }}

-
    - {% for category, articles in categories %} -
  • {{ category }}
  • - {% endfor %} -
+

Categories on {{ SITENAME }}

+
    + {% for category, articles in categories %} +
  • {{ category }}
  • + {% endfor %} +
{% endblock %} diff --git a/alchemy/templates/category.html b/alchemy/templates/category.html index cac10ce..235459d 100644 --- a/alchemy/templates/category.html +++ b/alchemy/templates/category.html @@ -1,9 +1,9 @@ {% extends "index.html" %} {% block title %} - {{ SITENAME }} — Articles in the {{ category }} category + {{ SITENAME }} — Articles in the {{ category }} category {% endblock %} {% block page_title %} -

Articles in the {{ category }} category

+

Articles in the {{ category }} category

{% endblock %} diff --git a/alchemy/templates/include/disqus_comments.html b/alchemy/templates/include/disqus_comments.html index dab6527..244fc30 100644 --- a/alchemy/templates/include/disqus_comments.html +++ b/alchemy/templates/include/disqus_comments.html @@ -1,24 +1,24 @@ {% if DISQUS_SITENAME %} -
- - - - blog comments powered by Disqus - -
+
+ + + + blog comments powered by Disqus + +
{% endif %} diff --git a/alchemy/templates/include/footer.html b/alchemy/templates/include/footer.html index 20d293a..0bde482 100644 --- a/alchemy/templates/include/footer.html +++ b/alchemy/templates/include/footer.html @@ -1,10 +1,10 @@ diff --git a/alchemy/templates/include/google_analytics.html b/alchemy/templates/include/google_analytics.html index cbdc311..22ff2d5 100644 --- a/alchemy/templates/include/google_analytics.html +++ b/alchemy/templates/include/google_analytics.html @@ -1,17 +1,17 @@ {% if GOOGLE_ANALYTICS_ID and GOOGLE_ANALYTICS_DOMAIN %} - + {% endif %} diff --git a/alchemy/templates/include/header.html b/alchemy/templates/include/header.html index 3f21f53..4d9fd22 100644 --- a/alchemy/templates/include/header.html +++ b/alchemy/templates/include/header.html @@ -1,49 +1,49 @@
-
- {% if PROFILE_IMAGE %} -
- -
+
+ {% if PROFILE_IMAGE %} +
+ +
+ {% endif %} +
+

+ {{ SITENAME }} +

+

{{ SITE_SUBTEXT }}

+
    + {% for title, link in MENU_ITEMS %} +
  • {{ title }}
  • + {% endfor %} + {% if PAGES_ON_MENU %} + {% for p in PAGES %} + {% if loop.first %} +
  • |
  • + {% endif %} +
  • {{ p.title }}
  • + {% if loop.last %} +
  • |
  • + {% endif %} + {% endfor %} {% endif %} -
    -

    - {{ SITENAME }} -

    -

    {{ SITE_SUBTEXT }}

    -
      - {% for title, link in MENU_ITEMS %} -
    • {{ title }}
    • - {% endfor %} - {% if PAGES_ON_MENU %} - {% for p in PAGES %} - {% if loop.first %} -
    • |
    • - {% endif %} -
    • {{ p.title }}
    • - {% if loop.last %} -
    • |
    • - {% endif %} - {% endfor %} - {% endif %} - {% if EMAIL_ADDRESS %} -
    • - {% endif %} - {% if GITHUB_ADDRESS %} -
    • - {% endif %} - {% if SO_ADDRESS %} -
    • - {% endif %} - {% if TWITTER_ADDRESS %} -
    • - {% endif %} - {% if FB_ADDRESS %} -
    • - {% endif %} - {% if FEED_ATOM or FEED_RSS %} -
    • - {% endif %} -
    -
    + {% if EMAIL_ADDRESS %} +
  • + {% endif %} + {% if GITHUB_ADDRESS %} +
  • + {% endif %} + {% if SO_ADDRESS %} +
  • + {% endif %} + {% if TWITTER_ADDRESS %} +
  • + {% endif %} + {% if FB_ADDRESS %} +
  • + {% endif %} + {% if FEED_ATOM or FEED_RSS %} +
  • + {% endif %} +
+
diff --git a/alchemy/templates/include/pagination.html b/alchemy/templates/include/pagination.html index c63babe..1ca9e0b 100644 --- a/alchemy/templates/include/pagination.html +++ b/alchemy/templates/include/pagination.html @@ -1,11 +1,11 @@ {% if DEFAULT_PAGINATION %} - + {% endif %} diff --git a/alchemy/templates/index.html b/alchemy/templates/index.html index 7bc97fb..222637b 100644 --- a/alchemy/templates/index.html +++ b/alchemy/templates/index.html @@ -1,44 +1,44 @@ {% extends "base.html" %} {% block head %} - {{ super() }} - - + {{ super() }} + + {% endblock %} {% block content %} - {% block page_title %} -

All Articles

- {% endblock %} -
- {% for article in articles_page.object_list %} -
-
-
- - - {% if article.author and SHOW_ARTICLE_AUTHOR %} - - {% endif %} -
-
-

- {{ article.title }} -

-
- {{ article.content|striptags|truncate(256) }} -
-
-
+ {% block page_title %} +

All Articles

+ {% endblock %} +
+ {% for article in articles_page.object_list %} +
+
+
+ + + {% if article.author and SHOW_ARTICLE_AUTHOR %} + + {% endif %} +
+
+

+ {{ article.title }} +

+
+ {{ article.content|striptags|truncate(256) }}
- {% endfor %} -
- {% include 'include/pagination.html' %} +
+
+
+ {% endfor %} +
+ {% include 'include/pagination.html' %}
{% endblock %} diff --git a/alchemy/templates/page.html b/alchemy/templates/page.html index a588980..8072a9d 100644 --- a/alchemy/templates/page.html +++ b/alchemy/templates/page.html @@ -1,25 +1,25 @@ {% extends "base.html" %} {% block head %} - {{ super() }} - {% if page.author %} - - {% endif %} - {% if page.summary %} - - {% endif %} - + {{ super() }} + {% if page.author %} + + {% endif %} + {% if page.summary %} + + {% endif %} + {% endblock %} {% block title %} - {{ SITENAME }} — {{ page.title|striptags }} + {{ SITENAME }} — {{ page.title|striptags }} {% endblock %} {% block content %} -
-

{{ page.title }}

-
- {{ page.content }} -
+
+

{{ page.title }}

+
+ {{ page.content }}
+
{% endblock %} diff --git a/alchemy/templates/tag.html b/alchemy/templates/tag.html index 67f4acc..448bb91 100644 --- a/alchemy/templates/tag.html +++ b/alchemy/templates/tag.html @@ -1,9 +1,9 @@ {% extends "index.html" %} {% block title %} - {{ SITENAME }} — Articles with the {{ tag }} tag + {{ SITENAME }} — Articles with the {{ tag }} tag {% endblock %} {% block page_title %} -

Articles with the {{ tag }} tag

+

Articles with the {{ tag }} tag

{% endblock %} diff --git a/alchemy/templates/tags.html b/alchemy/templates/tags.html index bb333d5..dcc538d 100644 --- a/alchemy/templates/tags.html +++ b/alchemy/templates/tags.html @@ -1,14 +1,14 @@ {% extends "base.html" %} {% block title %} - {{ SITENAME }} — Tags + {{ SITENAME }} — Tags {% endblock %} {% block content %} -

Tags on {{ SITENAME }}

-
    - {% for tag, articles in tags|sort %} -
  • {{ tag }} ({{ articles|count }})
  • - {% endfor %} -
+

Tags on {{ SITENAME }}

+
    + {% for tag, articles in tags|sort %} +
  • {{ tag }} ({{ articles|count }})
  • + {% endfor %} +
{% endblock %} From 8d9827b78ab92b9b1683de58d62a139270afc8bd Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Tue, 28 Oct 2014 21:47:14 +0300 Subject: [PATCH 3/3] Reduce less files (space) tab size 4 -> 2 --- alchemy/static/less/lesshat.less | 300 +++++++++++++++---------------- alchemy/static/less/style.less | 140 +++++++-------- 2 files changed, 220 insertions(+), 220 deletions(-) diff --git a/alchemy/static/less/lesshat.less b/alchemy/static/less/lesshat.less index 752cd92..b47a10a 100644 --- a/alchemy/static/less/lesshat.less +++ b/alchemy/static/less/lesshat.less @@ -9,93 +9,93 @@ // version: v3.0.1 (2014-05-27) // TABLE OF MIXINS: - // align-content - // align-items - // align-self - // animation - // animation-delay - // animation-direction - // animation-duration - // animation-fill-mode - // animation-iteration-count - // animation-name - // animation-play-state - // animation-timing-function - // appearance - // backface-visibility - // background-clip - // background-image - // background-origin - // background-size - // blur - // border-bottom-left-radius - // border-bottom-right-radius - // border-image - // border-radius - // border-top-left-radius - // border-top-right-radius - // box-shadow - // box-sizing - // brightness - // calc - // column-count - // column-gap - // column-rule - // column-width - // columns - // contrast - // display - // drop-shadow - // filter - // flex - // flex-basis - // flex-direction - // flex-grow - // flex-shrink - // flex-wrap - // font-face - // grayscale - // hue-rotate - // hyphens - // invert - // justify-content - // keyframes - // opacity - // order - // perspective - // perspective-origin - // placeholder - // rotate - // rotate3d - // rotateX - // rotateY - // rotateZ - // saturate - // scale - // scale3d - // scaleX - // scaleY - // scaleZ - // selection - // sepia - // size - // skew - // skewX - // skewY - // transform - // transform-origin - // transform-style - // transition - // transition-delay - // transition-duration - // transition-property - // transition-timing-function - // translate - // translate3d - // translateX - // translateY - // translateZ - // user-select + // align-content + // align-items + // align-self + // animation + // animation-delay + // animation-direction + // animation-duration + // animation-fill-mode + // animation-iteration-count + // animation-name + // animation-play-state + // animation-timing-function + // appearance + // backface-visibility + // background-clip + // background-image + // background-origin + // background-size + // blur + // border-bottom-left-radius + // border-bottom-right-radius + // border-image + // border-radius + // border-top-left-radius + // border-top-right-radius + // box-shadow + // box-sizing + // brightness + // calc + // column-count + // column-gap + // column-rule + // column-width + // columns + // contrast + // display + // drop-shadow + // filter + // flex + // flex-basis + // flex-direction + // flex-grow + // flex-shrink + // flex-wrap + // font-face + // grayscale + // hue-rotate + // hyphens + // invert + // justify-content + // keyframes + // opacity + // order + // perspective + // perspective-origin + // placeholder + // rotate + // rotate3d + // rotateX + // rotateY + // rotateZ + // saturate + // scale + // scale3d + // scaleX + // scaleY + // scaleZ + // selection + // sepia + // size + // skew + // skewX + // skewY + // transform + // transform-origin + // transform-style + // transition + // transition-delay + // transition-duration + // transition-property + // transition-timing-function + // translate + // translate3d + // translateX + // translateY + // translateZ + // user-select .align-content(...) { @process: ~`(function(r){return r=r||"stretch"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; @@ -257,16 +257,16 @@ .border-bottom-left-radius(...) { @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; - -webkit-border-bottom-left-radius: @process; -webkit-background-clip: padding-box; - -moz-border-radius-bottomleft: @process; -moz-background-clip: padding; - border-bottom-left-radius: @process; background-clip: padding-box; + -webkit-border-bottom-left-radius: @process; -webkit-background-clip: padding-box; + -moz-border-radius-bottomleft: @process; -moz-background-clip: padding; + border-bottom-left-radius: @process; background-clip: padding-box; } .border-bottom-right-radius(...) { @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; - -webkit-border-bottom-right-radius: @process; -webkit-background-clip: padding-box; - -moz-border-radius-bottomright: @process; -moz-background-clip: padding; - border-bottom-right-radius: @process; background-clip: padding-box; + -webkit-border-bottom-right-radius: @process; -webkit-background-clip: padding-box; + -moz-border-radius-bottomright: @process; -moz-background-clip: padding; + border-bottom-right-radius: @process; background-clip: padding-box; } .border-image(...) { @@ -279,23 +279,23 @@ .border-radius(...) { @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; - -webkit-border-radius: @process; -webkit-background-clip: padding-box; - -moz-border-radius: @process; -moz-background-clip: padding; - border-radius: @process; background-clip: padding-box; + -webkit-border-radius: @process; -webkit-background-clip: padding-box; + -moz-border-radius: @process; -moz-background-clip: padding; + border-radius: @process; background-clip: padding-box; } .border-top-left-radius(...) { @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; - -webkit-border-top-left-radius: @process; -webkit-background-clip: padding-box; - -moz-border-radius-topleft: @process; -moz-background-clip: padding; - border-top-left-radius: @process; background-clip: padding-box; + -webkit-border-top-left-radius: @process; -webkit-background-clip: padding-box; + -moz-border-radius-topleft: @process; -moz-background-clip: padding; + border-top-left-radius: @process; background-clip: padding-box; } .border-top-right-radius(...) { @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; - -webkit-border-top-right-radius: @process; -webkit-background-clip: padding-box; - -moz-border-radius-topright: @process; -moz-background-clip: padding; - border-top-right-radius: @process; background-clip: padding-box; + -webkit-border-top-right-radius: @process; -webkit-background-clip: padding-box; + -moz-border-radius-topright: @process; -moz-background-clip: padding; + border-top-right-radius: @process; background-clip: padding-box; } .box-shadow(...) { @@ -453,9 +453,9 @@ font-family: "@{fontname}"; src: url("@{fontfile}.eot"); src: url("@{fontfile}.eot?#iefix") format("embedded-opentype"), - url("@{fontfile}.woff") format("woff"), - url("@{fontfile}.ttf") format("truetype"), - url("@{fontfile}.svg#@{fontname}") format("svg"); + url("@{fontfile}.woff") format("woff"), + url("@{fontfile}.ttf") format("truetype"), + url("@{fontfile}.svg#@{fontname}") format("svg"); font-weight: @fontweight; font-style: @fontstyle; } @@ -546,32 +546,32 @@ .placeholder(@color:#aaa, @element: 08121991) { .inception (@arguments) when not (@element = 08121991) { - @{element}::-webkit-input-placeholder { - color: @color; - } - @{element}:-moz-placeholder { - color: @color; - } - @{element}::-moz-placeholder { - color: @color; - } - @{element}:-ms-input-placeholder { - color: @color; - } + @{element}::-webkit-input-placeholder { + color: @color; + } + @{element}:-moz-placeholder { + color: @color; + } + @{element}::-moz-placeholder { + color: @color; + } + @{element}:-ms-input-placeholder { + color: @color; + } } .inception (@arguments) when (@element = 08121991) { - &::-webkit-input-placeholder { - color: @color; - } - &:-moz-placeholder { - color: @color; - } - &::-moz-placeholder { - color: @color; - } - &:-ms-input-placeholder { - color: @color; - } + &::-webkit-input-placeholder { + color: @color; + } + &:-moz-placeholder { + color: @color; + } + &::-moz-placeholder { + color: @color; + } + &:-ms-input-placeholder { + color: @color; + } } .inception(@arguments); } @@ -691,13 +691,13 @@ .size(@square) { @unit: 'px'; .process(@square) when (ispixel(@square)), (isem(@square)), (ispercentage(@square)), (iskeyword(@square)) { - width: @square; - height: @square; + width: @square; + height: @square; } .process(@square) when not (ispixel(@square)) and not (isem(@square)) and not (ispercentage(@square)) and not (isstring(@square)) and not (iskeyword(@square)) { - width: ~`@{square} + @{unit}`; - height: ~`@{square} + @{unit}`; + width: ~`@{square} + @{unit}`; + height: ~`@{square} + @{unit}`; } .process(@square); @@ -707,29 +707,29 @@ .size(@width, @height) { @unit: 'px'; .process(@width, @height) when (ispixel(@width)), (isem(@width)), (ispercentage(@width)), (iskeyword(@width)) { - .kittens(@height) when (ispixel(@height)), (isem(@height)), (ispercentage(@height)), (iskeyword(@height)) { - width: @width; - height: @height; - } - .kittens(@height) when not (ispixel(@height)) and not (isem(@height)) and not (ispercentage(@height)) and not (iskeyword(@height)) { - width: @width; - height: ~`@{height} + @{unit}`; - } - .kittens(@height); + .kittens(@height) when (ispixel(@height)), (isem(@height)), (ispercentage(@height)), (iskeyword(@height)) { + width: @width; + height: @height; + } + .kittens(@height) when not (ispixel(@height)) and not (isem(@height)) and not (ispercentage(@height)) and not (iskeyword(@height)) { + width: @width; + height: ~`@{height} + @{unit}`; + } + .kittens(@height); } .process(@width, @height) when (ispixel(@height)), (isem(@height)), (ispercentage(@height)), (iskeyword(@height)) { - .kittens(@width) when (ispixel(@width)), (isem(@width)), (ispercentage(@width)), (iskeyword(@width)) {} - .kittens(@width) when not (ispixel(@width)) and not (isem(@width)) and not (ispercentage(@width)) and not (iskeyword(@width)) { - width: ~`@{width} + @{unit}`; - height: @height; - } - .kittens(@width); + .kittens(@width) when (ispixel(@width)), (isem(@width)), (ispercentage(@width)), (iskeyword(@width)) {} + .kittens(@width) when not (ispixel(@width)) and not (isem(@width)) and not (ispercentage(@width)) and not (iskeyword(@width)) { + width: ~`@{width} + @{unit}`; + height: @height; + } + .kittens(@width); } .process(@width, @height) when not (ispixel(@width)) and not (isem(@width)) and not (ispercentage(@width)) and not (iskeyword(@width)) and not (ispixel(@height)) and not (isem(@height)) and not (ispercentage(@height)) and not (iskeyword(@height)) { - width: ~`@{width} + @{unit}`; - height: ~`@{height} + @{unit}`; + width: ~`@{width} + @{unit}`; + height: ~`@{height} + @{unit}`; } .process(@width, @height); diff --git a/alchemy/static/less/style.less b/alchemy/static/less/style.less index b027376..70c66ea 100644 --- a/alchemy/static/less/style.less +++ b/alchemy/static/less/style.less @@ -9,8 +9,8 @@ @monospace: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace; body { - background-color: #fafafa; - font-family: @serif; + background-color: #fafafa; + font-family: @serif; } h1, @@ -19,7 +19,7 @@ h3, h4, h5, h6 { - font-family: @sans-serif; + font-family: @sans-serif; } code, @@ -30,83 +30,83 @@ samp { } a { - .transition(color 0.2s ease-in-out); - color: #2e2e2e; - &:hover { - color: orange; - } - &.nodec { - text-decoration: none; - } + .transition(color 0.2s ease-in-out); + color: #2e2e2e; + &:hover { + color: orange; + } + &.nodec { + text-decoration: none; + } } .header { - background-color: #efefef; - border-bottom: 1px solid #ddd; - border-top: 5px solid #333; - margin-bottom: 30px; - padding: 30px 0; - .header-image { - margin-right: 30px; - width: 200px; - } - .header-name { - font-size: 82px; - margin-top: 0; - } - .header-text { - color: #000; - font-size: 22px; - margin-bottom: 51px; - margin-top: 0; - } - .header-menu { - font-size: 18px; - margin-bottom: 0; - li { - &:first-child { - padding-left: 0; - } - &:last-child { - padding-right: 0; - } - } + background-color: #efefef; + border-bottom: 1px solid #ddd; + border-top: 5px solid #333; + margin-bottom: 30px; + padding: 30px 0; + .header-image { + margin-right: 30px; + width: 200px; + } + .header-name { + font-size: 82px; + margin-top: 0; + } + .header-text { + color: #000; + font-size: 22px; + margin-bottom: 51px; + margin-top: 0; + } + .header-menu { + font-size: 18px; + margin-bottom: 0; + li { + &:first-child { + padding-left: 0; + } + &:last-child { + padding-right: 0; + } } + } } .footer { - background-color: #efefef; - color: grey; - border-top: 1px solid #ddd; - font-size: 12px; - margin-top: 30px; - padding: 30px 0; + background-color: #efefef; + color: grey; + border-top: 1px solid #ddd; + font-size: 12px; + margin-top: 30px; + padding: 30px 0; } .post { - font-size: 16px; - &.mini-post { - padding: 30px 0; - border-bottom: 1px solid #ddd; - &:last-child { - border-bottom: none; - } - .post-title { - font-size: 18px; - line-height: 1.42857143; // Bootstrap rule - margin-bottom: 10px; - margin-top: 0; - } - .post-date { - font-family: @sans-serif; - font-size: 18px; - } + font-size: 16px; + &.mini-post { + padding: 30px 0; + border-bottom: 1px solid #ddd; + &:last-child { + border-bottom: none; } - &.full-post { - * img { - max-width: 940px; - } + .post-title { + font-size: 18px; + line-height: 1.42857143; // Bootstrap rule + margin-bottom: 10px; + margin-top: 0; } + .post-date { + font-family: @sans-serif; + font-size: 18px; + } + } + &.full-post { + * img { + max-width: 940px; + } + } } // .highlight { @@ -119,6 +119,6 @@ a { // } .separator { - margin-top: 30px; - margin-bottom: 30px; + margin-top: 30px; + margin-bottom: 30px; }