MediaWiki:Common.css: Difference between revisions

From Elections Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
.election-grid {
.election-grid {
  display: grid;
    display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
    gap: 20px;
  padding: 10px;
    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 {
    font-weight: bold;
    margin: 0.25em 0;
}
 
.candidate-results {
    color: #666;
}
}

Revision as of 00:02, 27 January 2025

/* 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 {
    font-weight: bold;
    margin: 0.25em 0;
}

.candidate-results {
    color: #666;
}