.wrapper-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
overflow-y: auto;
}
.modal-dialog {
display: block;
background-color: white;
max-width: 300px;
width: 100%;
margin: auto;
overflow-y: auto;
}
zoom-in
и zoom-out
: https://developer.mozilla.org/en-US/docs/Web/CSS/c... if (window.NodeList && !NodeList.prototype.forEach) {
NodeList.prototype.forEach = function (callback, thisArg) {
thisArg = thisArg || window;
for (var i = 0; i < this.length; i++) {
callback.call(thisArg, this[i], i, this);
}
};
}
@media
и уметь трансформировать отображение элементов. Ничего сложно тут нет.<nav>
<button>==</button>
<ul>
<li><a href="#">menu item 1</a></li>
<li><a href="#">menu item 2</a></li>
<li><a href="#">menu item 3</a></li>
<li><a href="#">menu item 4</a></li>
</ul>
</nav>
nav {
display: flex;
background: #f5f5f5;
border-bottom: 1px solid #e2e2e2;
button {
padding: 10px;
border: 0;
}
ul {
list-style: none;
margin-left: auto;
display: flex;
li a {
padding: 10px;
display: inline-block;
&:hover {
background: #e2e2e2;
}
}
}
}
@media screen and (min-width: 768px) {
nav {
button {
display: none;
}
}
}
@media screen and (max-width: 767.98px) {
nav {
position: relative;
button:not(:hover) {
~ ul {
display: none;
}
}
ul {
position: absolute;
top: 100%;
left: 0;
flex-direction: column;
background: #f5f5f5;
border: 1px solid #e2e2e2;
}
}
}
server {
listen 80;
listen [::]:80; #Added IPv6 here too
# for certbot
location ^~ /.well-known/acme-challenge/ {
root /etc/nginx/ssl/coins;
}
location / {
return 301 https://my.cryptonot.io$request_uri;
}
}
<input type="range" min="0" max="11" />
element = document.querySelector('.child');
element.onclick = function(event)
{
event.stopPropagation();
};