-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
141 lines (117 loc) · 2.38 KB
/
style.css
File metadata and controls
141 lines (117 loc) · 2.38 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
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
* {
box-sizing: border-box;
}
html {
background-color: #F6F6F6;
font-size: 16px;
margin-left: calc(100vw - 100%);
margin-right: 0;
}
body {
color: rgb(73, 78, 82);
font-family: Carlito, Calibri, sans-serif;
line-height: 1.5;
}
.msg {
width: 75%;
border-radius: 5px;
padding: 0.8em;
background-color: #E5EBFF;
margin-left: auto; /* centers the div */
margin-right: auto; /* centers the div */
}
.msg.me {
margin-left: 300px;
background-color: #bfd9d7;
}
h1 {
font-size: 2em;
}
a {
color: rgb(52, 105, 160);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
div {
margin-bottom: 2em;
}
.date, .time {
float: right;
}
.time {
clear: right;
}
.sender {
font-weight: bold;
}
.body {
display: block;
margin-left: 3em;
word-wrap: break-word;
}
/* New container for image grid */
.img-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Creates a responsive grid layout */
gap: 10px; /* Adjust the gap between images as needed */
}
/* Adjust .img-container for new layout */
.img-container {
display: block; /* Change from flex to block if using grid layout */
}
/* Add a flex container around images
.img-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px; /* Adjust the gap between images as needed */
} */
/* Style for individual images */
figure {
margin: 0; /* Remove default margin from figures */
width: 100%; /* Make figure take full width of container */
display: block; /* Block display for stacking */
}
/* Style for images */
figure > label > img, video {
max-width: 100%; /* Ensure the image is fully contained within its box */
height: auto; /* Maintain aspect ratio */
}
label > img {
cursor: pointer;
}
.modal {
opacity: 0;
visibility: hidden;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
text-align: left;
background: rgba(0, 0, 0, 0.8);
transition: opacity .25s ease;
z-index: 99;
}
.modal-content {
width: 100vw;
height: 100vh;
}
.modal-photo {
width: 70%;
max-height: 80%;
position: absolute;
left: 50%;
top: 10%;
margin-left: -35%;
object-fit: scale-down;
}
.modal-state {
display: none;
}
.modal-state:checked + .modal {
opacity: 1;
visibility: visible;
}