vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

Encapsulate stylus css

Open siamakmirzaie opened this issue 7 years ago • 3 comments

Versions and Environment

Vuetify: 1.5.16 Vue: 2.6.10 Browsers: Chrome 75.0.3770.100 OS: Windows 10

Steps to reproduce

trying to encapsulate the styles with into custom class where .app @import './../../node_modules/vuetify/src/stylus/app.styl'

is used, different paths (relative, ~, etc.) and files (main.styl) used, but this will result into an error variables not being found.

One way to get this to work is by: app = @block { @import './../../node_modules/vuetify/src/stylus/app.styl' } .app {app}

however when using blocks i am missing some classes such as elevations.

Expected Behavior

Encapsulate the imported style under class name.

Actual Behavior

Stylus

Reproduction Link

https://jsfiddle.net/jso86dz7/

siamakmirzaie avatar Jun 21 '19 17:06 siamakmirzaie

+1, same here

Tostifrosti avatar Jun 24 '19 07:06 Tostifrosti

Your reproduction link doesn't work. Also, anything involving this would have to be implemented in v2.0 with sass/scss.

johnleider avatar Jun 24 '19 14:06 johnleider

duplicate of #5041

johnleider avatar Jul 09 '19 15:07 johnleider