-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsize-guide-modal.html
97 lines (78 loc) · 1.84 KB
/
size-guide-modal.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
.open-modal {
text-transform: uppercase;
cursor: pointer;
text-decoration: underline;
}
.modalss {
max-height: 100vh;
position: relative;
width: 1000px;
max-width: 1000px;
display: none;
padding: 50px;
border-radius: 5px;
z-index: 10;
margin-top: 0;
margin: 0px auto;
border: 1px solid #ccc;
}
.close-modal {
color: #000;
text-decoration: none;
float: right;
position: absolute;
top: 10px;
right: 20px
}
@media (max-width : 37.500rem) {
.modalss {
top: 0;
left: 0;
width: 100%;
height: 100%;
margin: 0;
padding: 1.250rem
}
.close-modal{
display: block;
position: relative;
padding: 5px 10px 20px 0
}
.modal-content{
clear: both;
padding-right: 1.25rem
}
}
</style>
<div class="containerss">
<div class="show-modal open-modal"> SIZE GUIDE</div>
<div class="modalss">
<a class="close-modal" href="#">X</a>
<div class='modal-content'>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Incidunt sit quas aut labore nam quis qui eos quasi soluta sunt nihil voluptate expedita. Aliquam aliquid excepturi ex ab fuga ipsa?</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
function openLightBox(){
var modal = $('.modalss');
$('.show-modal').on('click', function() {
modal.fadeIn();
});
$('.close-modal').on('click', function() {
modal.fadeOut();
});
}
openLightBox();
</script>
</body>
</html>