-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathmain.css
executable file
Β·233 lines (191 loc) Β· 5.41 KB
/
main.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
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
@import url('https://fonts.googleapis.com/css?family=Dancing+Script:400,700|Liu+Jian+Mao+Cao&display=swap');
body {
background: #f0dcfc;
/* background: url("https://images.unsplash.com/photo-1500964757637-c85e8a162699?ixlib=rb-1.2.1&auto=format&fit=crop&w=1078&q=80"); */
font-family: sans-serif, "Times New Roman";
}
#title {
color: #974dbf;
text-transform: uppercase;
text-align: center;
}
.subtitle {
color: #d07aff;
}
.service-image {
width: 30vw;
height: 20vh;
margin-top: 10px;
border: 1px double black;
float: right;
/* Gradient - 1. Radial 2. Linear
background: linear-gradient()
*/
/* background: linear-gradient(to bottom right, rgb(94, 3, 148), rgba(94, 3, 148, 0)); */
/* background: linear-gradient(-215deg, rgb(94, 3, 148), rgba(94, 3, 148, 0)); */
background: radial-gradient(circle, rgb(94, 3, 148), rgba(94, 3, 148, 0))
/* background: url("./img/005.JPG"); */
/* background-size: cover; */
/* cover - cover whole div
contain- cover the div without compromising the aspect ratio of the image.
*/
/* background-repeat: no-repeat; */
}
/* Fonts unit
pc = 12pt > pt > cm
*/
#about-me-img {
width: 30vw;
border: 2px double black;
padding: 10px;
float: right;
margin-left: 10px;
/* margin: 20px; */
}
.link {
text-decoration: line-through;
float: right;
}
.para-text {
/* Justify strecth font so that each line is of same length */
text-align: justify;
}
/* font weight is depend on the type of font some font suppourt 900 but some can't can some can go even higher */
.italics {
font-style: italic;
font-weight: 800;
}
.form-input {
display: block;
border-radius: 10px;
border: none;
margin-top: 10px;
padding: 10px 20px;
outline: none;
}
.form-textarea {
display: block;
border-radius: 10px;
border: none;
margin-top: 10px;
padding: 10px 20px;
outline: none;
}
.container {
background-color: #fff;
margin: 10px;
height: 300px;
display: flex;
/* flex-direction: column-reverse; */
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
}
/* Flex
Grow - make sure that every element get proportional space
shrink - control the rate of shrinkage of the flex element. 0 means no shrinkage
basis - control the length of the flex elements.
flex: grow shrink basis
align-self - it will override the align-items property
*/
.container-item {
background-color: purple;
color: #fff;
font-size: 20px;
text-align: center;
width: 50px;
line-height: 30px;
margin: 10px;
}
/*
Flex VS Grid
The final goal of both flex and grid is same but the main difference occur on the way of implementation of both
Flex is more focus on the width of the flex element whereas Grid focus on both i.e width and height
*/
.grid-container {
background-color: aliceblue;
margin: 10px;
height: 300px;
display: grid;
grid-template-columns: auto auto auto; /* 3 Columns*/
grid-column-gap: 10px;
grid-template-rows: auto auto; /* 2 Rows*/
/* grid-row-gap: 150px; */
/* Syntax of grid-gap: column row */
/* justify-content: space-around; */
/* align-content: space-evenly; */
}
/* syntax of grid-area: row starting point / column starting point / row end point / column end point */
.grid-item {
color: black;
font-size: 25px;
text-align: center;
width: 70px;
line-height: 40px;
margin: 10px;
}
.form {
display: flex;
flex-direction: column;
padding: 4%;
/* align-items: center; */
margin-top: -4% ;
}
.submit-btn {
margin-top: 10px;
border-radius: 10px;
border: none;
padding: 8px;
background-color: purple;
color: white;
outline: none;
/* yntax transition: property duration "transition type" delay */
transition: background 0.5s ease-in-out;
/* Every browser does not support animation as older CSS version doesnot support it so to avoid that we have two solution
1. Is Fallback support
2. Is use of browser specific prefix
for example, For Chrome and Safari we use -webkit-
For Mozilla Firefox we use -moz-
For Opera we use -o-
*/
-webkit-transition: background 0.5s ease-in-out;
-moz-transition: background 0.5s ease-in-out;
}
.submit-btn:hover {
background-color:white;
color: black;
cursor: pointer;
/* transform: 10px; */
/* transform: translate(-10px, 20px); */
/* transform: scale(2.5); */
/* transform: rotateZ(275deg); */
/* transform: skewY(-45deg); */
transform: matrix(1, 0. 45, 0.45, 2.5, -10, 20);
}
#about-me {
/* animation-name: red-black;
animation-duration: 2s;
animation-timing-function: linear; */
/* Animation Delay can have both positive and negative value */
/* animation-delay: 0s;
animation-iteration-count: 2;
animation-direction: alternate-reverse; */
-moz-animation: red-black 2s linear 0s 2 alternate-reverse;
/* For browser support add prefix
-ms- For microsoft
*/
}
@keyframes red-black {
/* example {background: red;} */
0% {
background: red;
transform: translate(0px, 0px);
}
50% {
background: yellow;
transform: translate(10px, 10px);
}
100% {background: black;
transform: translate(20px, 20px);
}
}