MyBB Community Forums

Full Version: Popup container
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just added a pure css popup container in my header and hoping for it to run {$teamonline} or {$mysteamstatus}

when the plugins are working perfectly and so is the popup container but nothing shows up when I add it inside the container.

Template:
<li>
	<div class="box">
	<a href="#popup1" class="ease-all" title="8bits Team Online"><i class="fa fa-dribbble"></i>
	</div>
	<div id="popup1" class="overlay">
	
	<div class="popup">
		<a class="close" href="#">&times;</a>
		<div class="content">
			{$dvz_shoutbox}
		</div>
	</div>
</div></a>
</li>

CSS:

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 30%;
  position: relative;
  transition: all 5s ease-in-out;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #252525;
}
.popup .close:hover {
  color: #5bc5bbc;
}
.popup .content {
  max-height: 30%;
  overflow: auto;
}

@media screen and (max-width: 700px){
  .box{
    width: 70%;
  }
  .popup{
    width: 70%;
  }
}
if you cant figure it out anhave another idea about adding it in the popup header, please do drop it below.
Thankyou. Smile