Selaa lähdekoodia

[FIX] bar padding and container space config

amenpunk 4 vuotta sitten
vanhempi
sitoutus
3299745650
3 muutettua tiedostoa jossa 47 lisäystä ja 34 poistoa
  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 @@
 }
 }
 
 
 .Mui-MuiInput{
 .Mui-MuiInput{
-    background-color : red;
+    background-color : #fd4b4b;
 }
 }
 
 
 .Mui-selected{
 .Mui-selected{
@@ -53,10 +53,6 @@
     background-color : #fd4b4b !important;
     background-color : #fd4b4b !important;
 }
 }
 
 
-.MuiToolbar-root{
-    border-bottom: 1px solid #fd4b4b !important;
-}
-
 .MuiListSubheader-root{
 .MuiListSubheader-root{
     padding-left : 15px !important;
     padding-left : 15px !important;
     color : #cbcbcb !important;
     color : #cbcbcb !important;
@@ -70,6 +66,8 @@
 .MuiContainer-root{
 .MuiContainer-root{
     margin-top : 45px !important;
     margin-top : 45px !important;
     max-width : 1777px !important;
     max-width : 1777px !important;
+    padding-left: 0px !important;
+    padding-right: 0px !important;
 }
 }
 
 
 .panel_card{
 .panel_card{
@@ -82,9 +80,6 @@
     padding : 90px;
     padding : 90px;
     max-height : 175px;
     max-height : 175px;
 }
 }
-.css-1480iag-MuiInputBase-root-MuiInput-root:before{
-    border-bottom : 0px solid red !important;
-}
 .MuiFormControl{
 .MuiFormControl{
     border : 1px solid #eceff1;
     border : 1px solid #eceff1;
 }
 }
@@ -114,5 +109,7 @@
     transition: all 0.3s;
     transition: all 0.3s;
     cursor: pointer;
     cursor: pointer;
 }
 }
-
-
+.MuiToolbar-root{
+    padding-left: 20px !important;
+    /* padding-right: 0px !important; */
+}

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

