Browse Source

[FIX] bar padding and container space config

amenpunk 3 years ago
parent
commit
3299745650
3 changed files with 47 additions and 34 deletions
  1. 7 10
      psicoadmin/src/App.css
  2. 21 5
      psicoadmin/src/Css/all.css
  3. 19 19
      psicoadmin/src/Pages/Puestos.js

+ 7 - 10
psicoadmin/src/App.css

38
 }
38
 }
39
 
39
 
40
 .Mui-MuiInput{
40
 .Mui-MuiInput{
41
-    background-color : red;
41
+    background-color : #fd4b4b;
42
 }
42
 }
43
 
43
 
44
 .Mui-selected{
44
 .Mui-selected{
53
     background-color : #fd4b4b !important;
53
     background-color : #fd4b4b !important;
54
 }
54
 }
55
 
55
 
56
-.MuiToolbar-root{
57
-    border-bottom: 1px solid #fd4b4b !important;
58
-}
59
-
60
 .MuiListSubheader-root{
56
 .MuiListSubheader-root{
61
     padding-left : 15px !important;
57
     padding-left : 15px !important;
62
     color : #cbcbcb !important;
58
     color : #cbcbcb !important;
70
 .MuiContainer-root{
66
 .MuiContainer-root{
71
     margin-top : 45px !important;
67
     margin-top : 45px !important;
72
     max-width : 1777px !important;
68
     max-width : 1777px !important;
69
+    padding-left: 0px !important;
70
+    padding-right: 0px !important;
73
 }
71
 }
74
 
72
 
75
 .panel_card{
73
 .panel_card{
82
     padding : 90px;
80
     padding : 90px;
83
     max-height : 175px;
81
     max-height : 175px;
84
 }
82
 }
85
-.css-1480iag-MuiInputBase-root-MuiInput-root:before{
86
-    border-bottom : 0px solid red !important;
87
-}
88
 .MuiFormControl{
83
 .MuiFormControl{
89
     border : 1px solid #eceff1;
84
     border : 1px solid #eceff1;
90
 }
85
 }
114
     transition: all 0.3s;
109
     transition: all 0.3s;
115
     cursor: pointer;
110
     cursor: pointer;
116
 }
111
 }
117
-
118
-
112
+.MuiToolbar-root{
113
+    padding-left: 20px !important;
114
+    /* padding-right: 0px !important; */
115
+}

+ 21 - 5
psicoadmin/src/Css/all.css

646
 .img-container img {
646
 .img-container img {
647
     width: 100%;
647
     width: 100%;
648
 }
648
 }
649
+.btn_interactivos{
650
+    padding : 15px;
651
+    display: flex;
652
+    flex-direction: row;
653
+    flex-wrap: nowrap;
654
+    justify-content: space-evenly;
655
+    align-items: center;
656
+    align-content: space-around;
657
+}
649
 .botones_interactivos {
658
 .botones_interactivos {
650
-    width: 33.33%;
659
+    /* width: 33.33%; */
651
     float: left;
660
     float: left;
652
     text-align: left;
661
     text-align: left;
653
-    margin: 20px 0 0;
662
+    /* margin: 20px 0 0; */
654
 }
663
 }
655
 .botones_interactivos i {
664
 .botones_interactivos i {
656
     color: #b9c3ce;
665
     color: #b9c3ce;
3380
 .logo-section img {
3389
 .logo-section img {
3381
     width: 100%;
3390
     width: 100%;
3382
 }
3391
 }
3383
-.content-section {
3384
-    padding: 0px 0px;
3385
-}
3392
+/* .content-section { */
3393
+    /* padding: 0px 0px; */
3394
+/* } */
3386
 .cabeceras {
3395
 .cabeceras {
3387
     background: #f1f1f1;
3396
     background: #f1f1f1;
3388
     padding: 10px;
3397
     padding: 10px;
3964
 }
3973
 }
3965
 
3974
 
3966
 .container-fluid{
3975
 .container-fluid{
3976
+    /* padding of navigation bar in 0 dont show dpace */
3967
     padding-left : 0px !important;
3977
     padding-left : 0px !important;
3968
 }
3978
 }
3969
 
3979
 
3980
+.info_details{
3981
+    text-align : center;
3982
+    padding: 5px;
3983
+    padding-bottom: 5px;
3984
+}
3985
+
3970
 
3986
 
3971
 
3987
 

+ 19 - 19
psicoadmin/src/Pages/Puestos.js

1
 import * as React from 'react';
1
 import * as React from 'react';
2
-import { Row, Col, Modal, Button } from 'react-bootstrap'
2
+import { Row, Col, Modal, Button, Table } from 'react-bootstrap'
3
 
3
 
4
 import Box from '@mui/material/Box';
4
 import Box from '@mui/material/Box';
5
 import ToggleButton from '@mui/material/ToggleButton';
5
 import ToggleButton from '@mui/material/ToggleButton';
15
 import NotFound from '../Images/not_found.png';
15
 import NotFound from '../Images/not_found.png';
16
     
16
     
17
 let data = [{
17
 let data = [{
18
-    nombre : 'Nombre puesto',
19
-    description : 'MingMecca',
18
+    nombre : 'The standard Lorem Ipsum passage, used since the 1500s',
19
+    description : '"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."',
20
     salario :  'Q 10,000',
20
     salario :  'Q 10,000',
21
     id :  0,
21
     id :  0,
22
 }]
22
 }]
28
 }
28
 }
