Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ItemGrid/styles.css: Difference between revisions

Template page
Content deleted Content added
Dread (talk | contribs)
Created page with ".item-grid { display: grid; grid-template-columns: repeat(3, 1fr); width: max-content; gap: 10px; } .item-cell { display: flex; flex-direction: column; justify-content: flex-end; background: #0d1117; border-radius: 10px; padding: 0px 2px; 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;..."
 
Dread (talk | contribs)
m formatting
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
.item-grid {
.item-grid {
display: grid;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-columns: repeat(auto-fit, 150px);
width: max-content;
gap: 10px;
gap: 10px;
width: auto;
}
}


Line 10: Line 10:
flex-direction: column;
flex-direction: column;
justify-content: flex-end;
justify-content: flex-end;
background: #0d1117;
border-radius: 10px;
border-radius: 10px;
padding: 0px 2px;
padding: 0px;
min-width: 150px;
min-width: 150px;
height: auto;
height: auto;
Line 24: Line 23:
position: relative;
position: relative;
overflow: hidden;
overflow: hidden;
border-radius: 4px;
}
}
.item-image .curve-Common {
.item-image .curve-Common {
content: "";
content: "";
position: absolute;
position: absolute;
bottom: -20px;
bottom: -21px;
left: -20px;
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: 35px;
border-bottom-left-radius: 40px;
border-left: 20px solid #717471;
border-left: 20px solid #717471cc;
border-bottom: 20px solid #717471;
border-bottom: 20px solid #717471cc;
box-sizing: content-box;
box-sizing: content-box;
}
}
Line 42: Line 40:
content: "";
content: "";
position: absolute;
position: absolute;
bottom: -20px;
bottom: -21px;
left: -20px;
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: 40px;
border-bottom-left-radius: 45px;
border-left: 20px solid #41eb6a;
border-left: 20px solid #41eb6acc;
border-bottom: 20px solid #41eb6a;
border-bottom: 20px solid #41eb6acc;
box-sizing: content-box;
box-sizing: content-box;
}
}
Line 55: Line 53:
content: "";
content: "";
position: absolute;
position: absolute;
bottom: -20px;
bottom: -21px;
left: -20px;
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 #1ecbfc;
border-left: 20px solid #1ecbfccc;
border-bottom: 20px solid #1ecbfc;
border-bottom: 20px solid #1ecbfccc;
box-sizing: content-box;
box-sizing: content-box;
}
}
Line 68: Line 66:
content: "";
content: "";
position: absolute;
position: absolute;
bottom: -20px;
bottom: -21px;
left: -20px;
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: 60px;
border-bottom-left-radius: 55px;
border-left: 20px solid #d8299b;
border-left: 20px solid #d8299bcc;
border-bottom: 20px solid #d8299b;
border-bottom: 20px solid #d8299bcc;
box-sizing: content-box;
box-sizing: content-box;
}
}
Line 81: Line 79:
content: "";
content: "";
position: absolute;
position: absolute;
bottom: -20px;
bottom: -21px;
left: -20px;
left: -21px;
width: 50px; /* controls arc width */
width: 50px; /* controls curve width */
height: 50px; /* controls arc height */
height: 50px; /* controls curve height */
border-bottom-left-radius: 65px;
border-bottom-left-radius: 60px;
border-left: 20px solid #fbc700;
border-left: 20px solid #fbc700cc;
border-bottom: 20px solid #fbc700;
border-bottom: 20px solid #fbc700cc;
box-sizing: content-box;
box-sizing: content-box;
}
}
Line 94: Line 92:
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
padding: 0 2px;
background: #000a;
border-radius: 0 0 10px 10px;
}
}


Line 139: 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%;
}