-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.module.scss
75 lines (68 loc) · 1.33 KB
/
index.module.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
.containers {
padding: 50px 0 100px;
display: flex;
flex-direction: column;
align-items: center;
gap: 25px;
.container {
padding: 15px min(50px, 7%);
border: solid 1.5px #333; /*線の種類・太さ・色*/
width: 95%;
max-width: 800px;
border-radius: 10px; /*角の丸み*/
h1 {
font-size: $font-size-lg;
}
.tags {
display: flex;
justify-content: start;
p {
padding: 0.5px 15px;
border: solid 2px #333; /*線の種類・太さ・色*/
border-radius: 10px; /*角の丸み*/
}
}
p,
img,
details {
margin: 5px;
}
.score_box {
display: flex;
p {
padding-top: 5px;
padding-left: 25px;
}
}
.kuso_box {
position: relative;
width: 225px;
height: 35px;
img {
position: absolute;
background-color: #ffff;
//$score: calc(var(--score) * 20);
&:nth-of-type(1) {
clip-path: polygon(0% 0%, var(--score) 0%, var(--score) 100%, 0% 100%);
}
&:nth-of-type(2) {
opacity: 0.1;
}
pointer-events: none;
}
}
}
}
@media screen and (max-width: 650px) {
.score_box {
p{
padding-top: 0px;
}
}
.kuso_box {
width: 150px;
img {
width: 150px;
}
}
}