Skip to content

Commit 27a223d

Browse files
committed
v0.5.1 - Remove padding from modals and drawers
1 parent 13cf12d commit 27a223d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@benqoder/beam",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"type": "module",
55
"publishConfig": {
66
"registry": "https://registry.npmjs.org",

src/beam.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
justify-content: center;
111111
z-index: 100;
112112
transition: background 200ms ease-out;
113-
padding: 1rem;
114113
}
115114

116115
#modal-backdrop.open {
@@ -122,12 +121,11 @@
122121
border-radius: 0.5rem;
123122
width: 100%;
124123
max-width: 32rem;
125-
max-height: calc(100vh - 2rem);
124+
max-height: 100vh;
126125
overflow: auto;
127126
transform: scale(0.95);
128127
opacity: 0;
129128
transition: transform 200ms ease-out, opacity 200ms ease-out;
130-
padding: 15px;
131129
}
132130

133131
#modal-backdrop.open #modal-content {
@@ -153,8 +151,8 @@
153151
}
154152

155153
#modal-content[data-size="full"] {
156-
max-width: calc(100% - 2rem);
157-
max-height: calc(100vh - 2rem);
154+
max-width: 100%;
155+
max-height: 100vh;
158156
}
159157

160158
/* Drawer backdrop */
@@ -176,7 +174,6 @@
176174
max-height: 100vh;
177175
overflow: auto;
178176
transition: transform 200ms ease-out;
179-
padding: 15px;
180177
}
181178

182179
/* Drawer positions */

0 commit comments

Comments
 (0)