forked from kristinallarsen/gallery-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
111 lines (95 loc) · 2.16 KB
/
styles.css
File metadata and controls
111 lines (95 loc) · 2.16 KB
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
101
102
103
104
105
106
107
108
109
110
111
body {
font-family: Arial, sans-serif;
margin: 0;
height: 100vh;
display: flex;
}
.container {
width: 100%;
display: flex;
}
.left-panel {
width: 40%; /* Left panel occupies 40% */
display: flex;
flex-direction: column;
}
.header {
background-color: white; /* Ensure background color for fixed header */
padding: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add some shadow for better separation */
z-index: 10;
flex-shrink: 0; /* Ensure header doesn't shrink */
}
.header h1 {
margin: 0;
font-size: 24px;
}
.header input,
.header button {
margin-top: 10px;
}
.header input {
width: calc(100% - 20px); /* Increase input width */
padding: 8px;
box-sizing: border-box;
}
#gallery {
flex: 1;
overflow-y: auto; /* Scrollable gallery */
padding: 10px;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.card {
border: 1px solid #ddd;
padding: 10px;
text-align: left;
max-width: 220px;
position: relative;
font-size: small; /* Smaller font size */
}
.card p {
margin: 5px 0; /* Closer together lines */
}
.card img {
max-width: 200px;
height: auto;
transition: transform 0.2s;
cursor: pointer;
}
.card img:hover {
transform: scale(1.05);
}
.delete-btn {
position: absolute;
top: 5px;
right: 5px;
background: lightgrey;
color: white;
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
cursor: pointer;
font-size: 16px;
opacity: 0; /* Make the button initially transparent */
transition: background 0.3s, opacity 0.3s; /* Add transition for hover effects */
}
.card:hover .delete-btn {
opacity: 1; /* Show the delete button when card is hovered */
}
.delete-btn:hover {
background: grey;
}
#viewer {
flex-shrink: 0;
width: 60%; /* Right panel occupies 60% */
height: 100vh; /* Occupy full height of the window */
margin-left: 0; /* Remove left margin */
}
body {
overflow: hidden; /* Prevent body scrolling */
}