forked from kscc25/NEXT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEXT-27 Introduce bootstrap to replace dat.gui
- Loading branch information
Showing
7 changed files
with
237 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,75 @@ | ||
body, | ||
@import url(https://fonts.googleapis.com/css?family=Ubuntu:700); | ||
|
||
body { | ||
margin: 0; | ||
overflow: auto; | ||
} | ||
|
||
#viewer, | ||
canvas { | ||
margin: 0; | ||
margin: 0; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
width: 100%; | ||
height: 100%; | ||
z-index: -100; | ||
} | ||
|
||
body { | ||
overflow: hidden; | ||
.overlay { | ||
width: 100%; | ||
height: 100vh; | ||
background-color: transparent; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 2; | ||
} | ||
|
||
.main-panel { | ||
background-color: rgba(0, 0, 0, 0.8); | ||
color: #ccc; | ||
width: 400px; | ||
height: 300px; | ||
padding: 20px; | ||
-webkit-border-radius: 5px; | ||
-moz-border-radius: 5px; | ||
border-radius: 5px; | ||
} | ||
|
||
#status-box, #leaderboard { | ||
position: fixed; | ||
display: block; | ||
background-color: rgba(0, 0, 0, 0.3); | ||
color: white; | ||
-webkit-border-radius: 5px; | ||
-moz-border-radius: 5px; | ||
border-radius: 5px; | ||
font-family: 'Ubuntu', sans-serif; | ||
} | ||
|
||
#status-box { | ||
left: 10px; | ||
bottom: 10px; | ||
padding: 10px; | ||
font-weight: bold; | ||
} | ||
|
||
#leaderboard { | ||
top: 10px; | ||
right: 10px; | ||
width: 200px; | ||
height: 280px; | ||
|
||
} | ||
|
||
#leaderboard { | ||
text-align: center; | ||
} | ||
|
||
#leaderboard h4 a { | ||
text-decoration: none; | ||
color: #FFC107 !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'use strict'; | ||
|
||
import $ from 'jquery'; | ||
|
||
const overlay = $('.overlay'); | ||
const mainPanel = overlay.find('.main-panel'); | ||
const leaderBoard = $('#leaderboard div'); | ||
const statusBox = $('#status-box'); | ||
const nick = mainPanel.find('input#nick'); | ||
const playBtn = mainPanel.find('button#playBtn'); | ||
const region = mainPanel.find('#region'); | ||
const gameMode = mainPanel.find('#gameMode'); | ||
|
||
export default { | ||
overlay: overlay, | ||
mainPanel: mainPanel, | ||
leaderBoard: leaderBoard, | ||
statusBox: statusBox, | ||
nick: nick, | ||
playBtn: playBtn, | ||
region: region, | ||
gameMode: gameMode | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.