{"action":"created","issue":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/879","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/879/labels{/name}","comments_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/879/comments","events_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/879/events","html_url":"https://github.com/cytoscape/cytoscape.js/issues/879","id":63980391,"number":879,"title":"Apply css for nodes and edges from external css file for cytoscape graph","user":{"login":"gsateesh28","id":11629981,"avatar_url":"https://avatars.githubusercontent.com/u/11629981?v=3","gravatar_id":"","url":"https://api.github.com/users/gsateesh28","html_url":"https://github.com/gsateesh28","followers_url":"https://api.github.com/users/gsateesh28/followers","following_url":"https://api.github.com/users/gsateesh28/following{/other_user}","gists_url":"https://api.github.com/users/gsateesh28/gists{/gist_id}","starred_url":"https://api.github.com/users/gsateesh28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsateesh28/subscriptions","organizations_url":"https://api.github.com/users/gsateesh28/orgs","repos_url":"https://api.github.com/users/gsateesh28/repos","events_url":"https://api.github.com/users/gsateesh28/events{/privacy}","received_events_url":"https://api.github.com/users/gsateesh28/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-24T12:07:59Z","updated_at":"2015-03-24T13:25:25Z","closed_at":"2015-03-24T12:22:57Z","body":"I am using angularjs , cytoscapejs to create a network topology graph. I want to use external css file for giving styles for nodes and edges of the graph instead of giving css in controller js file.\r\n\r\nfor now iam giving like below: \r\nstyle: cytoscape.stylesheet()\r\n                        .selector('node')\r\n                        .css({\r\n                            'shape': 'data(typeShape)',\r\n                            'width': '120',\r\n                            'height': '90',\r\n                            'background-color': 'data(typeColor)',\r\n                            'content': 'data(name)',\r\n                            'text-valign': 'center',\r\n                            'color': 'white',\r\n                            'text-outline-width': 2,\r\n                            'text-outline-color': 'data(typeColor)'\r\n                        })\r\n                        .selector('edge')\r\n                        .css({\r\n                            'width': '10',\r\n                            'target-arrow-shape': 'triangle',\r\n                            'source-arrow-shape': 'triangle'\r\n                        })\r\n                        .selector(':selected')\r\n                        .css({\r\n                            'background-color': 'black',\r\n                            'line-color': 'black',\r\n                            'target-arrow-color': 'black',\r\n                            'source-arrow-color': 'black'\r\n                        }).....\r\n\r\nis there a way to get css from external css file."},"comment":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/comments/85494304","html_url":"https://github.com/cytoscape/cytoscape.js/issues/879#issuecomment-85494304","issue_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/879","id":85494304,"user":{"login":"gsateesh28","id":11629981,"avatar_url":"https://avatars.githubusercontent.com/u/11629981?v=3","gravatar_id":"","url":"https://api.github.com/users/gsateesh28","html_url":"https://github.com/gsateesh28","followers_url":"https://api.github.com/users/gsateesh28/followers","following_url":"https://api.github.com/users/gsateesh28/following{/other_user}","gists_url":"https://api.github.com/users/gsateesh28/gists{/gist_id}","starred_url":"https://api.github.com/users/gsateesh28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsateesh28/subscriptions","organizations_url":"https://api.github.com/users/gsateesh28/orgs","repos_url":"https://api.github.com/users/gsateesh28/repos","events_url":"https://api.github.com/users/gsateesh28/events{/privacy}","received_events_url":"https://api.github.com/users/gsateesh28/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T13:25:25Z","updated_at":"2015-03-24T13:25:25Z","body":"i have tried by giving something like\r\n\r\nnode {\r\n  background-color: green;\r\n}\r\n\r\nin my styles.css file but it doesn't work."}}