question/css/analyzeQuestion.css
2025-01-04 23:13:11 +08:00

147 lines
2.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #C3C3C3;
}
header {
background-color: #CF9A30;
color: #EEE8E4;
text-align: start;
padding: 20px;
display: flex;
}
main {
padding: 30px 0;
display: flex;
align-items: center;
justify-content: center;
}
.box {
width: 90%;
padding: 14px;
background-color: #EBEBEB;
box-shadow: 1px 2px 2px rgba(0,0,0,0.4);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.quesen{
width: 32px;
height: 32px;
font-size: 28px;
font-weight: bold;
text-align: center;
line-height: 24px;
color: #CF9A30;
border-radius: 50px;
padding-top: 5px;
background-color: #EBEBEB;
position: absolute;
font-style: normal;
top: 14px;
left: 60px;
}
.title{
margin-left: 80px;
font-size: 24px;
line-height: 20px;
font-weight: bold;
margin-right: 60px;
}
.nav-bar a {
line-height: 20px;
font-size: 20px;
color: #EEE8E4;
border: 2px solid #c78501;
padding: 2px;
text-decoration: none;
}
.question-title {
width: 100%;
padding: 20px;
text-align: center;
font-size: 24px;
font-weight: bold;
background: #CEEACA;
margin-bottom: 20px;
border-radius: 2px;
}
.question-info {
width: 100%;
padding: 10px;
margin-bottom: 20px;
display: flex;
justify-content: space-around;
background: #fff;
border-radius: 2px;
}
.question-item {
width: 100%;
margin: 10px 0;
padding: 20px;
background: #fff;
border-radius: 2px;
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.question-content {
flex: 1;
padding-right: 20px;
}
.question-item-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
}
.option-item {
margin: 10px 0;
padding: 5px 0;
display: flex;
align-items: center;
}
.option-item span {
margin-right: 10px;
}
.chart-container {
width: 300px;
height: 300px;
margin-left: 20px;
}
.back-button {
margin-top: 20px;
padding: 8px 24px;
background: #CF9A30;
color: #fff;
border: none;
border-radius: 2px;
cursor: pointer;
font-size: 16px;
}
.back-button:hover {
background: #c78501;
}
.total-responses {
margin-top: 10px;
font-size: 16px;
color: #666;
}
.question-list{
width: 100%;
}