Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25344

Add mixins to the media CSS

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 9.10-HF25, 10.10
    • Component/s: Web UI

      Description

      The media rule is used by the element nuxeo-suggester.html. Currently there is only one mixin: nuxeo-app-header-background

      @media (max-width: 1024px) {
        #searchButton {
          box-shadow: -3px 0 10px 0 rgba(0,0,0,0.1);
          background-color: var(--nuxeo-app-header-background);
          width: 52px;
          z-index: 100;
        }
        #searchBar {
          justify-content: flex-start;
        }
        paper-input {
          width: calc(100% - 90px);
          margin-left: 1.2rem;
        }
        #results {
          width: 100%;
          padding: 1em;
        }
       }
      

      In order to fix the display of the suggester on small screen, I have the requirement to expose 2 new mixins for the paper-input element, for example:

      paper-input {
          width: var(--paper-input-media-width);
          margin-left: var(--paper-input-media-margin);
        }
      

      Maybe a quick improvement can be done for 9.10 and a more important rework in master

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 35 minutes
                1h 35m