Bug 48506 - Add a custom.css to the portal
Summary: Add a custom.css to the portal
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: Portal
Version: UCS 4.4
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 4.4
Assignee: Ole Schwiegert
QA Contact: Dirk Wiesenthal
URL:
Keywords:
Depends on:
Blocks: 48867
  Show dependency treegraph
 
Reported: 2019-01-22 10:38 CET by Ole Schwiegert
Modified: 2019-03-12 13:41 CET (History)
0 users

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Schwiegert univentionstaff 2019-01-22 10:38:52 CET
Text from Trello card:

Momentan unterstützt das Portal exakt eine Eigenschaft im CSS anzupassen: „background“. Wir wollen es zukünftig unterstützen, eine komplette und frei definierbare CSS-Datei neben die Default-Datei zu legen.
Begründung: Diese eine Datei erlaubt es uns, in Projekten optisch tiefgreifende Änderungen vorzunehmen. Bei Präsentationen und später im Projekt ist so etwas wichtig. Das sollte Abstände usw. anpassbar machen. Aber auch beispielsweise den Hintergrund für den Titel des Portals ändern. Das war ein Wunsch und konnte bisher nur über unzureichend über ein angepasstes Hintergrundbild erreicht werden.

Die CSS-Datei könnte in einer Art Inline-Editing im Frontend des Portals selber angepasst werden. Im ersten Schritt wird das aber nicht versprochen. (Nur, dass wir es uns anschauen)
Wir / Partner / Admins können in der CSS-Datei mit „! important“ immer angeben, dass ihre Definition wichtiger ist als der Default.
Comment 1 Ole Schwiegert univentionstaff 2019-01-23 11:40:44 CET
Package: univention-portal
Version: 3.0.1-5A~4.4.0.201901231133
Branch: ucs_4.4-0

The portal now imports the custom.css located under /usr/share/univention-portal/,
which is copied from /usr/share/portal/custom.css.example in the joinscript.

A release note highlight was added.

In the custom.css the most important css classes and ids were added with a short comment describing the elements affected by that descriptor. Since we do not have any type of inline editing for the styles in this first stage, there should not be any need for documentation other than the mentioning of the files existence in the release notes.

From now on we have to adapt the custom.css.example in univention-portal whenever we make changes to the portals html strucutre and assignment of css classes and ids to keep it up to date.
Comment 2 Dirk Wiesenthal univentionstaff 2019-01-30 13:50:05 CET
Works. I did not find any important CSS class that is not mentioned. Documentation in the changelog is present.
Comment 3 Florian Best univentionstaff 2019-03-12 13:41:08 CET
UCS 4.4 has been released:
 https://docs.software-univention.de/release-notes-4.4-0-en.html
 https://docs.software-univention.de/release-notes-4.4-0-de.html

If this error occurs again, please use "Clone This Bug".