29
 
29
 
30
 var ID = idMaker(); // "Generator { }"
30
 var ID = idMaker(); // "Generator { }"
31
-// let i = 0;
32
 
31
 
33
 for ( var _ of new Array(23) ){
32
 for ( var _ of new Array(23) ){
34
     data.push({
33
     data.push({
49
     return(
48
     return(
50
         <Col md="12">
49
         <Col md="12">
51
             <div className="body-table">
50
             <div className="body-table">
52
-                <table id="tablaproductos" className="display" style={{ width : "100%" }}>
51
+                <Table responsive borderless id="tablaproductos">
53
                     <thead>
52
                     <thead>
54
-                        <tr>
55
-                            <th>Nombre de la plaza</th>
56
-                            <th>Descripción</th>
57
-                            <th>Salario</th>
58
-                            <th>Acciones</th>
53
+                        <tr >
54
+                            <th className="text-center">Nombre de la plaza</th>
55
+                            <th className="text-center">Descripción</th>
56
+                            <th className="text-center">Salario</th>
57
+                            <th className="text-center">Acciones</th>
59
                         </tr>
58
                         </tr>
60
                     </thead>
59
                     </thead>
61
                     <tbody>
60
                     <tbody>
65
                                 data.map( (plaza, i) => {
64
                                 data.map( (plaza, i) => {
66
                                     return (
65
                                     return (
67
                                         <tr key={plaza.id}>
66
                                         <tr key={plaza.id}>
68
-                                            <td>{ plaza.nombre }</td>
69
-                                            <td>{ plaza.description }</td>
70
-                                            <td>{ plaza.salario }</td>
67
+                                            <td className="text-center">{ plaza.nombre }</td>
68
+                                            <td className="text-center">{ plaza.description }</td>
69
+                                            <td className="text-center">{ plaza.salario }</td>
71
                                             <td className="actions_butons_plaza"> { actions } </td>
70
                                             <td className="actions_butons_plaza"> { actions } </td>
72
                                         </tr>
71
                                         </tr>
73
                                     )
72
                                     )
83
                             <th>Acciones</th>
82
                             <th>Acciones</th>
84
                         </tr>
83
                         </tr>
85
                     </tfoot>
84
                     </tfoot>
86
-                </table>
85
+                </Table>
87
             </div>
86
             </div>
88
         </Col>
87
         </Col>
89
     )
88
     )
114
         <React.Fragment> 
113
         <React.Fragment> 
115
             {
114
             {
116
                 data.length ? 
115
                 data.length ? 
117
-                data.map( ( plaza, i ) => {
118
-                    console.log(plaza)
116
+                data.map( plaza => {
119
                     return(
117
                     return(
120
-                        <Col key={plaza.id} md="3">
118
+                        <Col key={plaza.id} lg="3" md="6" sm="6" xs="12" >
121
                             <div className="panel">
119
                             <div className="panel">
122
                                 <Row>
120
                                 <Row>
123
                                     <Col md="4">
121
                                     <Col md="4">
130
                                             <p>{ plaza.nombre }</p>
128
                                             <p>{ plaza.nombre }</p>
131
                                             <p>{ plaza.description }</p>
129
                                             <p>{ plaza.description }</p>
132
                                             <p>{ plaza.salario }</p>
130
                                             <p>{ plaza.salario }</p>
131
+                                        </div>
132
+                                        <div class="btn_interactivos">
133
                                             { buttons }
133
                                             { buttons }
134
                                         </div>
134
                                         </div>
135
                                     </Col>
135
                                     </Col>
243
         <div className="content-section">
243
         <div className="content-section">
244
             <div className="main">
244
             <div className="main">
245
                 <Row>
245
                 <Row>
246
-                    <Col md="2" sm="2">
246
+                    <Col md="2" sm="2" xs="2">
247
                         <div className="breadcrumb-header">
247
                         <div className="breadcrumb-header">
248
                             <Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
248
                             <Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
249
                                 <ToggleButtonGroup size="small" {...control}>
249
                                 <ToggleButtonGroup size="small" {...control}>
252
                             </Box>
252
                             </Box>
253
                         </div>
253
                         </div>
254
                     </Col>
254
                     </Col>
255
-                    <Col md="10" sm='10'>
255
+                    <Col md="10" sm='10' xs="10">
256
                         <div className="add_producto">
256
                         <div className="add_producto">
257
                             <div onClick={() => setManual(true) } className="btn_add_producto"> <span >Agregar manual</span> </div>
257
                             <div onClick={() => setManual(true) } className="btn_add_producto"> <span >Agregar manual</span> </div>
258
                         </div>
258
                         </div>