Sha256: 352cae230cf12ab91ef8c6d09a9d7e9262783e7ec1b51efe8850504ec9af4de7

Contents?: true

Size: 874 Bytes

Versions: 13

Compression:

Stored size: 874 Bytes

Contents

<%
  content_width = api_options.content_width.to_i
  content_width = 720 if content_width <= 0
  sidebar_width = api_options.sidebar_width.to_i || 240
  sidebar_width = 240 if sidebar_width <= 0
%>

<style>
  <% if api_options.centered %>
    body {
      margin: 0 auto;
      width: <%= content_width %>px;
      padding-left: <%= sidebar_width %>px;
    }

    #sidebar {
      margin-left: -<%= sidebar_width %>px;
      width: <%= sidebar_width %>px;
      left: auto;
    }

    #content {
      padding-left: 3em;
    }
  <% else %>
    body {
      padding-left: <%= sidebar_width + (api_options.spacer || 0) %>px;
      padding-right: <%= api_options.spacer %>px;
    }

    #sidebar {
      width: <%= sidebar_width %>px;
    }

    <% if content_width > 0 %>
      #content {
        max-width: <%= content_width %>px;
      }
    <% end %>

  <% end %>
</style>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
yard-api-1.1.2 templates/api/layout/html/_dynamic_styles.erb
yard-api-1.1.1 templates/api/layout/html/_dynamic_styles.erb
yard-api-1.1.0 templates/api/layout/html/_dynamic_styles.erb
yard-api-1.0.1 templates/api/layout/html/_dynamic_styles.erb
yard-api-1.0.0 templates/api/layout/html/_dynamic_styles.erb
yard-api-0.3.7 templates/api/layout/html/_dynamic_styles.erb
yard-api-0.3.6 templates/api/layout/html/_dynamic_styles.erb
yard-api-0.3.5 templates/api/layout/html/_dynamic_styles.erb
yard-api-0.3.4 templates/api/layout/html/_dynamic_styles.erb
yard-api-0.3.3 templates/api/layout/html/_dynamic_styles.erb
yard-api-0.3.2 templates/api/layout/html/_dynamic_styles.erb
yard-api-0.3.1 templates/api/layout/html/_dynamic_styles.erb
yard-api-0.3.0 templates/api/layout/html/_dynamic_styles.erb