Skip to content

Commit

Permalink
Prettier, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererXII committed Feb 9, 2024
1 parent efc2499 commit 8ccc283
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
15 changes: 8 additions & 7 deletions ui/lobby/css/app/_app.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import "preset";
@import "hook-chart";
@import "hook-list";
@import 'preset';
@import 'hook-chart';
@import 'hook-list';

.lobby__app {
@extend %flex-column;
Expand All @@ -19,14 +19,15 @@
@extend %box-neat;
flex: 1 1 100%;
position: relative;
@if $theme == "transp" {
@if $theme == 'transp' {
background: $c-bg-box;
} @else {
$logo-color: "dadada";
$logo-color: 'dadada';
@if $theme-dark {
$logo-color: "383633";
$logo-color: '383633';
}
background: $c-bg-box url("data:image/svg+xml,%3Csvg viewBox='-2.5 -2.5 45 55' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 20 0 L 33 4 L 40 50 L 0 50 L 7 4 Z' style='fill:none;stroke:%23#{$logo-color};stroke-width:2.5;stroke-opacity:1;' /%3E%3C/svg%3E");
background: $c-bg-box
url("data:image/svg+xml,%3Csvg viewBox='-2.5 -2.5 45 55' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 20 0 L 33 4 L 40 50 L 0 50 L 7 4 Z' style='fill:none;stroke:%23#{$logo-color};stroke-width:2.5;stroke-opacity:1;' /%3E%3C/svg%3E");
}
background-size: 80% 80%;
background-repeat: no-repeat;
Expand Down
6 changes: 3 additions & 3 deletions ui/lobby/css/app/_hook-chart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
right: 0;
.label {
color: $c-font-dim;
font-size: .7em;
font-size: 0.7em;
position: absolute;
left: 3px;
bottom: 1px;
Expand Down Expand Up @@ -34,7 +34,7 @@
cursor: pointer;
z-index: 3;
font-size: 1.6em;
opacity: .7;
opacity: 0.7;
@include transition();
transform: scale(1);
&.rated {
Expand Down Expand Up @@ -73,6 +73,6 @@
.opponent {
@extend %metal;
min-width: 120px;
padding: .5em .7em;
padding: 0.5em 0.7em;
}
}
9 changes: 5 additions & 4 deletions ui/lobby/css/app/_hook-filter.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.hook__filters {
padding: $block-gap 1.5em;
background: fade-out($c-bg-high, .5);
background: fade-out($c-bg-high, 0.5);
height: 100%;
white-space: nowrap;
td {
Expand All @@ -17,7 +17,8 @@
}
.checkable {
@extend %nowrap-ellipsis;
label, input {
label,
input {
vertical-align: middle;
cursor: pointer;
}
Expand All @@ -37,7 +38,7 @@
padding: 4.3px 20px 4.3px 0;
}
input {
margin-right: .3em;
margin-right: 0.3em;
}
.range {
display: block;
Expand All @@ -48,7 +49,7 @@
margin-top: 1.5em;
text-align: right;
button {
margin-left: .3em;
margin-left: 0.3em;
}
}
}
10 changes: 5 additions & 5 deletions ui/lobby/css/app/_hook-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
}
}
&.cancel td {
background: fade-out($c-secondary, .6);
background: fade-out($c-secondary, 0.6);
}
&.join:hover td {
background: fade-out($c-accent, .5);
background: fade-out($c-accent, 0.5);
color: #fff;
}

Expand Down Expand Up @@ -42,7 +42,7 @@
&.sort .is:before {
opacity: 0.7;
margin-right: 3px;
content: "R";
content: 'R';
}
&.player {
width: 110px;
Expand All @@ -51,10 +51,10 @@
td {
word-break: break-all;
overflow: hidden;
padding: .5em .7em;
padding: 0.5em 0.7em;
border-bottom: $border;
cursor: pointer;
background: fade-out($c-bg-box, .5);
background: fade-out($c-bg-box, 0.5);
&:first-child {
width: 16px;
}
Expand Down
1 change: 1 addition & 0 deletions ui/lobby/src/ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export default class LobbyController {
this.data.hooks = [];
this.socket.realTimeIn();
xhr.seeks().then(this.setSeeks);
break;
case 'real_time':
this.data.hooks = [];
this.socket.realTimeIn();
Expand Down

0 comments on commit 8ccc283

Please sign in to comment.