ui/playerprofilepanel.razor.scss
$font-family: "Inter";
$font-weight: 700;
$font-weight-bold: bold;
$primary-color: rgba(232, 255, 244, 0.8);
$secondary-color: #809F91;
PlayerProfilePanel {
position: relative;
//position: absolute;
//left: 30%;
//right: 30%;
//bottom: 25%;
//top: 25%;
width: 600px;
height: 500px;
padding: 16px;
flex-direction: column;
font-family: "Cal Sans";
color: white;
font-size: 24px;
align-items: flex-start;
justify-content: flex-start;
gap: 8px;
pointer-events: all;
//background-color: #000000fe;
background-position: center;
background-size: 100% 100%;
background-image: url("/textures/ui/panel/player_profile_bg.png");
.loading {
width: 100%;
height: 100%;
color: white;
//background-color: blue;
//border: 1px solid blue;
font-size: 24px;
align-content: center;
justify-content: center;
align-items: center;
text-align: center;
}
.name_container {
position: relative;
flex-direction: row;
align-items: center;
gap: 16px;
flex-shrink: 0;
.avatar {
position: relative;
width: 64px;
aspect-ratio: 1;
background-position: center;
background-size: cover;
pointer-events: none;
}
.displayName {
font-size: 24px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 450px;
}
}
.main-content {
width: 100%;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 28px;
//margin-bottom: 72px;
}
.stats_title {
text-align: center;
align-items: center;
font-size: 28px;
color: white;
margin-top: 4px;
}
.stats {
position: relative;
width: 503px;
height: 300px;
flex-direction: column;
color: #999999;
align-items: flex-start;
justify-content: flex-start;
//border: 1px solid cyan;
//.stat_row {
// position: relative;
// flex-direction: row;
//}
//.stat_label {
// color: #666;
// margin-right: 4px;
//}
//.stat_value {
// color: #999999;
//}
}
.perks_container {
position: relative;
gap: 4px;
margin-top: 16px;
flex-direction: column;
.perks_title {
position: relative;
color: white;
//background-color: blue;
//border: 1px solid blue;
font-size: 28px;
align-content: center;
justify-content: center;
align-items: center;
text-align: center;
padding-bottom: 4px;
}
.loading_perks {
color: #999999;
font-size: 32px;
}
.perks {
position: relative;
//width: 126px;
height: 64px;
//background-color: green;
//justify-content: space-between;
justify-content: flex-start;
align-items: center;
align-content: center;
pointer-events: all;
gap: 3px;
flex-wrap: wrap;
padding: 0 64px 0 64px;
flex-direction: row;
}
}
.hide_button {
position: absolute;
top: 8px;
right: 12px;
//width: 126px;
height: 50px;
aspect-ratio: 1;
//background-color: blue;
//border: 1px solid blue;
align-content: center;
justify-content: center;
align-items: center;
text-align: center;
pointer-events: all;
cursor: pointer;
//transform: rotate(10deg);
background-position: center;
background-size: 100% 100%;
background-image: url("/textures/ui/panel/player_profile_x.png");
&:hover {
background-image: url("/textures/ui/panel/player_profile_x_hover.png");
sound-in: ui.button.over;
}
&:active {
background-image: url("/textures/ui/panel/player_profile_x_active.png");
sound-in: ui.button.press;
}
}
.list_container {
position: relative;
width: 100%;
height: 250px;
flex-direction: column;
gap: 4px;
align-items: center;
//background-color: blue;
background-color: #111;
padding: 4px;
}
.list {
position: relative;
flex-direction: row;
height: 30px;
padding: 2px 4px;
flex-shrink: 0;
//backdrop-filter: blur(10px);
width: 100%;
//border: 1px solid red;
justify-content: space-between;
//background-color: rgba(white, 0.02);
//.icon {
//mix-blend-mode: lighten;
//font-size: 24px;
//color: rgba(232, 255, 244, 0.5);
//padding-right: 4px;
//padding-top: 1px;
// margin-top: -3px;
// margin-left: -6px;
//}
}
.stat_name {
position: relative;
font-size: 14px;
align-items: center;
color: rgba(232, 255, 244, 0.8);
//border: 1px solid blue;
}
.values {
justify-content: flex-end;
gap: 3px;
}
.stat_value {
position: relative;
//font-size: 16px;
align-items: center;
//border: 1px solid green;
width: 80px;
//border: 1px solid blue;
background-color: #ffffff02;
border-radius: 5px;
justify-content: center;
align-content: center;
text-align: center;
padding-top: 2px;
}
.avatars {
position: relative;
width: 50%;
height: 100%;
flex-direction: row;
gap: 3px;
justify-content: flex-end;
//flex-shrink: 0;
//background-color: blue;
}
.avatar {
position: relative;
width: 80px;
height: 80px;
//background-color: #0000ff33;
//padding: 2px;
background-position: center;
background-size: cover;
pointer-events: all;
cursor: pointer;
border-radius: 3px;
&:hover {
transform: scale(0.99);
sound-in: ui.button.over;
}
&:active {
transform: scale(0.98);
sound-in: ui.button.press;
}
.playerlevel {
position: absolute;
right: 3px;
top: 1px;
text-align: center;
align-items: center;
font-size: 16px;
color: rgba(185, 255, 221, 0.75);
text-stroke: 5px black;
//text-shadow: 2px 2px 4px black;
//background-color: rgba(0, 0, 0, 0.3);
//padding: 15px;
flex-shrink: 0;
}
}
.flat {
.contents {
position: relative;
flex-direction: column;
justify-content: flex-start;
align-items: center;
align-content: stretch;
width: 100%;
height: 100%;
}
.label {
font-weight: $font-weight;
font-family: $font-family;
}
.center {
align-items: center;
}
.bold {
font-weight: $font-weight-bold;
}
.primary {
font-size: 18px;
color: $primary-color;
}
.large {
font-size: 22px;
}
.secondary {
font-size: 16px;
color: $secondary-color;
}
.grey {
position: relative;
mix-blend-mode: lighten;
font-size: 22px;
color: rgba(232, 255, 244, 0.5);
padding-right: 8px;
}
//i, .icon {
// position: relative;
// align-items: center;
// font-family: Material Icons;
//}
.icon_container {
position: relative;
width: 30px;
height: 30px;
margin-top: -3px;
margin-left: -6px;
}
.icon {
position: relative;
width: 100%;
height: 100%;
//background-color: blue;
background-position: center;
background-size: 100% 100%;
//background-image: url("/textures/ui/stats/bullet.png");
transform: scale(0.6);
//mask-image: url("/textures/ui/stats/bullet.png");
mask-size: 100% 100%;
mask-repeat: no-repeat;
mask-position: center;
//image-rendering: pixelated;
//filter: blur(10px);
}
.space-between {
position: relative;
justify-content: space-between;
}
//.container {
// position: relative;
// background-color: rgba(0, 0, 0, 0.2);
// backdrop-filter: blur(10px);
//}
.column {
position: relative;
width: 100%;
flex-direction: column;
}
.section {
position: relative;
width: 100%;
padding: 16px;
flex-direction: column;
&.tight {
padding: 8px;
padding-left: 16px;
padding-right: 16px;
}
&.dark {
background-color: rgba(0, 0, 0, 0.35);
}
&.row {
flex-direction: row;
}
}
}
}