Skip to content

remove min/max CSS #2243

Closed
Closed

Description

@adumesny

Subject of the issue

today we use CSS for min/max but I really don't see why since the interaction is in code and not using CSS to constrain - might as well only set it during resizing on the clone if at all...

@use "sass:math";
.grid-stack > .grid-stack-item {

  $gridstack-columns: 12;

  min-width: 100%/$gridstack-columns;

  @for $i from 0 through $gridstack-columns {
    &[gs-w='#{$i}'] { width: (100% / $gridstack-columns) * $i; }
    &[gs-x='#{$i}'] { left: (100% / $gridstack-columns) * $i; }
    &[gs-min-w='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; }
    &[gs-max-w='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; }
  }
} 

Activity

  1. added 2 commits that reference this issue on Apr 9, 2023
    ceb103b
    5d24e85
  2. added 3 commits that reference this issue on Apr 9, 2023
    3d44c2b
    32ccecc
    e7bac7a
  3. changed the title [-]remove min-max CSS[/-] [+]remove min/max CSS[/+] on Apr 9, 2023
  4. added a commit that references this issue on Apr 9, 2023
    03b898f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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