Skip to content

Instantly share code, notes, and snippets.

View kvlsrg's full-sized avatar

Sergey Kovalenko kvlsrg

View GitHub Profile
@kvlsrg
kvlsrg / sass-at-root-example.md
Last active October 21, 2017 20:06
Sass @at-root Example

SCSS

.custom-select {
  // ...

  &--active {
    // ...
  }

 &--dark {
@kvlsrg
kvlsrg / get-parent-of-parent-in-sass.md
Last active January 4, 2023 09:57
Parent of parent in Sass

How to get parent of parent in Sass

You can just get it from cached &. Here is a simple BEM example:

HTML

<ul class="pagination">
  <li class="pagination__item">
    <a class="pagination__link" href="#">
      Page 1
@kvlsrg
kvlsrg / css-property-ordering.md
Last active April 22, 2017 07:13
CSS Property Ordering