Upgrade to livingstyleguide v2 syntax

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2957/head
Alex Coles 10 years ago committed by Florian Kraft
parent 95072f5c7d
commit 7a16a70e49
  1. 10
      app/assets/stylesheets/open_project_global/_variables.lsg
  2. 30
      app/assets/stylesheets/styleguide.html.lsg

@ -4,9 +4,9 @@ Color Variables
## Global Color Variables ## Global Color Variables
``` ```
@colors @colors {
- $body-font-color - - $body-font-color - -
- $primary-color $primary-color-dark - $header-bg-color - $header-logo-bg-color -
- $alternative-color - - $gray-light $gray $gray-dark
$gray-light $gray $gray-dark }
``` ```

@ -1,14 +1,15 @@
# Base setup: @require sass
source: ../stylesheets/default.css.sass
title: "Living Style Guide for OpenProject"
# Adjust default LivingStyleGuide design: @css ../stylesheets/default.css.sass
style: @title "Living Style Guide for OpenProject"
base-font: Lato
base-font-size: 16px
background-color: white
styleguide-sass: | @style base-font: Lato
@style base-font-size: 16px
@style background-color: white
@default preprocessor: sass
@css
.livingstyleguide--header .livingstyleguide--header
@include grid-content @include grid-content
@ -39,10 +40,7 @@ styleguide-sass: |
.livingstyleguide--example .livingstyleguide--example
overflow: visible overflow: visible
javascript-before: @header
- "/assets/styleguide.js"
header: |
<header class="livingstyleguide--header"> <header class="livingstyleguide--header">
<div class="styleguide-banner"> <div class="styleguide-banner">
<h1 class="styleguide-banner--text">Living Style Guide</h1> <h1 class="styleguide-banner--text">Living Style Guide</h1>
@ -67,7 +65,11 @@ header: |
<p>&nbsp;</p> <p>&nbsp;</p>
</section> </section>
footer: | @javascript-before /assets/styleguide.js
@footer
<footer class="livingstyleguide--footer"> <footer class="livingstyleguide--footer">
Copyright © 2015 OpenProject - All rights reserved. Copyright © 2015 OpenProject - All rights reserved.
</footer> </footer>
@import ../stylesheets/**/_*.lsg

Loading…
Cancel
Save