Skip to content

Commit

Permalink
Add overflow classes to cover block
Browse files Browse the repository at this point in the history
  • Loading branch information
patil-vipul committed Jan 7, 2025
1 parent 748dbd0 commit 4060b48
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,57 @@

}

&.overflow-visible {
overflow: visible;
}
&.overflow-hidden {
overflow: hidden;
}
&.overflow-clip {
overflow: clip;
position: relative;
}
&.overflow-scroll {
overflow: scroll;
}
&.overflow-auto {
overflow: auto;
}

&.overflow-x-visible {
overflow-x: visible;
}
&.overflow-x-hidden {
overflow-x: hidden;
}
&.overflow-x-clip {
overflow-x: clip;
position: relative;
}
&.overflow-x-scroll {
overflow-x: scroll;
}
&.overflow-x-auto {
overflow-x: auto;
}

&.overflow-y-visible {
overflow-y: visible;
}
&.overflow-y-hidden {
overflow-y: hidden;
}
&.overflow-y-clip {
overflow-y: clip;
position: relative;
}
&.overflow-y-scroll {
overflow-y: scroll;
}
&.overflow-y-auto {
overflow-y: auto;
}

// Extra specificity for in edit mode where other styles would override it otherwise.
.wp-block-cover__image-background,
video.wp-block-cover__video-background {
Expand Down

0 comments on commit 4060b48

Please sign in to comment.