Skip to content

Commit 25d0155

Browse files
committed
add radiobutton label/input formatting and option font formatting
1 parent 47cc3cc commit 25d0155

File tree

1 file changed

+43
-4
lines changed

1 file changed

+43
-4
lines changed

formapi/css/style.css

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ header h1 {
7171

7272
/************Form Formatting************/
7373
form {
74-
width: 80%;
74+
width: 90%;
7575
margin: 0 auto;
7676
background-color: white;
7777
border-radius: 10px;
@@ -93,13 +93,44 @@ label {
9393
font-size: 4em;
9494
}
9595

96+
/*Format radio container*/
97+
.radioContainer {
98+
display: flex;
99+
align-items: center;
100+
justify-content: center;
101+
margin-top: 15px;
102+
}
103+
104+
/*Format radio labels*/
105+
.radioLabel {
106+
font-family: var(--label-font-family);
107+
font-size: 2em;
108+
margin: 0 10px;
109+
text-transform: capitalize;
110+
}
111+
96112
/*Format form inputs*/
97113

114+
115+
/*Format select*/
116+
select {
117+
margin-top: 15px;
118+
margin-bottom: 15px;
119+
width: 100%;
120+
font-size: 4em;
121+
border-radius: 8px;
122+
border: 2px solid black;
123+
}
124+
125+
/*Format option in select*/
126+
option {
127+
font-size: 20px;
128+
}
98129
/*text inputs*/
99130
input[type="text"]{
100131
margin-top: 15px;
101132
width: 100%;
102-
font-size: 3em;
133+
font-size: 4em;
103134
border-radius: 8px;
104135
border: 2px solid black;
105136
}
@@ -108,7 +139,7 @@ input[type="text"]{
108139
input[type="email"]{
109140
margin-top: 15px;
110141
width: 100%;
111-
font-size: 3em;
142+
font-size: 4em;
112143
border-radius: 8px;
113144
border: 2px solid black;
114145
}
@@ -117,11 +148,19 @@ input[type="email"]{
117148
input[type="tel"]{
118149
margin-top: 15px;
119150
width: 100%;
120-
font-size: 3em;
151+
font-size: 4em;
121152
border-radius: 8px;
122153
border: 2px solid black;
123154
}
124155

156+
/*Format radio input*/
157+
input[type="radio"] {
158+
margin-top: 15px;
159+
margin-bottom: 15px;
160+
width: 100%;
161+
transform: scale(2.3);/*Change scale of input buttons*/
162+
}
163+
125164
/*Textarea inputs*/
126165
textarea {
127166
margin-top: 15px;

0 commit comments

Comments
 (0)