Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Taiko Web
Commits
b85f879b
Commit
b85f879b
authored
Oct 28, 2018
by
Bui
Committed by
GitHub
Oct 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #64 from LoveEevee/gameconfig-fix-css-assets
GameConfig: Fix css assets
parents
d1ae38e9
a4e119ec
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
33 additions
and
14 deletions
+33
-14
public/src/css/game.css
public/src/css/game.css
+8
-1
public/src/css/loadsong.css
public/src/css/loadsong.css
+4
-1
public/src/css/main.css
public/src/css/main.css
+4
-2
public/src/css/titlescreen.css
public/src/css/titlescreen.css
+8
-2
public/src/js/view.js
public/src/js/view.js
+2
-2
public/src/views/game.html
public/src/views/game.html
+2
-2
public/src/views/loadsong.html
public/src/views/loadsong.html
+1
-1
public/src/views/songselect.html
public/src/views/songselect.html
+1
-1
public/src/views/titlescreen.html
public/src/views/titlescreen.html
+1
-1
templates/index.html
templates/index.html
+2
-1
No files found.
public/src/css/game.css
View file @
b85f879b
...
...
@@ -67,6 +67,10 @@
}
#touch-drum-img
{
width
:
100%
;
height
:
100%
;
background-position
:
top
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
}
#touch-buttons
{
display
:
none
;
...
...
@@ -76,9 +80,12 @@
opacity
:
0.5
;
z-index
:
5
;
}
#touch-buttons
img
{
#touch-buttons
div
{
display
:
inline-block
;
width
:
12.5vmin
;
height
:
12.5vmin
;
background-size
:
contain
;
background-repeat
:
no-repeat
;
}
.portrait
#touch-buttons
{
top
:
11vh
;
...
...
public/src/css/loadsong.css
View file @
b85f879b
...
...
@@ -21,7 +21,10 @@
color
:
#fff
;
}
#loading-don
{
width
:
50%
;
width
:
10vw
;
height
:
calc
(
10vw
/
120
*
115
);
background-size
:
contain
;
background-repeat
:
no-repeat
;
}
.loading-text
{
position
:
relative
;
...
...
public/src/css/main.css
View file @
b85f879b
...
...
@@ -14,7 +14,8 @@ body{
height
:
100%
;
margin
:
0
;
padding
:
0
;
background
:
#fe7839
url("/assets/img/bg-pattern-1.png")
top
center
;
background-color
:
#fe7839
;
background-position
:
top
center
;
background-size
:
30vh
;
font-family
:
TnT
,
Meiryo
,
sans-serif
;
}
...
...
@@ -236,7 +237,6 @@ kbd{
#song-select
{
width
:
100%
;
height
:
100%
;
background-image
:
url("/assets/img/bg_genre_0.png")
;
background-size
:
calc
(
100vh
/
720
*
512
);
background-repeat
:
repeat
no-repeat
;
animation
:
bgscroll
16s
infinite
linear
;
...
...
@@ -257,6 +257,8 @@ kbd{
width
:
12.5vmin
;
height
:
12.5vmin
;
opacity
:
0.5
;
background-size
:
contain
;
background-repeat
:
no-repeat
;
}
#song-sel-selectable
{
position
:
absolute
;
...
...
public/src/css/titlescreen.css
View file @
b85f879b
...
...
@@ -15,13 +15,19 @@
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
background
:
#1389f0
url("/assets/img/title-screen.png")
no-repeat
center
;
background-color
:
#1389f0
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-size
:
cover
;
cursor
:
pointer
;
}
.logo-big
{
width
:
90vmin
;
height
:
auto
;
height
:
calc
(
90vmin
/
754
*
400
);
background-size
:
contain
;
background-repeat
:
no-repeat
;
text-align
:
center
;
color
:
transparent
;
}
.click-to-continue
{
position
:
absolute
;
...
...
public/src/js/view.js
View file @
b85f879b
...
...
@@ -1220,11 +1220,11 @@
if
(
this
.
touch
>
ms
-
100
){
if
(
!
this
.
drumPadding
){
this
.
drumPadding
=
true
this
.
touchDrumImg
.
style
.
paddingTop
=
"
1%
"
this
.
touchDrumImg
.
style
.
backgroundPositionY
=
"
7px
"
}
}
else
if
(
this
.
drumPadding
){
this
.
drumPadding
=
false
this
.
touchDrumImg
.
style
.
paddingTop
=
""
this
.
touchDrumImg
.
style
.
backgroundPositionY
=
""
}
}
}
...
...
public/src/views/game.html
View file @
b85f879b
<div
id=
"game"
>
<div
id=
"touch-drum"
>
<
img
id=
"touch-drum-img"
src=
"/assets/img/touch_drum.png"
>
<
div
id=
"touch-drum-img"
></div
>
</div>
<canvas
id=
"canvas"
></canvas>
<div
id=
"pause-menu"
>
...
...
@@ -11,7 +11,7 @@
</div>
</div>
<div
id=
"touch-buttons"
>
<
img
id=
"touch-full-btn"
src=
"/assets/img/touch_fullscreen.png"
><img
id=
"touch-pause-btn"
src=
"/assets/img/touch_pause.png"
>
<
div
id=
"touch-full-btn"
></div><div
id=
"touch-pause-btn"
></div
>
</div>
<div
id=
"cursor"
></div>
</div>
public/src/views/loadsong.html
View file @
b85f879b
<div
id=
"load-song"
>
<div
id=
"loading-song"
>
<
img
id=
"loading-don"
src=
"/assets/img/dancing-don.gif"
>
<
div
id=
"loading-don"
></div
>
<div
class=
"loading-text stroke-sub"
alt=
"Loading..."
>
Loading...
</div>
</div>
</div>
public/src/views/songselect.html
View file @
b85f879b
<div
id=
"song-select"
>
<canvas
id=
"song-sel-canvas"
></canvas>
<div
id=
"song-sel-selectable"
tabindex=
"1"
></div>
<
img
id=
"touch-full-btn"
src=
"/assets/img/touch_fullscreen.png"
>
<
div
id=
"touch-full-btn"
></div
>
</div>
public/src/views/titlescreen.html
View file @
b85f879b
<div
id=
"title-screen"
>
<
img
class=
"logo-big"
src=
"/assets/img/logo-big.png"
alt=
"太鼓の達人ウェブ"
>
<
div
class=
"logo-big"
>
太鼓の達人ウェブ
</div
>
<div
class=
"click-to-continue stroke-sub"
alt=
"Click or Press Enter!"
>
Click or Press Enter!
</div>
</div>
templates/index.html
View file @
b85f879b
...
...
@@ -13,7 +13,7 @@
<head>
<meta
charset=
"utf-8"
>
<title>
太鼓の達人ウェブ - Taiko no Tatsujin Web
</title>
<link
rel=
"icon"
href=
"
/assets/
img/favicon.png"
type=
"image/png"
>
<link
rel=
"icon"
href=
"
{{config.assets_baseurl}}
img/favicon.png"
type=
"image/png"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
>
<link
rel=
"stylesheet"
href=
"/src/css/main.css?{{version.commit_short}}"
/>
...
...
@@ -23,6 +23,7 @@
<link
rel=
"stylesheet"
href=
"/src/css/game.css?{{version.commit_short}}"
>
<link
rel=
"stylesheet"
href=
"/src/css/debug.css?{{version.commit_short}}"
>
<link
rel=
"stylesheet"
href=
"{{config.assets_baseurl}}fonts/fonts.css?{{version.commit_short}}"
>
<link
rel=
"stylesheet"
href=
"{{config.assets_baseurl}}img/img.css?{{version.commit_short}}"
>
<script
src=
"/src/js/lib/fontdetect.min.js?{{version.commit_short}}"
></script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment