aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime/top-airing/trending.module.css
blob: cd1a672877188e153ad93a74ffb7b30ce3b74f33 (plain) (blame)
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
.TrendingText h1 {
	margin: 0px 0px 0.5rem 0.5rem;
	text-align: center;
	color: transparent;
	background: linear-gradient(90deg,
			var(--neon-green) 40%,
			var(--light-green) 60%,
			var(--neon-yellow) 80%,
			var(--soft-purple) 100%);
	background-size: 60% 50%;
	background-clip: text;
}

.trending {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-gap: 0.5rem;
	align-items: center;
	margin-left: 0.5rem;
}

.TrendingContainer:hover .trendingEntries {
	opacity: 0.5;
}

.TrendingContainer:hover .trendingEntries:hover {
	opacity: 1;
	transform: scale(1.02);
}

.trending::-webkit-scrollbar {
	height: 0px;
}

.trendingEntries {
	transition: transform 400ms ease;
	background-color: #1f1f1fbb;
	padding: 0.5rem;
	border-radius: 0.4rem;
	transition: opacity 400ms ease, transform 400ms ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.trendingEntries p {
	text-align: center;
	width: auto;
	max-width: 160px;
	margin: 0.5rem 0 0 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.trendingEntries img {
	border-radius: 0.4rem;
	box-shadow: 0 0 10px 5px rgba(18, 18, 18, 0.863);
}

@media screen and (max-width: 768px) {
	.TrendingText p {
		text-align: start;
		font-size: 26px;
		margin-bottom: 1rem;
	}

	.trending {
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		margin-top: -8px;
	}

	.trendingEntries img {
		width: auto;
	}
}