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

149 lines
2.5 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;
}
.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 input[type="radio"],
.option-item input[type="checkbox"] {
margin-right: 10px;
}
.option-item label {
cursor: pointer;
flex: 1;
}
.text-answer {
width: 100%;
min-height: 100px;
padding: 10px;
margin-top: 10px;
border: 1px solid #ddd;
border-radius: 2px;
resize: vertical;
}
.submit-button {
margin-top: 20px;
padding: 8px 24px;
background: #CF9A30;
color: #fff;
border: none;
border-radius: 2px;
cursor: pointer;
font-size: 16px;
}
.submit-button:hover {
background: #c78501;
}
.error-message {
color: #ff4d4f;
margin-top: 5px;
font-size: 14px;
display: none;
}
.question-list{
width: 100%;
}