Difference between revisions of "Template:Wageningen UR/DeviceCSS"

 
Line 1: Line 1:
 
<html>
 
<html>
 +
 
<style>
 
<style>
  
p {  
+
/* Style the Image Used to Trigger the Modal */
 
+
#PosLuxR, #NegLuxR, #NegLuxRExtAHLdeg, #NegLuxRLuxRdeg, #PosLuxRExtAHLdeg, #PosLuxRLuxRdeg {
 +
    border-radius: 5px;
 +
    cursor: pointer;
 +
    transition: 0.3s;
 
}
 
}
  
.Overview {
+
#PosLuxR:hover {opacity: 0.7;}
    display:table;
+
#NegLuxR:hover {opacity: 0.7;}
}
+
  
.Overview-Top {
+
#NegLuxRExtAHLdeg:hover {opacity: 0.7;}
    text-align:center !important;
+
#NegLuxRLuxRdeg:hover {opacity: 0.7;}
    width:100%;
+
#PosLuxRExtAHLdeg:hover {opacity: 0.7;}
    margin-top:0rem;
+
#PosLuxRLuxRdeg:hover {opacity: 0.7;}
    margin-bottom:2rem;
+
    padding-left:2rem;
+
    padding-right:2rem;
+
}
+
  
  
.Overview-Left-Arrow {
+
/* The Modal (background) */
     padding-top:1.75rem;
+
.modal {
     width:15%;
+
    display: none; /* Hidden by default */
     float:left;
+
    position: fixed; /* Stay in place */
     margin:0;
+
    z-index: 90; /* Sit on top */
     padding-top:2.5rem;
+
     padding-top: 50px; /* Location of the box */
     padding-left:1rem;
+
    left: 0;
 +
    top: 0;
 +
     width: 100%; /* Full width */
 +
     height: 100%; /* Full height */
 +
     overflow: auto; /* Enable scroll if needed */
 +
     background-color: rgb(0,0,0); /* Fallback color */
 +
     background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
 
}
 
}
  
.Overview-Left-Arrow a {
+
/* Modal Content (Image) */
     position:relative;
+
.modal-content {
     width:100%;
+
     margin: auto;
     height:100%;
+
     display: block;
     display:block;
+
     width: 90%;
 +
     max-width: 1366px;
 
}
 
}
  
.Overview-Left-Arrow img {
+
/* Caption of Modal Image (Image Text) - Same Width as the Image */
     width:100%;
+
.caption {
     margin:0;  
+
    margin: auto;
 +
    display: block;
 +
     width: 90%;
 +
     max-width: 1366px;
 +
    text-align: center;
 +
    color: #ccc;
 +
    padding: 10px 0;
 +
    height: 150px;
 
}
 
}
  
.Overview-Left-Arrow a img:hover {
+
/* Add Animation - Zoom in the Modal */
     background-color:#66bc47;
+
.modal-content {
 +
    -webkit-animation-name: zoom;
 +
     -webkit-animation-duration: 0.6s;
 +
    animation-name: zoom;
 +
    animation-duration: 0.6s;
 
}
 
}
  
 
+
@-webkit-keyframes zoom {
.Overview-Center {
+
    from {-webkit-transform:scale(0)}
width:70%;
+
    to {-webkit-transform:scale(1)}
float:left;
+
margin:0;
+
 
}
 
}
  
Overview-Center h1 {
+
@keyframes zoom {
     margin-top:0rem;
+
     from {transform:scale(0)}
     }
+
     to {transform:scale(1)}
 
+
 
+
 
+
.Overview-Right-Arrow {
+
    padding-top:1.75rem;
+
    width:15%;
+
    float:right; 
+
    margin:0;
+
    padding-top:2.5rem;
+
    padding-left:1rem;
+
 
}
 
}
  
