Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed #23 #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 59 additions & 5 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,19 +166,73 @@ input:checked + .slider:before {
}
/*DIFFICULTY RADIO*/

.hbox{
margin-top:2%;
right: 5%;
}

.row.headercontent {
display: flex;
flex-direction: row;
align-items: center;
justify-content: stretch;
}

.row.maincontent {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}

#guesspanel, #hintpanel {
width: 25%
}

#mainpanel {
width: 33.33333333%
}

@media only screen and (max-width: 969px) {
.row.headercontent {
flex-direction: column;
}

.row.maincontent {
flex-direction: column;
margin-left: auto;
margin-right: auto;
width: 80%;
}

#guesspanel, #hintpanel, #mainpanel {
width: 100%
}

#diffchoose {
display: flex;
}

#diffchoose .container {
padding: 0 35px;
margin-left: 0;
width: auto;
}

.header-diffchoose {
order: 1;
padding-top: 0;
width: auto;
}

.hbox{
margin-top:2%;
right: 5%;
}

.header-hints {
order: 2;
display: flex;
width: auto;
}

.header-hints h2 {
margin: 0 20px;
right: 0;
}
}
18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</head>
<body>
<div class="container-fluid">
<div class="row text-center">
<div class="col-xs-3 text-center" style="padding-top: 30px">
<div class="row headercontent text-center">
<div class="header-diffchoose col-xs-3 text-center" style="padding-top: 30px">
<div id="diffchoose">
<label class="container">Easy
<input type="radio" name="radio" class="dif" value="0">
Expand All @@ -31,7 +31,7 @@
</div>

</div>
<div class="col-xs-6" style="right: 65px; font-family: Acme!important;">
<div class="col-xs-6 header-description" style="font-family: Acme!important;">
<h2>
I'm thinking of a number between
</h2>
Expand All @@ -41,7 +41,7 @@ <h3 >
Can you figure out what it is?
</h3>
</div>
<div class="col-xs-3 hbox">
<div class="col-xs-3 header-hints hbox">
<h2>Show Hints</h2>
<label class="switch">
<input type="checkbox" checked>
Expand All @@ -50,25 +50,25 @@ <h2>Show Hints</h2>
</div>

</div>
<div class="text-center" style="margin-left: -120px">
<div class="text-center">
<a id="resetbtn" class="btn btn-warning">Reset</a>
</div>
<div class="center-block">
<div class="row">
<div id="guesspanel" class="blocks col-xs-3 text-center">
<div class="row maincontent">
<div id="guesspanel" class="blocks text-center">

<h2>Guesses <span id="guesses" class="badge" style="margin-bottom: 5px">0</span></h2>
<div class="gcontent">

</div>
</div>
<div id="mainpanel" class="blocks col-xs-4 text-center " style="padding-top: 130px">
<div id="mainpanel" class="blocks text-center " style="padding-top: 130px">
<input id="gno" type="number" step="1" min="1" oninput="validity.valid||(value='');" class="form-control center-block" placeholder="Type Your Guess Here!">

<a id="gbtn" class="btn btn-danger text-uppercase">Guess</a>

</div>
<div id="hintpanel" class="blocks col-xs-4" style="width: 30%">
<div id="hintpanel" class="blocks">
<h2 class="text-center">Hints</h2><br><br>
<div class="hcontent center-block text-center">

Expand Down