feat(character/achievements): add achievements page

This commit is contained in:
Axel Cocat 2022-02-26 01:47:20 +01:00
parent ed424d63d0
commit ab3b84f743
24 changed files with 2419 additions and 33 deletions

View file

@ -1,4 +1,4 @@
html {
background-color: #202124;
color: white;
/* Removes the vertical scrollbar caused by Bulma */
overflow-y: auto;
}

1
static/css/bulma.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,101 @@
#categories {
padding-right: 20px;
}
#categories a {
display: block;
}
.subcategories {
padding-left: 20px;
}
#achievement-template {
display: none;
}
#achievements {
width: 100%;
border-collapse: separate;
border-spacing: 1em 1.5em;
}
.achievement {
width: 100%;
}
.achievement td {
text-align: center !important;
vertical-align: middle;
}
.achievement.earned {
color: #ffffff;
}
.achievement .name {
text-decoration: none;
}
.achievement .name,
.achievement .points,
.achievement .description {
color: #afafaf;
}
.achievement .icon {
filter: grayscale(100%);
opacity: 0.7;
}
.achievement.earned .icon {
filter: none;
opacity: 1;
}
.achievement.earned .name,
.achievement.earned .points,
.achievement.earned .description {
color: #ffffff;
}
.achievement .points {
background-image: url("/img/UI-Achievement-Shields.png");
background-repeat: no-repeat;
width: 64px;
height: 64px;
background-position: -65px -4px;
}
.achievement.earned .points {
background-position: 0px -4px;
}
.achievement .points .value {
line-height: 32px;
position: relative;
top: 10px;
left: -1px;
}
.achievement .earned-date {
display: inline-block;
line-height: 32px;
position: relative;
top: 4px;
left: 50%;
transform: translateX(-50%);
}
.achievement .points.no-points {
background-image: url("/img/UI-Achievement-Shields-NoPoints.png");
}
.achievement .points.no-points .value {
visibility: hidden;
}
#total-points-icon {
position: relative;
margin-left: 2px;
}

View file

@ -79,12 +79,12 @@
margin-bottom: 16px;
}
.talent-tree .columns {
.talent-tree .cols {
display: flex;
gap: 14px;
}
.talent-tree .columns .column {
.talent-tree .cols .col {
text-align: center;
display: flex;
flex-direction: column;

View file

@ -10,7 +10,7 @@
top: 6px;
position: absolute;
background-repeat: no-repeat;
z-index: -2;
z-index: 1;
}
.wowhead-tooltip .whtt-sellprice {

View file

@ -13,7 +13,6 @@
top: 4px;
position: absolute;
background-repeat: no-repeat;
z-index: -1;
}
.iconmedium .border {
@ -50,7 +49,7 @@
top: 6px;
position: absolute;
background-repeat: no-repeat;
z-index: -1;
z-index: 2;
}
.iconlarge .border {
@ -68,8 +67,14 @@
position: absolute;
left: 3px;
top: 3px;
z-index: 3;
}
.iconlarge a:hover {
background-position: 0 0;
}
.iconmedium a,
.iconlarge a {
transition: none;
}

View file

@ -9,3 +9,7 @@
#results td {
text-align: center;
}
#results_processing {
height: 70px;
}