templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Welcome!{% endblock %}</title>
  6.         {% block stylesheets %}{{ encore_entry_link_tags('app') }}{% endblock %}
  7.         <link rel="icon" type="image/x-icon" href="/public/icone.ico">
  8.         <script src="https://kit.fontawesome.com/f785a57bb7.js" crossorigin="anonymous"></script>
  9.         <style>
  10.             /* ----- structure -------------------------------------------- */
  11.             .layout{
  12.                 min-width: 100vw;
  13.                 min-height: 100vh;
  14.             }
  15.             /* ----- sidebar ---------------------------------------------- */
  16.             #sidebar{
  17.                 position: fixed;           /* la barre sort du flux */
  18.                 top: 0;
  19.                 left: 0;
  20.                 height: 100vh;
  21.                 width: 70px;               /* largeur fermée  */
  22.                 background: linear-gradient(#006288,#3A4B92);
  23.                 overflow-x: hidden;
  24.                 transition: width .3s;
  25.                 z-index: 1000;
  26.             }
  27.             #sidebar.expanded{
  28.                 width:250px;
  29.             }
  30.             /* texte masqué quand fermé */
  31.             #sidebar:not(.expanded) .sidebar-label{
  32.                 display:none;
  33.             }
  34.             /* ----- contenu principal ------------------------------------ */
  35.             #mainContent{
  36.                 display:flex;
  37.                 justify-content:center;
  38.                 align-items:flex-start;
  39.                 min-height:100vh;
  40.                 margin-left: 70px;
  41.                 padding:40px 20px;
  42.                 transition: margin-left .3s;
  43.             }
  44.             /* décale le contenu pour compenser l'ombre si besoin */
  45.             #sidebar.expanded + #mainContent{
  46.                 /* aucune marge : le contenu n’avance ni ne recule */
  47.             }
  48.             /* Option : petite ombre quand la barre est ouverte */
  49.             #sidebar.expanded{
  50.                 box-shadow: 2px 0 8px rgba(0,0,0,.2);
  51.             }
  52.             /* ----- contenu entreprise details --------------------------- */
  53.             .entreprise_details {
  54.                 display: inline-block;
  55.                 
  56.             }
  57.             /* ----- bouton burger ---------------------------------------- */
  58.             #toggleSidebar{
  59.                 width: 40px;
  60.                 height: 40px;
  61.                 border-radius: 50%;
  62.                 transition: all .3s;
  63.                 margin: 10px auto;
  64.                 display:block;
  65.             }
  66.             #sidebar.expanded #toggleSidebar{
  67.                 width: 90%;
  68.                 border-radius: .25rem;
  69.             }
  70.             #sidebar .nav-link .sidebar-toggle-hide {
  71.                 display: inline-block;
  72.                 min-width: 150px; /* largeur fixe */
  73.                 white-space: nowrap;
  74.             }
  75.             /* Masque les éléments quand la sidebar n’est pas élargie */
  76.             #sidebar:not(.expanded) .sidebar-toggle-hide {
  77.                 display: none !important;
  78.             }
  79.             #sidebar .nav-link {
  80.                 display: flex;
  81.                 align-items: center;
  82.             }
  83.             #sidebar .nav-link i {
  84.                 margin-right: 15px;
  85.                 min-width: 25px;
  86.                 text-align: center;
  87.             }
  88.            .logo-fluid {
  89.                 height: 100px;
  90.                 width: auto;
  91.                 margin: 0 auto;
  92.             }
  93.             #sidebar .nav-link i,
  94.             #sidebar .nav-link span {
  95.                 margin-top: 15px;
  96.                 margin-bottom: 25px;
  97.                 margin-left: 5px;
  98.             }
  99.             .dt-button{
  100.                 background-color: #007bff !important;
  101.                 color: #ffffff !important;
  102.             }
  103.             .dt-paging-button.current, .dt-input, .paginate_button.current{
  104.                 background-color: #eeeeee !important;
  105.             }
  106.             .dt-button:hover{
  107.                 background-color: #0056b3 !important;
  108.             }
  109.             .btn-primary {
  110.                 background-color: #006288;
  111.                 border-color: #006288;
  112.             }
  113.             .btn-primary:hover {
  114.                 background-color: #3A4B92;
  115.                 border-color: #3A4B92;
  116.             }
  117.             .crm-wrapper{
  118.                 width:100%;
  119.                 max-width:90%;
  120.             }
  121.             
  122.         </style>
  123.     </head>
  124.     <body style="background: linear-gradient(to bottom, #E4F5E6, #85DE92); background-size: cover;">
  125.         {% block body %}{% endblock %}
  126.         {% block javascripts %}{{ encore_entry_script_tags('app') }}{% endblock %}
  127.     </body>
  128. </html>