-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
100 lines (83 loc) · 1.66 KB
/
style.scss
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
$dark: #333333;
$secondary-dark: #555555;
$light: #f3f3f3;
$secondary-light: #e9e9e9;
$accent: #c5283d;
body {
background-color: $secondary-light;
font-family: Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
grid-template-rows: repeat(auto-fit, minmax(160px, 1fr));
gap: 2px;
}
.item-container,
.banner-container {
background-color: $light;
}
.item-container {
aspect-ratio: 1;
position: relative;
overflow: hidden;
cursor: pointer;
.index {
position: absolute;
top: .5em;
right: .5em;
font-size: 1rem;
opacity: .3;
}
.item {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
gap: .5em;
transition: transform .7s;
}
&:hover {
.item {
transform: scale(1.5);
transition: transform .3s;
}
}
color: $dark;
transition: color .7s;
&.clicked {
color: $accent;
transition: color .3s;
}
}
.name {
margin: 0;
font-size: 3rem;
}
.pinyin {
margin: 0;
font-size: 1.5rem;
opacity: .6;
}
.banner-container {
grid-column: 1 / span 2;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.banner {
font-size: 3rem;
}
.banner .m {
color: $accent;
}