@@ -646,11 +646,20 @@ table.dataTable tbody th, table.dataTable tbody td {
 .img-container img {
 .img-container img {
     width: 100%;
     width: 100%;
 }
 }
+.btn_interactivos{
+    padding : 15px;
+    display: flex;
+    flex-direction: row;
+    flex-wrap: nowrap;
+    justify-content: space-evenly;
+    align-items: center;
+    align-content: space-around;
+}
 .botones_interactivos {
 .botones_interactivos {
-    width: 33.33%;
+    /* width: 33.33%; */
     float: left;
     float: left;
     text-align: left;
     text-align: left;
-    margin: 20px 0 0;
+    /* margin: 20px 0 0; */
 }
 }
 .botones_interactivos i {
 .botones_interactivos i {
     color: #b9c3ce;
     color: #b9c3ce;
@@ -3380,9 +3389,9 @@ All this is done for any sub-level being entered.
 .logo-section img {
 .logo-section img {
     width: 100%;
     width: 100%;
 }
 }
-.content-section {
-    padding: 0px 0px;
-}
+/* .content-section { */
+    /* padding: 0px 0px; */
+/* } */
 .cabeceras {
 .cabeceras {
     background: #f1f1f1;
     background: #f1f1f1;
     padding: 10px;
     padding: 10px;
@@ -3964,8 +3973,15 @@ All this is done for any sub-level being entered.
 }
 }
 
 
 .container-fluid{
 .container-fluid{
+    /* padding of navigation bar in 0 dont show dpace */
     padding-left : 0px !important;
     padding-left : 0px !important;
 }
 }
 
 
+.info_details{
+    text-align : center;
+    padding: 5px;
+    padding-bottom: 5px;
+}
+
 
 
 
 

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

@@ -1,5 +1,5 @@
 import * as React from 'react';
 import * as React from 'react';
-import { Row, Col, Modal, Button } from 'react-bootstrap'
+import { Row, Col, Modal, Button, Table } from 'react-bootstrap'
 
 
 import Box from '@mui/material/Box';
 import Box from '@mui/material/Box';
 import ToggleButton from '@mui/material/ToggleButton';
 import ToggleButton from '@mui/material/ToggleButton';
@@ -15,8 +15,8 @@ import HighlightOffIcon from '@mui/icons-material/HighlightOff';
 import NotFound from '../Images/not_found.png';
 import NotFound from '../Images/not_found.png';
     
     
 let data = [{
 let data = [{
-    nombre : 'Nombre puesto',
-    description : 'MingMecca',
+    nombre : 'The standard Lorem Ipsum passage, used since the 1500s',
+    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."',
     salario :  'Q 10,000',
     salario :  'Q 10,000',
     id :  0,
     id :  0,
 }]
 }]
@@ -28,7 +28,6 @@ function* idMaker() {
 }
 }
 
 
 var ID = idMaker(); // "Generator { }"
 var ID = idMaker(); // "Generator { }"
-// let i = 0;
 
 
 for ( var _ of new Array(23) ){
 for ( var _ of new Array(23) ){
     data.push({
     data.push({
@@ -49,13 +48,13 @@ function ListMode() {
     return(
     return(
         <Col md="12">
         <Col md="12">
             <div className="body-table">
             <div className="body-table">
-                <table id="tablaproductos" className="display" style={{ width : "100%" }}>
+                <Table responsive borderless id="tablaproductos">
                     <thead>
                     <thead>
-                        <tr>
-                            <th>Nombre de la plaza</th>
-                            <th>Descripción</th>
-                            <th>Salario</th>
-                            <th>Acciones</th>
+                        <tr >
+                            <th className="text-center">Nombre de la plaza</th>
+                            <th className="text-center">Descripción</th>
+                            <th className="text-center">Salario</th>
+                            <th className="text-center">Acciones</th>
                         </tr>
                         </tr>
                     </thead>
                     </thead>
                     <tbody>
                     <tbody>
@@ -65,9 +64,9 @@ function ListMode() {
                                 data.map( (plaza, i) => {
                                 data.map( (plaza, i) => {
                                     return (
                                     return (
                                         <tr key={plaza.id}>
                                         <tr key={plaza.id}>
-                                            <td>{ plaza.nombre }</td>
-                                            <td>{ plaza.description }</td>
-                                            <td>{ plaza.salario }</td>
+                                            <td className="text-center">{ plaza.nombre }</td>
+                                            <td className="text-center">{ plaza.description }</td>
+                                            <td className="text-center">{ plaza.salario }</td>
                                             <td className="actions_butons_plaza"> { actions } </td>
                                             <td className="actions_butons_plaza"> { actions } </td>
                                         </tr>
                                         </tr>
                                     )
                                     )
@@ -83,7 +82,7 @@ function ListMode() {
                             <th>Acciones</th>
                             <th>Acciones</th>
                         </tr>
                         </tr>
                     </tfoot>
                     </tfoot>
-                </table>
+                </Table>
             </div>
             </div>
         </Col>
         </Col>
     )
     )
@@ -114,10 +113,9 @@ function GridMode () {
         <React.Fragment> 
         <React.Fragment> 
             {
             {
                 data.length ? 
                 data.length ? 
-                data.map( ( plaza, i ) => {
-                    console.log(plaza)
+                data.map( plaza => {
                     return(
                     return(
-                        <Col key={plaza.id} md="3">
+                        <Col key={plaza.id} lg="3" md="6" sm="6" xs="12" >
                             <div className="panel">
                             <div className="panel">
                                 <Row>
                                 <Row>
                                     <Col md="4">
                                     <Col md="4">
@@ -130,6 +128,8 @@ function GridMode () {
                                             <p>{ plaza.nombre }</p>
                                             <p>{ plaza.nombre }</p>
                                             <p>{ plaza.description }</p>
                                             <p>{ plaza.description }</p>
                                             <p>{ plaza.salario }</p>
                                             <p>{ plaza.salario }</p>
+                                        </div>
+                                        <div class="btn_interactivos">
                                             { buttons }
                                             { buttons }
                                         </div>
                                         </div>
                                     </Col>
                                     </Col>
@@ -243,7 +243,7 @@ export function Puestos() {
         <div className="content-section">
         <div className="content-section">
             <div className="main">
             <div className="main">
                 <Row>
                 <Row>
-                    <Col md="2" sm="2">
+                    <Col md="2" sm="2" xs="2">
                         <div className="breadcrumb-header">
                         <div className="breadcrumb-header">
                             <Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
                             <Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
                                 <ToggleButtonGroup size="small" {...control}>
                                 <ToggleButtonGroup size="small" {...control}>
@@ -252,7 +252,7 @@ export function Puestos() {
                             </Box>
                             </Box>
                         </div>
                         </div>
                     </Col>
                     </Col>
-                    <Col md="10" sm='10'>
+                    <Col md="10" sm='10' xs="10">
                         <div className="add_producto">
                         <div className="add_producto">
                             <div onClick={() => setManual(true) } className="btn_add_producto"> <span >Agregar manual</span> </div>
                             <div onClick={() => setManual(true) } className="btn_add_producto"> <span >Agregar manual</span> </div>
                         </div>
                         </div>