Skip to content

Instantly share code, notes, and snippets.

@bbongagus
bbongagus / snippet.md
Created Apr 4, 2017 — forked from harthur/snippet.md
console.log() key binding for Sublime Text
View snippet.md

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file:

[
    { "keys": ["super+shift+l"],
      "command": "insert_snippet",
      "args": {
        "contents": "console.log(${1:}$SELECTION);${0}"
      }
    }
@bbongagus
bbongagus / snippet.md
Created Apr 4, 2017 — forked from harthur/snippet.md
console.log() key binding for Sublime Text
View snippet.md

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file:

[
    { "keys": ["super+shift+l"],
      "command": "insert_snippet",
      "args": {
        "contents": "console.log(${1:}$SELECTION);${0}"
      }
    }
@bbongagus
bbongagus / app.sass
Created Nov 28, 2016
scrollbar custom
View app.sass
\::-webkit-scrollbar
width: 3px
height: 3px
\::-webkit-scrollbar-button
background-color: #666
\::-webkit-scrollbar-track
background-color: #999
@bbongagus
bbongagus / app.sass
Created Nov 28, 2016
sass - classes with delimiter
View app.sass
%xs-grid-styles
width: 100% !important
display: block
position: relative
%xs-margin-left-zero
margin-left: 0
@for $i from 1 through 12
.row > .col-#{$i}
@extend %xs-grid-styles
.row > .offset-#{$i}
@bbongagus
bbongagus / app.js
Created Nov 28, 2016
change css styles
View app.js
var tabHeight = $(".nav .main-menu__elem").outerHeight();
$(".vertical .nav__slider-line").css({height: tabHeight + "px", width: "4px !important"});
@bbongagus
bbongagus / app.js
Created Nov 28, 2016
hide element, when click out of range
View app.js
function closeOnClickOver(modalid, parentid){
$(parentid).on('click', function(e){
if (e.target == $(modalid).prop("parentNode")){
$(parentid).addClass("g-visuallyhidden");
setTimeout(function(){
$(parentid).addClass("g-hidden");
}, 200);
}
});
You can’t perform that action at this time.