Template:CharacterAffectionTable/affection.css: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
m (Fix mobile view breaking) Tags: Mobile edit Mobile web edit |
||
(15 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
.character-affectiontable { |
.character-affectiontable { |
||
width: 100%; |
width: 100%; |
||
min-width: 575px; |
/* min-width: 575px; */ |
||
max-width: |
max-width: 900px; |
||
} |
} |
||
Line 10: | Line 10: | ||
} |
} |
||
.character-affectiontable .summary > td { |
.character-affectiontable .summary > td { |
||
padding-left: |
padding-left: 56px; |
||
position: relative; |
|||
} |
} |
||
.character-affectiontable .affection-data { |
.character-affectiontable .affection-data { |
||
column-count: |
column-count: 5; |
||
column-gap: |
column-gap: 12px; |
||
column-rule: 1px solid #a2a9b1; |
column-rule: 1px solid #a2a9b1; |
||
display: block; /* Firefox compatibility */ |
|||
border: none; /* Firefox compatibility */ |
|||
} |
} |
||
.character-affectiontable div { |
.character-affectiontable .affection-data div:first-child::before { |
||
display: inline-block; |
|||
width: 100%; |
|||
content: ''; |
|||
⚫ | |||
@media (max-width: 982px) { |
|||
.character-affectiontable .affection-data div:first-child::before { |
|||
display: none; |
|||
} |
|||
.character-affectiontable .affection-data { |
|||
column-count: 3; |
|||
} |
|||
} |
|||
@media (max-width: 768px) { |
|||
.character-affectiontable .affection-data { |
|||
column-count: 2; |
|||
column-gap: 8px; |
|||
} |
|||
} |
|||
.character-affectiontable .affection-level > input { |
|||
width: 38px; |
|||
font-size: 17px; |
|||
border: none; |
|||
background-color: rgba(255,255,255,1); |
|||
border-radius: 3px; |
|||
} |
|||
.character-affectiontable .affection-data div { |
|||
display: inline-block; |
display: inline-block; |
||
width: 100%; |
width: 100%; |
||
text-align: center; |
text-align: center; |
||
cursor: pointer; |
|||
} |
} |
||
.character-affectiontable div > span { |
.character-affectiontable .affection-data div > span { |
||
display: inline-block; |
display: inline-block; |
||
min-width: 20px; |
min-width: 20px; |
||
color: #2d4c72; |
|||
text-align: right; |
text-align: right; |
||
font-weight: bold; |
font-weight: bold; |
||
} |
} |
||
.character-affectiontable .affection-data div > span.affection-rewards { |
|||
float: right; |
|||
/* width: 20px; */ |
|||
margin-left: -20px; |
|||
} |
|||
.character-affectiontable .affection-data div > span.affection-rewards img { |
|||
vertical-align: text-top; |
|||
} |
|||
.character-affectiontable .affection-data div:hover { |
|||
background-color: rgba(255, 255, 255, 0.8); |
|||
} |
|||
.affection-alt { |
.affection-alt { |
||
width: 100%; |
width: 100%; |
||
min-width: 575px; |
min-width: 575px; |
||
max-width: |
max-width: 900px; |
||
position: relative; |
|||
} |
} |
||
.affection-alt |
.affection-alt .affection-portrait { |
||
⚫ | |||
⚫ | |||
float:left; |
float:left; |
||
position: absolute; |
position: absolute; |
||
margin: |
margin: 2px; |
||
z-index: 1; |
|||
} |
} |
||
.affection-alt .affection-portrait { |
.affection-alt .affection-portrait img { |
||
border-radius: 50%; |
border-radius: 50%; |
||
height: 48px; |
height: 48px; |
||
object-fit: cover; |
object-fit: cover; |
||
} |
|||
⚫ | |||
position: absolute; |
|||
top: 10px; |
|||
left: 9px; |
|||
} |
|||
.affection-alt .affection-icon { |
|||
top: 30px; |
|||
left: 28px; |
|||
z-index: 2; |
|||
} |
|||
.affection-alt .affection-icon img { |
|||
width: 22px; |
|||
height: auto; |
|||
} |
|||
.character-affectiontable td.memorylobby-data > div { |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: center; |
|||
column-gap: 12px; |
|||
margin: 6px; |
|||
} |
} |
Latest revision as of 06:47, 19 November 2023
/* CharacterAffectionTable */
.character-affectiontable {
width: 100%;
/* min-width: 575px; */
max-width: 900px;
}
.character-affectiontable .summary {
height: 52px;
}
.character-affectiontable .summary > td {
padding-left: 56px;
position: relative;
}
.character-affectiontable .affection-data {
column-count: 5;
column-gap: 12px;
column-rule: 1px solid #a2a9b1;
display: block; /* Firefox compatibility */
border: none; /* Firefox compatibility */
}
.character-affectiontable .affection-data div:first-child::before {
display: inline-block;
width: 100%;
content: '';
}
@media (max-width: 982px) {
.character-affectiontable .affection-data div:first-child::before {
display: none;
}
.character-affectiontable .affection-data {
column-count: 3;
}
}
@media (max-width: 768px) {
.character-affectiontable .affection-data {
column-count: 2;
column-gap: 8px;
}
}
.character-affectiontable .affection-level > input {
width: 38px;
font-size: 17px;
border: none;
background-color: rgba(255,255,255,1);
border-radius: 3px;
}
.character-affectiontable .affection-data div {
display: inline-block;
width: 100%;
text-align: center;
cursor: pointer;
}
.character-affectiontable .affection-data div > span {
display: inline-block;
min-width: 20px;
text-align: right;
font-weight: bold;
}
.character-affectiontable .affection-data div > span.affection-rewards {
float: right;
/* width: 20px; */
margin-left: -20px;
}
.character-affectiontable .affection-data div > span.affection-rewards img {
vertical-align: text-top;
}
.character-affectiontable .affection-data div:hover {
background-color: rgba(255, 255, 255, 0.8);
}
.affection-alt {
width: 100%;
min-width: 575px;
max-width: 900px;
position: relative;
}
.affection-alt .affection-portrait {
float:left;
position: absolute;
margin: 2px;
z-index: 1;
}
.affection-alt .affection-portrait img {
border-radius: 50%;
height: 48px;
object-fit: cover;
}
.affection-icon {
position: absolute;
top: 10px;
left: 9px;
}
.affection-alt .affection-icon {
top: 30px;
left: 28px;
z-index: 2;
}
.affection-alt .affection-icon img {
width: 22px;
height: auto;
}
.character-affectiontable td.memorylobby-data > div {
display: flex;
flex-direction: row;
justify-content: center;
column-gap: 12px;
margin: 6px;
}