Announcement

Collapse
No announcement yet.

Larger preview of added attachments to a new post

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Larger preview of added attachments to a new post

    Here is a simple & small edit that I want to share.

    On my forum the attachments are heavily used. When adding multiple attachments inline, the preview thumbnail is only 35px large.
    When the attachments look similar it is sometimes hard to see the difference. So to make them larger add the following code to the additional.css

    HTML Code:
    .b-attach-item__image {
        max-width: 100px !important;
        max-height: 100px !important; }
    
    .b-attach-item__controls {
    margin-left: 110px;
    }
    
    .b-attach-item__filename {
    margin-left: 110px;
    }
    Question to the css experts: Is there a better way to target these selectors? Because they have the same styling, is it possible to target them in a single "line"?
    Last edited by 420; 03-29-2017, 03:20 AM.

    #2
    Your selectors look good. But I don't understand your question on how to target them in a single line?
    Buy me a coffeePayPal QR Code
    My Amazon Affiliate Link
    Fast vBulletin VPS Host:
    This site is hosted by IONOS

    Comment


      #3
      Originally posted by 420 View Post
      Is there a better way to target these selectors? Because they have the same styling, is it possible to target them in a single "line"?
      You could do this:

      Code:
       .b-attach-item__controls, .b-attach-item__filename { margin-left: 110px; }
      Just seperate them with a comma.

      Comment


        #4
        Ahh, I see what 420 meant. Thanks shining! You're right.
        Buy me a coffeePayPal QR Code
        My Amazon Affiliate Link
        Fast vBulletin VPS Host:
        This site is hosted by IONOS

        Comment


          #5
          shining Thanks

          Comment

          Latest Posts

          Collapse

          Working...
          X
          Searching...Please wait.
          An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

          Please push the back button and reload the previous window.'
          An unexpected error was returned: 'Your submission could not be processed because the token has expired.

          Please push the back button and reload the previous window.'
          An internal error has occurred and the module cannot be displayed.
          There are no results that meet this criteria.
          Search Result for "|||"