How to round corners of thumbnails

2456

Comments

  • thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited August 10, 2013
    Allen I added this and the thumbs are rounded, but when I hove there seems to be a "filter" that appears and it is square. Any ideas?

    http://www.onbroadwaydancers.com/Picture-Galleries/On-Broadway-Dancers/2005/Celebration-in-The-Park-2005

    Add this:
    .sm-gallery-tiles .sm-tile .sm-tile-overlay {
      border-radius: 25px;
    }
    
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 10, 2013
    Lamah wrote: »
    Add this:
    .sm-gallery-tiles .sm-tile .sm-tile-overlay {
      border-radius: 25px;
    }
    

    Thanks!
  • Darter02Darter02 Registered Users Posts: 947 Major grins
    edited August 10, 2013
    I like this but I have something odd happening. The far right folders, galleries, and photos have their right sides unaffected by this mod.

    i-tHKhHRC-L.jpg

    i-fqpz5CD-L.jpg

    Also, is there a code to round images in photo blocks, both the single, and the multi?
  • thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited August 10, 2013
    Darter02 wrote: »
    I like this but I have something odd happening. The far right folders, galleries, and photos have their right sides unaffected by this mod.

    What you're seeing is the photos on the right getting their complete right edge cropped off by the edge of the page. If you resize your browser window slightly, you'll see SmugMug's Collage Landscape layout reshuffling the images to fit better, and they'll suddenly stop getting cropped off at the right.

    As to why that might be happening, I'm not sure. You could try reducing any left or right margins you can find in the customiser to zero.
    Also, is there a code to round images in photo blocks, both the single, and the multi?

    For the multi:
    .sm-page-widget-images .sm-tile a {
        border-radius:8px;
    }
    

    For the single, it might depend on the options you've chosen, but this works for one of mine:
    .sm-page-widget-image .sm-tile img {
        border-radius:8px;
    }
    
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 10, 2013
    I noticed that on pages like the one listed http://www.onbroadwaydancers.com/Picture-Galleries/On-Broadway-Dancers/2007 if the featured image does not fill the box on the layout it does not get rounded. Any ideas?
  • rich56krich56k Registered Users Posts: 547 Major grins
    edited August 10, 2013
    Rounded corners in Safari vs FF
    I noticed that on pages like the one listed http://www.onbroadwaydancers.com/Picture-Galleries/On-Broadway-Dancers/2007 if the featured image does not fill the box on the layout it does not get rounded. Any ideas?


    Hi Anthony,

    I remember watching your prep of (all) your legacy sites with great admiration for all the work you put in, and how well they ended up. I also understand the huge amount of work you'll need to replicate those results in the new smug.

    So I checked in on this thread (as I hope to do the rounded corners (amongst other things when I get my site converted). In the spirit of mutual benefit I felt I should post this as it's the beginning of the 'new smug' customization efforts and this type of thing happened alot back in the early days of legacy work.

    As a mac user I run both FF and Safari so I checked some of the sites in this thread and got concerned as it looks like the results aren't universal across browsers (not sure about Chrome or IE) but I wanted to mention this to see if it's just at my end or what... in each case below the Safari screenshot is on the left with FF on the right side.

    i-345MSC5-L.jpg
    Rons site:
    i-vQ6K4Ls-L.jpg
    Robs site:
    i-ptTpCbq-L.jpg


    I can and will check any other type efforts as needed if I can be of assistance - as a mac guy I hope to see these changes work in ALL the current browsers so all our customers have a universally good experience.

    Hope this helps,

    rich56k
    http://HooliganUnderground.com
    Member: ASMP; EP; NPPA; CPS
  • thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited August 11, 2013
    What version of Safari?

    Luckily, it's not like the corners falling back to the default shape is going to ruin your clients' experience or anything.
  • rich56krich56k Registered Users Posts: 547 Major grins
    edited August 11, 2013
    Lamah wrote: »
    What version of Safari?

    Luckily, it's not like the corners falling back to the default shape is going to ruin your clients' experience or anything.

    I have Safari 5.0.6 running on an iMac 17" 2.33 Core 2 duo with OSX 10.5.8.

    The only difference I could see is just the square vs rounded corners so yes it won't be known to them unless they visit with 2 different browsers...

    -rich56k
    http://HooliganUnderground.com
    Member: ASMP; EP; NPPA; CPS
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 11, 2013
    rich56k wrote: »
    Hi Anthony,

    I remember watching your prep of (all) your legacy sites with great admiration for all the work you put in, and how well they ended up. I also understand the huge amount of work you'll need to replicate those results in the new smug.

    So I checked in on this thread (as I hope to do the rounded corners (amongst other things when I get my site converted). In the spirit of mutual benefit I felt I should post this as it's the beginning of the 'new smug' customization efforts and this type of thing happened alot back in the early days of legacy work.

    As a mac user I run both FF and Safari so I checked some of the sites in this thread and got concerned as it looks like the results aren't universal across browsers (not sure about Chrome or IE) but I wanted to mention this to see if it's just at my end or what... in each case below the Safari screenshot is on the left with FF on the right side.

    i-345MSC5-L.jpg
    Rons site:
    i-vQ6K4Ls-L.jpg
    Robs site:
    i-ptTpCbq-L.jpg


    I can and will check any other type efforts as needed if I can be of assistance - as a mac guy I hope to see these changes work in ALL the current browsers so all our customers have a universally good experience.

    Hope this helps,

    rich56k

    Wow! Thanks for the very nice comment. I think I'm blushing:D.
    Any way... I have 2 of the most basic sites pretty well converted. The one I'm working on now (www.onbroadwaydancers.com) has a bit more to it, but no where near MY site. I hope to learn on these 1st 3 then hit the ground running on mine.

    As for the rounded stuff... Is Safari on your MAC different than Safari on an iPhone? The corners look good on my phone.

    I'll play with my code and maybe I can PM your later.
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 11, 2013
    rich56k wrote: »
    So I checked in on this thread (as I hope to do the rounded corners (amongst other things when I get my site converted). In the spirit of mutual benefit I felt I should post this as it's the beginning of the 'new smug' customization efforts and this type of thing happened alot back in the early days of legacy work.

    I can and will check any other type efforts as needed if I can be of assistance - as a mac guy I hope to see these changes work in ALL the current browsers so all our customers have a universally good experience.

    Hope this helps,

    rich56k

    I loaded Safari 5 for Windows... the rounded corners show up fine except for the Folder and Gallery page thumbs. ne_nau.gif
    In Smugmug gallery style the show up fine as well as the other image boxes around the site ans the homepage slideshow box. Weird.
  • rich56krich56k Registered Users Posts: 547 Major grins
    edited August 11, 2013
    Wow! Thanks for the very nice comment. I think I'm blushing:D.
    Any way... I have 2 of the most basic sites pretty well converted. The one I'm working on now (www.onbroadwaydancers.com) has a bit more to it, but no where near MY site. I hope to learn on these 1st 3 then hit the ground running on mine.

    As for the rounded stuff... Is Safari on your MAC different than Safari on an iPhone? The corners look good on my phone.

    I'll play with my code and maybe I can PM your later.

    I also have one other site to do too, but I didn't migrate in time (they paused migrations until next week)- I working on my main site - just waiting for the dust to settle a bit before going live.

    As far as iPhone Safari - (I don't have one but I'm pretty sure it's an "iOS" version for mobile so that could account for the diff.)

    Note my Safari isn't the very newest (it is the latest for my machine with the OS I have - there is one newer...) on Monday at work/school I'll have Dell PC's with IE and Chrome and a brand new iMac with the very latest Safari and Firefox. Last week I did some compares and the new version of safari seems to match my slightly older home version in all cases as far as new smug results...so I can check across multiple platforms side by side

    Here's one of my all time favorite pages from your main site:
    http://www.brandolinoimaging.com/gallery/1091885

    You really went all out!1

    Let me know if I can do anything else in the meantime!

    Rich
    http://HooliganUnderground.com
    Member: ASMP; EP; NPPA; CPS
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 11, 2013
    rich56k wrote: »
    I also have one other site to do too, but I didn't migrate in time (they paused migrations until next week)- I working on my main site - just waiting for the dust to settle a bit before going live.

    As far as iPhone Safari - (I don't have one but I'm pretty sure it's an "iOS" version for mobile so that could account for the diff.)

    Note my Safari isn't the very newest (it is the latest for my machine with the OS I have - there is one newer...) on Monday at work/school I'll have Dell PC's with IE and Chrome and a brand new iMac with the very latest Safari and Firefox. Last week I did some compares and the new version of safari seems to match my slightly older home version in all cases as far as new smug results...so I can check across multiple platforms side by side

    Here's one of my all time favorite pages from your main site:
    http://www.brandolinoimaging.com/gallery/1091885

    You really went all out!1

    Let me know if I can do anything else in the meantime!

    Rich

    I hope to recreate that one:D
    This is my fav: http://www.brandolinoimaging.com/gallery/6055140_dwSjx
    But I doubt I'll be recreating that one since it's all JS.:cry

    Safari on my PC act weird w/ the corners They appear rounded as the site loads, then once loading is complete they go square.ne_nau.gif

    I googled it and the new Safari is supposed to work w/ the same code as the new FF.

    Did you look at any other pages on the site to see if the corners rendered correctly?
  • Sir_EagleSir_Eagle Registered Users Posts: 137 Major grins
    edited August 11, 2013
    Rounded corners are cool. I finally got all mine working.
    /*ADD RADIUS CORNERS TO SLIDESHOW AND LARGE PIC IN GALLERIES*/
    .sm-tile-single.sm-tiles-uncropped .sm-image {
    border-radius: 25px;
    box-shadow: 0 0 0 #000;
    max-width: 95%}
    I left the box shadow in but currently not using it.

    /* MAKE CORNERS ROUND ON GALLERY & FOLDER LINK IMAGES */
    .sm-page-widget-folders .sm-tile a,
    .sm-page-widget-galleries .sm-tile a,
    .sm-page-widget-nodes .sm-tile a,
    .sm-page-widget-pages .sm-tile a {
    border-radius: 8px;
    }
    /* round the edges on gallery thumbnails */
    .sm-gallery-roworganic img {
    border-radius: 10px;
    }
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 11, 2013
    Fixed it on my Safari for PC
    /*Safari Hack for Folder & Gallery Thumbs*/
    .sm-tiles-center-image .sm-tile-limit-width {
      border-radius: 25px;
    }
    

    This was some of the 1st code put out on Dgrin. I'm not sure WHY it makes it work, but it does. I plated with some of the original code posted for this HACK.
  • rich56krich56k Registered Users Posts: 547 Major grins
    edited August 11, 2013
    I hope to recreate that one:D
    This is my fav: http://www.brandolinoimaging.com/gallery/6055140_dwSjx
    But I doubt I'll be recreating that one since it's all JS.:cry

    Safari on my PC act weird w/ the corners They appear rounded as the site loads, then once loading is complete they go square.ne_nau.gif

    I googled it and the new Safari is supposed to work w/ the same code as the new FF.

    Did you look at any other pages on the site to see if the corners rendered correctly?

    The all-in-one super marketing page!

    OK the original page I posted the screen shot of - when I returned it did the same thing (as you mentioned) showed rounded at first then filled in as square (??!!) EDIT: That was at 9:28 PT - hey I'm a slow typist!!

    The attached image (folder/gallery page) looks better, almost like it's just the folder name (2006) and it's 'panel' it appears on causing the issue. Once I clicked into the gallery itself it looked great: All rounded corner thumbs AND main image!

    As of 9:48 PT everything I checked looks great - all rounded everywhere!!

    Gallery/folder pages AND actual galleries themselves!

    That was it!

    R
    http://HooliganUnderground.com
    Member: ASMP; EP; NPPA; CPS
  • rich56krich56k Registered Users Posts: 547 Major grins
    edited August 11, 2013
    Sir_Eagle wrote: »
    Rounded corners are cool. I finally got all mine working.

    I left the box shadow in but currently not using it.

    Sir Eagle,
    Please note in Safari the only rounded images are the home page slideshow...the folder/galleries pages and galleries themselves are still square...

    Must be something diff between your code and Anthonys...


    R
    http://HooliganUnderground.com
    Member: ASMP; EP; NPPA; CPS
  • macromeistermacromeister Registered Users Posts: 490 Major grins
    edited August 11, 2013
    McQ wrote: »
    Rob, thanks. For some reason it's not working. The part of the code "/* make corners round on gallery lin images in folders */" shows up greyed out when I paste it in, and nothing happens after I insert the entire code.

    Any ideas?

    The /* is just a comment line to give a note as to what the following code is for. As long as you have a matching */ at the end of the line it should be greyed out, but the following code should be coloured and active. Have you got it working now?
    I'm Rob Ashcroft - MACROMEISTER IMAGES . . . .
  • thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited August 11, 2013
    I've posted my guide to rounding thumbs here, I think I covered everything:

    http://www.sherlockphotography.org/Customisations/Rounded-corners

    There's also a code at the bottom there that just tries to round virtually everything in your website in one command.
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 11, 2013
    rich56k wrote: »
    The all-in-one super marketing page!

    OK the original page I posted the screen shot of - when I returned it did the same thing (as you mentioned) showed rounded at first then filled in as square (??!!) EDIT: That was at 9:28 PT - hey I'm a slow typist!!

    The attached image (folder/gallery page) looks better, almost like it's just the folder name (2006) and it's 'panel' it appears on causing the issue. Once I clicked into the gallery itself it looked great: All rounded corner thumbs AND main image!

    As of 9:48 PT everything I checked looks great - all rounded everywhere!!

    Gallery/folder pages AND actual galleries themselves!

    That was it!

    R


    Fixed that one
    .sm-tile-info
    {
      border-radius: 0px 0px 25px 25px;
    }
    

    Code sets different curves for each corner (top-left, top-right, bottom-right, bottom-left). I had to do that other wise the over-lay was rounded on all 4 corners.

    Her's all my code
    /********Rounding the corners********/
    
    .sm-page-widget-folders .sm-tile a, /*Folders*/
    .sm-page-widget-galleries .sm-tile a,  /*Galleries*/
    .sm-page-widget-nodes .sm-tile a,  
    .sm-page-widget-pages .sm-tile a, /*Pages*/
    .sm-page-widget-images .sm-tile img, /*Single Image Boxes*/
    .sm-tile-single.sm-tiles-uncropped .sm-image /*SM Main & Homepage Slideshow Box*/
    {
      border-radius: 25px;
    }
    
    /*Safari Hack for Folder & Gallery Thumbs*/
    .sm-tiles-center-image .sm-tile-limit-width,
    .sm-tile-info
    {
      border-radius: 0px 0px 25px 25px;
    }
    
    .sm-gallery-tiles .sm-tile img, /*SM Thm*/
    .sm-gallery-tiles .sm-tile .sm-tile-overlay/*SM Thm*/
    {
      border-radius: 10px;
    }
    
  • Sir_EagleSir_Eagle Registered Users Posts: 137 Major grins
    edited August 11, 2013
    rich56k wrote: »
    Sir Eagle,
    Please note in Safari the only rounded images are the home page slideshow...the folder/galleries pages and galleries themselves are still square...

    Must be something diff between your code and Anthonys...


    R
    Thanks, just added brandofamily tweak, did it fix it?

    /*Safari Hack for Folder & Gallery Thumbs*/
    .sm-tiles-center-image .sm-tile-limit-width,
    .sm-tile-info
    {
    border-radius: 0px 0px 25px 25px;
    }

    .sm-gallery-tiles .sm-tile img, /*SM Thm*/
    .sm-gallery-tiles .sm-tile .sm-tile-overlay/*SM Thm*/
    {
    border-radius: 10px;
    }[/code]
  • McQMcQ Registered Users Posts: 165 Major grins
    edited August 11, 2013
    The /* is just a comment line to give a note as to what the following code is for. As long as you have a matching */ at the end of the line it should be greyed out, but the following code should be coloured and active. Have you got it working now?

    Haven't been able to get it to work yet. But now I noticed a bigger issue. Every time I try to place the coding for rounded galleries or photos, that part works fine, but some of my galleries then disappear!

    Argh!
    So all I need to do is get the folders to look rounded and then determine why my galleries disappear. They're still on the site, because I see them in my Organizer. They just go "Poof!" for some reason when I start messing with the site.

    I know it's because I don't know what the heck I'm doing and am making some kind of mistake, but it's frustrating. I've gotten very little help from the support heroes on this.

    The most recent time, they simply "fixed" it for me but didn't give me a solid understanding of what went wrong so I can fix it myself the next time it happens.
    "Where have you gone, Joe DiMaggio, our nation turns its lonely eyes to you?"

    http://mcq.smugmug.com
  • rich56krich56k Registered Users Posts: 547 Major grins
    edited August 11, 2013
    Sir_Eagle wrote: »
    Thanks, just added brandofamily tweak, did it fix it?

    OK as of 10:55 a.m. Pacific Time...

    I'm seeing the main folder/galleries and next level of nav bar (shown) still squared the galleries themselves are now rounded (shown)...getting closer

    -r
    http://HooliganUnderground.com
    Member: ASMP; EP; NPPA; CPS
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 11, 2013
    Any ideas on getting the popular photo thumbs rounded?

    http://www.onbroadwaydancers.com/Other/Search-Page
  • McQMcQ Registered Users Posts: 165 Major grins
    edited August 11, 2013
    The /* is just a comment line to give a note as to what the following code is for. As long as you have a matching */ at the end of the line it should be greyed out, but the following code should be coloured and active. Have you got it working now?

    Darn. Still can't get it to work. I wonder if it's because of my theme or because I'm using Collage Landscape?
    "Where have you gone, Joe DiMaggio, our nation turns its lonely eyes to you?"

    http://mcq.smugmug.com
  • macromeistermacromeister Registered Users Posts: 490 Major grins
    edited August 11, 2013
    McQ wrote: »
    Darn. Still can't get it to work. I wonder if it's because of my theme or because I'm using Collage Landscape?

    This is what I have in CSS for galleries and folders. I tried just placing it in the entire site theme, but it didn't like that.I use collage landscape too. I got it from Nicholas' excellent site http://www.sherlockphotography.org/Customisations/Rounded-corners
     /* make corners round on gallery lin images in folders */
    .sm-page-widget-galleries .sm-tile a {
        border-radius:10px;
    }
    
    /* Round the images inside Collage Landscape or Collage Portrait galleries */
    .sm-gallery-roworganic .sm-gallery-images .sm-tile, .sm-gallery-columnorganic .sm-gallery-images .sm-tile {
        border-radius:8px;
        overflow:hidden;
    }
    
    /* Round images displayed in the Lightbox */
    .sm-lightbox-image {
        border-radius:8px;
    }
    
    http://www.sherlockphotography.org/Customisations/Rounded-corners
    I'm Rob Ashcroft - MACROMEISTER IMAGES . . . .
  • McQMcQ Registered Users Posts: 165 Major grins
    edited August 11, 2013
    This is what I have in CSS for galleries and folders. I tried just placing it in the entire site theme, but it didn't like that.I use collage landscape too. I got it from Nicholas' excellent site http://www.sherlockphotography.org/Customisations/Rounded-corners
     /* make corners round on gallery lin images in folders */
    .sm-page-widget-galleries .sm-tile a {
        border-radius:10px;
    }
    
    /* Round the images inside Collage Landscape or Collage Portrait galleries */
    .sm-gallery-roworganic .sm-gallery-images .sm-tile, .sm-gallery-columnorganic .sm-gallery-images .sm-tile {
        border-radius:8px;
        overflow:hidden;
    }
    
    /* Round images displayed in the Lightbox */
    .sm-lightbox-image {
        border-radius:8px;
    }
    
    http://www.sherlockphotography.org/Customisations/Rounded-corners

    Thank you, Rob! Yes, it didn't like it in the Entire Site CSS. But it works fine in the All Folders CSS for me. So thanks for the helping hand. And thanks for passing along the customizations from Sherlock Photography.
    "Where have you gone, Joe DiMaggio, our nation turns its lonely eyes to you?"

    http://mcq.smugmug.com
  • Sir_EagleSir_Eagle Registered Users Posts: 137 Major grins
    edited August 11, 2013
    rich56k wrote: »
    OK as of 10:55 a.m. Pacific Time...

    I'm seeing the main folder/galleries and next level of nav bar (shown) still squared the galleries themselves are now rounded (shown)...getting closer

    -r
    Anyone know how to fix this in safari? I tried the code below but it's not working. It's good in FF, IE, Chrome, but not Safari.

    /********Rounding the corners********/

    /*Safari Hack for Folder & Gallery Thumbs*/
    .sm-tiles-center-image .sm-tile-limit-width,
    .sm-tile-info
    {
    border-radius: 0px 0px 25px 25px;
    }

    .sm-gallery-tiles .sm-tile img, /*SM Thm*/
    .sm-gallery-tiles .sm-tile .sm-tile-overlay/*SM Thm*/
    {
    border-radius: 10px;
    }
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 11, 2013
    Sir_Eagle wrote: »
    Anyone know how to fix this in safari? I tried the code below but it's not working. It's good in FF, IE, Chrome, but not Safari.

    I think it has something to do with the square thumbs. Sorry to not be more helpful.
  • Sir_EagleSir_Eagle Registered Users Posts: 137 Major grins
    edited August 11, 2013
    I think it has something to do with the square thumbs. Sorry to not be more helpful.
    I changed the folders and galleries from the grid to the collage view and they where still sharp corners.
  • Sir_EagleSir_Eagle Registered Users Posts: 137 Major grins
    edited August 11, 2013
    Darter02 wrote: »
    I like this but I have something odd happening. The far right folders, galleries, and photos have their right sides unaffected by this mod.

    i-tHKhHRC-L.jpg

    i-fqpz5CD-L.jpg
    Lamah wrote: »
    What you're seeing is the photos on the right getting their complete right edge cropped off by the edge of the page. If you resize your browser window slightly, you'll see SmugMug's Collage Landscape layout reshuffling the images to fit better, and they'll suddenly stop getting cropped off at the right.

    As to why that might be happening, I'm not sure. You could try reducing any left or right margins you can find in the customiser to zero.

    I used this to fix the pics on the right side in the collage landscape galleries.

    .sm-tiles-row-organic .sm-tiles-list {
    overflow: visible;
    margin: 0 0 0 -18px;
    }
Sign In or Register to comment.