forked from rafaballerini/Formulario
-
Notifications
You must be signed in to change notification settings - Fork 0
/
formulario.css
121 lines (99 loc) · 2 KB
/
formulario.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Sarala:wght@400;700&display=swap');
/* FONTES
font-family: 'Righteous', cursive;
font-family: 'Sarala', sans-serif;
*/
* {
margin: 0;
padding: 0;
}
#titulo {
font-family: 'Sarala', sans-serif;
color: #3566ce;
margin-left: 7%;
}
#subtitulo {
font-family: 'Sarala', sans-serif;
color: #3566ce;
margin-left: 10%;
}
fieldset {
border: 0;
}
body {
background-color: #F0F8FF;
font-family: 'Righteous', cursive;
font-size: 1em;
color: #42669d;
margin-left: 36%;
margin-top: 2%;
justify-content: center;
}
input, select, textarea,button {
border-radius: 5px;
}
.grupo:before, .grupo:after {
display: table;
}
.grupo:after {
clear: both;
}
.campo {
margin-bottom: 1em;
}
.campo label {
margin-bottom: 0.2em;
color: #42669d;
display: block;
}
fieldset.grupo .campo {
float: left;
margin-right: 2em;
}
.campo input[type="text"], .campo input[type="email"], .campo select, .campo textarea {
padding: 0.2em;
border: 1px solid #42669d;
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
display: block;
}
.campo textarea {
margin-bottom: 2em;
}
.campo input[type="radio"] {
padding: 0.2em;
margin-right: 1%;
}
.campo select option {
padding-right: 1em;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
background: #e0eaf8;
}
#checkbox {
display: inline-block;
}
#checkbox input[type="checkbox"] {
margin-top: 3%;
}
.botao {
font-size: 1.2em;
background: #42669d;
border: 0;
margin-bottom: 1em;
color: #FFFFFF;
padding: 0.2em 0.6em;
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
position: sticky;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
}
.botao:hover {
background: #bbcbff;
box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.2);
text-shadow: none;
}
.botao, select{
cursor: pointer;
}