small css styling

This commit is contained in:
Mickey Barboi 2017-02-15 17:39:44 -06:00
parent e1863cdb05
commit 584e0ef8ca
3 changed files with 105 additions and 60 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ dist
*.log
coverage
.idea
*.n64

View file

@ -374,7 +374,7 @@ body {
display: inline-block;
background-color: #ddd;
border-radius: 0.4rem;
width: 4rem;
width: 40%;
height: 4rem;
margin-left: .8rem;
text-align: right;
@ -413,13 +413,49 @@ body {
/* shadow */
}
.pane-wrapper {
display: inline-block;
}
/* Portrait */
@media screen and (min-width: 320px) and (max-width: 767px) {
@media only screen and ( max-width: 800px) {
#nespad {
transform: scale(1);
// margin: 120px 0px 0px 180px;
/* height: 50vh; */
margin: 0;
height: 100vh;
width: 100vw;
}
.pane-wrapper {
width: 32%;
display: inline-block;
height: 100%;
margin: 0;
/* margin-top: 10vh; */
}
.menu-pane {
margin-top: 13vh;
}
.dpad-pane {
margin: auto;
display: block;
margin-top: 40vh;
}
.action-pane .label {
/* width: 40%; */
height: 6rem;
}
.action-pane .button {
width: 8vw;
height: 7vw;
}
.nlogo {
height: 25vh;
margin-top: 10vh;
}
.buttons {
margin-left: 1em;
}
}

View file

@ -5,7 +5,7 @@
<title>Drop64 - Controller</title>
<meta charset='utf-8' />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" media="screen" href="/assets/controller.css">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
@ -26,6 +26,8 @@
<body ng-app="controller" ng-controller='RootController' id='main-content-wrap'>
<figure id="nespad">
<div class="cord"></div>
<!-- <div class="pane-wrapper"> -->
<section class="pane-wrapper">
<section class="dpad-pane">
<div class="dpad-hole"></div>
<div id="dpad">
@ -36,7 +38,10 @@
<button class="button" id="left" my-touchstart='press("ArrowLeft", 37)' my-touchend='release("ArrowLeft", 37)'></button>
</div>
</section>
<section class="menu-pane">
</section>
<!-- </div> -->
<!-- <div class="pane-wrapper"> -->
<section class="menu-pane pane-wrapper">
<div class="labels">
<label class="select" for="select"> Z</label>
<label class="start" for="start">Start</label>
@ -46,8 +51,10 @@
<button class="button start" id="start" my-touchstart='press("Enter", 13)' my-touchend='release("Enter", 13)'>Start</button>
</div>
</section>
<section class="action-pane">
<div class="logo">
<!-- </div> -->
<!-- <div class="pane-wrapper"> -->
<section class="action-pane pane-wrapper">
<div class="logo nlogo">
Nintendo
</div>
<div class="buttons">
@ -59,6 +66,7 @@
</label>
</div>
</section>
<!-- </div> -->
</figure>
<!-- <script src="assets/util.js"></script> -->