[
https://issues.apache.org/jira/browse/AMBARI-12684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jaimin D Jetly updated AMBARI-12684:
------------------------------------
Description:
As part of this ticket css order of concatenation is set in a way that if
following files are dropped at build time, they will be the last to get
concatenated making selectors defined in them override any ambari css selector:
# *custom-ui.less* file should be dropped in *ambari/ambari-web/app/styles/*
directory
# *custom-admin-ui.css* file should be dropped in
*ambari-admin/src/main/resources/ui/admin-web/app/styles/* directory
Since all the CSS related attributes are defined in the stylesheets and not in
html/templates in ambari, This gives an ability to override the look and feel
of ambari and ambari-admin view by simply dropping stylesheet with desired
changes as pointed above.
NOTE: Since ambari uses RAT plugin in its maven build, these stylesheets being
dropped before compilation should have apache header or else maven build will
fail complaining about missing apache license
> Ambari web stylesheet should be overridable on build time
> ---------------------------------------------------------
>
> Key: AMBARI-12684
> URL: https://issues.apache.org/jira/browse/AMBARI-12684
> Project: Ambari
> Issue Type: Task
> Components: ambari-web
> Affects Versions: 2.1.1
> Reporter: Jaimin D Jetly
> Assignee: Jaimin D Jetly
> Fix For: 2.1.1
>
> Attachments: AMBARI-12684.patch
>
>
> As part of this ticket css order of concatenation is set in a way that if
> following files are dropped at build time, they will be the last to get
> concatenated making selectors defined in them override any ambari css
> selector:
> # *custom-ui.less* file should be dropped in *ambari/ambari-web/app/styles/*
> directory
> # *custom-admin-ui.css* file should be dropped in
> *ambari-admin/src/main/resources/ui/admin-web/app/styles/* directory
> Since all the CSS related attributes are defined in the stylesheets and not
> in html/templates in ambari, This gives an ability to override the look and
> feel of ambari and ambari-admin view by simply dropping stylesheet with
> desired changes as pointed above.
> NOTE: Since ambari uses RAT plugin in its maven build, these stylesheets
> being dropped before compilation should have apache header or else maven
> build will fail complaining about missing apache license
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)