8000 GitHub - renatocassino/gass: Search tool to scss
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

renatocassino/gass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
< 9506 svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom">
 
 
 
 

Repository files navigation

Gass (Grep sASS)

Version Build Status Code Climate codecov HitCount

Tool to get file and line using the css rule. When debugging css is difficult to get the css query and find in scss file. With this tool you will find easy.

Installation

$ npm i -g gass

Usage

Create a scss file in a folder (ex: product.scss).

.product {
  &__title {
    color: #f00;

    &--active {
      color: #0f0;
    }
  }
}

Now run:

$ gass .product__title--active

You will see:

Searching in: **/*.scss

path/to/product.scss
5:    &--active {

Change searcher

The default search is a glob **/*.scss, but is possible to search with another glob using the code:

$ gass .product__title--active -f stylesheets/**.scss

About

Search tool to scss

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0