Ad Widget

Collapse

Clock Widget Font Size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rodrigolinux
    Junior Member
    • Jun 2022
    • 5

    #1

    Clock Widget Font Size

    I noticed that in version 7.x, the Date and Time size option no longer appears in the Clock Widget. How do I customize it?

    Click image for larger version

Name:	widget_clock.png
Views:	50
Size:	18.9 KB
ID:	506680
  • rodrigolinux
    Junior Member
    • Jun 2022
    • 5

    #2
    # I found a solution:

    sudo vi /usr/share/zabbix/ui/assets/styles/custom.css

    /* Clock Widget */
    .clock-date { font-size: 24px !important; font-weight: bold; }
    .clock-time { font-size: 12px !important; font-weight: bold; }


    # Set permissions for the file:

    sudo chown root:root /usr/share/zabbix/ui/assets/styles/custom.css


    # Import the file to be uploaded (in this case I'm doing it in the dark theme, do it in the others if you want):

    sudo vi /usr/share/zabbix/ui/assets/styles/dark-theme.css

    @import url("custom.css?v=1"); /* Place on the first line of the file, before everything */


    # Restart apache (no need to restart, but it's good to confirm):

    sudo systemctl restart apache2


    # Refresh your browser and that's it, the size of the time and/or date will change.


    Before:

    Click image for larger version  Name:	image.png Views:	0 Size:	5.6 KB ID:	506684

    After:

    Click image for larger version  Name:	image.png Views:	0 Size:	5.5 KB ID:	506683
    Last edited by rodrigolinux; 28-08-2025, 22:04.

    Comment

    Working...