forked from sanyathisside/Hacktoberfest2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CSS Styles for robotfriend
131 lines (103 loc) · 1.84 KB
/
CSS Styles for robotfriend
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
130
131
h1 {
text-align: center;
text-shadow: 2px 2px 1px grey;
border-bottom: 2px solid grey;
color: white;
font-family: 'Roboto', sans-serif;
}
.robots {
display:flex;
justify-content: center;
flex-wrap: wrap;
}
.head,
.left_arm,
.torso,
.right_arm,
.left_leg,
.right_leg {
background-color: #00ff00;
}
.head {
width: 200px;
margin: 0 auto;
height: 150px;
border-radius: 200px 200px 0 0;
margin-bottom: 10px;
}
.eyes {
display: inline-flex;
}
.head:hover {
width: 300px;
transition: 1s ease-in-out;
}
.upper_body {
width: 300px;
height: 150px;
display: flex;
justify-content: flex-end;
}
.left_arm ,.right_arm {
width: 40px;
height: 125px;
border-radius: 100px;
}
.left_arm:hover {
transform: rotate(100deg);
margin-right: 10px;
transition:1s ease-in-out;
}
.right_arm {
margin-left: 10px;
}
.torso {
width: 200px;
height: 200px;
border-radius: 0 0 50px 50px;
}
.lower_body{
width: 200px;
height: 200px;
/*This is another useful property. Hmm what do you think it does?*/
margin: 0 auto;
display: -webkit-box;
}
.left_leg ,.right_leg {
margin-left: 35px;
width: 40px;
height: 120px;
border-radius: 0 0px 100px 100px;
}
.right_leg:hover{
margin-left: 50px;
transform: rotate(-20deg);
}
.left_leg:hover {
-webkit-transform: rotate(20deg);
-moz-transform: rotate(20deg);
-o-transform: rotate(20deg);
-ms-transform: rotate(20deg);
transform: rotate(20deg);
}
.left_eye, .right_eye {
width: 20px;
height: 20px;
border-radius: 15px;
background-color: white;
}
.left_eye {
/* These properties are new and you haven't encountered
in this course. Check out CSS Tricks to see what it does! */
position: relative;
top: 100px;
left: 40px;
}
.right_eye {
position: relative;
top: 100px;
left: 120px;
}
body{
background-color: pink;
}