Skip to content

Instantly share code, notes, and snippets.

View hefhuman's full-sized avatar

Vincent Villaluna hefhuman

View GitHub Profile
@hefhuman
hefhuman / gist:feb4855f7bc5917c1a9d4411c924178c
Created October 18, 2017 13:21 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@hefhuman
hefhuman / inline-block-white-space-remover
Created December 11, 2018 01:24
removing white space on inline-block in two ways
/*Method 1*/
.parent{
font-size: 0; /*This one do the trick*/
}
.inline-block_{
display: inline-block;
width: calc(100% / #); /*Change # number of columns you like*/
height: 300px;
}
/*Method 2*/
@hefhuman
hefhuman / box-shadow.css
Last active December 12, 2018 08:52
Just paste it directly
/*TOP RIGHT BACK SHADOW*/
box-shadow: 10px -10px rgba(0,0,0,0.6);
-moz-box-shadow: 10px -10px rgba(0,0,0,0.6);
-webkit-box-shadow: 10px -10px rgba(0,0,0,0.6);
-o-box-shadow: 10px -10px rgba(0,0,0,0.6);
/*ALL SIDES BACK SHADOW*/
background-color: #eed;
box-shadow: 0 0 10px rgba(0,0,0,0.6);
-moz-box-shadow: 0 0 10px rgba(0,0,0,0.6);
.main_box{width: 100%; height: auto; border: 1px solid #0353a1; border-left: 8px solid #0353a1; padding: 10px; margin: 15px 0;}
<div class="serv_div">
<ul>
<li>
<a href="senior-care-center-skilled-nursing">
<img src="wp-content/themes/metroresource/images/non-home/thumb-52237462.jpg" alt="group of doctors and nurses">
<span>Skilled Nursing</span>
</a>
</li>
</ul>
</div>
<div class="justifier">
<div class="content_box">
<h2>MISSION</h2>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dolorum dolorem et voluptatem necessitatibus asperiores dolore cumque, perferendis, nesciunt hic temporibus natus molestias eaque placeat dolor, vel atque. Quis, perferendis praesentium!
</div>
<div class="content_box">
<h2>MISSION</h2>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dolorum dolorem et voluptatem necessitatibus asperiores dolore cumque, perferendis, nesciunt hic temporibus natus molestias eaque placeat dolor, vel atque. Quis, perferendis praesentium!
</div>
</div>
@hefhuman
hefhuman / parallax.html
Created January 6, 2019 03:09
remember to add jquery on this
<div class="slider">
<div class="plax">
<div class="box_skitter box_skitter_large" style="left: 0; top: -170px; width: 1920px; height: 981px; z-index: 0;">
<div id="content">
<ul>
<li><figure><img src="<?php bloginfo('template_url'); ?>/images/slider/1.jpg" alt=""/></figure></li>
<li><figure><img src="<?php bloginfo('template_url'); ?>/images/slider/2.jpg" alt=""/></figure></li>
<li><figure><img src="<?php bloginfo('template_url'); ?>/images/slider/3.jpg" alt=""/></figure></li>
</ul>
</div>
<!--to check offset-->
<span class="scrolls"></span>
<div class="btm_plax_holder">
<div id="bottom2">
<div class="wrapper">
<div class="btm2_con">
<?php dynamic_sidebar('btm2_box1'); ?>
</div>
</div>
@hefhuman
hefhuman / responsive-video-iframe.html
Last active April 17, 2019 06:16
add image to relative parent with the size of your desire;position the image with relative with z-index of 0 and width:100%;heightauto; ;then your iframe with position absolute;with top:0;left:0;z-index:1;width:100%;height:100%;
<!--THE EFFECTIVE WAY IS ON THE BOTTOM-->
<div class="container">
<figure><img src="<?php bloginfo('template_url'); ?>/images/mid_img1.jpg" alt="dummy youtube video with company logo"></figure>
<iframe src="https://player.vimeo.com/video/279335650" allowfullscreen></iframe>
</div>
<!--The height will depends on the image that why it will be responsive;-->
<style>
.middle_con1 .container iframe{width: 100%;height: 100%;top:0;left:0;position: absolute;z-index: 1;}
.middle_con1 .container figure{position: relative;z-index: 0;}
body {
background:
url(sweettexture.jpg) /* image */
top center / 200px 200px /* position / size */
no-repeat /* repeat */
fixed /* attachment */
padding-box /* origin */
content-box /* clip */
red; /* color */
}