News for hackers. Stuff that matters.
Re:Rebuilding a featured news section with modern CSS: Vox news by MuffinFlavored on Sunday April 30, 2023 @11:00PM (#35768654)
Why do this instead of

    <div class="c-newspaper__item display-flex gap-1rem">
        <article class="c-card"></article>
    </div>

    .display-flex {
      display: flex;
    }
    
    .gap-1rem {
      gap: 1rem;
    }
Re:Rebuilding a featured news section with modern CSS: Vox news by dmix on Monday May 01, 2023 @12:03AM (#35768986)
You can use CSS classes like booleans but sometimes its nice to have actual boolean variables, used on the actual HTML element in your component, when designing the logic of your application. Even if it's more verbose.