MediaWiki:XPtable.css: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "→** XP Table **: .xptable > div { column-count: 4; column-width: 320px; column-gap: 12px; column-rule: 1px solid #a2a9b1; display: block; padding: 0.2em 0em; } .xptable > div > div { display: inline-block; width: 100%; text-align: center; →cursor: pointer;: } .xptable > .header { border-bottom: 1px solid #a2a9b1; background-color: #eaecf0; } .xptable > .header span { text-align: center; font-stretch: cond...") |
No edit summary |
||
Line 31: | Line 31: | ||
.xptable > .content > div:hover { |
.xptable > .content > div:hover { |
||
background-color: rgba(255,255,255,0.8); |
background-color: rgba(255,255,255,0.8); |
||
} |
|||
.xptable > .content > div.active { |
|||
background-color: rgba(255,255,255,0.6); |
|||
} |
} |
||
Line 45: | Line 49: | ||
.xptable span.total_xp { |
.xptable span.total_xp { |
||
width: 30%; |
width: 30%; |
||
} |
|||
.xptable span.level { |
|||
font-weight: bold; |
|||
} |
|||
.xptable span.level::after { |
|||
content: ":"; |
|||
} |
|||
.xpcalc .controls { |
|||
user-select: none; |
|||
box-sizing: border-box; |
|||
/* background-color: #f8f9fa; |
|||
border: 1px solid #a2a9b1; */ |
|||
padding: 0.5em 0.4em; |
|||
display: flex; |
|||
flex-direction: row; |
|||
align-items: center; |
|||
justify-content: space-between; |
|||
flex-wrap: wrap; |
|||
gap: 12px 20px; |
|||
line-height: normal; |
|||
} |
|||
.xpcalc .controls > .items { |
|||
display: flex; |
|||
flex-direction: row; |
|||
align-items: center; |
|||
justify-content: space-between; |
|||
flex-wrap: wrap; |
|||
gap: 12px 20px; |
|||
} |
|||
.xpcalc .controls > .items .item { |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
justify-content: space-between; |
|||
flex-wrap: wrap; |
|||
gap: 2px 0; |
|||
} |
|||
.xpcalc .controls > div { |
|||
position: relative; |
|||
} |
|||
.xpcalc .controls input { |
|||
width: 40px; |
|||
} |
|||
.xpcalc .controls > .output > .total-xp { |
|||
cursor: help; |
|||
} |
|||
.xpcalc .controls > div.warn::before { |
|||
display: block; |
|||
position: absolute; |
|||
left: 0; |
|||
right: 0; |
|||
top: -20px; |
|||
height: 22px; |
|||
border-radius: 4px 4px 0 0; |
|||
text-align: center; |
|||
background-color: #ffbdd2; |
|||
background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,189,210,1) 30%); |
|||
color: #c52c5d; |
|||
content:"suboptimal"; |
|||
} |
} |
Revision as of 15:10, 23 April 2023
/*** XP Table ***/
.xptable > div {
column-count: 4;
column-width: 320px;
column-gap: 12px;
column-rule: 1px solid #a2a9b1;
display: block;
padding: 0.2em 0em;
}
.xptable > div > div {
display: inline-block;
width: 100%;
text-align: center;
/* cursor: pointer; */
}
.xptable > .header {
border-bottom: 1px solid #a2a9b1;
background-color: #eaecf0;
}
.xptable > .header span {
text-align: center;
font-stretch: condensed;
font-weight: bold;
}
.xptable > .content > div:hover {
background-color: rgba(255,255,255,0.8);
}
.xptable > .content > div.active {
background-color: rgba(255,255,255,0.6);
}
.xptable div span {
display: inline-block;
width: 25%;
}
.xptable span.level,
.xptable span.ap {
width: 20%;
}
.xptable span.xp,
.xptable span.total_xp {
width: 30%;
}
.xptable span.level {
font-weight: bold;
}
.xptable span.level::after {
content: ":";
}
.xpcalc .controls {
user-select: none;
box-sizing: border-box;
/* background-color: #f8f9fa;
border: 1px solid #a2a9b1; */
padding: 0.5em 0.4em;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px 20px;
line-height: normal;
}
.xpcalc .controls > .items {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px 20px;
}
.xpcalc .controls > .items .item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 2px 0;
}
.xpcalc .controls > div {
position: relative;
}
.xpcalc .controls input {
width: 40px;
}
.xpcalc .controls > .output > .total-xp {
cursor: help;
}
.xpcalc .controls > div.warn::before {
display: block;
position: absolute;
left: 0;
right: 0;
top: -20px;
height: 22px;
border-radius: 4px 4px 0 0;
text-align: center;
background-color: #ffbdd2;
background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,189,210,1) 30%);
color: #c52c5d;
content:"suboptimal";
}