Skip to content

Commit

Permalink
Style tweaks for BS4
Browse files Browse the repository at this point in the history
Updates to instructions pages for Bootstrap 4
  • Loading branch information
lsgs committed Aug 9, 2019
1 parent c40c13b commit b65c6ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
19 changes: 13 additions & 6 deletions TableauConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,20 @@ public function printInstructionsPageContent() {
$url = $this->getUrl('wdc.php', true, true);
$url = str_replace('&pid='.PROJECT_ID, '', $url);
echo renderPageTitle($this->getModuleName());
echo "<div class='panel panel-primary' style='margin: 2em 0;'><div class='panel-heading'>$url</div></div>";
echo "<div class='panel panel-default'><div class='panel-heading'><strong>$panelTitle</strong></div><div class='panel-body wdc-instructions-text'>$instructionText</div>";
?>
<style type="text/css">
.wdc-instructions-text { }
.wdc-instructions-text li { margin: 1em 0; }
</style>
<div class="card wdc-instructions-card">
<h5 class="card-header"><?php echo $panelTitle;?></h5>
<div class="card-body">
<h5 class="card-title wdc-instructions-title"><?php echo $url;?></h5>
<div class="card-text wdc-instructions-text"><?php echo $instructionText;?></div>
</div>
</div>
<style type="text/css">
.wdc-instructions-card { width: max-content; }
.wdc-instructions-title { font-size:100%; font-weight:bold; }
.wdc-instructions-text > ol { margin-bottom: 0; padding-left: 1rem; }
.wdc-instructions-text > ol > li { margin-top: 0.5rem; }
</style>
<?php
}

Expand Down
4 changes: 2 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
],
"control-center": [
{
"name": "Tableau Connector Instructions",
"name": "<i class='fas fa-chart-bar'></i> Tableau Connector Instructions",
"icon": "computer",
"url": "index.php"
}
],
"project": [
{
"name": "Tableau Connector Instructions",
"name": "<i class='fas fa-chart-bar'></i> Tableau Connector Instructions",
"icon": "computer",
"url": "index.php"
}
Expand Down

0 comments on commit b65c6ec

Please sign in to comment.