Giter Club home page Giter Club logo

Comments (5)

pierre56 avatar pierre56 commented on July 21, 2024

CSS

/home/geonatureadmin/geonature/custom/css/frontend.css

app {
  background-color: white;
}
#logo-structure {
  height: 50px;
  width: 130px;
}
#login-body
  {
    background-size: cover !important;
  }
  .appnav{
    max-height: 70vh !important;
  }
/**********************/
/* Optimisation Mobile */

/* @media only screen and (orientation: portrait) and (max-width: 600px) { */
  @media only screen and (orientation: landscape) and (max-width: 800px) {
  /* Suppression des éléments facultatifs */
  #appName {
    display: none;
  }
.navbar-footer{
    display: none;
  }    
}
@media only screen and (max-device-width: 600px) {
    
  /* Suppression des éléments facultatifs */
  #appName {
      display: none;
  }
  .navbar-footer{
      display: none;
  }
  
  #login-body
  {
    background-position-x: 70% !important;
  }
    
  /* Agrandissement de la navbar */
  
  #app-toolbar{
      height: 20%
  }

/**********************/
/* Occtax */
  
  .float-btns {
      position: relative;
      display: contents;
  }
  .float-btns .btn-action {
      width: 100%;
      margin-bottom: 10px;
      margin-left: 0px !important;;
  }

  #btn-finish{
    position: relative !important;
    
    right: 0px !important;
    bottom: 0px !important;

    margin-left: 25%;
    margin-right: 25%;
    margin-top: 15px;
    
  }
  #taxon-tab{
    height: auto !important;
  }
  #left-form{
    height: auto !important;
  }
  .occtax-form .bloc-button {
    position: sticky !important;

  }
  #add-occ{
    position: sticky !important;

  }
  .mat-expansion-panel-body .col-3 {
    max-width: 100% !important;
  }
  .mat-expansion-panel-body .col-3 input {
    width: 50px;
  }

  .occtax-form-content{
    height: auto !important;
  }
  .datatable-footer-inner{
    display: block !important;
    height: auto !important;
  }
  
 #taxon-tab mat-accordion .blc-expansion-panel  input[type="text"],  .ui-select-focusser {
    display: none;
}
  
/**********************/  
  /* metadata */
/* pas mal de sm 12 a mettre sur les groupe */

  /* Synthese */
  .search-btn button{
      width: 100%;
  }
  /* non fonctionnel */
  #sidebar{
      width:50% !important;;
  }
  
  /* Commun */
  #download-btn{
      width: 100%;
  }
  /* Monitoring */

  .app-content .flex-container{
      display: block !important;
  }
  .app-content #monitoring-map-container{
      width: 90%;
      margin-right: 5%;
      margin-left: 5%;
  }

  .app-content #monitoring-elem-container{
      width: 100%;
  }

  html body pnx-root pnx-nav-home.ng-star-inserted mat-sidenav-container.mat-drawer-container.mat-sidenav-container.sidenav-container mat-sidenav-content.mat-drawer-content.mat-sidenav-content div.app-content div pnx-occtax-form.ng-star-inserted div.container-fluid div.occtax-form div.occtax-form-content.ng-star-inserted div.row div.col-xl-6.col-lg-5.col-sm-12{
  overflow-y: visible !important;   
  height: auto !important;
   }

    html body pnx-root pnx-nav-home.ng-star-inserted mat-sidenav-container.mat-drawer-container.mat-sidenav-container.sidenav-container mat-sidenav-content.mat-drawer-content.mat-sidenav-content div.app-content div pnx-occtax-form.ng-star-inserted div.container-fluid div.occtax-form div.tab div.tab-left a.tablinks.active
    {
       width: 100%;

    }

    html body pnx-root pnx-nav-home.ng-star-inserted mat-sidenav-container.mat-drawer-container.mat-sidenav-container.sidenav-container mat-sidenav-content.mat-drawer-content.mat-sidenav-content div.app-content div pnx-occtax-form.ng-star-inserted div.container-fluid div.occtax-form div#taxon-tab.occtax-form-content.ng-star-inserted div.row div#left-form.col-md-6
    {

    }

    html body pnx-root pnx-nav-home.ng-star-inserted mat-sidenav-container.mat-drawer-container.mat-sidenav-container.sidenav-container mat-sidenav-content.mat-drawer-content.mat-sidenav-content div.app-content div pnx-occtax-form.ng-star-inserted div.container-fluid div.occtax-form div#taxon-tab.occtax-form-content.ng-star-inserted div.row div#left-form.col-md-6 pnx-occtax-form-occurrence.ng-tns-c289-3.ng-star-inserted div.row.ng-tns-c289-3
    {
      height: auto !important;
    }

}

from geonature.

pierre56 avatar pierre56 commented on July 21, 2024

exemple concret pour le module occtax

Avant

image
image
image

Après

image
image
Screenshot_20230602_144221_Brave

from geonature.

camillemonchicourt avatar camillemonchicourt commented on July 21, 2024

OK intéressant.
N'hésite pas à faire une PR pour que tout le monde bénéficie de ces améliorations.

from geonature.

pierre56 avatar pierre56 commented on July 21, 2024

Bonjour @camillemonchicourt et @TheoLechemia

Avancées

J'ai poursuivi le travail et je commence a avoir un rendu intéressant pour plusieurs modules :
Header
Occtax
Synthese
Monitoring

Donc je voudrais vous faire tester et valider la logique avant de continuer.
image

Car dans un premier temps, je suis parti sur un fichier css de custom avec des règles mobiles qui s'adaptent a l'existant.
afin de proposer un "fix" car certains boutons/champs qui se superposent gênent ou bloquent la saisie.

Mais ce n'est pas perrin donc dans un second temps,
je voudrais savoir si je peux continuer de cette manière
ou si je dois aller modifier et glisser du css dans chaque component ?

Exemple

Wrapper de la synthese
J'ai passé le display a Block pour les media de moins de 700px

image

PR soon

Ce n'est pas encore assez mature pour une PR,
mais vous pouvez trouver le travail dans une branche "feat-responsive"
qui est sur mon repo et a jour avec la dev.

https://github.com/pierre56/GeoNature/blob/feat-responsive/custom/css/frontend.css

J'ai fait une partie de mes tests sur la demo de geonature donc vous avez juste a coller le css pour que mon travail soit visible 😄

Bonne journée
Pierre

from geonature.

camillemonchicourt avatar camillemonchicourt commented on July 21, 2024

OK intéressant.
Oui ces évolutions sont pertinentes.
Il faut veiller cependant à se baser au maximum sur les grilles et le responsive de Bootstrap, et ajouter le moins de classe ou media-query spécifiques, qui rendraient la maintenance et les mises à jour de Bootstrap plus complexes.

from geonature.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.