• Activity
  • Votes
  • Comments
  • New
  • All activity
  • Showing only topics with the tag "css". Back to normal view
    1. The web could be so much more beautiful

      Back in high school when I was writing essays, my teacher always demanded to use justified text, because simple left aligned or right aligned text looked ugly. Even back then as a totally...

      Back in high school when I was writing essays, my teacher always demanded to use justified text, because simple left aligned or right aligned text looked ugly. Even back then as a totally rebellious teenager, I agreed with her. Print has used it for hundreds of years, why shouldn't we?

      The web has always resisted this development because it was difficult. Yes, the css property text-align: justify exists, but browser were always missing the crucial functionality of hyphenating words. That led to very ugly justified texts and so called "rivers" of whitespace because the spaces got so large. Begrudingly, I got used to it.

      I was surprised to learn that all major browsers support the new hyphens css property since late 2023. This one adds exactly that crucial functionality. I was stunned and immediately tried it out and oh look, the web is so much more beautiful now.

      You can try out yourself here on Tildes! Just right click a comment, click "Inspect" and then when the dev console pops up, add

      text-align: justify;
      hyphens: auto:
      

      to p, which stands for the paragraph html tag and in which all text posts are rendered on Tildes.

      It looks so much better! But I do wonder why it hasn't spread around more in the web. Am I the only one? Am I nitpicky? I feel like the improvement is stark and very good for functionally no extra work. I even installed a browser extension which augments a website's css so I could automatically do it on most websites.

      31 votes
    2. Kagi recently changed their dark mode, fix inside

      Since I know quite a few tilderinos use Kagi (far higher percentage than the standard population) I figured this might interest some of you. Kagi pushed out a new Dark theme that is not dark. It's...

      Since I know quite a few tilderinos use Kagi (far higher percentage than the standard population) I figured this might interest some of you.

      Kagi pushed out a new Dark theme that is not dark. It's possibly even worse than Googles non-dark official Dark mode.

      Here is a CSS fix you can throw in your custom css section in settings that I whipped up for some people in the Discord, should be useful.

          :root {  
        --custom-bg-color: #090c10;
      
        --search-result-gap: 20px;
        --search-result-gap-mobile: 10px;
        --app-bg: var(--custom-bg-color);
        --search-result-title: #fff;
        --primary-visited: #aaa;
        /*! --quick-search-bg: #000; */
        --color-search-input: var(--custom-bg-color);
        --result-item-title-border: rgba(255,255,255,0.25);
        --search-result-date-bg: rgba(255,255,255,0.15);
      }
      
      .__sri-time {
        font-size: 12px;
        border-radius: 2px;
        margin-right: 3px
      }
      
      .__sri-desc {
        padding-top: 3px;
      }
      
      .__sri-title {
        margin-bottom: 5px;
      }
      
      .__sri-url .__sri_url_path_box {
        margin-top: 0px;
      }
      
      @media screen and (max-width: 1300px) {
        .search-result, .sri-group {
          padding-top: 0px !important;
          padding-bottom: 0px !important;
          margin-bottom: var(--search-result-gap-mobile) !important;
        }
      }  
      

      This fixes the colors, padding, and some other general weirdness they introduced. They also don't follow their own variable specs so I introduced two new ones in there so you can modify to your liking (namely padding between links on mobile and desktop).

      26 votes
    3. User-styles don't work on Tildes anymore?

      I can't seem to get any CSS user-style to work with Tildes anymore. I'm using Stylus on Firefox. Has something changed recently on Tildes which is causing this? Edit: I was using Stylus already,...

      I can't seem to get any CSS user-style to work with Tildes anymore. I'm using Stylus on Firefox. Has something changed recently on Tildes which is causing this?
      Edit: I was using Stylus already, just thought it was Stylish.

      10 votes
    4. Tilweaks: A user style I made to "clean up" Tildes' interface

      This was originally made just for personal use, but I decided to clean it up and share it. Should support all built-in themes (Themes other than Dracula were afterthoughts and might not be as...

      This was originally made just for personal use, but I decided to clean it up and share it.

      • Should support all built-in themes (Themes other than Dracula were afterthoughts and might not be as polished. Especially light themes)
      • All changes are toggle-able

      Changes

      • Configurable font size
      • Remove sidebar background
        • Make the sidebar primary button clear (border only)
      • Add a border to the "main" element
      • Add extra spacing to various elements
        • Remove the alternating background from thread colors
      • Remove comment borders
        • Add depth indicators (dotted left border for children only)
        • Add comment backgrounds (to separate comments without borders)
      • Hide votes (disabled by default)

      Installation

      Configuration under Stylus

      1. Open the extension popup in when in tildes.net
      2. Click the cog next to Tilweaks
      3. Edit to your liking
      20 votes
    5. Wide Tildes: A user-style for better utilization of large monitors

      Install from here: Wide Tildes on UserStyles.world Features Multiple columns on list pages Wider site on all pages Source @-moz-document domain("tildes.net") { header#site-header { width: 97vw; }...

      Install from here: Wide Tildes on UserStyles.world

      Features

      • Multiple columns on list pages
      • Wider site on all pages

      Source

      @-moz-document domain("tildes.net") {
      header#site-header {
          width: 97vw;
      }
      
      .topic-listing li {
          break-inside: avoid-column;    
      }
      
      .topic-listing {
          column-width: 25em;
      }
      
      .topic-text-excerpt {
          display: none;
      }
      }
      
      25 votes
    6. Tildes CSS and Android accessibility

      Hi all. On my Pixel phone I have the accessibility option for font size and display size turned up a notch or two but noticed that not all of the text in Tildes adheres to this. Some front page...

      Hi all. On my Pixel phone I have the accessibility option for font size and display size turned up a notch or two but noticed that not all of the text in Tildes adheres to this. Some front page topic text is bigger, some of them remain small.

      Is this something that can be quickly tested and fixed if it's a bug? It might drive poor sighted people away from the site.

      I'm assuming it's not me, as my Pixel 7 is quite new .... but I am on the Android beta program.

      Can anyone else try and see if it's a localised issue or more global?

      I can post screen shots of needed but not sure what image sharing sites you prefer to use in here!

      Edit:

      Fixed with a chrome flag....

      the text-scaling is being replaced by the "Accessibility Page Zoom" feature (currently hidden behind the feature flag in chrome://flags)

      23 votes
    7. Groups don't show unsubscribed topics

      On https://tildes.net/groups it looks like at least on Firefox 88 the normal link color: a.link-user:visited, a.link-group:visited is overriding the unsubscribed color:...

      On https://tildes.net/groups it looks like at least on Firefox 88 the normal link color:

      a.link-user:visited, a.link-group:visited
      

      is overriding the unsubscribed color:

      .group-list-item-not-subscribed a.link-group
      
      4 votes
    8. Its still rough, but I made a really busy tildes theme

      I decided to rewrite this from scratch. You can try it out if you're game. album I wiped out my profile in Chrome the other day and forgot to back up stylus and some other settings for a few...

      I decided to rewrite this from scratch. You can try it out if you're game.

      album


      I wiped out my profile in Chrome the other day and forgot to back up stylus and some other settings for a few extensions. I found an old post where I listed part of a theme I'd started working on, but had since abandoned.

      I couldn't find a copy of the ol' Tiltweaks stylus theme, either, so I decided to bring back that old, unfinished gem to get my theme back to roughly where I had it before... then I added a bunch of other crap in.

      Anyway, here's the link to a busy screencap.

      The two column layout isn't for everybody, but in the brief time I've spent with it, I'm starting to like it.

      Just thought I'd share. I'm about 99.6% certain everybody will see it and say, 'gross' :)

      15 votes
    9. Any custom themes using Stylus?

      I switched to the light theme the other day. I'm typically all-in with dark themes for everything, but there was some convincing research. I started working on a light theme, but it's fairly...

      I switched to the light theme the other day. I'm typically all-in with dark themes for everything, but there was some convincing research.

      I started working on a light theme, but it's fairly basic.

      I was digging through the old thread and found a few gems, but I'm wondering what everybody has been up to since. Time for some show and tell!

      10 votes
    10. Stylus userstyle that hides comment vote counts

      This simple stylus userstyle hides vote counts on both voted and unvoted comments and your own comments. I really like what Deimos did, it significantly improved my time here on Tildes. If you...

      This simple stylus userstyle hides vote counts on both voted and unvoted comments and your own comments. I really like what Deimos did, it significantly improved my time here on Tildes. If you want the feature back, install Stylus extension, click the Stylus icon > write style for tildes.net and paste this:

      /* Hide vote count for unvoted comments */
      .btn-post-action[name="vote"] {
          visibility: hidden;
          position: relative;
      }
      .btn-post-action[name="vote"]:after {
          visibility: visible;
      	content: "Vote";
          position: absolute;
      }
      
      /* Hide vote count for voted comments */
      .btn-post-action[name="unvote"] {
          visibility: hidden;
          position: relative;
      }
      .btn-post-action[name="unvote"]:after {
          visibility: visible;
      	content: "Voted";
          position: absolute;
      }
      
      /* Hide vote count for your own comments */
      .comment-votes {
          display: none;
      }
      

      Known issues

      • There is extra padding around Vote button
      • Extensions such as Vim Vixen cannot interact with Vote button
      10 votes
    11. Weird bug. CSS messes up, even after page reload.

      https://tildes.net/~hobbies/bzx/what_are_your_hobbies_and_how_do_you_get_into_them#comment-2z4f See for yourself. Text is squished to the left side of the page, one or two words per line. No idea...

      https://tildes.net/~hobbies/bzx/what_are_your_hobbies_and_how_do_you_get_into_them#comment-2z4f

      See for yourself. Text is squished to the left side of the page, one or two words per line. No idea if anyone else can see this but since it happens every time l visit that link l thought it was worth asking.

      Going to poke @Deimos on this one l suppose.

      Edit: Issue created.

      6 votes
    12. Could someone proficient with CSS make a userstyle that moves the vote buttons on posts to the left?

      I'm left handed and having to reach the right side of the screen is pretty annoying when browsing one handed on mobile. I know this seems like a silly issue(and it very much is) but I'd be very...

      I'm left handed and having to reach the right side of the screen is pretty annoying when browsing one handed on mobile. I know this seems like a silly issue(and it very much is) but I'd be very grateful if someone could help

      18 votes
    13. Firefox plugin Stylus no longer working on Tildes

      I have poor vision and I rely heavily on a Firefox plugin called Stylus to make websites readable - in particular the trend for low contrast and small text. That includes Tildes. I updated it to...

      I have poor vision and I rely heavily on a Firefox plugin called Stylus to make websites readable - in particular the trend for low contrast and small text. That includes Tildes.

      I updated it to v1.5.0 and now the styles I set for Tlldes no longer work - most other sites still appear to work but I've not checked them exhaustively.

      I immediately tried rolling back a release or two (1.4.23 and 1.4.22) but those versions no longer work for any site. I tried randomly downgrading to even older versions but the same result. I think I'm stuck with the latest version..

      I notice in the browser console there are 2 errors reported on Tildes e.g. on this page I see:

      Content Security Policy: The page's settings blocked the loading of a resource at inline ("script-src"). new_topic:1:1
      Content Security Policy: The page's settings blocked the loading of a resource at inline ("style-src"). new_topic:1:1

      Using the Firefox Developer tools Inspector - I see my style settings for Tildes injected by Styuls (after the body) but they do not work any more.

      Since only Tildes so far is not working with my Stylus settings I guess there is also a recent change to Tildes that is causing Stylus to fail.

      This is a rather serious issue for me as all the colour options in the setting are low contrast and cause eye strain which becomes painful without the Stylus settings.

      Thanks for any help you can offer.

      17 votes