-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnip05.css
165 lines (141 loc) · 4.05 KB
/
nip05.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/* nip05.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;1,300&display=swap');
.nip05-container {
display: flex;
justify-content: center;
}
/* Style for the image container */
.image-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding-bottom: 60px;
}
/* Style for each image box */
.image-box {
position: relative;
width: 200px;
border: 1px solid #ccc;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
margin: 10px;
transition: transform 0.3s ease;
}
.image-box:hover {
transform: scale(1.05);
}
/* Style for the images */
.image-box img {
width: 100%;
height: auto;
display: block;
}
/* Style for the price */
.price {
position: absolute;
bottom: 10px;
left: 10px;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 5px 10px;
border-radius: 5px;
font-size: 16px;
}
/* Style for the description */
/* Style for the description */
.description {
display: none;
}
.description.active {
display: block;
max-height: 500px; /* Adjust as necessary */
}
/* Blur background when description modal is active */
body.modal-active {
overflow: hidden;
}
.modal-active .image-container {
filter: blur(5px);
pointer-events: none; /* Prevent interactions with blurred background */
}
/* Styles for modals */
.description-modal, #uploadModal, #infoModal, #qrCodeModal {
display: none;
position: fixed;
word-break: keep-all;
overflow-wrap: break-word;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
max-width: 500px;
background-color: rgb(34, 33, 33);
color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000; /* Ensure modal is above everything */
justify-content: center; /* Center modal content */
align-items: center; /* Align content vertically */
}
/* Apply responsive styles to modal content */
.modal-content {
max-width: 100%; /* Ensure content does not exceed modal width */
word-break: break-word; /* Break long words */
overflow-wrap: break-word; /* Break words at appropriate points */
width: 100%;
box-sizing: border-box; /* Include padding and borders in width calculation */
}
.description-modal.active, #uploadModal.active, #infoModal.active, #qrCodeModal.active {
display: flex; /* Use flex to center content */
}
.modal-overlay {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
z-index: 999; /* Below the modal but above the content */
}
.modal-overlay.active {
display: block; /* Show overlay when active */
}
/* Close icon for modal */
.close-icon {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
font-size: 20px;
color: #fff; /* Make sure the close icon is visible */
background: none;
border: none;
font-weight: bold;
z-index: 1001; /* Higher than the modal content */
}
/* Hover effect for close icon */
.close-icon:hover {
color: #f9af02; /* A brighter color on hover */
}
.button-container {
display: flex; /* Use flexbox for centering */
justify-content: center; /* Center the button horizontally */
margin-top: 20px; /* Add space above the button */
}
.contact-button {
display: inline-block; /* Allows width and height to be set */
padding: 7px 8px; /* Adds padding for button-like appearance */
font-size: 20px; /* Increases font size */
color: #b5a1c0; /* Text color */
background-color: hsla(42, 100%, 47%, 0.13); /* Button background color */
text-decoration: none; /* Removes underline from the link */
border-radius: 5px; /* Rounds the corners */
transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}
.contact-button:hover {
background-color: #69427e; /* Changes color on hover */
cursor: pointer; /* Changes cursor to pointer on hover */
}