Skip to content

Commit

Permalink
Add GitHub link + cursor fixes
Browse files Browse the repository at this point in the history
Fixed custom mouse cursor reverting to the default one near the edges of the viewport
  • Loading branch information
SuenoImposible committed Oct 31, 2024
1 parent d26fe0b commit 848b229
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 6 deletions.
Binary file added assets/OtherUIElements/Team/GitHubButton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/OtherUIElements/mouse_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/OtherUIElements/mouse_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 24 additions & 5 deletions css/default.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
* {position:relative; box-sizing:border-box; margin:0; padding:0;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
cursor: url("../assets/OtherUIElements/mouse_off.png") 20 5, auto;
cursor: url("../assets/OtherUIElements/mouse_off.png") 10 3, auto;
}
*:active{
cursor: url("../assets/OtherUIElements/mouse_on.png") 20 5, auto;
cursor: url("../assets/OtherUIElements/mouse_on.png") 10 3, auto;
}

* {color: rgb(238, 205, 163); font-family: Pretendard-Regular; }
Expand Down Expand Up @@ -100,6 +100,20 @@ button {
content:url("../assets/Icons/Multiply.png");
}

#github-link {
background-image: url("../assets/OtherUIElements/Team/GitHubButton.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;

position: absolute;
width: 6%;
aspect-ratio: 1;
right: 0.5%;
top: 0.5%;
z-index: 1;
}

.portrait {
width: 100%;
height: 100%;
Expand Down Expand Up @@ -144,10 +158,16 @@ button {

body {
background-image: url("../assets/OtherUIElements/Team/New_MainUI_Formation_2.png");
background-size: cover;
background-position: center;
background-size: 100% auto;
background-position: center -27vw;
background-repeat: no-repeat;
background-color: black;
padding-top: 5%;
}

html, body {
height: 100%;
margin: 0;
}

.background {
Expand Down Expand Up @@ -175,7 +195,6 @@ body {
#team-builder{
width: 75%;
margin: auto;
margin-top: 3%;
aspect-ratio: 2.0 / 1;
}

Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<link rel="icon" type="image/x-icon" href="./assets/Icons/Statuses/Insight.png">
</head>
<body>
<button id="github-link" onclick="window.open('https://github.com/LCTeamBuilder/LCTeamBuilder.github.io','_blank')"></button>
<div id="team-builder">
<div class="main-body">
<div class="top-row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class LCBSinnerRyoshuSkill2 implements Skill {
readonly CoinValue: number = +5;
readonly AttackWeight: number = 1;
readonly SkillLevel: number = +2;
readonly SkillDescription: SkillDescriptionPart[] = [new SkillDescriptionPart("If target previously took damage this turn, deal +30% damage", 2),
readonly SkillDescription: SkillDescriptionPart[] = [new SkillDescriptionPart("If target previously took damage this turn, deal +30% damage", 1),
new SkillDescriptionPart("If target previously took damage this turn, deal +30% damage", 2)];
readonly DamageType?: DamageTypeEnum | undefined = DamageTypeEnum.Slash;
readonly DefenseType?: DefenseTypeEnum | undefined = undefined;
Expand Down

0 comments on commit 848b229

Please sign in to comment.