No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Tags
    3. styling
    Log in to post
    • A

      Don't know how to truncate a string inside a nested div
      Help • styling • • avdor

      2
      0
      Votes
      2
      Posts
      687
      Views

      N

      Hi, I have the exact same problem now… did you find a solution?

      EDIT: try to add “fit” just where you defined the “ellipsis” class. It worked for me!

    • A

      Use my own css
      Help • css layout styling • • acros

      5
      0
      Votes
      5
      Posts
      1801
      Views

      T

      @acros

      You can see what becomes of q-layout in chrome inspector.

      Screen Shot 2020-11-09 at 16.19.17.png

      If you use q-layout (you are using Quasar) you will have to put elements inside it which are compatible with q-layout. It only make sense that way.

      As you found out a single un-styled div isn’t compatible. While it isn’t impossible to make it compatible … you will likely going to rebuild q-headerin the process. And this extra work you are doing for what ?

      So the options are

      a, Style your custom component so it is compatible with q-layout.
      b, Create your own layout and not use q-layout. I think you will miss out on a lot. q-drawer to start with. Unless of course you make your layout compatible with q-drawer.
      c, the best IMO is to use q-layout with the already provided compatible elements after all why reinvent the wheel.

    • S

      [v1]How to change hover color for q-item
      Framework • background hover q-item qlist styling • • sakhan

      5
      0
      Votes
      5
      Posts
      8559
      Views

      S

      @dpamio I don’t see any Sass file in the project but styl files for styling. The could you posted could possibly be fore quasar 0.17.

      I got this to work by inspecting the element and playing with the css:
      First, add a background-color and opacity as 1 to q-focus-helper. Then remove the opacity and background-color from the q-focus-helper ‘before’ and ‘after’ css.
      Now you will have an opaque background colour when hovered but it will cover the text.
      So add z-index 1 to q-item__label.

      This is a pretty crapy solution!

    • a47ae

      [How To] Import Stylus variables depending on the current theme
      Show & Tell • styling stylus webpack • • a47ae

      1
      2
      Votes
      1
      Posts
      1469
      Views

      No one has replied

    • a47ae

      Placing buttons after QField
      Help • button css form q-input styling • • a47ae

      1
      0
      Votes
      1
      Posts
      1432
      Views

      No one has replied

    • D

      Styling search bar with select and button component
      Help • css styling • • David

      3
      -1
      Votes
      3
      Posts
      1840
      Views

      D

      Thank you Scott