https://htmx.org logo
Join Discord
Powered by
# missing_dot_css
  • g

    gorgeous-airport-54386

    06/03/2022, 10:10 PM
    on fedora 36 with whatever weird fonts i have installed
  • j

    jolly-kite-167

    06/03/2022, 11:47 PM
    I prefer serif typefaces for block text, and sans-serif for titles and headers, but I think there's some tweaking to try to make this look less awkward. It isn't horrible on this Chromebook, but it wouldn't exactly make Edward Tufte happy.
  • g

    gorgeous-ghost-95789

    06/04/2022, 6:18 PM
    Praise be, in Tufte's name 🙂
  • g

    gorgeous-ghost-95789

    06/04/2022, 6:22 PM
    If it's possible to use slightly lighter font weights, it might help the "stuffy" feeling you're getting. Not super-light, obviously, but I think you're getting that feeling because it looks a lot like a printed book (where ink has physical limitations). Try moving one click down the font-weight scale (e.g. from 500 to 400) to see if this helps.
  • g

    gorgeous-ghost-95789

    06/04/2022, 6:27 PM
    I'm used to sans-serif everywhere, but each has its place, for sure. Perhaps there are easily replaceable variables that could stand in for a few different system font stacks?
    Copy code
    css
    :root {
      --font-system-serif: ...;
      --font-system-sans: ...;
      --font-system-fixed: ...;
    }
  • j

    jolly-kite-167

    06/04/2022, 6:31 PM
    Those exist in missing.style already, unless I'm missing your point.
    --display-font
    ,
    --main-font
    , and
    --mono-font
    . In my experiment, all I've done is redefine those variables in my own stylesheet using the "system fonts stack" suggestions, and attached them to a few additional selectors.
  • j

    jolly-kite-167

    06/04/2022, 6:33 PM
    FWIW, I used to prefer sans-serif electronically until resolutions got high enough that all serifs didn't look like slab serifs.
  • j

    jolly-kite-167

    06/04/2022, 6:34 PM
    I'm not a typeface snob, but I'm often surrounded by them.
  • g

    gorgeous-airport-54386

    06/04/2022, 7:26 PM
    it doesn't look like a book, it looks like PDF documentation for a microcontroller
  • g

    gorgeous-airport-54386

    06/04/2022, 7:27 PM
    i just want a grotesque sans-serif with italics that don't look like they are about to fall over
  • g

    gorgeous-ghost-95789

    06/04/2022, 9:06 PM
    San. Fran. Cisco.
  • g

    gorgeous-airport-54386

    06/04/2022, 9:14 PM
    i guess i should have clarified that i would also like the rights to use them
  • g

    gorgeous-ghost-95789

    06/04/2022, 10:02 PM
    That's fair, but it is available to anyone on a Mac. I think you're already using
    -apple-system
    right? So you're already using San Francisco.
  • g

    gorgeous-airport-54386

    06/04/2022, 10:02 PM
    this is for my personal site that's currently using Alegreya
  • g

    gorgeous-ghost-95789

    06/05/2022, 12:06 AM
    Oh, gotcha!
  • g

    gorgeous-airport-54386

    06/05/2022, 3:18 PM
    https://missing.style/docs/forms/ how to make nice forms with missing.css
  • j

    jolly-kite-167

    06/05/2022, 7:49 PM
    > Inputs without labels will cause nasal demons.
  • j

    jolly-kite-167

    06/05/2022, 7:49 PM
    Oh my.
  • r

    refined-waiter-90422

    06/06/2022, 12:58 AM
    Btw for anyone using this, you need this for mobile devices.
    Copy code
    css
    html {
        text-size-adjust: none; /* Fixes chrome on mobile. */
        -webkit-text-size-adjust: none; /* Fixes safari on mobile. */
        font-size: 10px; /* Every rem size derived from this. */
    }
    body {
        font-size: 1.8rem; /* 1.8 rem = 18px */
    }
  • r

    refined-waiter-90422

    06/06/2022, 12:58 AM
    Quashed some fairly significant mobile bugs by turning
    text-size-adjust
    off.
  • g

    gorgeous-airport-54386

    06/06/2022, 1:01 AM
    setting px font sizes will break people who customize the font size on their browser. consider:
    Copy code
    css
    :root {
      font-size: calc(10em / 16); /* = 10px if default font size is 16px */
    }
  • r

    refined-waiter-90422

    06/06/2022, 1:02 AM
    the html / root font-size is adjusted by the user agent.
  • r

    refined-waiter-90422

    06/06/2022, 1:04 AM
    gonna run your snippet through the paces and see if it interacts better though!
  • g

    gorgeous-airport-54386

    06/06/2022, 1:06 AM
    it might be different across browsers, i'm pretty sure in some browsers the px value overrides the user's preference
  • r

    refined-waiter-90422

    06/06/2022, 1:30 AM
    Oof, okay, highly recommend testing your stuff on safari mobile if you haven't. CSS transitions and createElement (probably other things too) are just freaking broke without this in your
    :root
    with both the
    10px
    and
    calc(10em / 16)
    method.
    Copy code
    css
    :root {
      text-size-adjust: none; /* Fixes chrome on mobile. */
      -webkit-text-size-adjust: none; /* Fixes safari on mobile. */
    }
  • r

    refined-waiter-90422

    06/06/2022, 1:31 AM
    I wish I knew what was going wrong, and appreciate any insight, but if you haven't, highly recommend testing on mobile.
  • r

    refined-waiter-90422

    06/06/2022, 1:37 AM
    It's easy to notice on safari because text will start to visually vibrate as the browser struggles to apply the user agent size on top of the rem stuff. on transitions or newly created elements
  • r

    refined-waiter-90422

    06/06/2022, 1:44 AM
    Really sad because your snippet should just work in an ideal world.
  • g

    gorgeous-airport-54386

    06/06/2022, 1:45 AM
    https://github.com/bigskysoftware/missing/commit/a25743fa7703cd718e3cbe0580c64e3d3682216d
  • r

    refined-waiter-90422

    06/06/2022, 1:45 AM
    The only browser that works as intended is Firefox mobile. Both Chrome and Safari have vibrations with css transitions/createElement.
1...222324...44Latest