Template:Item/style.css: Difference between revisions

From Rebornia Wiki
(Created page with ".itembox { width: 50px; height: 50px; background-color: #ddd; border-radius: 5px; position: relative; } .itembox .item-count { position: absolute; bottom: 0; right: 0; background-color: rgba(0, 0, 0, 0.5); color: #fff; padding: 5px; }")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:


   position: relative;
   position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}
}


Line 14: Line 19:
   background-color: rgba(0, 0, 0, 0.5);
   background-color: rgba(0, 0, 0, 0.5);
   color: #fff;
   color: #fff;
   padding: 5px;
   padding: 3px;
  line-height: 1;
}
 
.itembox .item-count:empty {
  display: none;
}
 
.itembox .item-count > p {
  padding: 0;
  margin: 0;
}
}

Latest revision as of 02:26, 6 May 2024

.itembox {
  width: 50px;
  height: 50px;
  background-color: #ddd;
  border-radius: 5px;

  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.itembox .item-count {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 3px;
  line-height: 1;
}

.itembox .item-count:empty {
  display: none;
}

.itembox .item-count > p {
  padding: 0;
  margin: 0;
}