Skip to content

Instantly share code, notes, and snippets.

@Joralf
Last active March 23, 2018 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joralf/17981dc7950ace3c207e1fe58413fb6a to your computer and use it in GitHub Desktop.
Save Joralf/17981dc7950ace3c207e1fe58413fb6a to your computer and use it in GitHub Desktop.
Komponent: css shared between components
<div class="test">
I should not be blue
</div>
<div class="test">
I should be blue
</div>
<!DOCTYPE html>
<html>
<head>
<title>Myapp</title>
<%= csrf_meta_tags %>
<%= stylesheet_pack_tag 'entry' %>
<%= javascript_pack_tag "entry" %>
</head>
<body>
<%= yield %>
</body>
</html>
import './entry.scss';
import 'components';
@import './variables';
@import '../components/index';
import "components/no_access_to_test/no_access_to_test";
import "components/test/test";
@import './test/test';
@import './no_access_to_test/no_access_to_test';
.test {
color: $test-variable;
}
$test-variable: blue;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment