-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote
More file actions
53 lines (49 loc) · 1.49 KB
/
note
File metadata and controls
53 lines (49 loc) · 1.49 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
تو این آموزش با موارد زیادی از
css
آشنا شدم که تاحالا کار نکرده بودم و باید بیشتر باهاشون کار کنم
ایمپورت کردن فونت از گوگل
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');
آدرسش اینه
https://fonts.google.com/
---------------------------------------
این یه جورایی تعریف متغییر تو برنامه نویسی هست
:root {
--primary-color: #057aed;
--secondary-color: #1c3fa8;
--dark-color: #002240;
--light-color: #f4f4f3;
--success-color: #5cb85c;
--error-color: #d9534f;
}
برای استفاده هم
.navbar {
background-color: var(--primary-color);
color: #fff;
height: 70px;
}
---------------------------------------
display: grid
این خیلی باحال بود
.cli .grid {
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
}
و این
.features-main .grid > *:nth-child(2){
grid-column: 1 / span 2;
}
هم طرز انتخاب کردنش هم این
span
که یه جورایی مثل همون
colspan, rowspan
توی جدولا میمونه
------------------------------------------------
این موارد رو هم باید بیشتر بررسی کنم
.navbar .flex {
flex-direction: column;
}
-------------------------------------------------
اینم باحال بود
.features-head img, .features-sub-head img, .docs-head img{
justify-self: center;
}