用户:Salt lovely/沙盒/投票箱/style.css:修订间差异

编辑“用户:Salt_lovely/沙盒/投票箱/style.css” // 维基盐编辑器
(编辑“用户:Salt_lovely/沙盒/投票箱/style.css” // 维基盐编辑器)
(编辑“用户:Salt_lovely/沙盒/投票箱/style.css” // 维基盐编辑器)
 
第81行: 第81行:
   width: 100%;
   width: 100%;
}
}
/* 选项主体部分 */
/* 列表本身的背景 */
.salt-vote-container .salt-vote-options .salt-vote-option-content {
.salt-vote-container .salt-vote-options li::before,
  display: flex;
.salt-vote-container .salt-vote-options li .salt-vote-option-count,
  justify-content: flex-start;
.salt-vote-container .salt-vote-options li .salt-vote-option-count::before {
  align-items: center;
}
.salt-vote-container .salt-vote-options li::before {
   content: "";
   content: "";
   position: absolute;
   position: absolute;
第95行: 第92行:
   right: 0;
   right: 0;
   background-color: var(--vote-color, #ab8749);
   background-color: var(--vote-color, #ab8749);
  z-index: -1;
}
.salt-vote-container .salt-vote-options li::before {
   opacity: 0;
   opacity: 0;
  z-index: -1;
}
}
.salt-vote-container .salt-vote-options li:hover::before {
.salt-vote-container .salt-vote-options li:hover::before {
   opacity: 0.1;
   opacity: 0.1;
}
.salt-vote-container .salt-vote-options li .salt-vote-option-count {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  padding-right: 0.5rem;
  background-color: transparent;
  pointer-events: none;
  opacity: 0.5;
}
.salt-vote-container .salt-vote-options li .salt-vote-option-count::before {
  width: var(--vote-percent, 0);
  left: auto;
  opacity: 0.2;
}
/* .salt-vote-container .salt-vote-options li:hover .salt-vote-option-count {
  opacity: 0.1;
} */
/* 选项主体部分 */
.salt-vote-container .salt-vote-options .salt-vote-option-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
}
.salt-vote-container .salt-vote-options li .salt-vote-option {
.salt-vote-container .salt-vote-options li .salt-vote-option {