Sha256: c557b3e85417674989167837c279c7b62d0efc33795df63685570501c9dc5e8f

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

require_relative 'helpers/indented_grid'

Voom::Presenters.define(:custom_css) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav

  page_title 'Custom CSS' do
    icon :settings
  end


  indented_grid do
    headline 'CSS', level: 1

    body 'You can define custom CSS globally and for each namespace/presenter.'
    blank
    title 'Global CSS'
    body 'Define global css in the file `public/presenters/global.css`. Styles defined here will be loaded after default styling.'

    title 'Presenter CSS'
    body 'Each `[namespace/]presenter` can have custom css.'
    body 'Simply create a file `public/presenters/[namspace]/[presenter].css` that matches your namespace and presenter.'
    body 'This page has a presenter css file that is located at: `public/presenters/custom_css.css`'

    title 'Settings'
    body 'You can set the default path to load css from using the following:'
    body <<-HTML
      ```
        Voom::Presenters::Settings.configure do |config|
          config.presenters.web_client.custom_css = 'public/presenters'
        end
    ```
    HTML

  end
  attach :code, file: __FILE__
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 app/demo/custom_css.pom
voom-presenters-2.1.0 app/demo/custom_css.pom
voom-presenters-2.0.3 app/demo/custom_css.pom
voom-presenters-2.0.2 app/demo/custom_css.pom
voom-presenters-2.0.1 app/demo/custom_css.pom
voom-presenters-2.0.0 app/demo/custom_css.pom