1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Make improvements to the YARD layout

* Adjust padding/margin around and inside of blockquotes
* Use ems for p margin
* Since we will be adding a custom file whose title is camel-case,
  make two changes to the header:
  * Drop "File:" in the header for files
  * Change styles for header and search to use standard case instead
    of all caps, and drop letter spacing
* Make footer smaller and more human readable
This commit is contained in:
Elliot Winkler 2015-10-08 20:26:26 -06:00
parent ada9bd3a1b
commit 6f8b7e15fe
4 changed files with 27 additions and 5 deletions

View file

@ -43,3 +43,20 @@ ul, ol {
margin-left: 1em;
padding-left: 1em;
}
p, blockquote {
margin-bottom: 1.25em;
}
blockquote {
font-style: italic;
padding-top: 0;
padding-bottom: 0;
padding-left: 1em;
}
blockquote p {
font-size: inherit;
font-weight: inherit;
line-height: inherit;
}

View file

@ -91,7 +91,7 @@ h4 + h5 {
#menu, #search {
height: 6rem;
line-height: 6rem;
text-transform: uppercase;
font-size: 1.1em;
}
#main {
top: 6rem;
@ -99,10 +99,9 @@ h4 + h5 {
#menu {
float: left;
letter-spacing: 1px;
padding-left: 2em;
position: relative;
width: 30em;
width: 45em;
}
#menu .noframes {
@ -111,7 +110,6 @@ h4 + h5 {
#search {
float: right;
font-size: 0.9em;
}
#search ul {
@ -201,6 +199,7 @@ h4 + h5 {
padding: 10px;
text-align: center;
text-shadow: 0 1px 1px rgba(0,0,0,0.4);
font-size: 0.9em;
}
#footer a {

View file

@ -5,7 +5,7 @@
</span> &raquo;
<% end %>
<% if @contents || @file %>
<span class="title"><%= @breadcrumb_title %></span>
<span class="title"><%= @breadcrumb_title.sub(/\AFile: /, "") %></span>
<% elsif object.is_a?(CodeObjects::Base) %>
<%= @breadcrumb.map {|obj| "<span class='title'>" + linkify(obj, obj.name) + "</span>" }.join(" &raquo; ") %>
<%= @breadcrumb.size > 0 ? " &raquo; " : "" %>

View file

@ -0,0 +1,6 @@
<div id="footer">
Generated on
<%= Time.now.strftime("%B %-d, %Y") %>
by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">YARD</a>.
</div>