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

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(12 intermediate revisions by the same user not shown)
Line 137: Line 137:


.hover-table td span {
.hover-table td span {
    white-space: nowrap;
     display: inline-block;
     display: inline-block;
     max-width: 100%;
     max-width: 100%;
    text-align: center;
     font-size: 15px; /* or scale down just a bit */
     font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 
@media (max-width: 768px) {
  .hover-table td span {
    font-size: 12px;
    white-space: normal; /* allow wrapping on very small screens */
    line-height: 1.2;
  }
 
  .hover-table img {
    width: 85px;
    height: 85px;
  }
 
  .hover-table td {
    width: 48%; /* a bit more space per icon to reduce overflow */
  }
}
}