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