Template:ItemGrid/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
.item-grid width: max-content; |
m formatting |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
.item-grid { |
.item-grid { |
||
display: grid; |
display: grid; |
||
grid-template-columns: repeat( |
grid-template-columns: repeat(auto-fit, 150px); |
||
gap: 10px; |
gap: 10px; |
||
width: auto; |
|||
width: max-content; |
|||
} |
} |
||
| Line 11: | Line 10: | ||
flex-direction: column; |
flex-direction: column; |
||
justify-content: flex-end; |
justify-content: flex-end; |
||
| ⚫ | |||
border-radius: 10px; |
border-radius: 10px; |
||
padding: 0px |
padding: 0px; |
||
min-width: 150px; |
min-width: 150px; |
||
height: auto; |
height: auto; |
||
| Line 25: | Line 23: | ||
position: relative; |
position: relative; |
||
overflow: hidden; |
overflow: hidden; |
||
| ⚫ | |||
} |
} |
||
.item-image .curve-Common { |
.item-image .curve-Common { |
||
content: ""; |
content: ""; |
||
position: absolute; |
position: absolute; |
||
bottom: - |
bottom: -21px; |
||
left: - |
left: -21px; |
||
width: 50px; /* controls arc width */ |
width: 50px; /* controls arc width */ |
||
height: 50px; /* controls arc height */ |
height: 50px; /* controls arc height */ |
||
border-bottom-left-radius: |
border-bottom-left-radius: 40px; |
||
border-left: 20px solid # |
border-left: 20px solid #717471cc; |
||
border-bottom: 20px solid # |
border-bottom: 20px solid #717471cc; |
||
box-sizing: content-box; |
box-sizing: content-box; |
||
} |
} |
||
| Line 43: | Line 40: | ||
content: ""; |
content: ""; |
||
position: absolute; |
position: absolute; |
||
bottom: - |
bottom: -21px; |
||
left: - |
left: -21px; |
||
width: 50px; /* controls arc width */ |
width: 50px; /* controls arc width */ |
||
height: 50px; /* controls arc height */ |
height: 50px; /* controls arc height */ |
||
border-bottom-left-radius: |
border-bottom-left-radius: 45px; |
||
border-left: 20px solid # |
border-left: 20px solid #41eb6acc; |
||
border-bottom: 20px solid # |
border-bottom: 20px solid #41eb6acc; |
||
box-sizing: content-box; |
box-sizing: content-box; |
||
} |
} |
||
| Line 56: | Line 53: | ||
content: ""; |
content: ""; |
||
position: absolute; |
position: absolute; |
||
bottom: - |
bottom: -21px; |
||
left: - |
left: -21px; |
||
width: 50px; /* controls arc width */ |
width: 50px; /* controls arc width */ |
||
height: 50px; /* controls arc height */ |
height: 50px; /* controls arc height */ |
||
border-bottom-left-radius: 50px; |
border-bottom-left-radius: 50px; |
||
border-left: 20px solid # |
border-left: 20px solid #1ecbfccc; |
||
border-bottom: 20px solid # |
border-bottom: 20px solid #1ecbfccc; |
||
box-sizing: content-box; |
box-sizing: content-box; |
||
} |
} |
||
| Line 69: | Line 66: | ||
content: ""; |
content: ""; |
||
position: absolute; |
position: absolute; |
||
bottom: - |
bottom: -21px; |
||
left: - |
left: -21px; |
||
width: 50px; /* controls arc width */ |
width: 50px; /* controls arc width */ |
||
height: 50px; /* controls arc height */ |
height: 50px; /* controls arc height */ |
||
border-bottom-left-radius: |
border-bottom-left-radius: 55px; |
||
border-left: 20px solid # |
border-left: 20px solid #d8299bcc; |
||
border-bottom: 20px solid # |
border-bottom: 20px solid #d8299bcc; |
||
box-sizing: content-box; |
box-sizing: content-box; |
||
} |
} |
||
| Line 82: | Line 79: | ||
content: ""; |
content: ""; |
||
position: absolute; |
position: absolute; |
||
bottom: - |
bottom: -21px; |
||
left: - |
left: -21px; |
||
width: 50px; /* controls |
width: 50px; /* controls curve width */ |
||
height: 50px; /* controls |
height: 50px; /* controls curve height */ |
||
border-bottom-left-radius: |
border-bottom-left-radius: 60px; |
||
border-left: 20px solid # |
border-left: 20px solid #fbc700cc; |
||
border-bottom: 20px solid # |
border-bottom: 20px solid #fbc700cc; |
||
box-sizing: content-box; |
box-sizing: content-box; |
||
} |
} |
||
| Line 95: | Line 92: | ||
display: flex; |
display: flex; |
||
justify-content: space-between; |
justify-content: space-between; |
||
padding: 0 2px; |
|||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
| Line 140: | Line 140: | ||
.item-cell:hover .item-name { |
.item-cell:hover .item-name { |
||
display: block; |
display: block; |
||
} |
|||
.icon_timereset{ |
|||
position: absolute; |
|||
right: 6px; |
|||
top: 0%; |
|||
} |
} |
||
Latest revision as of 11:13, 10 November 2025
.item-grid {
display: grid;
grid-template-columns: repeat(auto-fit, 150px);
gap: 10px;
width: auto;
}
.item-cell {
display: flex;
flex-direction: column;
justify-content: flex-end;
border-radius: 10px;
padding: 0px;
min-width: 150px;
height: auto;
position: relative; /* important for tooltip positioning */
overflow: visible; /* allow tooltip to extend outside */
}
.item-image {
text-align: center;
margin-top: 4px;
position: relative;
overflow: hidden;
}
.item-image .curve-Common {
content: "";
position: absolute;
bottom: -21px;
left: -21px;
width: 50px; /* controls arc width */
height: 50px; /* controls arc height */
border-bottom-left-radius: 40px;
border-left: 20px solid #717471cc;
border-bottom: 20px solid #717471cc;
box-sizing: content-box;
}
.item-image .curve-Uncommon {
content: "";
position: absolute;
bottom: -21px;
left: -21px;
width: 50px; /* controls arc width */
height: 50px; /* controls arc height */
border-bottom-left-radius: 45px;
border-left: 20px solid #41eb6acc;
border-bottom: 20px solid #41eb6acc;
box-sizing: content-box;
}
.item-image .curve-Rare {
content: "";
position: absolute;
bottom: -21px;
left: -21px;
width: 50px; /* controls arc width */
height: 50px; /* controls arc height */
border-bottom-left-radius: 50px;
border-left: 20px solid #1ecbfccc;
border-bottom: 20px solid #1ecbfccc;
box-sizing: content-box;
}
.item-image .curve-Epic {
content: "";
position: absolute;
bottom: -21px;
left: -21px;
width: 50px; /* controls arc width */
height: 50px; /* controls arc height */
border-bottom-left-radius: 55px;
border-left: 20px solid #d8299bcc;
border-bottom: 20px solid #d8299bcc;
box-sizing: content-box;
}
.item-image .curve-Legendary {
content: "";
position: absolute;
bottom: -21px;
left: -21px;
width: 50px; /* controls curve width */
height: 50px; /* controls curve height */
border-bottom-left-radius: 60px;
border-left: 20px solid #fbc700cc;
border-bottom: 20px solid #fbc700cc;
box-sizing: content-box;
}
.data-table {
display: flex;
justify-content: space-between;
padding: 0 2px;
background: #000a;
border-radius: 0 0 10px 10px;
}
.data-table .category-icon {
color: #ccc;
font-weight: 500;
}
.data-table .item-price {
color: #ccc;
font-weight: 500;
}
.item-name {
display: none;
position: absolute;
color: #ddd;
font-weight: bold;
margin-top: 4px;
word-break: break-word;
bottom: 110%; /* position above the item */
left: 50%;
transform: translateX(-50%);
background: rgba(20, 20, 20, 0.95);
padding: 6px 10px;
border-radius: 6px;
font-size: 0.9em;
white-space: nowrap;
z-index: 10;
pointer-events: none;
box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
.item-name::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 6px;
border-style: solid;
border-color: rgba(20,20,20,0.95) transparent transparent transparent;
}
.item-cell:hover .item-name {
display: block;
}
.icon_timereset{
position: absolute;
right: 6px;
top: 0%;
}