Permalink
Browse files

Style HTTP methods

  • Loading branch information...
1 parent 10f0968 commit 146c3f3d7f7bdd99ef45858069302710ecf41753 @orianmarx orianmarx committed Mar 27, 2013
Showing with 17 additions and 5 deletions.
  1. +1 −1 layouts/partials/endpoint.md
  2. +16 −4 static/css/style.css
@@ -13,7 +13,7 @@
</thead>
<tbody>
<tr>
- <td><%= method %></td>
+ <td><span class="label label-<%= method %>"><%= method %></span></td>
<td><%= path %></td>
<td><%= token %></td>
<% if scope != '' %>
View
@@ -1,9 +1,21 @@
/* we're currently modifying bootstrap.css to apply 'table' and 'table-striped' styles to all tables */
-.line-numbers {
- margin-right: 1.0em;
-}
-
.content {
padding-bottom: 100px;
+}
+
+.label-GET {
+ background-color: #3a87ad;
+}
+
+.label-POST {
+ background-color: #468847;
+}
+
+.label-PUT {
+ background-color: #f89406;
+}
+
+.label-DELETE {
+ background-color: #b94a48;
}

0 comments on commit 146c3f3

Please sign in to comment.