When using an uploaded image as a tile icon, is there a method to increasing it’s size? They look small for my taste on my wall-hung tablet. Here’s an example of my disco ball “lounge mode” icon. I tried increasing icon size via .css in the theme, but icon image size doesn’t increase whereas the stock icons do.
What does your Custom CSS look like? You would need to target the right element to scale it. It’s an <img> tag rather than an <svg> tag if you’ve uploaded a PNG, JPEG, etc.
I’m not going to lie… my knowledge of CSS is grossly limited, but with your last reply, I copied the line for ICONS and edited it for the image. Worked out perfectly.
Change the position to relative, and then use the top and left properties to move things relative to their current position (could cause issues if it overrides any explicit positioning)
As usually, the normal disclaimer applies that any CSS snippets provided are not specific recommendations nor officially supported. And CSS customizations may have to be updated with future SharpTools app updates.
Have you tried copying and pasting the syntax from my original example above. It already has the correct syntax.
Your latest update fixed the space between .tile and .hyperlink but it looks like a new error was introduced. There should be a space after .tile.hyperlink and the .icon
Again, the original post had valid syntax that you could highlight and copy.
That snippet is specifically for Hyperlink tiles. The .tile.hyperlink part indicates that it should only apply to hyperlink tiles. You would need to adjust accordingly if you wanted it to apply to other tile types.
I mean that the snippet only applies to Hyperlink tiles. Not any other tile like Things, Variables, etc. It being a built-in icon versus a uploaded file image shouldn’t matter in this case since we are targeting the higher level .icon
As mentioned in my previous reply, it’s the combination of .tile.hyperlink in the CSS selector that does this.
Your existing CSS uses the same approach to limit the CSS to news feeds, clocks, and calendars.
If you can clarify what you are trying to accomplish, perhaps we can provide better guidance. Just a heads up that I am out of the office on vacation, so might not be able to respond immediately, but other community members might be able to help out in the meantime.
PS. You will want to make sure the selector is all on the same line as shown in my original snippet. The screenshot just made it look like it was on two lines since my browser developer tools squished things a little bit.
@josh ,
As mention above I’m trying the change the position of a File Type Icon.
I’m trying to move the icon a little bit down since it cover my header.
The snippet only applies to hyperlink tiles. As I mentioned in my previous reply, you have a variety of different types of css selectors in your theme.
All of the ones highlighted in yellow are targeting a particular tile type. In other words, the CSS with those only applies to a particular tile type / layout.
The ones highlighted in blue are targeting specific named styles and only apply to tiles that use that particular named style.
The ones in red don’t have any subselector, so they apply to the icons of ALL tiles.
You would need to adjust the snippet according to your needs. Are you trying to apply the style to ALL tiles, all Color Control tiles, or just a particular tile (eg. With a specific named style)?