Last active
August 7, 2018 15:03
-
-
Save revooms/b62c41a11f09365c2fe63bbb3c8ff8f4 to your computer and use it in GitHub Desktop.
WebDev snippets: Bootstrap, jQuery, Vue, Blade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$grid-breakpoints: ( | |
xs: 0, | |
sm: 600px, | |
md: 800px, | |
lg: 1000px, | |
xl: 1200px ) !default; | |
$container-max-widths: ( | |
sm: 600px, | |
md: 800px, | |
lg: 1000px, | |
xl: 90% ) !default; | |
$body-bg: #333; | |
$body-color: #999; | |
$border-radius: 1px; | |
$brand-primary: #3333cc; | |
$brand-success: #11cc11; | |
$brand-info: cyan; | |
$brand-warning: #334455; | |
$brand-danger: #cc1111; | |
$font-family-sans-serif: Tahoma, Geneva, sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
if ($(window).width()< 600) { | |
$('#app').addClass('mobile'); | |
} | |
else {$('#app').removeClass('mobile');} | |
}); | |
$(window).resize(function() { | |
if ($(window).width() < 600) { | |
$('#app').addClass('mobile'); | |
} | |
else {$('#app').removeClass('mobile');} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment