forked from emainguelag/Project_1_Metaverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page3_news_style.css
96 lines (76 loc) · 1.58 KB
/
page3_news_style.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
section {
margin: 15px;
}
section button {
display: inline-block;
font-size: 1rem;
font-weight: normal;
width: auto;
margin: 0px 5px;
margin-top: 1rem;
padding: 0.5em;
/* border-radius: 2em; */
background-color: var(--bg-color);
color: var(--bright-color);
border: var(--bright-color) 1px solid;
/* box-shadow: 5px 5px 5px var(--light-color); */
}
section button:hover {
background-color: var(--bright-color);
color: var(--light-color);
}
#news-list {
list-style-type: none;
padding-inline-start: 0px;
}
.news-picture {
max-width: 100%;
height: auto;
display: block;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
}
main article {
padding: 10px;
margin: 30px 0px;
}
.hidden {
display: none;
}
.visible {
display: grid;
}
@media screen and (min-width: 600px) and (max-width: 1199px) {
#news-list {
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 30px;
}
}
@media screen and (min-width: 1200px) {
#news-list {
margin: 0px;
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 15px;
}
main article {
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-rows: 1fr 4fr;
margin: 15px;
height: auto;
}
.news-title {
grid-column-start: 1;
grid-column-end: 3;
}
.news-picture {
padding: 10px;
}
.news-description {
padding: 10px 30px 30px 30px;
}
}