Git Product home page Git Product logo

Comments (8)

samtuke avatar samtuke commented on July 21, 2024 1

@xh3n1 Perhaps you could investigate this and share your findings?

from phplist3.

michield avatar michield commented on July 21, 2024 1

@samtuke I wasn't aware that the frontend uses backend stuff, but I agree with @luison that it would be better to separate that.

from phplist3.

samtuke avatar samtuke commented on July 21, 2024

@luison Is your goal to be able to style individual table rows within the subscribe pages, or to be able to replace the tables altogether? Adding unique CSS class names or IDs shouldn't be difficult, which would allow you to add more specific styling.

from phplist3.

luison avatar luison commented on July 21, 2024

My goal would be to improve or have more personalization options on those pages. The idea of having an ID on the rows/cells would just be an easy way to help doing it with CSS Styles. The PHP code that generates that seems rather confusing and diversified.

from phplist3.

samtuke avatar samtuke commented on July 21, 2024

@luison By personalised options, do you mean custom theming of their inputs and labels? Deeper customisation would require changes to how attributes are added and managed.

from phplist3.

luison avatar luison commented on July 21, 2024

Hi @samtuke. Again as a suggestion whatever you guys find "doable". Truth is the design options via CSS are very limited now and therefore of my suggestion of at least move the attribute class you already seem to include on inputs, radios, etc further up as possible within the element.
In the case of the tables as you are building them today that would be on the TR I guess. In this form the label, text of radio buttons and other elements within that attribute become somehow "modifiable"

With a sample current code:

<tr>
<td><div class="required"><label for="attribute4">Label*</label></div></td>
<td class="attributeinput">
            <input type="text" name="attribute4" class="attributeinput" size="40" value="" id="attribute4"></td>
</tr>

Making it just something like:

<tr class="attribute4">
<td class="label_container"><div class="required"><label for="attribute4">Label*</label></div></td>
<td class="attributeinput">
            <input type="text" name="attribute4" class="attributeinput" size="40" value="" id="attribute4"></td>
</tr>

Would allow to change the background of the td for the label on some of them, increase padding on most important items, add the required * via CSS, etc.

Again, further tuning via divs and classes would be better, but that kind of change should not break compatibility and allow some small additional tuning.

thanks.

from phplist3.

samtuke avatar samtuke commented on July 21, 2024

@luison Thanks for the snippet in #428 -- how about this for next steps:

  • Replace table structure with divs, as you proposed
  • Add auto-generated IDs for each div containing an input for easier CSS styling
  • Add dedicated copies of currently shared UI libraries (e.g. jQuery)
  • Make use of those UI libraries explicit within the public page template itself (can be changed or removed by the phpList admin, so other UI libraries can be used instead)

Thoughts? Which of those steps would you be happy to work on?

from phplist3.

marianaballa avatar marianaballa commented on July 21, 2024

It seems that there is no activity on this issue for a long time. Additionally, this discussion can continue on the community forum: https://discuss.phplist.org/t/suggestion-for-css-improvement-on-subscribe-page-construction/4078

from phplist3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.