achievements_project/frontend/webpage/styles/index.css

222 lines
3 KiB
CSS
Raw Normal View History

2021-01-22 07:57:23 +00:00
html, body {
2021-01-22 08:12:42 +00:00
background-color: var(--background-dark);
2021-01-22 07:57:23 +00:00
margin: 0;
border: 0;
padding: 0;
width: 100%;
height: 100%;
font-family: sans-serif;
}
#games-page {
max-width: 1920px;
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.list-page-entry-text.game-name {
2021-01-22 07:57:23 +00:00
flex-grow: 1;
}
2021-02-05 09:59:17 +00:00
.list-page-entry-text.game-description {
2021-01-22 07:57:23 +00:00
flex-grow: 2;
}
#achievements-page {
max-width: 1920px;
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.list-page-entry-text.achievement-name {
flex-grow: 4;
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.list-page-entry-text.achievement-description {
2021-01-22 07:57:23 +00:00
box-sizing: border-box;
margin: 0;
padding: 0 12px;
width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex-grow: 8;
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.list-page-entry-text.achievement-stages {
2021-01-22 07:57:23 +00:00
flex-grow: 1;
}
#profile-page {
2021-02-06 01:19:11 +00:00
max-width: 1600px;
2021-01-22 08:12:42 +00:00
display: block;
2021-01-22 07:57:23 +00:00
}
#profile-section-1 {
box-sizing: border-box;
width: 100%;
height: max-content;
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
}
#profile-info {
2021-02-06 01:19:11 +00:00
width: 50%;
2021-01-22 07:57:23 +00:00
height: max-content;
2021-02-06 01:19:11 +00:00
max-width: 480px;
2021-01-22 07:57:23 +00:00
}
2021-02-06 01:19:11 +00:00
#profile-info-pfp-border {
box-sizing: border-box;
padding: 24px;
background-color: var(--distinction);
2021-01-22 07:57:23 +00:00
width: 100%;
max-width: 640px;
2021-02-06 01:19:11 +00:00
height: max-content;
box-shadow: 0px 0px 8px 8px var(--shadow-color);
2021-02-05 09:59:17 +00:00
2021-02-06 01:19:11 +00:00
border-radius: 8px;
position: relative;
z-index: -1;
2021-01-22 07:57:23 +00:00
}
2021-02-06 01:19:11 +00:00
#profile-info-pfp-vignette {
box-shadow: inset 0px 0px 50px 30px var(--shadow-color);
2021-01-22 07:57:23 +00:00
2021-02-06 01:19:11 +00:00
border-radius: 8px;
}
2021-01-22 07:57:23 +00:00
2021-02-06 01:19:11 +00:00
#profile-info-pfp-img {
display: block;
width: 100%;
border-radius: 8px;
2021-01-22 07:57:23 +00:00
2021-02-06 01:19:11 +00:00
position: relative;
z-index: -1;
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.profile-list {
width: 100%;
2021-01-22 07:57:23 +00:00
height: max-content;
2021-02-05 09:59:17 +00:00
border-radius: 8px;
overflow: hidden;
2021-02-06 01:19:11 +00:00
box-shadow: 0px 0px 8px 8px var(--shadow-color);
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.profile-entry {
2021-01-22 07:57:23 +00:00
overflow: hidden;
height: 64px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
2021-02-05 09:59:17 +00:00
background-color: var(--distinction);
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.profile-entry.accented {
background-color: var(--accent-value1);
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.profile-entry-left {
2021-01-22 07:57:23 +00:00
height: 100%;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
}
2021-02-05 09:59:17 +00:00
.profile-entry-right {
2021-01-22 07:57:23 +00:00
height: 100%;
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
}
2021-02-05 09:59:17 +00:00
.profile-entry-icon {
2021-01-22 07:57:23 +00:00
width: 64px;
2021-02-06 01:19:11 +00:00
flex-grow: 0;
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.profile-entry-text {
2021-02-06 01:19:11 +00:00
box-sizing: border-box;
2021-01-22 07:57:23 +00:00
margin: 0;
padding: 0px 16px;
2021-02-06 01:19:11 +00:00
height: 100%;
line-height: 64px;
2021-01-22 07:57:23 +00:00
color: var(--foreground);
font-size: 24px;
2021-02-06 01:19:11 +00:00
border-top: 1px solid var(--background);
flex-grow: 0;
}
.top > .profile-entry-text {
border: 0;
}
.accented > .profile-entry-text {
border-color: var(--accent-value0);
}
.profile-entry-text.platform-name,
.profile-entry-text.game-name,
.profile-entry-text.achievement-name {
flex-grow: 1;
2021-01-22 07:57:23 +00:00
}
2021-02-05 09:59:17 +00:00
.profile-entry-text.accented {
2021-01-22 07:57:23 +00:00
display: none;
2021-02-05 09:59:17 +00:00
}
2021-01-22 07:57:23 +00:00
2021-02-05 09:59:17 +00:00
.profile-entry.accented .profile-entry-text.accented {
display: block;
}
2021-01-22 07:57:23 +00:00
2021-02-05 09:59:17 +00:00
#profile-platforms {
flex-grow: 1;
2021-01-22 07:57:23 +00:00
}
#profile-section-2 {
box-sizing: border-box;
width: 100%;
height: max-content;
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
}
2021-02-06 01:19:11 +00:00
#profile-games,
2021-01-22 07:57:23 +00:00
#profile-achievements {
width: 50%;
height: max-content;
2021-02-06 01:19:11 +00:00
}