Skip to content

Commit

Permalink
Enh: Add an option in the module configuration for menus to display a…
Browse files Browse the repository at this point in the history
… border instead of a background color
  • Loading branch information
marc-farre committed Nov 5, 2024
1 parent 0269af8 commit 0bb609c
Show file tree
Hide file tree
Showing 58 changed files with 274 additions and 89 deletions.
4 changes: 3 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Changelog

Unreleased
--------------------
- Enh: use `--hh-ct-font-size` CSS variable for buttons
- Enh: Add an option in the module configuration for menus to display a border instead of a background color
- Chg: The body class `is-guest` is now `hh-ct-is-guest`
- Chg: "Hide the top and bottom menus on scroll down" and "Hide the text of the bottom menu buttons" features are now disabled by default
- Fix: Bottom menu on mobile: when "Hide the text of the bottom menu buttons" is enabled, long texts are truncated
- Enh: use `--hh-ct-font-size` CSS variable for buttons

2.1.0 (October 18, 2024)
--------------------
Expand Down
3 changes: 3 additions & 0 deletions messages/am/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'ብጁ CSS',
'Custom code' => 'ብጁ ኮድ',
'Default text color for icons, buttons, etc.' => 'ለአዶዎች፣ አዝራሮች፣ ወዘተ ነባሪ የጽሑፍ ቀለም።',
'Distinct border link color for active items' => 'ለንቁ ንጥሎች የተለየ የድንበር ማገናኛ ቀለም',
'Export' => 'ወደ ውጪ ላክ',
'Font family' => 'የቅርጸ-ቁምፊ ቤተሰብ',
'Font size' => 'የቅርጸ ቁምፊ መጠን',
'Font weight' => 'የቅርጸ ቁምፊ ክብደት',
'Full primary color background for active items' => 'ለንቁ ንጥሎች ሙሉ ዋና ቀለም ዳራ',
'Google Font name' => 'ጎግል ፊደል ስም',
'Heading fonts' => 'የርዕስ ቅርጸ ቁምፊዎች',
'Headings text color' => 'የርዕሶች ጽሑፍ ቀለም',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'የዋና ይዘት መያዣ ስፋት',
'Main default color' => 'ዋናው ነባሪ ቀለም',
'Main text color' => 'ዋናው የጽሑፍ ቀለም',
'Menu style' => 'የምናሌ ዘይቤ',
'Menus' => 'ምናሌዎች',
'Menus on small screens' => 'በትንሽ ማያ ገጾች ላይ ምናሌዎች',
'Navigation alignment' => 'የአሰሳ አሰላለፍ',
Expand Down
3 changes: 3 additions & 0 deletions messages/an/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => '',
'Custom code' => '',
'Default text color for icons, buttons, etc.' => '',
'Distinct border link color for active items' => '',
'Export' => '',
'Font family' => '',
'Font size' => '',
'Font weight' => '',
'Full primary color background for active items' => '',
'Google Font name' => '',
'Heading fonts' => '',
'Headings text color' => '',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => '',
'Main default color' => '',
'Main text color' => '',
'Menu style' => '',
'Menus' => '',
'Menus on small screens' => '',
'Navigation alignment' => '',
Expand Down
3 changes: 3 additions & 0 deletions messages/ar/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'لغة تنسيق ويب حسب الطلب',
'Custom code' => 'التعليمات البرمجية المخصصة',
'Default text color for icons, buttons, etc.' => 'لون النص الافتراضي للأيقونات والأزرار وما إلى ذلك.',
'Distinct border link color for active items' => 'لون رابط حدود مميز للعناصر النشطة',
'Export' => 'يصدّر',
'Font family' => 'خط العائلة',
'Font size' => 'حجم الخط',
'Font weight' => 'وزن الخط',
'Full primary color background for active items' => 'خلفية كاملة بالألوان الأساسية للعناصر النشطة',
'Google Font name' => 'اسم خط جوجل',
'Heading fonts' => 'خطوط العناوين',
'Headings text color' => 'لون نص العناوين',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'عرض حاوية المحتوى الرئيسي',
'Main default color' => 'اللون الافتراضي الرئيسي',
'Main text color' => 'لون النص الرئيسي',
'Menu style' => 'نمط القائمة',
'Menus' => 'القوائم',
'Menus on small screens' => 'القوائم على الشاشات الصغيرة',
'Navigation alignment' => 'محاذاة الملاحة',
Expand Down
3 changes: 3 additions & 0 deletions messages/bg/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'Персонализиран CSS',
'Custom code' => 'Персонализиран код',
'Default text color for icons, buttons, etc.' => 'Цвят на текста по подразбиране за икони, бутони и др.',
'Distinct border link color for active items' => 'Различен цвят на връзката на границата за активните елементи',
'Export' => 'Експортиране',
'Font family' => 'Шрифтово семейство',
'Font size' => 'Размер на шрифта',
'Font weight' => 'Тегло на шрифта',
'Full primary color background for active items' => 'Пълен основен цвят на фона за активни елементи',
'Google Font name' => 'Име на шрифта на Google',
'Heading fonts' => 'Шрифтове за заглавия',
'Headings text color' => 'Цвят на текста на заглавията',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Ширина на контейнера за основно съдържание',
'Main default color' => 'Основен цвят по подразбиране',
'Main text color' => 'Основен цвят на текста',
'Menu style' => 'Стил на менюто',
'Menus' => 'Менюта',
'Menus on small screens' => 'Менюта на малки екрани',
'Navigation alignment' => 'Подравняване на навигацията',
Expand Down
3 changes: 3 additions & 0 deletions messages/br/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
'Custom CSS' => '',
'Custom code' => '',
'Default text color for icons, buttons, etc.' => '',
'Distinct border link color for active items' => '',
'Export' => '',
'Font family' => '',
'Font size' => '',
'Font weight' => '',
'Full primary color background for active items' => '',
'Google Font name' => '',
'Heading fonts' => '',
'Headings text color' => '',
Expand Down Expand Up @@ -56,6 +58,7 @@
'Main content container width' => '',
'Main default color' => '',
'Main text color' => '',
'Menu style' => '',
'Menus' => '',
'Menus on small screens' => '',
'Navigation alignment' => '',
Expand Down
3 changes: 3 additions & 0 deletions messages/ca/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'CSS personalitzat',
'Custom code' => 'Codi personalitzat',
'Default text color for icons, buttons, etc.' => 'Color de text predeterminat per a icones, botons, etc.',
'Distinct border link color for active items' => 'Color d\'enllaç de vora diferent per als elements actius',
'Export' => 'Exporta',
'Font family' => 'Família de tipus de lletra',
'Font size' => 'Mida de la font',
'Font weight' => 'Pes de la lletra',
'Full primary color background for active items' => 'Fons de color primari complet per a elements actius',
'Google Font name' => 'Nom de la font de Google',
'Heading fonts' => 'Tipus de lletra dels encapçalaments',
'Headings text color' => 'Color del text dels encapçalaments',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Amplada del contenidor del contingut principal',
'Main default color' => 'Color predeterminat principal',
'Main text color' => 'Color del text principal',
'Menu style' => 'Estil de menú',
'Menus' => 'Menús',
'Menus on small screens' => 'Menús en pantalles petites',
'Navigation alignment' => 'Alineació de la navegació',
Expand Down
3 changes: 3 additions & 0 deletions messages/cs/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'Vlastní CSS',
'Custom code' => 'Vlastní kód',
'Default text color for icons, buttons, etc.' => 'Výchozí barva textu pro ikony, tlačítka atd.',
'Distinct border link color for active items' => 'Odlišná barva odkazu ohraničení pro aktivní položky',
'Export' => 'Vývozní',
'Font family' => 'Rodina písem',
'Font size' => 'Velikost písma',
'Font weight' => 'Tloušťka písma',
'Full primary color background for active items' => 'Plně primární barva pozadí pro aktivní položky',
'Google Font name' => 'Název písma Google',
'Heading fonts' => 'Písma nadpisů',
'Headings text color' => 'Barva textu nadpisů',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Šířka kontejneru hlavního obsahu',
'Main default color' => 'Hlavní výchozí barva',
'Main text color' => 'Barva hlavního textu',
'Menu style' => 'Styl menu',
'Menus' => 'Menu',
'Menus on small screens' => 'Menu na malých obrazovkách',
'Navigation alignment' => 'Zarovnání navigace',
Expand Down
3 changes: 3 additions & 0 deletions messages/cy/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'CSS personol',
'Custom code' => 'Cod personol',
'Default text color for icons, buttons, etc.' => 'Lliw testun diofyn ar gyfer eiconau, botymau, ac ati.',
'Distinct border link color for active items' => 'Lliw cyswllt ffin unigryw ar gyfer eitemau gweithredol',
'Export' => 'Allforio',
'Font family' => 'Teulu ffontiau',
'Font size' => 'Maint y ffont',
'Font weight' => 'Pwysau ffont',
'Full primary color background for active items' => 'Cefndir lliw cynradd llawn ar gyfer eitemau gweithredol',
'Google Font name' => 'Enw Ffont Google',
'Heading fonts' => 'Ffontiau penawdau',
'Headings text color' => 'Lliw testun penawdau',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Lled cynhwysydd prif gynnwys',
'Main default color' => 'Prif liw rhagosodedig',
'Main text color' => 'Lliw prif destun',
'Menu style' => 'Arddull bwydlen',
'Menus' => 'Bwydlenni',
'Menus on small screens' => 'Bwydlenni ar sgriniau bach',
'Navigation alignment' => 'Aliniad llywio',
Expand Down
3 changes: 3 additions & 0 deletions messages/da/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'Brugerdefineret CSS',
'Custom code' => 'Brugerdefineret kode',
'Default text color for icons, buttons, etc.' => 'Standard tekstfarve til ikoner, knapper osv.',
'Distinct border link color for active items' => 'Distinkt kantlinkfarve for aktive elementer',
'Export' => 'Eksport',
'Font family' => 'Fontfamilie',
'Font size' => 'Skriftstørrelse',
'Font weight' => 'Skrifttypevægt',
'Full primary color background for active items' => 'Fuld primær farvebaggrund for aktive elementer',
'Google Font name' => 'Google skrifttypenavn',
'Heading fonts' => 'Overskrifter skrifttyper',
'Headings text color' => 'Tekstfarve på overskrifter',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Hovedindholdsbeholderens bredde',
'Main default color' => 'Hovedstandardfarve',
'Main text color' => 'Hovedtekstfarve',
'Menu style' => 'Menu stil',
'Menus' => 'Menuer',
'Menus on small screens' => 'Menuer på små skærme',
'Navigation alignment' => 'Navigationsjustering',
Expand Down
3 changes: 3 additions & 0 deletions messages/de/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'Benutzerdefinierte CSS',
'Custom code' => 'Benutzerdefinierter Code',
'Default text color for icons, buttons, etc.' => 'Standardtextfarbe für Symbole, Schaltflächen usw.',
'Distinct border link color for active items' => 'Eindeutige Rahmenfarbe für aktive Elemente',
'Export' => 'Export',
'Font family' => 'Schriftfamilie',
'Font size' => 'Schriftgröße',
'Font weight' => 'Schriftstärke',
'Full primary color background for active items' => 'Vollständig primärfarbiger Hintergrund für aktive Elemente',
'Google Font name' => 'Google Font-Name',
'Heading fonts' => 'Überschriften-Schriftarten',
'Headings text color' => 'Textfarbe für Überschriften',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Breite des Hauptinhaltscontainers',
'Main default color' => 'Hauptstandardfarbe',
'Main text color' => 'Haupttextfarbe',
'Menu style' => 'Menüstil',
'Menus' => 'Menüs',
'Menus on small screens' => 'Menüs auf kleinen Bildschirmen',
'Navigation alignment' => 'Navigationsausrichtung',
Expand Down
3 changes: 3 additions & 0 deletions messages/el/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'Προσαρμοσμένο CSS',
'Custom code' => 'Προσαρμοσμένος κωδικός',
'Default text color for icons, buttons, etc.' => 'Προεπιλεγμένο χρώμα κειμένου για εικονίδια, κουμπιά κ.λπ.',
'Distinct border link color for active items' => 'Ξεχωριστό χρώμα συνδέσμου περιγράμματος για ενεργά στοιχεία',
'Export' => 'Εξαγωγή',
'Font family' => 'Οικογένεια γραμματοσειρών',
'Font size' => 'Μέγεθος γραμματοσειράς',
'Font weight' => 'Βάρος γραμματοσειράς',
'Full primary color background for active items' => 'Πλήρες βασικό χρώμα φόντου για ενεργά στοιχεία',
'Google Font name' => 'Όνομα γραμματοσειράς Google',
'Heading fonts' => 'Γραμματοσειρές επικεφαλίδων',
'Headings text color' => 'Χρώμα κειμένου επικεφαλίδων',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Πλάτος δοχείου κύριου περιεχομένου',
'Main default color' => 'Κύριο προεπιλεγμένο χρώμα',
'Main text color' => 'Κύριο χρώμα κειμένου',
'Menu style' => 'Στυλ μενού',
'Menus' => 'Μενού',
'Menus on small screens' => 'Μενού σε μικρές οθόνες',
'Navigation alignment' => 'Ευθυγράμμιση πλοήγησης',
Expand Down
3 changes: 3 additions & 0 deletions messages/es/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'CSS personalizado',
'Custom code' => 'Código personalizado',
'Default text color for icons, buttons, etc.' => 'Color de texto predeterminado para iconos, botones, etc.',
'Distinct border link color for active items' => 'Color de borde distintivo para los elementos activos',
'Export' => 'Exportar',
'Font family' => 'Familia tipográfica',
'Font size' => 'Tamaño de fuente',
'Font weight' => 'Peso de fuente',
'Full primary color background for active items' => 'Fondo de color primario completo para elementos activos',
'Google Font name' => 'Nombre de fuente de Google',
'Heading fonts' => 'Fuentes de encabezados',
'Headings text color' => 'Color del texto de los encabezados',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Ancho del contenedor de contenido principal',
'Main default color' => 'Color principal predeterminado',
'Main text color' => 'Color del texto principal',
'Menu style' => 'Estilo de menú',
'Menus' => 'Menús',
'Menus on small screens' => 'Menús en pantallas pequeñas',
'Navigation alignment' => 'Alineación de navegación',
Expand Down
3 changes: 3 additions & 0 deletions messages/et/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
'Custom CSS' => '',
'Custom code' => '',
'Default text color for icons, buttons, etc.' => '',
'Distinct border link color for active items' => '',
'Export' => '',
'Font family' => '',
'Font size' => '',
'Font weight' => '',
'Full primary color background for active items' => '',
'Google Font name' => '',
'Heading fonts' => '',
'Headings text color' => '',
Expand Down Expand Up @@ -56,6 +58,7 @@
'Main content container width' => '',
'Main default color' => '',
'Main text color' => '',
'Menu style' => '',
'Menus' => '',
'Menus on small screens' => '',
'Navigation alignment' => '',
Expand Down
3 changes: 3 additions & 0 deletions messages/eu/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'CSS pertsonalizatua',
'Custom code' => 'Kode pertsonalizatua',
'Default text color for icons, buttons, etc.' => 'Ikonoen, botoien eta abarren testu-kolore lehenetsia.',
'Distinct border link color for active items' => 'Elementu aktiboen ertzaren estekaren kolore desberdina',
'Export' => 'Esportatu',
'Font family' => 'Letra-tipoen familia',
'Font size' => 'Letra-tamaina',
'Font weight' => 'Letraren pisua',
'Full primary color background for active items' => 'Elementu aktiboentzako kolore primario osoa atzeko planoa',
'Google Font name' => 'Google Font izena',
'Heading fonts' => 'Izenburuen letra-tipoak',
'Headings text color' => 'Goiburuen testuaren kolorea',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Edukiontzi nagusiaren zabalera',
'Main default color' => 'Kolore lehenetsi nagusia',
'Main text color' => 'Testuaren kolore nagusia',
'Menu style' => 'Menuaren estiloa',
'Menus' => 'Menuak',
'Menus on small screens' => 'Menuak pantaila txikietan',
'Navigation alignment' => 'Nabigazio-lerrokatzea',
Expand Down
3 changes: 3 additions & 0 deletions messages/fa-IR/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'CSS سفارشی',
'Custom code' => 'کد سفارشی',
'Default text color for icons, buttons, etc.' => 'رنگ متن پیش‌فرض برای نمادها، دکمه‌ها و غیره',
'Distinct border link color for active items' => 'رنگ پیوند مرزی متمایز برای موارد فعال',
'Export' => 'صادرات',
'Font family' => 'خانواده فونت',
'Font size' => 'اندازه فونت',
'Font weight' => 'وزن فونت',
'Full primary color background for active items' => 'پس زمینه کامل رنگ اصلی برای آیتم های فعال',
'Google Font name' => 'نام فونت گوگل',
'Heading fonts' => 'فونت سرفصل ها',
'Headings text color' => 'رنگ متن سرفصل ها',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'عرض ظرف محتوای اصلی',
'Main default color' => 'رنگ پیش فرض اصلی',
'Main text color' => 'رنگ متن اصلی',
'Menu style' => 'سبک منو',
'Menus' => 'منوها',
'Menus on small screens' => 'منوها روی صفحه نمایش های کوچک',
'Navigation alignment' => 'تراز ناوبری',
Expand Down
3 changes: 3 additions & 0 deletions messages/fi/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'Mukautettu CSS',
'Custom code' => 'Kustomoitu koodi',
'Default text color for icons, buttons, etc.' => 'Tekstin oletusväri kuvakkeille, painikkeille jne.',
'Distinct border link color for active items' => 'Selkeä reunalinkin väri aktiivisille kohteille',
'Export' => 'Viedä',
'Font family' => 'Fonttiperhe',
'Font size' => 'Fonttikoko',
'Font weight' => 'Fontin paino',
'Full primary color background for active items' => 'Täysi ensisijainen taustaväri aktiivisille kohteille',
'Google Font name' => 'Google-fontin nimi',
'Heading fonts' => 'Otsikon fontit',
'Headings text color' => 'Otsikoiden tekstin väri',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Pääsisältösäiliön leveys',
'Main default color' => 'Pääoletusväri',
'Main text color' => 'Päätekstin väri',
'Menu style' => 'Menun tyyli',
'Menus' => 'Valikot',
'Menus on small screens' => 'Valikot pienillä näytöillä',
'Navigation alignment' => 'Navigoinnin kohdistus',
Expand Down
3 changes: 3 additions & 0 deletions messages/fr/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
'Custom CSS' => 'CSS personnalisé',
'Custom code' => 'Code personnalisé',
'Default text color for icons, buttons, etc.' => 'Couleur du texte par défaut pour les icônes, les boutons, etc.',
'Distinct border link color for active items' => 'Couleur de lien de bordure distincte pour les éléments actifs',
'Export' => 'Exporter',
'Font family' => 'Famille de polices',
'Font size' => 'Taille de police',
'Font weight' => 'Poids de la police',
'Full primary color background for active items' => 'Arrière-plan de couleur primaire complet pour les éléments actifs',
'Google Font name' => 'Nom de la police Google',
'Heading fonts' => 'Polices des titres',
'Headings text color' => 'Couleur du texte des titres',
Expand Down Expand Up @@ -55,6 +57,7 @@
'Main content container width' => 'Largeur du conteneur de contenu principal',
'Main default color' => 'Couleur principale par défaut',
'Main text color' => 'Couleur du texte principal',
'Menu style' => 'Style de menu',
'Menus' => 'Menus',
'Menus on small screens' => 'Menus sur petits écrans',
'Navigation alignment' => 'Alignement de la navigation',
Expand Down
Loading

0 comments on commit 0bb609c

Please sign in to comment.