Announcement

Collapse
No announcement yet.

CSS Around Preview

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

    CSS Around Preview

    I don't know what they call it? Thread preview?

    Anyhoot, I think VB looks unpolished in this area:
    Click image for larger version  Name:	vb no css.jpg Views:	1 Size:	141.4 KB ID:	2790



    Notice Xenforo:
    Click image for larger version  Name:	css styling.jpg Views:	1 Size:	147.6 KB ID:	2791


    Is there a way to duplicate that exact same look in Vb 5?

    Thanks,
    William

    #2
    Yeah that can be done in vB5.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Please lemme know whether you'd like this as a job or whether you'd provide instruction!

      Enjoy,
      William
      Last edited by William; 03-03-2017, 01:23 AM.

      Comment


        #4
        Do you want just the style to be the same or you also want to add avatar, author name and date posted in the preview?

        ​​​​​​
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #5
          Originally posted by glennrocksvb View Post
          Do you want just the style to be the same or you also want to add avatar, author name and date posted in the preview?

          ​​​​​​
          Hi Glenn,

          Just the style would be great!

          Enjoy,
          William

          Comment


            #6
            Try this:

            Code:
            .ui-tooltip.b-topicpreview {
                border: 10px solid rgba(17, 75, 133, 0.498039);
                border-radius: 8px;
                box-shadow: rgba(0, 0, 0, 0.498039) 0px 12px 25px;
            }
            .ui-tooltip.b-topicpreview .ui-tooltip-content {
                background: #fff;
                border: 1px solid #e6e6e6;
                padding: 10px;
            }
            For the arrow, it's hard to change style as it is generated by the tooltip plugin as a canvas element.

            I just implemented that here, you can check it out.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment


            • rnedelkow
              rnedelkow commented
              Editing a comment
              This is a neat little mod. I'd like to apply the same css to a notice like you have at the top. How do you check for a missing avatar before making the notice visible?

            • glennrocksvb
              glennrocksvb commented
              Editing a comment
              I'll post that soon.

            • rnedelkow
              rnedelkow commented
              Editing a comment
              Thanks Glenn. Really appreciate your help!

            #7
            Originally posted by glennrocksvb View Post
            Try this:

            Code:
            .ui-tooltip.b-topicpreview {
            border: 10px solid rgba(17, 75, 133, 0.498039);
            border-radius: 8px;
            box-shadow: rgba(0, 0, 0, 0.498039) 0px 12px 25px;
            }
            .ui-tooltip.b-topicpreview .ui-tooltip-content {
            background: #fff;
            border: 1px solid #e6e6e6;
            padding: 10px;
            }
            For the arrow, it's hard to change style as it is generated by the tooltip plugin as a canvas element.

            I just implemented that here, you can check it out.
            Looks great Glenn! I even added the Css around forum notices:

            Click image for larger version

Name:	Forum Notice.jpg
Views:	65
Size:	126.0 KB
ID:	2814

            Comment


            • Dotti
              Dotti commented
              Editing a comment
              How did you add it to notices? Also, can you add it to announcements?

            #8
            Hi Glenn,

            I have another tooltip preview that I can't find the class for. In the screen shot you can see it which shows nothing more than the title that is selected. The page is located here: https://www.christforums.org/Activity

            The tooltip in the screen shot I'm trying to disable altogether.

            And my last request, I can never find these tooltip previews in Firefox developer tools. I tried selecting hover, focus, etc from the pseudo classes but to no avail. Is there a trick to this or could you point me in the right direction? I ask because I'd really like to learn how to do it!

            Thanks,
            William

            Click image for larger version

Name:	Untitled.jpg
Views:	53
Size:	155.6 KB
ID:	2827

            Comment


              #9
              Do you want just the style to be the same or you also want to add avatar, author name and date posted in the preview?
              How much would it be for you to do this for me?
              Dotti

              Comment

              Users Viewing This Page

              Collapse

              There is 1 user viewing this forum topic.

              • Guest Guest

              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 "|||"