Skip to content

Instantly share code, notes, and snippets.

View alexandre-delaloy's full-sized avatar
coffyin'

Alexandre Delaloy alexandre-delaloy

coffyin'
View GitHub Profile
@alexandre-delaloy
alexandre-delaloy / bash-command-line-cheatsheet.txt
Last active March 16, 2023 12:25
Bash Command Line Cheatsheet
------------------------------------------------------------------------------------------------
| BASH COMMAND LINE CHEATSHEET |
| |
| by Alexandre Delaloy - @blyndusk |
------------------------------------------------------------------------------------------------
[1] - GENERAL & SYSTEM
class ResizeOnce {
constructor() {
this.isMobile = false;
this.isDesktop = false;
this.breakpoint = 768
}
setDefault() {
window.screen.width < this.breakpoint ? this.mobileMethod() : this.desktopMethod()
window.screen.width < this.breakpoint ? this.isDesktop = true : this.isMobile = true;
}
$resp-xs: 350px;
$resp-s: 576px;
$resp-m: 768px;
$resp-l: 992px;
$resp-xl: 1200px;
// responsive -----------------------------------
@mixin resp($point) {
@if $point == 'xs' {
@media only screen and (max-width: $resp-xs) { @content; }