Sha256: fc7c75abefe50c8fef8b6dc4afc7ae69caca919d8edb23b9619f32fdb944f387
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
# Theme You can set options when you add the themes into your app. Otherwise, just put the symbol of the theme filename. ### For Rack App ```ruby use Rack::DevMark::Middleware, [:title, Rack::DevMark::Theme::GithubForkRibbon.new(position: 'right')] ``` ### For Rails App In config/application.rb ```ruby module MyApp class Application < Rails::Application config.rack_dev_mark.theme = [:title, Rack::DevMark::Theme::GithubForkRibbon.new(position: 'right')] end end ``` ## title Just add the environment into the page title. e.g. `My Homepage` on development env will be `(development) My Homepage` ### options `type`: `prefix` (default) or `postfix` `upcase`: `true` or `false` (default) ## github_fork_ribbon ["Fork Me on GitHub" like ribbon](https://github.com/simonwhitaker/github-fork-ribbon-css) originally created by [simonwhitaker](https://github.com/simonwhitaker) ![github_fork_ribbon](screenshots/github_fork_ribbon.png) ### options `position`: left (default), right, left-bottom, right-bottom `color`: red (default), orange, green, black `fixed`: `true` or `false`(default)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-dev-mark-0.4.6 | lib/rack/dev-mark/theme/README.md |
rack-dev-mark-0.4.5 | lib/rack/dev-mark/theme/README.md |
rack-dev-mark-0.4.4 | lib/rack/dev-mark/theme/README.md |