summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/components/Panel/panel-jss.js
diff options
context:
space:
mode:
authorgabrhr <[email protected]>2022-04-20 10:19:29 -0500
committergabrhr <[email protected]>2022-04-20 10:19:29 -0500
commite13e630cd6e4fc0b1ff92098a28a770794c7bb9a (patch)
treee68ad2f947d1b3ec454529b35f37ca2f223e5431 /front/odiparpack/app/components/Panel/panel-jss.js
parent457816ac1129fcc6019d2fc795b6693ee6776d59 (diff)
downloadDP1_project-e13e630cd6e4fc0b1ff92098a28a770794c7bb9a.tar.gz
DP1_project-e13e630cd6e4fc0b1ff92098a28a770794c7bb9a.tar.bz2
DP1_project-e13e630cd6e4fc0b1ff92098a28a770794c7bb9a.zip
AƱadir plantilla
Base para front
Diffstat (limited to 'front/odiparpack/app/components/Panel/panel-jss.js')
-rw-r--r--front/odiparpack/app/components/Panel/panel-jss.js95
1 files changed, 95 insertions, 0 deletions
diff --git a/front/odiparpack/app/components/Panel/panel-jss.js b/front/odiparpack/app/components/Panel/panel-jss.js
new file mode 100644
index 0000000..d5d5e9c
--- /dev/null
+++ b/front/odiparpack/app/components/Panel/panel-jss.js
@@ -0,0 +1,95 @@
+import { darken } from '@material-ui/core/styles/colorManipulator';
+const expand = {
+ bottom: 'auto',
+ right: 'auto',
+ left: '50%',
+ top: '50%',
+ transform: 'translateX(-50%) translateY(-50%)'
+};
+
+const styles = theme => ({
+ formTheme: {
+ background: darken(theme.palette.primary.dark, 0.2),
+ boxShadow: theme.shadows[7]
+ },
+ hideForm: {
+ display: 'none'
+ },
+ showForm: {
+ display: 'block'
+ },
+ btnOpt: {},
+ expandButton: {
+ [theme.breakpoints.down('sm')]: {
+ display: 'none'
+ }
+ },
+ floatingForm: {
+ position: 'fixed',
+ width: 500,
+ bottom: 10,
+ right: 10,
+ zIndex: 1300,
+ borderRadius: 3,
+ overflow: 'hidden',
+ [theme.breakpoints.down('sm')]: {
+ width: '95% !important',
+ ...expand
+ },
+ '& header': {
+ color: theme.palette.common.white,
+ padding: '15px 20px',
+ '& $btnOpt': {
+ position: 'absolute',
+ right: 0,
+ top: 0,
+ '& > *': {
+ margin: '0 5px'
+ },
+ '& $expandButton': {
+ transform: 'rotate(270deg)'
+ },
+ '& svg': {
+ fill: theme.palette.common.white,
+ }
+ }
+ },
+ },
+ bodyForm: {
+ position: 'relative',
+ background: theme.palette.common.white,
+ padding: '15px 30px',
+ maxHeight: 900,
+ overflow: 'auto'
+ },
+ buttonArea: {
+ background: theme.palette.grey[100],
+ position: 'relative',
+ bottom: 0,
+ left: 0,
+ width: '100%',
+ textAlign: 'right',
+ padding: '10px 30px',
+ '& button': {
+ marginRight: 5
+ }
+ },
+ expanded: {
+ ...expand
+ },
+ formOverlay: {
+ position: 'fixed',
+ background: theme.palette.grey[900],
+ opacity: 0.7,
+ width: '100%',
+ height: '100%',
+ top: 0,
+ left: 0,
+ zIndex: 1300,
+ },
+ large: {
+ width: 650
+ }
+});
+
+export default styles;