Commit 5c0e8ddf authored by Paul Asmuth's avatar Paul Asmuth
Browse files

responsive fu

parent 1ac3e83e
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -81,10 +81,14 @@ class DocApp < Sinatra::Base
    get route do
      params[:splat] ||= ["index"]
      @route = "/#{params[:splat] * "/"}"
      page = CONFIG["sitemap"]
      page = if @route == "/index"
        { "title" => "Documentation" }
      else
        CONFIG["sitemap"]
            .map{ |_, t| t["pages"]}
            .flatten
            .find{ |p| p["url"] == @route }
      end
      raise "can't find doc page for: #{@route}" if page.nil?
      @title = "#{page["title"]} | Documentation" if page
      renderer = Redcarpet::Markdown.new(
@@ -127,6 +131,7 @@ task :render do

  routes = %w{
    /
    /documentation
    /examples
    /screenshots}

+15 −0
Original line number Diff line number Diff line
@@ -89,6 +89,21 @@ hr {
  margin-top: 50px;
}


@media (max-width: 1260px) {
  #wrap {
    margin:0 30px;
  }

  .jumbotron {
    text-align: center;
  }

  .leadtext {
    display: none;
  }
}

.biglink {
  text-align:center;
  margin-bottom: 50px;