瀏覽代碼

[FIX] bar padding and container space config

amenpunk 3 年之前
父節點
當前提交
3299745650
共有 3 個文件被更改,包括 47 次插入34 次删除
  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,7 +38,7 @@
38 38
 }
39 39
 
40 40
 .Mui-MuiInput{
41
-    background-color : red;
41
+    background-color : #fd4b4b;
42 42
 }
43 43
 
44 44
 .Mui-selected{
@@ -53,10 +53,6 @@
53 53
     background-color : #fd4b4b !important;
54 54
 }
55 55
 
56
-.MuiToolbar-root{
57
-    border-bottom: 1px solid #fd4b4b !important;
58
-}
59
-
60 56
 .MuiListSubheader-root{
61 57
     padding-left : 15px !important;
62 58
     color : #cbcbcb !important;
@@ -70,6 +66,8 @@
70 66
 .MuiContainer-root{
71 67
     margin-top : 45px !important;
72 68
     max-width : 1777px !important;
69
+    padding-left: 0px !important;
70
+    padding-right: 0px !important;
73 71
 }
74 72
 
75 73
 .panel_card{
@@ -82,9 +80,6 @@
82 80
     padding : 90px;
83 81
     max-height : 175px;
84 82
 }
85
-.css-1480iag-MuiInputBase-root-MuiInput-root:before{
86
-    border-bottom : 0px solid red !important;
87
-}
88 83
 .MuiFormControl{
89 84
     border : 1px solid #eceff1;
90 85
 }
@@ -114,5 +109,7 @@
114 109
     transition: all 0.3s;
115 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,11 +646,20 @@ table.dataTable tbody th, table.dataTable tbody td {
646 646
 .img-container img {
647 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 658
 .botones_interactivos {
650
-    width: 33.33%;
659
+    /* width: 33.33%; */
651 660
     float: left;
652 661
     text-align: left;
653
-    margin: 20px 0 0;
662
+    /* margin: 20px 0 0; */
654 663
 }
655 664
 .botones_interactivos i {
656 665
     color: #b9c3ce;
@@ -3380,9 +3389,9 @@ All this is done for any sub-level being entered.
3380 3389
 .logo-section img {
3381 3390
     width: 100%;
3382 3391
 }
3383
-.content-section {
3384
-    padding: 0px 0px;
3385
-}
3392
+/* .content-section { */
3393
+    /* padding: 0px 0px; */
3394
+/* } */
3386 3395
 .cabeceras {
3387 3396
     background: #f1f1f1;
3388 3397
     padding: 10px;
@@ -3964,8 +3973,15 @@ All this is done for any sub-level being entered.
3964 3973
 }
3965 3974
 
3966 3975
 .container-fluid{
3976
+    /* padding of navigation bar in 0 dont show dpace */
3967 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,5 +1,5 @@
1 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 4
 import Box from '@mui/material/Box';
5 5
 import ToggleButton from '@mui/material/ToggleButton';
@@ -15,8 +15,8 @@ import HighlightOffIcon from '@mui/icons-material/HighlightOff';
15 15
 import NotFound from '../Images/not_found.png';
16 16
     
17 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 20
     salario :  'Q 10,000',
21 21
     id :  0,
22 22
 }]
@@ -28,7 +28,6 @@ function* idMaker() {
28 28
 }
29 29
 
30 30
 var ID = idMaker(); // "Generator { }"
31
-// let i = 0;
32 31
 
33 32
 for ( var _ of new Array(23) ){
34 33
     data.push({
@@ -49,13 +48,13 @@ function ListMode() {
49 48
     return(
50 49
         <Col md="12">
51 50
             <div className="body-table">
52
-                <table id="tablaproductos" className="display" style={{ width : "100%" }}>
51
+                <Table responsive borderless id="tablaproductos">
53 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 58
                         </tr>
60 59
                     </thead>
61 60
                     <tbody>
@@ -65,9 +64,9 @@ function ListMode() {
65 64
                                 data.map( (plaza, i) => {
66 65
                                     return (
67 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 70
                                             <td className="actions_butons_plaza"> { actions } </td>
72 71
                                         </tr>
73 72
                                     )
@@ -83,7 +82,7 @@ function ListMode() {
83 82
                             <th>Acciones</th>
84 83
                         </tr>
85 84
                     </tfoot>
86
-                </table>
85
+                </Table>
87 86
             </div>
88 87
         </Col>
89 88
     )
@@ -114,10 +113,9 @@ function GridMode () {
114 113
         <React.Fragment> 
115 114
             {
116 115
                 data.length ? 
117
-                data.map( ( plaza, i ) => {
118
-                    console.log(plaza)
116
+                data.map( plaza => {
119 117
                     return(
120
-                        <Col key={plaza.id} md="3">
118
+                        <Col key={plaza.id} lg="3" md="6" sm="6" xs="12" >
121 119
                             <div className="panel">
122 120
                                 <Row>
123 121
                                     <Col md="4">
@@ -130,6 +128,8 @@ function GridMode () {
130 128
                                             <p>{ plaza.nombre }</p>
131 129
                                             <p>{ plaza.description }</p>
132 130
                                             <p>{ plaza.salario }</p>
131
+                                        </div>
132
+                                        <div class="btn_interactivos">
133 133
                                             { buttons }
134 134
                                         </div>
135 135
                                     </Col>
@@ -243,7 +243,7 @@ export function Puestos() {
243 243
         <div className="content-section">
244 244
             <div className="main">
245 245
                 <Row>
246
-                    <Col md="2" sm="2">
246
+                    <Col md="2" sm="2" xs="2">
247 247
                         <div className="breadcrumb-header">
248 248
                             <Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
249 249
                                 <ToggleButtonGroup size="small" {...control}>
@@ -252,7 +252,7 @@ export function Puestos() {
252 252
                             </Box>
253 253
                         </div>
254 254
                     </Col>
255
-                    <Col md="10" sm='10'>
255
+                    <Col md="10" sm='10' xs="10">
256 256
                         <div className="add_producto">
257 257
                             <div onClick={() => setManual(true) } className="btn_add_producto"> <span >Agregar manual</span> </div>
258 258
                         </div>