Skip to content

Commit e7d1970

Browse files
committed
fix: day 84
1 parent ec7bf57 commit e7d1970

File tree

1 file changed

+14
-23
lines changed

1 file changed

+14
-23
lines changed

084-fluid image lightbox/style.css

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -84,24 +84,6 @@ body {
8484
transform: translate(-50%, -50%) scale(1);
8585
}
8686

87-
.modal button {
88-
background: rgba(30, 30, 30, 0.7);
89-
border: 2px solid #d29744;
90-
color: #d29744;
91-
border-radius: 50%;
92-
font-size: 1.6rem;
93-
width: 48px;
94-
height: 48px;
95-
cursor: pointer;
96-
position: absolute;
97-
top: 50%;
98-
display: grid;
99-
place-items: center;
100-
transform: translateY(-50%);
101-
transition: background 0.2s, color 0.2s, border-color 0.2s;
102-
z-index: 1;
103-
}
104-
10587
/* Improve Mobile Support */
10688
.modal p {
10789
position: absolute;
@@ -116,16 +98,25 @@ body {
11698
font-size: 1.8rem;
11799
padding: 0.75em 1em;
118100
text-align: center;
119-
z-index: 2;
101+
z-index: 1;
120102
}
121103

122104
.modal button {
123-
top: 5%;
124-
transform: translateY(0);
105+
background: rgba(30, 30, 30, 0.7);
106+
border: 2px solid #d29744;
107+
color: #d29744;
108+
border-radius: 50%;
109+
font-size: 1.1rem;
125110
width: 40px;
126111
height: 40px;
127-
font-size: 1.1rem;
128-
z-index: 3;
112+
cursor: pointer;
113+
position: absolute;
114+
top: 5%;
115+
display: grid;
116+
place-items: center;
117+
transform: translateY(0);
118+
transition: background 0.2s, color 0.2s, border-color 0.2s;
119+
z-index: 2;
129120
}
130121

131122
.modal button.prev {

0 commit comments

Comments
 (0)