Sha256: 9084aa1b8ea6af50fc1201ebf14006a5b5a08f3dc5548348594aaf3c7e46d777

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 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 your Rack app

```ruby
use Rack::DevMark::Middleware, [:title, Rack::DevMark::Theme::GithubForkRibbon.new(position: 'right')]
```

### For your Rails app

In config/application.rb

```ruby
module MyApp
  class Application < Rails::Application
    config.rack_dev_mark.custom_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

1 entries across 1 versions & 1 rubygems

Version Path
rack-dev-mark-0.4.3 lib/rack/dev-mark/theme/README.md