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

编辑“用户:Salt_lovely/沙盒/投票箱/style.css” // 维基盐编辑器
(样式拆分)
 
(编辑“用户:Salt_lovely/沙盒/投票箱/style.css” // 维基盐编辑器)
/* 不展示的部分 */
.salt-vote-container .salt-vote-color,
.salt-vote-container .salt-vote-descdescribe {
display: none;
}
}
.salt-vote-container .salt-vote-options li {
display: flexblock;
margin: 02px 0 2px0 0;
border-left: 4px solid var(--vote-color, #ab8749);
}
.salt-vote-container .salt-vote-options li.has-desc {
cursor: pointer;
}
.salt-vote-container .salt-vote-options li,
.salt-vote-container .salt-vote-options .salt-vote-option-content,
.salt-vote-container .salt-vote-options .salt-vote-desc {
position: relative;
width: 100%;
}
/* 选项主体部分 */
.salt-vote-container .salt-vote-options .salt-vote-option-content {
display: flex;
justify-content: flex-start;
align-items: center;
margin: 0 0 2px 0;
}
.salt-vote-container .salt-vote-options li::before {
padding: 0.5rem 1rem;
text-align: center;
border-left: 4px solid var(--vote-color, #ab8749);
font-size: 1rem;
}
.salt-vote-container .salt-vote-options li .salt-vote-voter a:hover::before {
opacity: 0.2;
}
/* 选项描述样式 */
.salt-vote-container .salt-vote-options .salt-vote-desc {
height: 0;
padding: 0.5rem 1rem;
margin: -1rem 0 0 0;
opacity: 0;
pointer-events: none;
overflow: hidden;
transition: all 0.2s ease;
box-sizing: border-box;
}
.salt-vote-container .salt-vote-options .salt-vote-desc.show {
height: var(--height, auto);
max-height: 90wh;
margin: 0 0 0 0;
opacity: 1;
pointer-events: auto;
}