MediaWiki:Common.css

From Elections Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.election-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

.election-grid-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5em;
    margin: 0.5em 0;
}

.candidate-box {
    border: 1px solid #ccc;
    background: #fff;
}

.candidate-header {
    height: 3px;
    width: 100%;
}

.candidate-content {
    padding: 0.25em;
    text-align: center;
    font-size: 0.9em;
}

.candidate-name {
    margin: 0.25em 0;
}

.candidate-name-winner {
    font-weight: bold;
    margin: 0.25em 0;
}

.candidate-results {
    color: #666;
}