Skip to content

Media queries shorthand syntax #1

@carlosbaraza

Description

@carlosbaraza

Is this shorthand syntax a good idea to make quick responsive changes?

.component {
  padding: var(--md-s-10, var(--s-5)); /* Space 5 to mobile. Space 10 to tablet+ */
}

Or is it better to keep the responsive design responsibility separated?

.component {
  padding: var(--s-5);
}

@media (min-width: 768px) {
  .component {
    padding: var(--s-10);
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions