templates/Frontend/custom_style.html.twig line 1

Open in your IDE?
  1. <style>
  2.     .main-menu > li:hover > a {
  3.       text-decoration: none;
  4.       {% if settings.mainColor == '' %}
  5.           color: #e74c3c; 
  6.       {% else %}
  7.             color: #{{settings.mainColor}};
  8.       {% endif %}
  9.     }
  10.     .main-menu > li.active-menu > a {
  11.         {% if settings.mainColor == '' %}
  12.             color: #e74c3c;
  13.         {% else %}    
  14.              color: #{{settings.mainColor}};        
  15.         {% endif %}
  16.         text-decoration:underline;
  17.     }
  18.     .block1-txt:hover {
  19.       background-color: {{mainColorRgba}};
  20.     }
  21.     
  22.     .bg-background-color {
  23.         {% if settings.backgroundColor == '' %}
  24.             background-color: #fff;
  25.         {% else %}    
  26.             background-color: #{{settings.backgroundColor}};
  27.         {% endif %}        
  28.     }
  29.     
  30.     
  31.     .bg1 {
  32.         {% if settings.mainColor == '' %}
  33.             background-color: #e74c3c;
  34.         {% else %}    
  35.             background-color: #{{settings.mainColor}};
  36.         {% endif %}
  37.     }
  38.     .hov-cl1:hover {
  39.         {% if settings.mainColor == '' %}        
  40.             color: #e74c3c;
  41.         {% else %}    
  42.             color: #{{settings.mainColor}};        
  43.         {% endif %}
  44.     }
  45.     .icon-header-noti::after {        
  46.         background-color: #e74c3c;
  47.     }        
  48.     .hov-btn3:hover {
  49.         {% if settings.mainColor == '' %}            
  50.             border-color: #e74c3c;          
  51.             background-color: #e74c3c;          
  52.         {% else %}    
  53.             border-color: #{{settings.mainColor}};          
  54.             background-color: #{{settings.mainColor}};          
  55.         {% endif %}            
  56.     }        
  57.     .show-search:hover:after,
  58.     .show-filter:hover:after {
  59.         {% if settings.mainColor == '' %}                    
  60.             background-color: #e74c3c;
  61.             border-color: #e74c3c;
  62.         {% else %}    
  63.             background-color: #{{settings.mainColor}};
  64.             border-color: #{{settings.mainColor}};        
  65.         {% endif %}
  66.     }        
  67.     .btn-back-to-top:hover, .btn-back-to-top {    
  68.         {% if settings.mainColor == '' %}                                  
  69.             background-color: #e74c3c;
  70.         {% else %}    
  71.             background-color: #{{settings.mainColor}};        
  72.         {% endif %}
  73.     }
  74.     .main-menu-m {          
  75.         {% if settings.mainColor == '' %}            
  76.             background-color: #e74c3c;
  77.         {% else %}    
  78.             background-color: #{{settings.mainColor}};        
  79.         {% endif %}
  80.     }
  81.     .loader05 {
  82.         {% if settings.mainColor == '' %}                    
  83.             border: 4px solid #e74c3c;
  84.         {% else %}    
  85.             border: 4px solid #{{settings.mainColor}};        
  86.         {% endif %}
  87.     }    
  88.     .modal-header {
  89.         background-color: #fff;
  90.         border: 0px !important;
  91.         color:#fff !important;
  92.     }
  93.     
  94.     .custom_home_btn {
  95.         background-color: #000 !important;
  96.         color:#fff !important;
  97.     }
  98.     
  99.     .text_color_main {
  100.         color: #{{settings.mainColor}};            
  101.     }    
  102.   .card-lobby-blue {
  103.     background-color:#3498db;
  104.   }
  105.   .card-lobby-green {
  106.     background-color:#2ecc71;
  107.   }
  108.   .card-lobby-red {
  109.     background-color:#eb4d4b;
  110.   }
  111.   .card-lobby-purple {
  112.     background-color:#a29bfe;
  113.   }
  114.   .card-lobby {    
  115.     border-color:#fff;
  116.     padding:20px;
  117.     height:150px;
  118.     color:#fff;
  119.     border-radius:10px;
  120.   }
  121.   .card-lobby-icon {
  122.     font-size:50px;
  123.     float:right;
  124.   }
  125.   .card-lobby-text {
  126.     position:absolute;
  127.     bottom:20px;
  128.     font-size:30px;
  129.   }
  130.   .card-padding {
  131.     margin-top:20px;
  132.     cursor:pointer;
  133.   }
  134.   /* Avatar base */
  135. .letters_avatar{
  136.   --size: 48px;                      /* cambia tamaño aquí */
  137.   width: var(--size);
  138.   height: var(--size);
  139.   border-radius: 999px;              /* circular */
  140.   display: inline-grid;
  141.   place-items: center;
  142.   background: #e9eef3;               /* fondo por defecto */
  143.   color: #2b2f36;
  144.   font-weight: 700;
  145.   font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  146.   /* tamaño de fuente relativo al tamaño del avatar */
  147.   font-size: calc(var(--size) * 0.42);
  148.   line-height: 1;
  149.   text-transform: uppercase;
  150.   user-select: none;
  151.   overflow: hidden;
  152. }
  153. /* Pinta las iniciales usando el atributo data-initials */
  154. .letters_avatar::before{
  155.   content: attr(data-initials);
  156. }
  157. /* Tamaños rápidos */
  158. .letters_avatar.sm{ --size: 32px; }
  159. .letters_avatar.lg{ --size: 64px; }
  160. /* Variante cuadrada con esquinas suaves */
  161. .letters_avatar.square{ border-radius: 12px; }
  162. /* Variante con gradiente "de marca" */
  163. .letters_avatar.brand{
  164.   background: linear-gradient(135deg, #111827, #0ea5e9);
  165.   color: white;
  166. }
  167. /* Ejemplo de un pequeño borde */
  168. .letters_avatar{ box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
  169.   
  170. </style>