kubaS BASICTemplate

In this example below you will see how to do a kubaS BASICTemplate with some HTML / CSS and Javascript

SCSS reset, box-sizing, mq mixin, offset mixin etc.

Thumbnail
This awesome code was written by kubasanitrak, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright kubasanitrak ©
  • HTML
  • CSS
  • JavaScript
    

/*Downloaded from https://www.codeseek.co/kubasanitrak/kubas-basictemplate-JZNRaL */
    *, *::before, *::after {margin: 0; padding: 0; }
html {box-sizing: border-box} *, *::before, *::after {box-sizing: inherit}


@mixin bgc-offset($n, $color) { @for $i from 1 through $n { &:nth-child(#{$i}) { background-color: darken($color, 0% + ($i * 2)); } } } 
@mixin mq($point) {@if $point == mq-XL {@media screen and (min-width: 90.1rem) { @content; } } @else if $point == mq-L-UP {@media screen and (min-width: 48.1rem)  { @content; } } @else if $point == mq-M-UP {@media screen and (min-width: 40.1rem)  { @content; } } @else if $point == mq-S {@media screen and (max-width: 40rem)  { @content; } } @else if $point == mq-land {@media screen and (orientation: landscape)  { @content; } } @else if $point == mq-portr {@media screen and (orientation: portrait)  { @content; } } }


/*Downloaded from https://www.codeseek.co/kubasanitrak/kubas-basictemplate-JZNRaL */
    

Comments