Repository navigation
Expand file tree
/
Copy pathLesson 3.html
More file actions
250 lines (208 loc) · 6.05 KB
/
Copy pathLesson 3.html
File metadata and controls
250 lines (208 loc) · 6.05 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<!--Lesson - 3. Hovers, Transistions, Shadows-->
<style>
.subcribe-button{ /*button is basically css selector = which element we're targeting*/
background-color : rgb(198, 0, 0); /*background-color is the css property, and red is css value. rgb means how
much amount of red, how much amount of blue and how much amount of green.*/
color : white; /*Attribute used to set the font color*/
border : none; /*for giving the border*/
height: 30px; /*To set the height we have to measure it in px i.e pixel*/
width : 105px;
border-radius: 2px; /*Used to curve the button*/
cursor: pointer; /*Whenever to tell that it is clickable*/
margin-right : 8px; /*Used to make gap between the buttons*/
transition: opacity 0.2s /*it basically makes dely in the opacity. Always put the transistion property in the common css style means in the button style.*/
}
.subcribe-button:hover /*. to target the class. The styles whenever we hover over the button
Hover is known as pseudo class. It basically add extra style.*/
{
/*background-color: green;*/
opacity: 0.8; /*opacity means the quality of transparcy, as its meaning tells us the lvl of fade to the button which is in between 0 and 1.*/
}
.subcribe-button:active /*When we hover on button it turns out green
but when we click(activates the button) for that purpose we use active \
pseudo class */
{
/*background-color:blue;*/
opacity: 0.5;
}
.join-button{
background-color: white;
border-color: rgb(0, 132, 255);
border-style: solid;
border-width: 1px;
color: rgb(0, 132, 255);
height: 30px;
width: 62px;
border-radius: 2px;
cursor: pointer;
transition: background-color 0.15s,
color 0.15s;
}
.join-button:hover{
background-color: rgb(41, 118, 211);
color: white;
}
.join-button:active{
opacity: 0.8;
}
.tweet-button{
background-color: rgb(0, 132, 255);
border: none;
color: white;
height: 30px;
width: 74px;
border-radius: 100px;
font-weight: bold;
font-size: 15px;
cursor: pointer;
margin-left: 8px;
transition: box-shadow 0.15s;
}
.tweet-button:hover/*when we hover on the button only at that time we will see the shadow.*/
{
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);/*shadow has 4 values, 1. horizontal position of the shadow.
2. Vertical position of the shadow, 3. blur, 4. Color of the shadow. Here we have used the "rgba" which
has 4 values inside it 1st 3 for rgb and last value i.e a is the opacity or the transparency*/
}
.tweet-button:active{
opacity: 0.8;
}
.request-button{
background-color: black;
color: white;
height: 30px;
width: 100px;
border: none;
margin-left: 8px;
cursor:pointer;
}
.request-button:hover{
opacity: 0.8;
}
.request-button:active{
opacity: 1;
}
.add-button{
background-color: rgb(255, 229, 61);
border: none;
border-radius: 60px;
height: 30px;
width: 150px;
margin-left: 8px;
cursor: pointer;
}
.add-button:hover{
background-color: rgb(215, 194, 0);
}
.add-button:active{
opacity: 0.8;
}
.GitHub-button{
background-color: rgb(46, 164, 79);
border: none;
font-weight: bold;
height: 30px;
width: 70px;
border-radius: 5px;
color: white;
margin-left: 8px;
cursor: pointer;
}
.GitHub-button:hover{
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6)
}
.getStarted-button{
background-color: rgb(121, 82, 179);
color: white;
font-weight: bold;
height: 35px;
width: 100px;
border-radius: 2px;
border: none;
margin-top: 8px;
border-radius: 4px;
cursor:pointer;
transition: 0.1s;
}
.getStarted-button:hover{
opacity: 0.6;
}
.getStarted-button:active{
opacity: 0.8;
}
.download-button{
background-color: white;
color: rgb(108, 117, 125);
height: 35px;
width: 100px;
border-radius: 4px;
font-weight: bold;
cursor:pointer;
}
.download-button:hover{
background-color: rgb(108, 117, 125);
color: white;
border: none;
}
.linkedin-button{
background-color: rgb(10, 102, 194);
color: white;
height: 35px;
width: 200px;
margin-top: 8px;
margin-left: 8px;
border:none;
border-radius: 20px;
font-weight: bold;
cursor:pointer;
transition: 0.2s;
}
.linkedin-button:hover{
background-color: rgb(7, 85, 162);
}
.save-button{
background-color: white;
color:rgb(10, 102, 194);
border-radius: 20px;
border-style: solid;
height: 35px;
width: 70px;
border-color: rgb(10, 102, 194);
font-weight: bold;
cursor: pointer;
}
.save-button:hover{
background-color: rgb(226, 240, 254);
color: rgb(10, 102, 194);
}
</style>
<button class = "subcribe-button"> <!--Class attributes basically lets us label HTML elements-->
SUBSCRIBE
</button>
<button class = "join-button">
JOIN
</button>
<button class = "tweet-button">
Tweet
</button>
<button class = "request-button">
Request now
</button>
<button class = "add-button">
Add to Cart
</button>
<button class = "GitHub-button">
Sign up
</button>
<button class = "getStarted-button">
Get Started
</button>
<button class = "download-button">
Download
</button>
<button class = "linkedin-button">
Apply on company website
</button>
<button class = "save-button">
Save
</button>