-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.module.scss
95 lines (84 loc) · 1.59 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.containers {
padding: 50px 0 100px;
display: flex;
flex-direction: column;
align-items: center;
gap: 25px;
.container {
padding: min(15px, 2.5%) min(50px, 5%);
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 min(15px, 3%);
background-color: #e3e3e3;
border-radius: 6px;
}
}
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 (max-width: 540px) {
.containers {
.container {
h1 {
font-size: $font-size-md;
}
p {
font-size: $font-size-sm;
}
summary {
font-size: $font-size-sm;
}
span {
font-size: $font-size-sm;
}
.score_box {
p {
padding-top: 0px;
}
}
.kuso_box {
width: 150px;
img {
width: 150px;
}
}
}
}
}