fs-quiz-tool/web/style.css

185 lines
2.7 KiB
CSS
Raw Normal View History

2020-01-12 15:25:31 +01:00
* {
box-sizing: border-box;
}
html, body {
2020-01-15 18:37:54 +01:00
position: relative;
2020-01-12 15:25:31 +01:00
font-family: sans-serif;
font-size: 20px;
2020-01-15 18:37:54 +01:00
width: 100%;
2020-01-15 18:28:08 +01:00
min-height: 100vh;
margin: 0;
padding: 0;
2020-01-12 15:25:31 +01:00
}
header, footer {
2020-01-15 18:37:54 +01:00
padding-top: 30px;
2020-01-12 15:25:31 +01:00
text-align: center;
display: block;
}
footer {
2020-01-15 18:28:08 +01:00
position: absolute;
bottom: 0;
2020-01-15 18:37:54 +01:00
width: 100%;
2020-01-15 18:28:08 +01:00
height: 64px;
padding: 16px 0;
color: #999;
2020-01-12 15:25:31 +01:00
}
main {
display: block;
overflow: auto;
2020-01-12 15:25:31 +01:00
width: 100%;
max-width: 700px;
2020-01-15 19:46:15 +01:00
margin: 42px auto 0;
padding-bottom: 128px; /* Footer height */
2020-01-12 15:25:31 +01:00
text-align: center;
}
2020-01-15 19:00:51 +01:00
.warning {
padding: 8px;
background: #FF6800;
font-weight: bold;
border-radius: 4px;
}
a {
color: inherit;
}
2020-01-12 15:25:31 +01:00
img {
display: block;
2020-01-15 15:26:20 +01:00
margin: 16px auto;
2020-01-12 15:25:31 +01:00
max-width: 90%;
}
.view {
display: none;
text-align: center;
}
form {
text-align: left !important;
}
2021-01-05 23:31:58 +01:00
textarea, input, select {
2020-01-12 15:25:31 +01:00
margin-top: 8px;
border-radius: 3px;
}
2021-01-05 23:31:58 +01:00
input[type="button"], input[type="submit"] {
2020-01-12 15:25:31 +01:00
float: right;
cursor: pointer;
margin: 16px 0 16px 16px;
padding: 12px 16px;
border: none;
background: #C50E1F;
color: #fff;
font-size: 1em;
font-weight: bold;
}
2021-01-05 23:31:58 +01:00
input[type="button"].center, input[type="submit"].center {
2020-01-12 15:25:31 +01:00
float: none;
}
2021-01-05 23:31:58 +01:00
input[type="button"]:disabled, input[type="submit"]:disabled {
2020-01-12 15:25:31 +01:00
cursor: auto;
background: #888 !important;
}
2021-01-06 00:01:06 +01:00
input[type="text"], input[type="number"], textarea, select {
2020-01-12 15:25:31 +01:00
background: #ddd;
margin-bottom: 16px;
padding: .5em;
border: 1px solid #888;
width: 100%;
font-size: 20px;
}
label {
cursor: pointer;
}
input[type="radio"], input[type="checkbox"] {
cursor: pointer;
margin-top: 10px;
float: left;
transform: scale(1.6);
}
input[type="radio"] + p, input[type="checkbox"] + p {
margin: 0 0 0 30px;
padding: 5px;
border-radius: 3px;
}
input[type="radio"]:checked + p, input[type="checkbox"]:checked + p {
background: #ddf;
2020-01-12 15:25:31 +01:00
}
input[type="radio"]:hover + p, input[type="checkbox"]:hover + p {
2020-01-12 15:25:31 +01:00
background: #ddd;
}
#sharing a {
font-size: 16px;
}
2021-01-11 18:50:32 +01:00
#quiz form.sequential .question {
display: none;
}
.question.correct label, .question.incorrect label,
.question.correct input, .question.incorrect input {
pointer-events: none !important;
}
.question.correct h3, .question.correct h4 {
color: #008800;
}
.question.incorrect h3, .question.incorrect h4 {
color: #BB0000;
}
.question input.trueans + p {
color: #008800;
}
.question.incorrect input:checked:not(.trueans) + p {
color: #BB0000;
}
.question input.right {
color: #008800;
border-color: #008800;
}
.question.incorrect input:not(.right) {
color: #BB0000;
border-color: #BB0000;
}
.question.incorrect input[type="text"]:not(.right) + p {
margin-top: 0;
color: #008800;
}
.question .meta {
background: #ddd;
padding: 12px;
border-radius: 4px;
font-size: 16px;
}
.question .meta p {
margin: 0
}
.question .meta h5 {
font-size: 16px;
margin: 16px 0;
}