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.                 margin-left: 70px;
  37.                 transition: margin-left .3s;
  38.             }
  39.             /* décale le contenu pour compenser l'ombre si besoin */
  40.             #sidebar.expanded + #mainContent{
  41.                 /* aucune marge : le contenu n’avance ni ne recule */
  42.             }
  43.             /* Option : petite ombre quand la barre est ouverte */
  44.             #sidebar.expanded{
  45.                 box-shadow: 2px 0 8px rgba(0,0,0,.2);
  46.             }
  47.             /* ----- bouton burger ---------------------------------------- */
  48.             #toggleSidebar{
  49.                 width: 40px;
  50.                 height: 40px;
  51.                 border-radius: 50%;
  52.                 transition: all .3s;
  53.                 margin: 10px auto;
  54.                 display:block;
  55.             }
  56.             #sidebar.expanded #toggleSidebar{
  57.                 width: 90%;
  58.                 border-radius: .25rem;
  59.             }
  60.             #sidebar .nav-link .sidebar-toggle-hide {
  61.                 display: inline-block;
  62.                 min-width: 150px; /* largeur fixe */
  63.                 white-space: nowrap;
  64.             }
  65.             /* Masque les éléments quand la sidebar n’est pas élargie */
  66.             #sidebar:not(.expanded) .sidebar-toggle-hide {
  67.                 display: none !important;
  68.             }
  69.             #sidebar .nav-link {
  70.                 display: flex;
  71.                 align-items: center;
  72.             }
  73.             #sidebar .nav-link i {
  74.                 margin-right: 15px;
  75.                 min-width: 25px;
  76.                 text-align: center;
  77.             }
  78.            .logo-fluid {
  79.                 height: 100px;
  80.                 width: auto;
  81.                 margin: 0 auto;
  82.             }
  83.             #sidebar .nav-link i,
  84.             #sidebar .nav-link span {
  85.                 margin-top: 15px;
  86.                 margin-bottom: 25px;
  87.                 margin-left: 5px;
  88.             }
  89.             .dt-button{
  90.                 background-color: #007bff !important;
  91.                 color: #ffffff !important;
  92.             }
  93.             .dt-paging-button.current, .dt-input, .paginate_button.current{
  94.                 background-color: #eeeeee !important;
  95.             }
  96.             .dt-button:hover{
  97.                 background-color: #0056b3 !important;
  98.             }
  99.             .btn-primary {
  100.                 background-color: #006288;
  101.                 border-color: #006288;
  102.             }
  103.             .btn-primary:hover {
  104.                 background-color: #3A4B92;
  105.                 border-color: #3A4B92;
  106.             }
  107.             /* zone de droite (ouvr. dans header, fermée dans footer) */
  108.             #mainContent{
  109.                 display:flex;
  110.                 justify-content:center;
  111.                 align-items:flex-start;
  112.                 padding:40px 20px;
  113.                 min-height:100vh;
  114.             }
  115.             .crm-wrapper{
  116.                 width:100%;
  117.                 max-width:90%;
  118.             }
  119.         </style>
  120.     </head>
  121.     <body style="background: linear-gradient(to bottom, #E4F5E6, #85DE92); background-size: cover;">
  122.         {% block body %}{% endblock %}
  123.         {% block javascripts %}{{ encore_entry_script_tags('app') }}{% endblock %}
  124.     </body>
  125. </html>