-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleDisplay.css
executable file
·67 lines (59 loc) · 1.36 KB
/
ModuleDisplay.css
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
/* ModuleDisplay.css */
.module-display {
margin-top: 20px;
width: 80%; /* Same width as other containers */
}
.user-module-grid-container {
background-color: #333; /* Dark-gray background */
display: flex;
justify-content: center;
align-items: center;
width: 100%; /* Ensure full width */
padding: 20px 0; /* Added padding for spacing */
}
.user-module-grid {
display: grid;
gap: 10px;
grid-template-columns: repeat(6, 1fr);
grid-template-rows: repeat(2, auto);
width: 100%; /* Ensure full width */
justify-content: center;
}
.module-item {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
overflow: hidden;
}
.module-item img {
width: 100%;
height: auto;
border-radius: 8px;
}
.module-item p.module-item-name,
.module-item p.module-item-drain {
position: absolute;
left: 50%;
transform: translateX(-50%);
color: white;
padding: 10px;
border-radius: 5px;
text-align: center;
z-index: 1;
opacity: 1;
width: 100%;
box-sizing: border-box;
font-family: pretendard, sans-serif;
font-style: normal;
font-weight: 300;
}
.module-item p.module-item-name {
top: 55%;
font-size: 24px; /* Adjusted font size */
}
.module-item p.module-item-drain {
left: 55%;
z-index: 2;
font-size: 30px; /* Adjusted font size */
}