Template:Infobox stat: Difference between revisions

Sur (talk | contribs)
m stat-box > stat-infobox
Sur (talk | contribs)
m workable state
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="stat-infobox">
<div style="text-align: center;"> <!-- Centering the whole content -->
     <div class="stat-infobox-content" style="
     <div style="
         background: linear-gradient(135deg, rgba({{{box_rgb}}}, 0.5), rgba({{{box_rgb}}}, 0.1));
         background: linear-gradient(135deg, rgba({{{box_rgb}}}, 0.5), rgba({{{box_rgb}}}, 0.1));
         box-shadow: inset 0 0 0 4px rgba({{{box_rgb}}}, 0.9);
         box-shadow: inset 0 0 0 4px rgba({{{box_rgb}}}, 0.9);
        display: flex; /* Using flexbox to align items */
        justify-content: center; /* Centering items horizontally */
        align-items: center; /* Centering vertically */
        padding: 5px; /* Adding some padding */
        width: fit-content; /* Making the container small */
        margin: auto; /* Centering the container */
     ">
     ">
         <!-- Centered Icon and Label -->
         <!-- Label to the left of Icon -->
         [[File:{{Lang|key={{{box_name}}}|lang_code=en}}_icon.png|40px|center|class=stat-infobox-icon|link=]]
        <div style="font-family: 'Retail Demo', sans-serif; font-size: 1.5em; margin-right: 5px;">{{Lang|key={{{box_name}}}}}</div>
        <div class="stat-infobox-label">{{Lang|key={{{box_name}}}}}</div>
         [[File:{{Lang|key={{{box_name}}}|lang_code=en}}_icon.png|40px|center|link=]]
     </div>
     </div>
     <div class="stat-infobox-hover" style="
     <div style="
         background: linear-gradient(135deg, rgba({{{box_rgb}}}, 0.5), rgba({{{box_rgb}}}, 0.25));
         background: linear-gradient(135deg, rgba({{{box_rgb}}}, 0.5), rgba({{{box_rgb}}}, 0.25));
     ">
     ">