Skip to content

Instantly share code, notes, and snippets.

@MOgorodnik
Created August 28, 2018 08:29
Show Gist options
  • Save MOgorodnik/a4bdf4142d2fab8f62c60ad508e55485 to your computer and use it in GitHub Desktop.
Save MOgorodnik/a4bdf4142d2fab8f62c60ad508e55485 to your computer and use it in GitHub Desktop.
Step#3 // source http://jsbin.com/qufuxakosa
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Step#3</title>
<style id="jsbin-css">
*,*:before,*:after{
box-sizing: border-box;
}
.hidden{
display: none !important;
}
.block{
padding: 20px;
margin-bottom: 30px;
background: repeating-linear-gradient(-60deg,transparent, transparent 60px, yellowgreen 60px, yellowgreen 61px);
font: 14px/1.2 Arial;
}
.article{
max-width: 80%;
margin: auto;
background: #fff;
padding: 5px;
border: 1px solid #000;
border-radius: 6px;
position: relative;
}
.article:before,
.article:after{
content: '';
position: absolute;
z-index: 20;
top: -12px;
bottom: -12px;
left: -12px;
right: -12px;
border: 2px solid #000;
border-radius: 6px;
}
.article:after{
background: green;
z-index: -1;
opacity: 0.5;
}
.article .h1{
font-weight: normal;font-size: 22px;
margin: -5px -5px 0;
padding: 10px;
position: relative;
background: gold;
border-radius: 6px 6px 0 0;
}
.article .h1:before{
position: absolute;
top: 100%;
content: '';
width: 0px;
border: 10px solid;
border-color: gold transparent transparent transparent;
}
/*
tik-taks
*/
.game{
border-collapse: collapse;
position: relative;
}
.game td{
border: 1px solid #000;
padding: 10px;
}
.game .circle{
display: block;
width: 30px;height: 30px;
background: #11f;
border-radius: 50%;
}
.game tr:hover td{background: #ccc;}
.game tr:hover td:hover{background: #999;}
.game tr:hover td:hover:after{
content: '';
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
width: 51px;
margin-left: -10px;
background: rgba(255,0,0,0.2);
}
/* concert */
.concert{
text-align: center; margin: 20px; position: absolute;
}
.concert-item{
display: inline-block;
position: relative;
width: 25%; margin: 0 10px;
border-radius: 50%;
}
.concert img{
display: block; width: 100%;
border-radius: 50%;
border: 3px solid #aaa;
}
.concert .ico{
position: absolute;
border-radius: 50%;
width: 36px;height: 36px;
background: #777;
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 20px;
}
.concert .ico:hover{background-color: #ccc;}
.concert .ico-mail{
bottom: -18px; left: 50%;
margin-left: -20px;
background-image: url(https://png.icons8.com/material-rounded/100/ffffff/new-post.png);
}
.concert .ico-fb{
top:50%; margin-top: -20px; left: -18px;
background-image: url(https://png.icons8.com/material/100/ffffff/facebook-f.png);
}
.concert .ico-tw{
top: 34px; left: -8px;
background-image: url(https://png.icons8.com/metro/100/ffffff/twitter.png);
}
.concert .ico-vk{
left: 18px; top: 0;
background-image: url(https://png.icons8.com/small/100/ffffff/vk-com.png);
}
#pin{
position: absolute;
background: #fff;
width: 50%;padding: 10px;
top: 50%;left: 50%;
transform: translate(-50%, -50%);
display: none;
}
#pin:target{display: block;}
#pin a{
float: right;text-transform: uppercase;
padding: 5px;background: gold;
}
</style>
</head>
<body>
<div class="block ahidden">
<div class="article">
<h1 class="h1">Lorem ipsum.</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing.</p>
</div>
</div>
<table class="game ahidden">
<tr>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
</tr>
<tr>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
</tr>
<tr>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
</tr>
<tr>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
</tr>
<tr>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
<td><span class="circle"></span></td>
</tr>
</table>
<div class="concert фhidden" id='concert'>
<div class="concert-item">
<a href="#pin">
<img src="https://lh5.googleusercontent.com/-6lwPocvwclM/AAAAAAAAAAI/AAAAAAAABCQ/qbUB3EC0J5U/il/photo.jpg" alt="">
</a>
<span class="ico ico-mail"></span>
<span class="ico ico-fb"></span>
<span class="ico ico-tw"></span>
<span class="ico ico-vk"></span>
</div>
<div class="concert-item">
<a href="#pin">
<img src="https://cdn6.aptoide.com/imgs/1/f/5/1f5cb2e7bc4e924866b344aab133f2a1_icon.png?w=256" alt="">
</a>
<span class="ico ico-mail"></span>
<span class="ico ico-fb hidden"></span>
<span class="ico ico-tw hidden"></span>
<span class="ico ico-vk"></span>
</div>
<div class="concert-item">
<a href="#pin">
<img src="https://lh5.googleusercontent.com/-6lwPocvwclM/AAAAAAAAAAI/AAAAAAAABCQ/qbUB3EC0J5U/il/photo.jpg" alt="">
</a>
<span class="ico ico-mail"></span>
<span class="ico ico-fb"></span>
<span class="ico ico-tw hidden"></span>
<span class="ico ico-vk"></span>
</div>
<div id="pin"><a href="#concert">Close</a>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut alias aperiam harum delectus, sit commodi impedit omnis nihil officia expedita saepe nemo ad, molestiae iusto perferendis necessitatibus, repudiandae voluptate obcaecati.</div>
</div>
<script id="jsbin-source-css" type="text/css">*,*:before,*:after{
box-sizing: border-box;
}
.hidden{
display: none !important;
}
.block{
padding: 20px;
margin-bottom: 30px;
background: repeating-linear-gradient(-60deg,transparent, transparent 60px, yellowgreen 60px, yellowgreen 61px);
font: 14px/1.2 Arial;
}
.article{
max-width: 80%;
margin: auto;
background: #fff;
padding: 5px;
border: 1px solid #000;
border-radius: 6px;
position: relative;
}
.article:before,
.article:after{
content: '';
position: absolute;
z-index: 20;
top: -12px;
bottom: -12px;
left: -12px;
right: -12px;
border: 2px solid #000;
border-radius: 6px;
}
.article:after{
background: green;
z-index: -1;
opacity: 0.5;
}
.article .h1{
font-weight: normal;font-size: 22px;
margin: -5px -5px 0;
padding: 10px;
position: relative;
background: gold;
border-radius: 6px 6px 0 0;
}
.article .h1:before{
position: absolute;
top: 100%;
content: '';
width: 0px;
border: 10px solid;
border-color: gold transparent transparent transparent;
}
/*
tik-taks
*/
.game{
border-collapse: collapse;
position: relative;
}
.game td{
border: 1px solid #000;
padding: 10px;
}
.game .circle{
display: block;
width: 30px;height: 30px;
background: #11f;
border-radius: 50%;
}
.game tr:hover td{background: #ccc;}
.game tr:hover td:hover{background: #999;}
.game tr:hover td:hover:after{
content: '';
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
width: 51px;
margin-left: -10px;
background: rgba(255,0,0,0.2);
}
/* concert */
.concert{
text-align: center; margin: 20px; position: absolute;
}
.concert-item{
display: inline-block;
position: relative;
width: 25%; margin: 0 10px;
border-radius: 50%;
}
.concert img{
display: block; width: 100%;
border-radius: 50%;
border: 3px solid #aaa;
}
.concert .ico{
position: absolute;
border-radius: 50%;
width: 36px;height: 36px;
background: #777;
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 20px;
}
.concert .ico:hover{background-color: #ccc;}
.concert .ico-mail{
bottom: -18px; left: 50%;
margin-left: -20px;
background-image: url(https://png.icons8.com/material-rounded/100/ffffff/new-post.png);
}
.concert .ico-fb{
top:50%; margin-top: -20px; left: -18px;
background-image: url(https://png.icons8.com/material/100/ffffff/facebook-f.png);
}
.concert .ico-tw{
top: 34px; left: -8px;
background-image: url(https://png.icons8.com/metro/100/ffffff/twitter.png);
}
.concert .ico-vk{
left: 18px; top: 0;
background-image: url(https://png.icons8.com/small/100/ffffff/vk-com.png);
}
#pin{
position: absolute;
background: #fff;
width: 50%;padding: 10px;
top: 50%;left: 50%;
transform: translate(-50%, -50%);
display: none;
}
#pin:target{display: block;}
#pin a{
float: right;text-transform: uppercase;
padding: 5px;background: gold;
}
</script>
</body>
</html>
*,*:before,*:after{
box-sizing: border-box;
}
.hidden{
display: none !important;
}
.block{
padding: 20px;
margin-bottom: 30px;
background: repeating-linear-gradient(-60deg,transparent, transparent 60px, yellowgreen 60px, yellowgreen 61px);
font: 14px/1.2 Arial;
}
.article{
max-width: 80%;
margin: auto;
background: #fff;
padding: 5px;
border: 1px solid #000;
border-radius: 6px;
position: relative;
}
.article:before,
.article:after{
content: '';
position: absolute;
z-index: 20;
top: -12px;
bottom: -12px;
left: -12px;
right: -12px;
border: 2px solid #000;
border-radius: 6px;
}
.article:after{
background: green;
z-index: -1;
opacity: 0.5;
}
.article .h1{
font-weight: normal;font-size: 22px;
margin: -5px -5px 0;
padding: 10px;
position: relative;
background: gold;
border-radius: 6px 6px 0 0;
}
.article .h1:before{
position: absolute;
top: 100%;
content: '';
width: 0px;
border: 10px solid;
border-color: gold transparent transparent transparent;
}
/*
tik-taks
*/
.game{
border-collapse: collapse;
position: relative;
}
.game td{
border: 1px solid #000;
padding: 10px;
}
.game .circle{
display: block;
width: 30px;height: 30px;
background: #11f;
border-radius: 50%;
}
.game tr:hover td{background: #ccc;}
.game tr:hover td:hover{background: #999;}
.game tr:hover td:hover:after{
content: '';
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
width: 51px;
margin-left: -10px;
background: rgba(255,0,0,0.2);
}
/* concert */
.concert{
text-align: center; margin: 20px; position: absolute;
}
.concert-item{
display: inline-block;
position: relative;
width: 25%; margin: 0 10px;
border-radius: 50%;
}
.concert img{
display: block; width: 100%;
border-radius: 50%;
border: 3px solid #aaa;
}
.concert .ico{
position: absolute;
border-radius: 50%;
width: 36px;height: 36px;
background: #777;
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 20px;
}
.concert .ico:hover{background-color: #ccc;}
.concert .ico-mail{
bottom: -18px; left: 50%;
margin-left: -20px;
background-image: url(https://png.icons8.com/material-rounded/100/ffffff/new-post.png);
}
.concert .ico-fb{
top:50%; margin-top: -20px; left: -18px;
background-image: url(https://png.icons8.com/material/100/ffffff/facebook-f.png);
}
.concert .ico-tw{
top: 34px; left: -8px;
background-image: url(https://png.icons8.com/metro/100/ffffff/twitter.png);
}
.concert .ico-vk{
left: 18px; top: 0;
background-image: url(https://png.icons8.com/small/100/ffffff/vk-com.png);
}
#pin{
position: absolute;
background: #fff;
width: 50%;padding: 10px;
top: 50%;left: 50%;
transform: translate(-50%, -50%);
display: none;
}
#pin:target{display: block;}
#pin a{
float: right;text-transform: uppercase;
padding: 5px;background: gold;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment