Commit 36fb1ec7 authored by Protocole's avatar Protocole
Browse files

Fix button centering

parent 69a2a712
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -12,7 +12,11 @@ Each jobs of the hub can be used independently to create fully **customized pipe
You can use them for any kind of software and deployment type. Each job can be
customized through configuration.

[I want to use the HUB  ![](images/rocket.png){: .heart}](/use-the-hub){: .md-button  .border-radius-10 .md-button-center}
<a alt="Use the hub" href="/use-the-hub">
    <button class="md-button border-radius-10 md-button-center" >
        I want to use the HUB <img alt="" class="heart" src="../images/rocket.png">
    </button>
</a>

## Overview

+9 −2
Original line number Diff line number Diff line
@@ -233,6 +233,13 @@
  padding-left: 5px;
}

.md-button.md-button-center {
    display: none;
button.md-button-center {
    display:block !important;
    margin:0 auto !important;
    padding-bottom:1em !important;
    padding-top:0.8em !important
}

button.md-button-center:hover {
    cursor: pointer;
}
 No newline at end of file

docs/js/extra.js

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
var $buttons = document.getElementsByClassName("md-button-center");
for (let i = 0; i < $buttons.length; i++)  {
    $buttons[i].parentNode.setAttribute("style", "text-align:center;");   
    $buttons[i].setAttribute("style", "display: inline-block");   
}
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ extra_css:
extra_javascript:
    - js/juxtapose.min.js
    - js/juxtapose.loader.min.js
    - js/extra.js

# Configuration
theme: