Skip to content

Instantly share code, notes, and snippets.

View whizark's full-sized avatar
🏞️
Working from home

Whizark whizark

🏞️
Working from home
View GitHub Profile
@whizark
whizark / class-naming-convention.md
Last active December 2, 2024 03:03
HTML/CSS Class Naming Convention #html #css #sass
@whizark
whizark / SassMeister-input.scss
Last active November 21, 2024 08:06
Sass: Creating Custom Scope & Scope-based Default Value #sass
// ----
// Sass (v3.4.5)
// Compass (v1.0.1)
// ----
// Sass: Creating custom scope & scope-based default value in Sass
//
// A use case using mixin.
// This is pseudo code so you need implement some code.
//
@whizark
whizark / sass-naming-convention.md
Last active April 25, 2023 13:55
Sass Naming Convention #sass #draft
@whizark
whizark / SassMeister-input-HTML.html
Last active October 24, 2022 21:59
HTML/CSS/Sass: Aggregation vs Composition #css #sass
<!-- .list is an aggregation of .li -->
<ul class="list">
<li class="list--li li">Item</li>
</ul>
<!-- .list is a composition of .list--li -->
<ul class="list">
<li class="list--li">Item</li>
</ul>
@whizark
whizark / SassMeister-input-HTML.html
Last active October 24, 2021 02:42
Sass: placeholder-exists() in Sass #sass
<div class="warning">
<p>A Warning Message.</p>
</div>
@whizark
whizark / keybase.md
Created October 1, 2019 11:52
Keybase proof

Keybase proof

I hereby claim:

  • I am whizark on github.
  • I am whizark (https://keybase.io/whizark) on keybase.
  • I have a public key ASBPz9RqQK6B7fji2mXHl7t6WYCUSwfm5z-ZMBJNSmDr6Qo

To claim this, I am signing this object:

@whizark
whizark / SassMeister-input.scss
Last active January 30, 2019 11:56
Sass: Generating decoupled color schemes #sass
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
// Sass: Generating decoupled color schemes
// Helper functions
@function tint($color, $percentage) {
@return mix(white, $color, $percentage);
@whizark
whizark / SassMeister-input-HTML.html
Last active August 13, 2018 08:26
CSS/Sass: Element Property by data attribute. #css #sass
<div class="app">
<div class="app--note note">
<ul class="note--list list">
<li class="list--li li" data-state="active">Item</li>
</ul>
</div>
</div>
@whizark
whizark / wp-best-practice.md
Last active January 3, 2016 21:31
WordPress: (My) Best Practices #draft #wordpress

WordPress: Best Practices

This is my best practices for WordPress but it is also the one FOR MOST OF THE WORDPRESSS DESIGNERS/DEVELOPERS. Some of these practices are useful to check code quality of themes/plugins.

Follow PSR

You may/should break away from WordPress Coding Standards and follow PSR if you are not a core/core-plugin developer (If you haven't followed either of WordPress Conding Standards or PSR, it is a bad habit) .

Why

@whizark
whizark / SassMeister-input-HTML.html
Last active August 29, 2015 14:14
CSS/Sass: Robust/Scalable Layered CSS Architecture #sass #css
<div class="app">
<!--
An element should know only its own child elements,
child elements should not know the parent element.
(at least, in HTML)
Therefore, well-structured element has ONLY 1-2 class(es).
-->
<div class="app--note note">
<ul class="note--list list">
<li class="list--li li">Item</li>