-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-projects-block.css
74 lines (62 loc) · 1.31 KB
/
custom-projects-block.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
/* Add this CSS to your custom-projects-block.css file */
.projects-block {
width: 100%;
margin: 0;
padding: 0;
}
/* Adjust the width of the main content area */
.site-main {
width: 100%;
}
/* Adjust the width of the page container */
.site {
max-width: none;
}
.wp-block-custom-projects-block-projects.projects-block{
max-width: 1680px;
}
.project-items{
display: grid;
grid-template-columns: repeat(3, auto);
grid-gap: 20px;
}
/* Style the project item */
.project-item {
margin-bottom: 20px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: #fff;
}
/* Style the project title */
.project-item h3 {
font-size: 24px;
margin-bottom: 10px;
}
/* Style the project image */
.project-item img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin-bottom: 10px;
}
/* Style the project details */
.project-item h4 {
font-size: 20px;
margin-bottom: 5px;
}
.project-item p {
font-size: 16px;
color: #666;
margin-bottom: 10px;
}
/* Style the project link */
.project-item a {
color: #0073e6;
text-decoration: none;
font-weight: bold;
}
.project-item a:hover {
text-decoration: underline;
color: red;
}