Sha256: 88b5c3289fab06f6bbe43c975dff832c5d4a6a74d571c37094d3f5d1614e144c

Contents?: true

Size: 1.1 KB

Versions: 12

Compression:

Stored size: 1.1 KB

Contents

require_relative 'helpers/indented_grid'

Coprl::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
      ```
        Coprl::Presenters::Settings.configure do |config|
          config.presenters.web_client.custom_css = 'public/presenters'
        end
    ```
    HTML

  end
  attach :code, file: __FILE__
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 app/demo/custom_css.pom
coprl-3.0.0.beta.11 app/demo/custom_css.pom
coprl-3.0.0.beta.10 app/demo/custom_css.pom
coprl-3.0.0.beta.9 app/demo/custom_css.pom
coprl-3.0.0.beta.8 app/demo/custom_css.pom
coprl-3.0.0.beta.7 app/demo/custom_css.pom
coprl-3.0.0.beta.6 app/demo/custom_css.pom
coprl-3.0.0.beta.5 app/demo/custom_css.pom
coprl-3.0.0.beta.4 app/demo/custom_css.pom
coprl-3.0.0.beta.3 app/demo/custom_css.pom
coprl-3.0.0.beta.2 app/demo/custom_css.pom
coprl-3.0.0.beta.1 app/demo/custom_css.pom