diff --git a/src/root/build.tt b/src/root/build.tt
index f6db4fbe..8925e6a1 100644
--- a/src/root/build.tt
+++ b/src/root/build.tt
@@ -236,9 +236,9 @@ END;
                 <th>Logfile:</th>
                 <td>
                   [% actualLog = cachedBuildStep ? c.uri_for('/build' cachedBuild.id 'nixlog' cachedBuildStep.stepnr) : c.uri_for('/build' build.id 'log') %]
-                  <a class="btn btn-mini" href="[%actualLog%]">pretty</a>
-                  <a class="btn btn-mini" href="[%actualLog%]/raw">raw</a>
-                  <a class="btn btn-mini" href="[%actualLog%]/tail">tail</a>
+                  <a class="btn btn-secondary btn-sm" href="[%actualLog%]">pretty</a>
+                  <a class="btn btn-secondary btn-sm" href="[%actualLog%]/raw">raw</a>
+                  <a class="btn btn-secondary btn-sm" href="[%actualLog%]/tail">tail</a>
                 </td>
               </tr>
             [% END %]
diff --git a/src/root/news.tt b/src/root/news.tt
index 1380f48c..c76b8cb2 100644
--- a/src/root/news.tt
+++ b/src/root/news.tt
@@ -14,7 +14,7 @@
             <tr>
                 <td>[% INCLUDE renderDateTime timestamp=i.createtime %]</td>
                 <td>[% contents.replace('\n','<br />\n') %]</td>
-                <td>[% INCLUDE maybeLink uri = c.uri_for(c.controller('Admin').action_for('news_delete') i.id) content = "Delete" confirmmsg = "Are you sure you want to delete this news item?" class = "btn btn-mini btn-danger" %]</td>
+                <td>[% INCLUDE maybeLink uri = c.uri_for(c.controller('Admin').action_for('news_delete') i.id) content = "Delete" confirmmsg = "Are you sure you want to delete this news item?" class = "btn btn-sm btn-danger" %]</td>
             </tr>
         [% END %]
         </tbody>
diff --git a/src/root/overview.tt b/src/root/overview.tt
index 0e1a90c1..6042c7bf 100644
--- a/src/root/overview.tt
+++ b/src/root/overview.tt
@@ -40,7 +40,7 @@
 </script>
 
 <p>The following projects are hosted on this server:
-<label id="show-disabled" class="btn btn-small pull-right" data-toggle="button">Show disabled projects</label>
+<label id="show-disabled" class="btn btn-secondary btn-sm float-right" data-toggle="button">Show disabled projects</label>
 </p>
 
 <table class="table table-condensed table-striped clickable-rows">
diff --git a/src/root/product-list.tt b/src/root/product-list.tt
index efb3043b..37a4273c 100644
--- a/src/root/product-list.tt
+++ b/src/root/product-list.tt
@@ -54,7 +54,7 @@
               </a>
             </td>
             <td>
-             [% WRAPPER makePopover title="Help" classes="btn-mini" %]
+             [% WRAPPER makePopover title="Help" classes="btn-secondary btn-sm" %]
                <p>If you have Nix installed on your machine, this failed build output and
                all its dependencies can be unpacked into your local Nix store by doing:</p>
 
@@ -77,14 +77,14 @@
               <tt>[% HTML.escape(build.nixname) %]</tt>
             </td>
             <td>
-              [% WRAPPER makePopover title="Help" classes="btn-mini"
+              [% WRAPPER makePopover title="Help" classes="btn-secondary btn-sm"
               %] <p>You can install this package using the Nix package
               manager from the command-line:</p>
 
                 <pre><span class="shell-prompt">$ </span>nix-env -i [%HTML.escape(product.path)%][% IF binaryCachePublicUri %] --option binary-caches [% HTML.escape(binaryCachePublicUri) %][% END %]</pre>
               [% END %]
               [% IF localStore %]
-                <a class="btn btn-mini" href="[% contents %]">Contents</a>
+                <a class="btn btn-secondary btn-sm" href="[% contents %]">Contents</a>
               [% END %]
             </td>
           </tr>
@@ -105,7 +105,7 @@
               </a>
             </td>
             <td>
-              [% WRAPPER makePopover title="Help" classes="btn-mini" %]
+              [% WRAPPER makePopover title="Help" classes="btn-secondary btn-sm" %]
                 <p>If you have Nix installed on your machine, this build and
                 all its dependencies can be unpacked into your local Nix
                 store by doing:</p>
@@ -187,7 +187,7 @@
           </a>
         </td>
         <td>
-          [% WRAPPER makePopover title="Details" classes="btn-mini" %]
+          [% WRAPPER makePopover title="Details" classes="btn-secondary btn-sm" %]
             <table class="info-table">
               [% INCLUDE renderProductLinks %]
               <tr><th>File size:</th><td>[% product.filesize %] bytes ([% mibs(product.filesize / (1024 * 1024)) %] MiB)</td></tr>
@@ -196,7 +196,7 @@
             </table>
           [% END %]
           [% IF localStore %]
-            <a class="btn btn-mini" href="[% contents %]">Contents</a>
+            <a class="btn btn-secondary btn-sm" href="[% contents %]">Contents</a>
           [% END %]
         </td>
       </tr>
@@ -254,7 +254,7 @@
         </a>
         </td>
         <td>
-          [% WRAPPER makePopover title="Details" classes="btn-mini" %]
+          [% WRAPPER makePopover title="Details" classes="btn-secondary btn-sm" %]
             <table class="info-table">
               [% INCLUDE renderProductLinks %]
             </table>