-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
146 lines (130 loc) · 3.13 KB
/
styles.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/* Body and Container */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: flex-start;
height: 100vh;
background-color: #f4f4f4;
}
.container {
display: flex;
justify-content: center;
align-items: center; /* Vertically center the content */
height: 100vh; /* Make container take full height of the viewport */
gap: 20px;
}
/* Sidebar for past images */
.sidebar {
display: flex;
flex-direction: column;
justify-content: flex-start;
width: 250px;
height: 80vh;
margin: 0 0 0 20px;
background-color: #ebefea;
padding: 15px;
border-radius: 8px;
overflow-y: auto; /* Enables scrolling when content overflows */
box-sizing: border-box; /* Ensure padding is included in the width and height */
flex-direction: column;
outline: 1px solid rgba(0, 128, 0, 0.3);
}
.sidebar h2 {
text-align: center;
font-size: 2rem;
margin-bottom: 10%;
font-weight: bold;
}
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px grey;
border-radius: 5px;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #97e2aa;
border-radius: 10px;
}
.sidebar-images {
display: flex;
flex-direction: column;
gap: 10px;
padding-right: 10px; /* Add margin between the images and scrollbar */
overflow-y: auto;
max-height: 100%; /* Make sure the images do not exceed sidebar height */
}
.sidebar-images img {
width: 100%;
border-radius: 5px;
cursor: pointer;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
margin-bottom: 5%;
box-sizing: border-box; /* Include the border in the image's size */
}
.sidebar-images img:hover {
opacity: 0.8;
}
/* Date label styling */
.date-label {
font-size: 0.9rem;
color: #555;
margin-bottom: 5px;
text-align: center;
}
/* Image label styling */
.image-label {
font-size: 1.2rem;
color: #333;
margin-top: 10px;
font-weight: bold;
text-align: center;
}
/* Main content (buttons and image) */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
}
.button-container {
margin-bottom: 20px;
display: flex;
justify-content: center;
gap: 20px;
}
button {
background-color: #28a745; /* Green background */
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
font-size: 1.3rem;
font-weight: bold;
border-radius: 8px;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #218838; /* Darker green when hovered */
}
/* Main Image */
.main-image {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.main-image img {
max-width: 90%;
max-height: 80vh; /* Make sure the image doesn't overflow */
border-radius: 8px;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}