This repository was archived by the owner on Jan 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
67 lines (64 loc) · 1.24 KB
/
styles.css
File metadata and controls
67 lines (64 loc) · 1.24 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
body
{
margin: 0;
overflow: hidden; /* hide body */
}
.main /* main page div */
{
height: 100vh; /* Means the height of this element is equal to 100% of the viewport height */
width: 100vw;
display: flex; /* To center the element along the cross axis */
}
aside /* sidebar */
{
float: left;
padding: 10px; /* distance between uploaded images */
overflow-x: hidden; /* add a scroll bar */
}
aside .thumb
{
position: relative;
width: 200px;
height: 200px;
margin: 0 10px 10px 10px;
overflow: hidden;
}
aside .thumb img
{
position: absolute; /* element displayed absolutely positioned, while other elements are displayed absolutely no positioned */
display: block; /* show */
height: 100%;
}
aside .overlay
{
position: absolute;
width: 200px;
height: 200px;
opacity: 0;
z-index: 2;
}
#big-photo /* big-photo - large image loaded on click */
{
width: 100%;
height: 100%;
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
}
#big-photo img
{
max-width: 100%;
max-height: 100%;
overflow: hidden;
}
#big-photo .description
{
top: 0;
left: 0;
color: black;
background-color: white;
position: absolute;
padding: 1rem 1rem 0 2rem;
}