blob: fc8a6c906086fc06d59a4a16f5ab1b61c5be073f (
plain)
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
|
.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 {
padding: 5px;
grid-template-columns: 42px 135px;
.content-item-img-wrapper {
margin: 0 10px 5px 5px;
width: 32px;
}
.content-item-text {
.content-item-title {
font-size: larger;
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;
padding: 0;
.content-item {
align-items: stretch;
background-color: var(--dark-gray-color-5);
border: solid thin var(--light-gray-color-40);
display: flex;
height: 150px;
justify-content: stretch;
.content-item-link {
color: unset;
display: grid;
flex: 1;
grid-template-columns: 74px auto;
grid-gap: 5px;
padding: 25px 10px 10px;
transition: 0.5s;
.content-item-img-wrapper {
width: 64px;
}
.content-item-text {
.content-item-title {
color: var(--base-color);
font-size: 1.3em;
width: 100%;
max-width: 160px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
&:hover {
background-color: var(--white);
color: unset;
.content-item-link {
.content-item-text {
.content-item-title {
color: var(--red);
}
}
}
}
}
}
@media (max-width: 820px) {
.content-items {
grid-template-columns: 100%;
.content-item {
.content-item-link {
.content-item-text {
.content-item-title {
max-width: 100%;
}
}
}
}
}
}
|