mirror of
https://github.com/damouse/Drop64.git
synced 2024-05-16 19:10:41 -04:00
small css styling
This commit is contained in:
parent
e1863cdb05
commit
584e0ef8ca
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -3,4 +3,5 @@ node_modules
|
|||
dist
|
||||
*.log
|
||||
coverage
|
||||
.idea
|
||||
.idea
|
||||
*.n64
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,69 +2,77 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>Drop64 - Controller</title>
|
||||
<meta charset='utf-8' />
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Drop64 - Controller</title>
|
||||
<meta charset='utf-8' />
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
|
||||
<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">
|
||||
<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">
|
||||
|
||||
<script src="https://cdn.socket.io/socket.io-1.4.5.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
<script src="https://cdn.socket.io/socket.io-1.4.5.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
|
||||
<script src="assets/three.min.js"></script>
|
||||
<script src="assets/mathbox/build/mathbox-bundle.js"></script>
|
||||
<script src="assets/cbuffer/cbuffer.js"></script>
|
||||
<script src="assets/dat.gui/dat.gui.js"></script>
|
||||
<script src='assets/ngTouchStart.min.js'></script>
|
||||
<script src="assets/three.min.js"></script>
|
||||
<script src="assets/mathbox/build/mathbox-bundle.js"></script>
|
||||
<script src="assets/cbuffer/cbuffer.js"></script>
|
||||
<script src="assets/dat.gui/dat.gui.js"></script>
|
||||
<script src='assets/ngTouchStart.min.js'></script>
|
||||
|
||||
<script type='text/javascript' src='assets/controller.js'></script>
|
||||
<script type='text/javascript' src='assets/controller.js'></script>
|
||||
</head>
|
||||
|
||||
<body ng-app="controller" ng-controller='RootController' id='main-content-wrap'>
|
||||
<figure id="nespad">
|
||||
<div class="cord"></div>
|
||||
<section class="dpad-pane">
|
||||
<div class="dpad-hole"></div>
|
||||
<div id="dpad">
|
||||
<canvas height="150" id="dpad-body" width="150"></canvas>
|
||||
<button class="button" id="up" my-touchstart='press("ArrowUp", 38)' my-touchend='release("ArrowUp", 38)'></button>
|
||||
<button class="button" id="right" my-touchstart='press("ArrowRight", 39)' my-touchend='release("ArrowRight", 39)'></button>
|
||||
<button class="button" id="down" my-touchstart='press("ArrowDown", 40)' my-touchend='release("ArrowDown", 40)'></button>
|
||||
<button class="button" id="left" my-touchstart='press("ArrowLeft", 37)' my-touchend='release("ArrowLeft", 37)'></button>
|
||||
</div>
|
||||
</section>
|
||||
<section class="menu-pane">
|
||||
<div class="labels">
|
||||
<label class="select" for="select"> Z</label>
|
||||
<label class="start" for="start">Start</label>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<button class="button select" id="select" my-touchstart='press("z", 90)' my-touchend='release("z", 90)'>Select</button>
|
||||
<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">
|
||||
Nintendo
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<label class="label">B
|
||||
<button class="button" id="b" my-touchstart='press("f", 70)' my-touchend='release("f", 70)'></button>
|
||||
</label>
|
||||
<label class="label">A
|
||||
<button class="button" id="a" my-touchstart='press("g", 71)' my-touchend='release("g", 71)'></button>
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
</figure>
|
||||
<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">
|
||||
<canvas height="150" id="dpad-body" width="150"></canvas>
|
||||
<button class="button" id="up" my-touchstart='press("ArrowUp", 38)' my-touchend='release("ArrowUp", 38)'></button>
|
||||
<button class="button" id="right" my-touchstart='press("ArrowRight", 39)' my-touchend='release("ArrowRight", 39)'></button>
|
||||
<button class="button" id="down" my-touchstart='press("ArrowDown", 40)' my-touchend='release("ArrowDown", 40)'></button>
|
||||
<button class="button" id="left" my-touchstart='press("ArrowLeft", 37)' my-touchend='release("ArrowLeft", 37)'></button>
|
||||
</div>
|
||||
</section>
|
||||
</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>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<button class="button select" id="select" my-touchstart='press("z", 90)' my-touchend='release("z", 90)'>Select</button>
|
||||
<button class="button start" id="start" my-touchstart='press("Enter", 13)' my-touchend='release("Enter", 13)'>Start</button>
|
||||
</div>
|
||||
</section>
|
||||
<!-- </div> -->
|
||||
<!-- <div class="pane-wrapper"> -->
|
||||
<section class="action-pane pane-wrapper">
|
||||
<div class="logo nlogo">
|
||||
Nintendo
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<label class="label">B
|
||||
<button class="button" id="b" my-touchstart='press("f", 70)' my-touchend='release("f", 70)'></button>
|
||||
</label>
|
||||
<label class="label">A
|
||||
<button class="button" id="a" my-touchstart='press("g", 71)' my-touchend='release("g", 71)'></button>
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
<!-- </div> -->
|
||||
</figure>
|
||||
|
||||
<!-- <script src="assets/util.js"></script> -->
|
||||
<!-- <script src="assets/complementary-filter.js"></script> -->
|
||||
<!-- <script src="assets/plot-sensors.js"></script> -->
|
||||
<script type='text/javascript' src='assets/nes.js'></script>
|
||||
<!-- <script src="assets/util.js"></script> -->
|
||||
<!-- <script src="assets/complementary-filter.js"></script> -->
|
||||
<!-- <script src="assets/plot-sensors.js"></script> -->
|
||||
<script type='text/javascript' src='assets/nes.js'></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue