-
Notifications
You must be signed in to change notification settings - Fork 11
/
Questionnaire.css
106 lines (83 loc) · 1.53 KB
/
Questionnaire.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#questionnaire {
font-family: Arial, sans-serif;
height: 70%;
border: solid 2px black;
padding: 20px;
}
#welcome {
margin: 10px 0px;
}
#thankYou,
.question {
margin: 10px 0px;
display: none;
}
#thankYou.active,
.question.active {
display: block;
}
/* .previous {
float: left;
}
.next {
float: right;
} */
/* this is an answer with a text area...*/
.freeresponse {
display: flex;
width: 80%;
}
/* select labels inside freesponses */
.freeresponse label {
flex-grow: 1;
text-align: left;
width: auto;
}
.freeresponse textarea,
input[type="text"] {
flex-grow: 1;
}
input#styling[type="radio"] {
display: inline;
}
input[type="radio"] {
display: none;
}
input[type="checkbox"] {
display: none;
}
label {
display: inline !important;
border-radius: 15px;
background-color: rgb(106, 186, 244);
border: solid 2px blue;
padding: 10px;
margin: 5px;
font-family: "Arial", "sans-serif";
font-size: 1.5em;
text-align: center;
/* vertical-align: middle; */
}
label:hover {
background-color: white;
}
/* select all textareas immediately before a label*/
/* label~textarea {} */
/* select all labels immediately after a textarea */
textarea + label {
float: right;
}
/* select all labels immediatle after a checked radio box */
input[type="radio"]:checked + label {
border: solid 2px blue;
background-color: blue;
color: white;
}
input[type="checkbox"]:checked + label {
border: solid 2px blue;
background-color: blue;
color: white;
}
input[type="number"] {
border: 4px solid red;
}