GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Kai Klostermann (odddev@floss.social)'s status on Saturday, 21-Dec-2024 17:38:38 JST Kai Klostermann Kai Klostermann

    #CSS #askFedi

    What's the difference between `*::before` and `::before` and why would I use it? Stumbled across it in a blog post.

    In conversation about 5 months ago from floss.social permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Saturday, 21-Dec-2024 17:38:36 JST Aral Balkan Aral Balkan
      in reply to

      @OddDev * means every element. So you’d be setting styles to be applied to the before pseudo-element of every element. Likely not what you want to do :)

      In conversation about 5 months ago permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Saturday, 21-Dec-2024 17:41:31 JST Aral Balkan Aral Balkan
      in reply to

      @OddDev Although, if you scope it to another element, then it’ll mean every element within that scope, which could be useful.

      e.g., nav *::before {} would apply those styles before every element in your nav.

      In conversation about 5 months ago permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Saturday, 21-Dec-2024 17:44:47 JST Aral Balkan Aral Balkan
      in reply to

      @OddDev (Whereas nav::before {} would only apply the styles before the nav element itself.)

      In conversation about 5 months ago permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Saturday, 21-Dec-2024 21:45:09 JST Aral Balkan Aral Balkan
      in reply to

      @OddDev Yeah, at a quick glance, not sure. Take it out and see what happens :)

      In conversation about 5 months ago permalink
    • Embed this notice
      Kai Klostermann (odddev@floss.social)'s status on Saturday, 21-Dec-2024 21:45:11 JST Kai Klostermann Kai Klostermann
      in reply to
      • Aral Balkan

      @aral Ah okay, so it's no special syntax really. Thank you so much!

      Wondering why they did that here tho: https://www.kallmanation.com/styling-a-radio-button-with-only-css

      In conversation about 5 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: cdn.hashnode.com
        Styling a radio button with only CSS
        from https://hashnode.com/@kallmanation
        As I hinted to in the previous installment of this series; a radio button is in the same situation as checkboxes on the web: no options for styling the native component, but the same strategy we used for checkboxes can be applied to radio buttons as ...
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Saturday, 21-Dec-2024 21:48:53 JST Aral Balkan Aral Balkan
      in reply to

      @OddDev Thought as much :)

      In conversation about 5 months ago permalink
    • Embed this notice
      Kai Klostermann (odddev@floss.social)'s status on Saturday, 21-Dec-2024 21:48:55 JST Kai Klostermann Kai Klostermann
      in reply to
      • Aral Balkan

      @aral It's the same. 🫠 Maybe it's just an oopsie in the post.

      In conversation about 5 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.