How include CSS file required by Widget?

Issue #112 resolved
Andrew Sumner created an issue

I've currently got the below link in my widgets html, but the board doesn't have access to it in its deployed location. I've downloaded the css file but I cannot get the widget to use it. I've tried following the resource examples but they don't seem to apply to CSS files.

Any pointers?

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">

Comments (2)

  1. Andrew Sumner reporter

    I've downloaded the full code from http://fontawesome.io/ and unzipped to my widgets folder and placed the following link in the widgets html:

    <link rel="stylesheet" href="/widgets/resources?resource=red6/jenkins-build-status/font-awesome-4.4.0/css/font-awesome.css">
    

    Still no joy :-(

    If what I have done is correct, then I suspect that it might have something to do with this CSS from font-awesome.css:

    @font-face {
      font-family: 'FontAwesome';
      src: url('../fonts/fontawesome-webfont.eot?v=4.4.0');
      src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.4.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.4.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg');
      font-weight: normal;
      font-style: normal;
    }
    
  2. Log in to comment