Skip to content

Instantly share code, notes, and snippets.

View ivan-kalachikov's full-sized avatar
:octocat:
falling in love with open source

Ivan Kalachikov ivan-kalachikov

:octocat:
falling in love with open source
View GitHub Profile
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald:300,400" rel="stylesheet">
width: 100%;
display: flex;
justify-content: space-between;
align-items: stretch;
flex-wrap: wrap;
@ivan-kalachikov
ivan-kalachikov / gist:6b28ded9452beeb65cfe06b0cc5fab45
Last active August 27, 2018 12:20
img analog background cover
img{
position: absolute;
top: 50%;
left: 50%;
width: auto;
height: auto;
max-height: none;
max-width: none;
min-height: 100%;
min-width: 100%;
pointer-events: none;
$("a[href^=http]").each(
function(){
if(this.href.indexOf(location.hostname) == -1) {
$(this).attr('target', '_blank');
}
})
.main{
min-height: calc(~"100vh - 248px");
}
&:extend(.section-title);
@ivan-kalachikov
ivan-kalachikov / js
Created May 29, 2017 08:07
Google Map Marker Info Window
.custom-iw {
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
border-radius: 2px;
background-color: #0086aa;
width: auto !important;
max-width: 253px;
padding: 16px 26px;
color: #fff;
text-align: center;
@ivan-kalachikov
ivan-kalachikov / css
Created May 30, 2017 05:07
responsive table
table {
td {
display: block;
margin-bottom: 20px;
line-height: 20px;
font-size: 15px;
&:not(:empty)::before {
content: attr(data-title);
display: block;