Template:ItemGrid/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
removed background gradient from here. The module handles that property now. |
VertopolkaLF (talk | contribs) m fixed styles |
||
| Line 11: | Line 11: | ||
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 23: | Line 23: | ||
position: relative; |
position: relative; |
||
overflow: hidden; |
overflow: hidden; |
||
| ⚫ | |||
} |
} |
||
.item-image .curve-Common { |
.item-image .curve-Common { |
||
| Line 93: | Line 92: | ||
display: flex; |
display: flex; |
||
justify-content: space-between; |
justify-content: space-between; |
||
padding: 0 2px; |
|||
background: #000a; |
|||
| ⚫ | |||
} |
} |
||
| Line 138: | Line 140: | ||
.item-cell:hover .item-name { |
.item-cell:hover .item-name { |
||
display: block; |
display: block; |
||
} |
|||
.Icon_TimeReset{ |
|||
position: absolute; |
|||
right: 6px; |
|||
top: 0%; |
|||
} |
} |
||
Revision as of 04:09, 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 arc width */
height: 50px; /* controls arc 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%;
}