featheredtoast has ported an old phpbb theme, Moonclaw, to Discourse and shared it with the community. The theme is available on GitHub and can be installed by adding the repository URL to the themes list and selecting “Moonclaw” as the color scheme.
GokulNC reported an issue with the theme, where the right-side preview pane becomes small due to large padding sizes for icons in the formatting toolbar. Johani suggested that the issue is caused by adding too many icons to the toolbar, which can cause problems on any theme.
GokulNC provided a screenshot from another theme, showing that it does not have the same issue, and later found a fix by removing padding from the btn CSS class. featheredtoast agreed to take the change if it can be targeted to only affect the buttons on the d-editor-button-bar class.
GokulNC requested that featheredtoast make the change, which was later implemented in a commit to the theme’s GitHub repository.
I got around to porting an old favorite phpbb theme this weekend for my forum, for nostalgia’s sake. I’ve cleaned it up and thought I’d share it here - Let me know what you guys think!
Installation: Add https://github.com/featheredtoast/discourse-moonclaw-theme to your themes, and picking “Moonclaw” as your color scheme. Colors aren’t yet customizable just yet, as many have been hardcoded to get this out the door quickly.
Come vedi, il pannello di anteprima a destra è diventato molto piccolo a causa delle dimensioni di padding elevate per le icone nella barra degli strumenti di formattazione. Non ho questo problema con altri temi. (Sì, ho aggiunto alcune icone extra alla barra degli strumenti utilizzando un plugin)
Sei sicuro? Aggiungere così tante icone alla barra degli strumenti del compositore causerà lo stesso problema su qualsiasi tema. Quindi, in realtà non c’è nulla da risolvere qui.
Il problema è che hai aggiunto troppe icone alla barra degli strumenti. Se hai bisogno di tutta quella funzionalità, valuta di spostarne alcune nel menu a ingranaggio del compositore.
Il problema qui è sempre lo stesso stesso. Hai aggiunto troppi pulsanti alla barra degli strumenti del compositore. Questo rompe il layout del compositore sia nelle visualizzazioni desktop strette che su dispositivi mobili, indipendentemente dal tema utilizzato.
Questo tema è stato progettato per il layout predefinito di Discourse. Se il tuo sito richiede molte pulsanti aggiuntive, spetta a te risolverlo. Penso che tu abbia già capito come farlo
Se hai bisogno di sovrascrivere il CSS in questo tema, crea un componente del tema con quelle sovrascritture e aggiungilo al tuo tema.
Sono io che cerchi: Johani non ha nemmeno accesso al mio tema!
Se riuscissi a indirizzare solo i pulsanti con la classe d-editor-button-bar, accetterei la modifica. Altrimenti, perderesti tutti gli stili dei bordi ovunque!
Puoi fare la modifica quando riesci a trovare un po’ di tempo? @featheredtoast
Non sono un esperto di front-end, quindi potrei combinare dei guai facilmente.