Skip to content

Commit 270110d

Browse files
feat(spacings): add fiori 3 spacings (#549)
1 parent bb0d9d4 commit 270110d

File tree

1 file changed

+48
-5
lines changed

1 file changed

+48
-5
lines changed

packages/base/src/styling/spacing.ts

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,30 @@ export const sapUiResponsiveMargin = {
152152
'@media (min-width:600px) and (max-width:1023px)': {
153153
margin: '1rem !important'
154154
},
155-
'@media (min-width:1024px)': {
155+
'@media (min-width:1024px) and (max-width: 1439px)': {
156156
margin: '1rem 2rem !important'
157+
},
158+
'@media (min-width:1440px)': {
159+
margin: '1rem 3rem !important'
157160
}
158161
};
159162

163+
export const sapUiTinyNegativeMarginBeginEnd = {
164+
margin: '0 -0.5rem !important'
165+
};
166+
167+
export const sapUiSmallNegativeMarginBeginEnd = {
168+
margin: '0 -1rem !important'
169+
};
170+
171+
export const sapUiMediumNegativeMarginBeginEnd = {
172+
margin: '0 -2rem !important'
173+
};
174+
175+
export const sapUiLargeNegativeMarginBeginEnd = {
176+
margin: '0 -3rem !important'
177+
};
178+
160179
/*
161180
* ###################################################
162181
* Padding Classes
@@ -171,14 +190,38 @@ export const sapUiContentPadding = {
171190
padding: '1rem'
172191
};
173192

193+
// Two Sided Padding
194+
export const sapUiTinyPaddingBeginEnd = {
195+
paddingLeft: '0.5rem !important',
196+
paddingRight: '0.5rem !important'
197+
};
198+
199+
export const sapUiSmallPaddingBeginEnd = {
200+
paddingLeft: '1rem !important',
201+
paddingRight: '1rem !important'
202+
};
203+
204+
export const sapUiMediumPaddingBeginEnd = {
205+
paddingLeft: '2rem !important',
206+
paddingRight: '2rem !important'
207+
};
208+
209+
export const sapUiLargePaddingBeginEnd = {
210+
paddingLeft: '3rem !important',
211+
paddingRight: '3rem !important'
212+
};
213+
174214
export const sapUiResponsiveContentPadding = {
175215
'@media(max-width:599px)': {
176-
padding: '0'
216+
padding: '0 1rem'
177217
},
178218
'@media (min-width:600px) and (max-width:1023px)': {
179-
padding: '1rem'
219+
padding: '0 2rem'
220+
},
221+
'@media (min-width:1024px) and (max-width: 1439px)': {
222+
padding: '0 2rem !important'
180223
},
181-
'@media (min-width:1024px)': {
182-
padding: '1rem 2rem !important'
224+
'@media (min-width:1440px)': {
225+
padding: '0 3rem !important'
183226
}
184227
};

0 commit comments

Comments
 (0)