This repository was archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
134 lines (118 loc) · 2.26 KB
/
style.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
122
123
124
125
126
127
128
*{
margin: 0;
padding: 0;
font-family: sans-serif;
/* font-size: 1.5em; */
}
header{
padding: 150px;
background-image: url('header.png');
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
color: #fff;
text-align: center;
position: relative;
}
.heading_text h1{
text-align: center;
font-size: 54px;
margin-bottom:10px
/* font-weight: 900; */
}
main {
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
main form button{
margin-top:25px ;
}
button {
background: #8bc34a;
color: #fff;
border: none;
font-size: 0.8em;
padding: 15px 15px;
/* margin: 20px; */
border-radius: 5px;
cursor: pointer;
}
input,
span,
label{
font-family: 'Ubuntu', sans-serif;
display: block;
margin: 10px;
padding: 5px;
border: none;
font-size: 22px;
}
input:focus {
outline: 0;
}
input.question{
font-size: 48px;
font-weight: 300;
border-radius: 2px;
margin: 0;
border: none;
width: 80%;
background: rgba(0, 0, 0, 0);
transition: padding-top 0.2s ease, margin-top 0.2s ease;
overflow-x: hidden;
}
input.question + label{
display: block;
position: relative;
white-space: nowrap;
padding: 0;
margin: 0;
width: 10%;
border-top: 1px solid red;
-webkit-transition: width 0.4s ease;
transition: width 0.4s ease;
height: 0px;
}
input.question:focus + label{
width: 80%;
}
input.question:focus,
input.question:valid {
padding-top: 35px;
}
input.question:focus + label > span,
input.question:valid + label > span {
top: -100px;
font-size: 22px;
color: #333;
}
input.question:valid + label {
border-color: green;
}
input.question:invalid{
box-shadow: none;
}
input.question + label > span{
font-weight: 300;
margin: 0;
position: absolute;
color: #8F8F8F;
font-size: 48px;
top: -66px;
left: 0px;
z-index: -1;
-webkit-transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}
input[type="submit"] {
background: #8bc34a;
color: #fff;
border: none;
font-size: 0.8em;
padding: 15px 15px;
/* margin: 20px; */
border-radius: 5px;
cursor: pointer;
}