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:
parent
ada9bd3a1b
commit
6f8b7e15fe
4 changed files with 27 additions and 5 deletions
|
@ -43,3 +43,20 @@ ul, ol {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
padding-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;
|
||||||
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ h4 + h5 {
|
||||||
#menu, #search {
|
#menu, #search {
|
||||||
height: 6rem;
|
height: 6rem;
|
||||||
line-height: 6rem;
|
line-height: 6rem;
|
||||||
text-transform: uppercase;
|
font-size: 1.1em;
|
||||||
}
|
}
|
||||||
#main {
|
#main {
|
||||||
top: 6rem;
|
top: 6rem;
|
||||||
|
@ -99,10 +99,9 @@ h4 + h5 {
|
||||||
|
|
||||||
#menu {
|
#menu {
|
||||||
float: left;
|
float: left;
|
||||||
letter-spacing: 1px;
|
|
||||||
padding-left: 2em;
|
padding-left: 2em;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 30em;
|
width: 45em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu .noframes {
|
#menu .noframes {
|
||||||
|
@ -111,7 +110,6 @@ h4 + h5 {
|
||||||
|
|
||||||
#search {
|
#search {
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 0.9em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#search ul {
|
#search ul {
|
||||||
|
@ -201,6 +199,7 @@ h4 + h5 {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-shadow: 0 1px 1px rgba(0,0,0,0.4);
|
text-shadow: 0 1px 1px rgba(0,0,0,0.4);
|
||||||
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer a {
|
#footer a {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</span> »
|
</span> »
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @contents || @file %>
|
<% if @contents || @file %>
|
||||||
<span class="title"><%= @breadcrumb_title %></span>
|
<span class="title"><%= @breadcrumb_title.sub(/\AFile: /, "") %></span>
|
||||||
<% elsif object.is_a?(CodeObjects::Base) %>
|
<% elsif object.is_a?(CodeObjects::Base) %>
|
||||||
<%= @breadcrumb.map {|obj| "<span class='title'>" + linkify(obj, obj.name) + "</span>" }.join(" » ") %>
|
<%= @breadcrumb.map {|obj| "<span class='title'>" + linkify(obj, obj.name) + "</span>" }.join(" » ") %>
|
||||||
<%= @breadcrumb.size > 0 ? " » " : "" %>
|
<%= @breadcrumb.size > 0 ? " » " : "" %>
|
||||||
|
|
6
doc_config/yard/templates/default/layout/html/footer.erb
Normal file
6
doc_config/yard/templates/default/layout/html/footer.erb
Normal 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>
|
Loading…
Reference in a new issue