From 7a16a70e49e0c0bf58c2c4c66baafc981ebac989 Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Sat, 18 Apr 2015 21:27:08 +0200 Subject: [PATCH] Upgrade to livingstyleguide v2 syntax Signed-off-by: Alex Coles --- .../open_project_global/_variables.lsg | 10 +++---- app/assets/stylesheets/styleguide.html.lsg | 30 ++++++++++--------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/app/assets/stylesheets/open_project_global/_variables.lsg b/app/assets/stylesheets/open_project_global/_variables.lsg index 6a79bb0622..87adec75b3 100644 --- a/app/assets/stylesheets/open_project_global/_variables.lsg +++ b/app/assets/stylesheets/open_project_global/_variables.lsg @@ -4,9 +4,9 @@ Color Variables ## Global Color Variables ``` -@colors -- $body-font-color - -- $primary-color $primary-color-dark -- $alternative-color - -$gray-light $gray $gray-dark +@colors { +- $body-font-color - - +- $header-bg-color - $header-logo-bg-color - +- $gray-light $gray $gray-dark +} ``` diff --git a/app/assets/stylesheets/styleguide.html.lsg b/app/assets/stylesheets/styleguide.html.lsg index d74cf7712b..3c0b502e68 100644 --- a/app/assets/stylesheets/styleguide.html.lsg +++ b/app/assets/stylesheets/styleguide.html.lsg @@ -1,14 +1,15 @@ -# Base setup: -source: ../stylesheets/default.css.sass -title: "Living Style Guide for OpenProject" +@require sass -# Adjust default LivingStyleGuide design: -style: - base-font: Lato - base-font-size: 16px - background-color: white +@css ../stylesheets/default.css.sass +@title "Living Style Guide for OpenProject" -styleguide-sass: | +@style base-font: Lato +@style base-font-size: 16px +@style background-color: white + +@default preprocessor: sass + +@css .livingstyleguide--header @include grid-content @@ -39,10 +40,7 @@ styleguide-sass: | .livingstyleguide--example overflow: visible -javascript-before: - - "/assets/styleguide.js" - -header: | +@header

Living Style Guide

@@ -67,7 +65,11 @@ header: |

 

-footer: | +@javascript-before /assets/styleguide.js + +@footer + +@import ../stylesheets/**/_*.lsg