Skip to content

Commit

Permalink
improve borders
Browse files Browse the repository at this point in the history
  • Loading branch information
voliva committed Aug 19, 2022
1 parent 89b19a5 commit 872acda
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 5 deletions.
Binary file modified public/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 15 additions & 2 deletions src/App/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,25 @@
.painted-box {
background-color: rgba(255, 255, 255, 0.66);
background-clip: padding-box;
border-width: 10px 50px;
border-width: 18px 13px 15px 12px;
border-image-source: url("./borders_r_66opacity.png");
border-image-slice: 18 13 15 12 fill;
border-image-width: 18px 13px 15px 12px;
border-image-outset: 0px 0px 0px 0px;
border-image-repeat: round round;
border-style: solid;
padding: 0.1rem 0.5rem;
}

.painted-line {
background-color: rgba(255, 255, 255, 0.66);
background-clip: padding-box;
border-width: 10px 50px;
border-image-source: url("./borders_66opacity.png");
border-image-slice: 18 130 17 137 fill;
border-image-width: 10px 50px 10px 50px;
border-image-outset: 0px 0px 0px 0px;
border-image-repeat: round round;
border-image-repeat: round stretch;
border-style: solid;
padding: 0.1rem 0.5rem;
}
7 changes: 7 additions & 0 deletions src/App/CreateGoal.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
vertical-align: middle;
}

.create-goal {
overflow: auto;
}
.create-goal::-webkit-scrollbar {
display: none;
}

.create-goal .rewards {
list-style: none;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/App/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function Header() {

return (
<div className="header" data-tauri-drag-region>
<div className="header-title painted-box" data-tauri-drag-region>
<div className="header-title painted-line" data-tauri-drag-region>
{season ? season.name : "PvP Pips Calculator"}
</div>
<div className="header-actions">
Expand Down
2 changes: 1 addition & 1 deletion src/App/Result.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
justify-content: center;
overflow: auto;
flex: 1 1 auto;
padding: 0 5rem;
padding: 0 8rem;
padding-bottom: 5rem;
mask: linear-gradient(
0deg,
Expand Down
Binary file added src/App/borders_66opacity.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 src/App/borders_r_66opacity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/service/localData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ const defaultConfig: Config = {
version: 1,
apiKey: "",
holidays: [],
goals: [],
goals: [
{
title: "All chests",
value: 670,
},
],
};

const readConfig$ = () =>
Expand Down

0 comments on commit 872acda

Please sign in to comment.