-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask1.css
More file actions
129 lines (125 loc) · 2.51 KB
/
task1.css
File metadata and controls
129 lines (125 loc) · 2.51 KB
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
129
*{
margin: 0;
padding: 0;
font-family: serif ;
transition: .5s;
box-sizing: border-box;
}
.main{
}
nav{
color: green;
position: fixed;
top: 0;
z-index: 10;
width: 100%;
}
h3{
text-align: center;
}
.container{
display: flex;
flex-direction:column;
gap: 20px;
justify-content: center;
align-items: center;
background-image: url(https://media.istockphoto.com/id/517188688/photo/mountain-landscape.jpg?s=1024x1024&w=0&k=20&c=z8_rWaI8x4zApNEEG9DnWlGXyDIXe-OmsAyQ5fGPVV8=);
height: 100vh;
background-repeat: no-repeat;
background-size: cover;
background-position:center ;
background-attachment:fixed ;
}
.container h1{
font-size: 50px;
font-weight: bolder;
color: grey;
}
.container p{
text-align: center;
color: burlywood;
}
.container button{
width: 150px;
padding: 10px;
border-radius: 5px;
background: transparent;
font-weight: bolder;
border: 1px solid red;
}
.container button:hover{
background-color: red;
}
.container button:active{
/* transform: scale(); */
/* transform: scaley(5); */
/* transform: skew(45deg); */
transform: rotate(180deg);
}
/* --------------------- */
/* this is header section */
.sectionContant{
width: 100%;
min-height: 100vh;
position: relative;
background: rgb(209, 184, 184);
overflow: hidden;
margin: 5px;
border-radius: 50px;
}
.red{
width: 350px;
height: 350px;
background: rgba(255, 0, 0, 0.746);
border-radius: 190px;
position: absolute;
top: 50%;
left:50% ;
transform: translate(-50%,-50%);
}
/* -----------------------------------
FORM IS STARTING FORM HERE */
.formSection{
width:100%;
min-height: 100vh;
padding: 50px 10px;
display: flex;
justify-content: center;
align-items: center;
}
.formSection form{
width: 400px;
padding: 30px;
background-color: green;
display: flex;
flex-direction: column;
gap: 15px;
border-radius: 10px;
}
.formSection form h1 {
color: #fff;
}
/* .formSection form input{
padding: 5px;
border-radius: 5px;
border: 0;
outline: 0;
text-align: center;
}. */
.formSection input{
border: 0;
outline: 0;
background: transparent;
border-bottom: 2px solid white;
padding: 5px;
color: white;
}
.formSection form input::placeholder{
color: #fff;
}
.formSection form input[type=submit]{
background-color: #fff;
color: grey;
font-weight: bold;
border-radius: 5px;
}