Back to Frontend

Stylesheets.Scala

common/app/views/fragments/stylesheets.scala.html

latest931 B
Original Source

@(projectName: Option[String], isCrossword: Boolean = false, isInteractive: Boolean = false)(implicit request: RequestHeader, context: model.ApplicationContext) @import conf.switches.Switches._ @import play.api.Mode.Dev @import conf.Static @import html.HtmlPageHelpers.{ContentCSSFile} @import views.support.Commercial.isAdFree @import experiments.{ActiveExperiments} @if(FontSwitch.isSwitchedOn) { @fragments.fontFaces() } @* any images in head need to go here (or they'll be relative to the page)} *@ @* - Include IE < 9 [(lt IE 9)] - Exclude IE Mobile [&(!IEMobile)] *@@* - Include IE 9 [(IE 9)] - Exclude IE Mobile [&(!IEMobile)] *@@* - Include all browsers [] - Exclude IE < 10 [(gt IE 9)] - Include IE Mobile [|(IEMobile)] *@@if(context.environment.mode == Dev || !InlineCriticalCss.isSwitchedOn) { @if(isInteractive) { } } else { } @fragments.stylesheetLink(common.Assets.css.projectCss(projectName), isCrossword)