The 2017 end-of-the-year report for Code for Denver. The deployed version can be found at http://2017.codefordenver.org/
This repo was created from https://cfd-new.herokuapp.com. Use the Waffle board for this repo to always know what to do next for your project!
Uses LESS to compile CSS styles. Sample usage in Windows command line: lessc styles.less styles.css
Increment the @numberOfSlides variable in styles.less
Add CSS styles for the new slide. In styles.less, under .carousel, add a position rule under each of the &--background, &--foreground and &--foreground files:
&.position-[POSITION] {
left: @width * -[POSITION-1];
}
Where [POSITION] is the slide number (the first slide is #1, not #0). [POSITION-1] should be the slide number -1.
Compile the CSS with LESS.
In the HTML, create a new slide under the div with a class of carousel--background. Copy and paste one of the divs with a class of slide to use as a template for a new slide. The new slide should go at the end, and should have a class of slide-[POSITION] as well as slide.
Repeat step 4 for both the divs with a class of carousel--foreground and carousel--foreground.