MediaWiki:Common.css: Difference between revisions

From Elections Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
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;
  justify-content: center;
  align-items: center;
}
}


.election-card {
.election-grid-results {
  background-color: #1C408C;
    display: grid;
  color: white;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: center;
    gap: 0.5em;
  border: 1px solid #1C408C;
    margin: 0.5em 0;
  padding: 10px;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 250px;
}
}


.card-number {
.candidate-box {
  font-size: 2em;
    border: 1px solid #ccc;
  font-weight: bold;
    background: #fff;
  line-height: 1.5;
}
}


.card-divider {
.candidate-header {
  border-top: 2px solid white;
    height: 3px;
  width: 80%;
    width: 100%;
  margin: 10px 0;
}
}


.card-text {
.candidate-content {
  font-size: 1em;
    padding: 0.25em;
  text-transform: uppercase;
    text-align: center;
  line-height: 1.5;
    font-size: 0.9em;
}
 
.candidate-name {
    margin: 0.25em 0;
}
 
.candidate-name-winner {
    font-weight: bold;
    margin: 0.25em 0;
}
 
.candidate-results {
    color: #666;
}
}

Latest revision as of 00:09, 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 {
    margin: 0.25em 0;
}

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

.candidate-results {
    color: #666;
}