Newer
Older
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
.contents-widget {
margin: 10px;
.content-items {
grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
grid-gap: 5px;
max-width: none;
width: 100%;
.content-item {
height: 100px;
.content-item-link {
height: 90px;
padding: 5px;
.content-item-img-wrapper {
margin: 5px;
margin-right: 10px;
margin-top: 0;
width: 32px;
}
.content-item-text {
.content-item-title {
font-size: 1.8rem;
margin-bottom: 5px;
}
.content-item-description {
font-size: small;
}
}
}
}
}
}
.content-items {
display: grid;
grid-template-columns: repeat(auto-fit, 270px);
grid-gap: 15px;
list-style: none;
max-width: 1170px;
padding: 0;
.content-item {
background-color: $dark-gray-color-5;
border: solid thin $light-gray-color-40;
height: 130px;
padding-bottom: 10px;
padding-top: 10px;
.content-item-link {
color: unset;
display: flex;
height: 130px;
padding: 10px;
transition: 0.5s;
.content-item-img-wrapper {
margin: 15px;
margin-top: 0;
width: 64px;
}
.content-item-text {
.content-item-title {
color: $base-color;
font-size: 2rem;
}
}
&:hover {
background-color: $white;
color: unset;
.content-item-text {
.content-item-title {
color: $red;
}
}
}
}
}
}
@media (max-width: 820px) {
.content-items {
grid-template-columns: 100%;
}
}