.Overview-Right-Arrow a {
+
/* The Close Button */
     position:relative;
+
.close {
     width:100%;
+
     position: absolute;
     height:100%;
+
     top: 15px;
     display:block;
+
     right: 35px;
 +
     color: #f1f1f1;
 +
    font-size: 40px;
 +
    font-weight: bold;
 +
    transition: 0.3s;
 
}
 
}
  
 
+
.close:hover,
.Overview-Right-Arrow img {
+
.close:focus {
     width:100%;
+
     color: #bbb;
     margin:0rem;
+
    text-decoration: none;
 +
     cursor: pointer;
 
}
 
}
  
.Overview-Right-Arrow a img:hover {
+
/* 100% Image Width on Smaller Screens */
     background-color:#66bc47;
+
@media only screen and (max-width: 700px){
}
+
     .modal-content {
 +
        width: 100%;
 +
    }
 +
}  
  
.Overviewbox-Left {
+
</style>
    width:50%;
+
margin-top: 4px;
+
margin-bottom: 4px;
+
font-size: 1.0rem;
+
    float: left;   
+
}
+
  
.Overviewbox-Right {
+
<script>
    width:50%;
+
margin-top: 4px;
+
margin-bottom: 4px;
+
font-size: 1.0rem;
+
    float: right; 
+
  
}
+
$(function() {
 +
    $('#PosLuxR').on('click', function() {
 +
        $('#PosLuxR-Modal').toggle();
 +
    });
 +
    $('#PosLuxR-Modal').on('click', function() {
 +
        $('#PosLuxR-Modal').toggle();
 +
    });
  
.Overviewbox {
+
    $('#NegLuxR').on('click', function() {
    width:100%;
+
        $('#NegLuxR-Modal').toggle();
margin: 0 auto;
+
    });
     text-align: center;
+
     $('#NegLuxR-Modal').on('click', function() {
    padding:2%;
+
        $('#NegLuxR-Modal').toggle();
}
+
    });
  
.overview-figure {
 
    width:50%;
 
    margin:auto;
 
}
 
  
.Overviewbox:hover {
+
    $('#NegLuxRExtAHLdeg').on('click', function() {
    -moz-transform: scale(1.05);
+
        $('#NegLuxRExtAHLdeg-Modal').toggle();
     -webkit-transform: scale(1.05);
+
     });
     -o-transform: scale(1.05);
+
     $('#NegLuxRExtAHLdeg-Modal').on('click', function() {
    transform: scale(1.05);  
+
        $('#NegLuxRExtAHLdeg-Modal').toggle();
}
+
    });
  
 +
    $('#NegLuxRLuxRdeg').on('click', function() {
 +
        $('#NegLuxRLuxRdeg-Modal').toggle();
 +
    });
 +
    $('#NegLuxRLuxRdeg-Modal').on('click', function() {
 +
        $('#NegLuxRLuxRdeg-Modal').toggle();
 +
    });
  
 +
    $('#PosLuxRExtAHLdeg').on('click', function() {
 +
        $('#PosLuxRExtAHLdeg-Modal').toggle();
 +
    });
 +
    $('#PosLuxRExtAHLdeg-Modal').on('click', function() {
 +
        $('#PosLuxRExtAHLdeg-Modal').toggle();
 +
    });
  
 +
    $('#PosLuxRLuxRdeg').on('click', function() {
 +
        $('#PosLuxRLuxRdeg-Modal').toggle();
 +
    });
 +
    $('#PosLuxRLuxRdeg-Modal').on('click', function() {
 +
        $('#PosLuxRLuxRdeg-Modal').toggle();
 +
    });
  
/*Mobile devices*/    
+
    
    @media screen and (max-width: 860px) {
+
});
    .Overview-Top {
+
      margin-top:0;
+
      margin-bottom:0;
+
      padding-left:0;
+
      padding-right:0;
+
  }
+
  
  .Overview-Desc h1 {
+
</script>
      font-size:20px;
+
  }
+
 
+
  .Overview-Left-Arrow img {
+
      padding-left:4px;
+
  }   
+
  
 
  .Overview-Right-Arrow img {
 
      padding-right:4px;
 
  }
 
 
}
 
 
</style>
 
 
</html>
 
</html>

Latest revision as of 22:42, 1 November 2017