w-2.2 fixed bug responsive

master
wisnupramoedya 2020-03-29 10:36:55 +07:00
parent fec18da750
commit 49597b1d6d
3 changed files with 20 additions and 15 deletions

View File

@ -58,7 +58,7 @@
</nav> </nav>
<!-- Page Content --> <!-- Page Content -->
<div id="content"> <div id="content" class="bg-light">
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid"> <div class="container-fluid">
@ -70,7 +70,7 @@
</nav> </nav>
<div class="container"> <div class="container">
<div class="row border border-primary rounded"> <div class="row border border-primary rounded">
<div class="col-sm-12 bg-primary"> <div class="col-sm-12 bg-primary py-1">
<div class="text-white text-center">Cek Protokol Kesehatan</div> <div class="text-white text-center">Cek Protokol Kesehatan</div>
</div> </div>
<div class="col-sm-12" style="min-height: 150px;"> <div class="col-sm-12" style="min-height: 150px;">
@ -79,21 +79,20 @@
<div id="question-container" class="col-sm-10 hide"> <div id="question-container" class="col-sm-10 hide">
<p id="question" class="text-primary">Question</p> <p id="question" class="text-primary">Question</p>
<div id="answer-buttons" class="btn-grid"> <div id="answer-buttons" class="btn-grid">
<button type="button" class="btn btn-outline-primary">Answer 1</button> <button type="button" class="btn btn-sm btn-outline-primary">Answer 1</button>
<button type="button" class="btn btn-outline-primary">Answer 1</button> <button type="button" class="btn btn-sm btn-outline-primary">Answer 1</button>
<button type="button" class="btn btn-outline-primary">Answer 1</button> <button type="button" class="btn btn-sm btn-outline-primary">Answer 1</button>
</div> </div>
</div> </div>
</div> </div>
<br> <br>
<div id="result-container" class="row justify-content-sm-center hide"> <div id="result-container" class="row justify-content-center hide">
<div id="kondisi" type="button" class="btn col-sm-10 btn-outline-info">Kondisi 1:</div> <div id="kondisi" type="button" class="btn btn-outline-info btn-col" style="white-space: normal !important;">Kondisi 1:</div>
<div class="w-100"></div> <div class="w-100"></div>
<br> <br>
<div id="prosedur-sign" class="btn-group col-sm-10" data-toggle="popover" data-trigger="focus" data-placement="top"> <div id="prosedur-sign" class="btn-group btn-col" data-toggle="popover" tabindex="0" data-trigger="focus" data-placement="top">
<div id="prosedur" type="button" class="col-sm-11 btn btn-outline-info">Prosedur 1:</div> <div id="prosedur" type="button" class="btn btn-outline-info" style="white-space: normal !important; width: 90%;">Prosedur 1:</div>
<div type="button" class="col-sm-1 btn btn-info">?</div> <div type="button" class="btn btn-info" style="width: 10%;">?</div>
</div> </div>
</div> </div>
<br> <br>

View File

@ -17,10 +17,11 @@ let currentKondisi, currentProsedur
$(document).ready(function(){ $(document).ready(function(){
$('[data-toggle="popover"]').popover(); $('[data-toggle="popover"]').popover();
}); });
startButton.addEventListener('click', startTest) startButton.addEventListener('click', startTest)
function startTest() { function startTest() {
startButton.classList.add('hide') startButton.classList.add('hide')
questionContainerElement.classList.remove('hide') questionContainerElement.classList.remove('hide')

View File

@ -3,6 +3,11 @@
font-size: 1.0rem; font-size: 1.0rem;
} }
.btn-col {
width: 90%;
white-space: normal;
}
.footer { .footer {
font-size: large; font-size: large;
font-weight: 600; font-weight: 600;