veto

Simple Sinatra voting website.
git clone git://git.knutsen.co/veto
Log | Files | Refs | README | LICENSE

poll.css (1526B)


body > .container:first-child {
  min-height: calc(100vh - 8em);
}

table {
  width: 100%;
  border-collapse:separate;
  border-spacing: 0 0.5em;
}

td, th {
  border: none;
  padding: 0;
  vertical-align: middle;
}
th:not(:first-child) {
  width: 4em;
}

td:not(:first-child), th:not(:first-child) {
  text-align: center;
}

td:first-child {
  padding: 0 0 0 10px !important;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-left: 5px solid var(--fg);
}

td:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

tr:not(:first-child) {
  border: none;
  background: rgba(var(--fg-rgb), 0.05);
  margin: 0;
  padding: 0;
}

tr td:nth-child(2) {
  background: rgba(var(--fg-rgb), 0.08)
}
tr td:nth-child(3) {
  background: rgba(var(--fg-rgb), 0.10)
}
tr td:nth-child(4) {
  background: rgba(var(--fg-rgb), 0.13)
}
.row {
  display: block;
  align-items: center;
  justify-content: center;
}
@media (min-width:550px) {
  .row {
    display: flex;
  }
}
.row .columns {
  height: 100%;
  overflow: auto;
}

#vote {
  width: calc(100% - 11em);
  float: left;
}
#submit {
  width: 11em;
  padding: 0;
  float: right;
}
.disabled {
  user-select: none !important;
  cursor: default !important;
}
.caster {
  border-color: transparent;
  padding: 5px 10px;
  background: #f5f5f5;
  height: 1.4em;
  line-height: 0.7em;
  margin: 0;
  border-radius: 4px;
}

.caster:active {
  background: #aaa;
}

.chart-area {
  display: flex;
  align-items: center;
  justify-content: center;
}