Skip to content

Commit

Permalink
Merge pull request #158 from wehigami/main
Browse files Browse the repository at this point in the history
CSS Tweaks
  • Loading branch information
SpikeHD authored May 11, 2023
2 parents 732e020 + c2587cc commit c8a3682
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/ui/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ select:focus {
width: 100%;
height: 160px;

backdrop-filter: blur(10px);
box-shadow: inset 0px 5px 12px -3px rgb(50 50 50 / 75%);

margin: 0;
padding: 0;

backdrop-filter: blur(10px);
box-shadow: inset 0px 5px 12px -3px rgb(0,0,0,0.43);
}

@media (max-height: 580px) {
Expand All @@ -124,4 +124,4 @@ select:focus {
.BottomSection {
height: 140px;
}
}
}
2 changes: 1 addition & 1 deletion src/ui/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ class App extends React.Component<Readonly<unknown>, IState> {
}
}

export default App
export default App
37 changes: 26 additions & 11 deletions src/ui/components/RightBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,24 @@
justify-content: flex-start;

height: 100vh;
width: 80px;
width: 70px;
right: 0%;

background-color: rgba(77, 77, 77, 0.6);
}
z-index: 99;

.BarImg:hover {
cursor: pointer;
background-color: rgba(0, 0, 0, 0.25);
}

.RightBarInner > div {
margin: 30px 0;
}

.RightBar img {
height: 40px;
height: 30px;
filter: invert(100%) sepia(0%) saturate(11%) hue-rotate(227deg) brightness(103%) contrast(105%);

transition: filter 0.2s ease-in-out;
}

.RightBar img:hover {
filter: invert(75%) sepia(0%) saturate(100%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

@media (max-height: 580px) {
.RightBar {
height: calc(100vh - 180px);
Expand All @@ -44,3 +37,25 @@
height: calc(100vh - 170px);
}
}

.BarImg {
transition: 0.2s;
border-radius: 50%;
width: 40px;
height: 40px;
background-color: rgba(0, 0, 0, 0.685);
display: flex;
justify-content: center;
align-items: center;
border: 2px solid transparent;
}

.BarImg:hover {
cursor: pointer;
border: 2px solid #ffc920;
}

.BarImg:hover img {
transition: 0.2s;
filter: invert(72%) sepia(68%) saturate(777%) hue-rotate(341deg) brightness(113%) contrast(101%);
}
1 change: 1 addition & 0 deletions src/ui/components/RightBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class RightBar extends React.Component {
<div className="BarGithub BarImg" id="rightBarButtonGithub" onClick={() => this.openInBrowser(GITHUB)}>
<img src={Github} />
</div>

</div>
</div>
)
Expand Down
4 changes: 3 additions & 1 deletion src/ui/components/ServerLaunchSection.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#playButton .BigButton {
height: 100%;
box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
font-size: 24px;
font-weight: 500;
}

#serverControls {
Expand Down Expand Up @@ -127,4 +129,4 @@
#officialPlay {
width: 40%;
}
}
}
2 changes: 1 addition & 1 deletion src/ui/components/ServerLaunchSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,4 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
</div>
)
}
}
}
4 changes: 2 additions & 2 deletions src/ui/components/common/BigButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
padding: 0 30px;
border-radius: 5px;
border: none;
background: linear-gradient(#ffd326, #ffc61e);
background: linear-gradient(#ffcf0d, #fec004);
color: #704a1d;
font-weight: bold;

Expand All @@ -16,7 +16,7 @@

.BigButton:hover {
cursor: pointer;
background: linear-gradient(#ffc61e, #ffd326);
background: linear-gradient(#fdd841, #ffc517);
}

.BigButton.disabled {
Expand Down

0 comments on commit c8a3682

Please sign in to comment.