This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1663 from mendix/nc/feat/gallery-native-atlas
[MOO-786]: Gallery widget: Styling via Atlas
- Loading branch information
Showing
11 changed files
with
1,186 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
213 changes: 213 additions & 0 deletions
213
packages/theming/atlas/src/themesource/atlas_core/native/core/helpers/gallery.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
import { button, border, spacing } from "../../variables"; | ||
import { VariablesGallery } from "../../types/variables"; | ||
/* | ||
DISCLAIMER: | ||
Do not change this file because it is core styling. | ||
Customizing core files will make updating Atlas much more difficult in the future. | ||
To customize any core styling, copy the part you want to customize to styles/native/app/ so the core styling is overwritten. | ||
========================================================================== | ||
*/ | ||
|
||
export const justifyPaginationLeft: VariablesGallery = { | ||
loadMoreButtonPressableContainer: { | ||
alignSelf: "flex-start" | ||
} | ||
}; | ||
|
||
export const justifyPaginationCenter: VariablesGallery = { | ||
loadMoreButtonPressableContainer: { | ||
alignSelf: "center" | ||
} | ||
}; | ||
|
||
export const justifyPaginationRight: VariablesGallery = { | ||
loadMoreButtonPressableContainer: { | ||
alignSelf: "flex-end" | ||
} | ||
}; | ||
|
||
export const listItemBorderHorizontal: VariablesGallery = { | ||
listItem: { | ||
borderBottomWidth: border.width, | ||
borderTopWidth: border.width, | ||
borderBottomColor: border.color, | ||
borderTopColor: border.color | ||
} | ||
}; | ||
|
||
export const listItemBorderVertical: VariablesGallery = { | ||
listItem: { | ||
borderStartWidth: border.width, | ||
borderEndWidth: border.width, | ||
borderStartColor: border.color, | ||
borderEndColor: border.color | ||
} | ||
}; | ||
|
||
export const listItemBorder: VariablesGallery = { | ||
listItem: { | ||
...listItemBorderVertical.listItem, | ||
...listItemBorderHorizontal.listItem | ||
} | ||
}; | ||
|
||
export const gridGapInnerSmall: VariablesGallery = { | ||
listItem: { | ||
padding: spacing.smaller | ||
} | ||
}; | ||
|
||
export const gridGapInnerMedium: VariablesGallery = { | ||
listItem: { | ||
padding: spacing.regular | ||
} | ||
}; | ||
|
||
export const gridGapInnerLarge: VariablesGallery = { | ||
listItem: { | ||
padding: spacing.larger | ||
} | ||
}; | ||
|
||
export const gridGapOuterSmall: VariablesGallery = { | ||
listItem: { | ||
margin: spacing.smaller | ||
} | ||
}; | ||
|
||
export const gridGapOuterMedium: VariablesGallery = { | ||
listItem: { | ||
margin: spacing.regular | ||
} | ||
}; | ||
|
||
export const gridGapOuterLarge: VariablesGallery = { | ||
listItem: { | ||
margin: spacing.larger | ||
} | ||
}; | ||
|
||
export const galleryGridAlignSelfStart: VariablesGallery = { | ||
listItem: { | ||
alignSelf: "flex-start" | ||
} | ||
}; | ||
|
||
export const galleryGridAlignSelfCenter: VariablesGallery = { | ||
listItem: { | ||
alignSelf: "center" | ||
} | ||
}; | ||
|
||
export const galleryGridAlignSelfEnd: VariablesGallery = { | ||
listItem: { | ||
alignSelf: "flex-end" | ||
} | ||
}; | ||
|
||
export const galleryGridAlignSelfStretch: VariablesGallery = { | ||
listItem: { | ||
alignSelf: "stretch" | ||
} | ||
}; | ||
|
||
export const galleryGridAlignSelfBaseline: VariablesGallery = { | ||
listItem: { | ||
alignSelf: "baseline" | ||
} | ||
}; | ||
|
||
export const galleryGridFlexRow: VariablesGallery = { | ||
listItem: { | ||
flexDirection: "row" | ||
} | ||
}; | ||
|
||
export const galleryGridFlexWrap: VariablesGallery = { | ||
listItem: { | ||
flexWrap: "wrap" | ||
} | ||
}; | ||
|
||
export const galleryGridJustifyContentStart: VariablesGallery = { | ||
listItem: { | ||
justifyContent: "flex-start" | ||
} | ||
}; | ||
|
||
export const galleryGridJustifyContentCenter: VariablesGallery = { | ||
listItem: { | ||
justifyContent: "center" | ||
} | ||
}; | ||
|
||
export const galleryGridJustifyContentEnd: VariablesGallery = { | ||
listItem: { | ||
justifyContent: "flex-end" | ||
} | ||
}; | ||
|
||
export const galleryGridJustifyContentSpaceBetween: VariablesGallery = { | ||
listItem: { | ||
justifyContent: "space-between" | ||
} | ||
}; | ||
|
||
export const galleryGridJustifyContentSpaceAround: VariablesGallery = { | ||
listItem: { | ||
justifyContent: "space-around" | ||
} | ||
}; | ||
|
||
export const galleryGridJustifyContentSpaceEvenly: VariablesGallery = { | ||
listItem: { | ||
justifyContent: "space-evenly" | ||
} | ||
}; | ||
|
||
export const loadMoreButtonBackgroundSecondary: VariablesGallery = { | ||
loadMoreButtonPressableContainer: { | ||
borderColor: button.secondary.borderColor, | ||
backgroundColor: button.secondary.backgroundColor | ||
}, | ||
loadMoreButtonCaption: { | ||
color: button.secondary.color | ||
} | ||
}; | ||
|
||
export const loadMoreButtonBackgroundSuccess: VariablesGallery = { | ||
loadMoreButtonPressableContainer: { | ||
borderColor: button.success.borderColor, | ||
backgroundColor: button.success.backgroundColor | ||
}, | ||
loadMoreButtonCaption: { | ||
color: button.success.color | ||
} | ||
}; | ||
|
||
export const loadMoreButtonBackgroundWarning: VariablesGallery = { | ||
loadMoreButtonPressableContainer: { | ||
borderColor: button.warning.borderColor, | ||
backgroundColor: button.warning.backgroundColor | ||
}, | ||
loadMoreButtonCaption: { | ||
color: button.warning.color | ||
} | ||
}; | ||
|
||
export const loadMoreButtonBackgroundDanger: VariablesGallery = { | ||
loadMoreButtonPressableContainer: { | ||
borderColor: button.danger.borderColor, | ||
backgroundColor: button.danger.backgroundColor | ||
}, | ||
loadMoreButtonCaption: { | ||
color: button.danger.color | ||
} | ||
}; | ||
|
||
export const loadMoreButtonFixedSize: VariablesGallery = { | ||
loadMoreButtonPressableContainer: { | ||
alignSelf: "baseline" | ||
} | ||
}; |
Oops, something went wrong.