v1.5.9 Added some css to modal

This commit is contained in:
2021-04-19 08:12:50 +02:00
parent 68d2b65814
commit b024d6e821
6 changed files with 45 additions and 9 deletions
+20 -2
View File
@@ -3,7 +3,6 @@
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
@@ -23,9 +22,24 @@
border: 2px solid #888;
width: 700px;
min-width: 400px;
top: -50px;
height: 80%;
border-radius: 6px;
overflow: auto;
padding-bottom: 120px;
overflow-y: scroll;
}
.modal-content::-webkit-scrollbar {
width: 12px;
}
.modal-content::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
/* The Close Button */
@@ -41,3 +55,7 @@
text-decoration: none;
cursor: pointer;
}
.modal-content > center > img {
width: 100%;
}
@@ -89,7 +89,7 @@
url: '{{route('events.preview')}}',
data: {'preview':id},
success:function (data) {
modalNews.style.display = "block";
modalNews.style.display = "flex";
var l = JSON.parse(data);
console.log(l);
$("#name").html(l.name);
@@ -111,7 +111,7 @@
url: '{{route('guides.preview')}}',
data: {'preview':id},
success:function (data) {
modalNews.style.display = "block";
modalNews.style.display = "flex";
var l = JSON.parse(data);
console.log(l);
$("#name").html(l.name);
@@ -82,7 +82,7 @@
url: '{{route('menuplans.preview')}}',
data: {'preview':id},
success:function (data) {
modalNews.style.display = "block";
modalNews.style.display = "flex";
var l = JSON.parse(data);
$("#week").html("Menuplan for uge " + l.week);
$("#monday").html(l.monday);
@@ -79,7 +79,7 @@
url: '{{route('news.preview')}}',
data: {'preview':id},
success:function (data) {
modalNews.style.display = "block";
modalNews.style.display = "flex";
var l = JSON.parse(data);
$("#titleEvent").html(l.subname);
$("#dateEvent").html(l.news_expiration_date);