Jump to content

User:DivByZ/common.css

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* User:DivByZ/common.css */
/* Draft: Refreshing my Wikipedia CSS skills */

/* Sidebar-style infobox */
.user-infobox {
  float: right;
  width: 280px;
  margin: 0 0 1em 1em;
  padding: 0.8em;
  background: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  box-shadow: 0 0 0.5em rgba(0,0,0,0.1);
  font-size: 0.9em;
}
.user-infobox h2 {
  margin-top: 0;
  font-size: 1.2em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.2em;
}
.user-infobox dt {
  font-weight: bold;
  margin-top: 0.6em;
}
.user-infobox dd {
  margin: 0 0 0.6em 0.5em;
}

/* Responsive grid for “Quick Facts” */
.user-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1em;
  margin-top: 0.5em;
}
.user-profile-grid dt {
  font-weight: bold;
  margin-bottom: 0.2em;
}
.user-profile-grid dd {
  margin: 0;
  margin-bottom: 0.8em;
}
.user-profile-grid dd:last-child {
  margin-bottom: 0;
}