User:PavelCheloveckov/PythonProgress: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (SirYodaJedi moved page Template:PythonProgress to User:PavelCheloveckov/PythonProgress without leaving a redirect)
No edit summary
Line 1: Line 1:
<div style="width: 320px; background-color: #444; border-radius: 6px; padding: 10px; font-family: Consolas, monospace; color: white;">
<div style="width: 220px; background-color: #444; border-radius: 6px; padding: 6px; font-family: Consolas, monospace; color: white; font-size: 13px;">
   <div style="font-weight: bold; font-size: 16px; margin-bottom: 8px;">
   <div style="font-weight: bold; font-size: 13px; margin-bottom: 6px;">
     {{#if: {{{lang|}}} |  
     {{#if: {{{lang|}}} |  
       {{#ifeq:{{{lang}}}|ru|Прогресс по Python — уровень изучения|Python Progress — learning level}}
       {{#ifeq:{{{lang}}}|ru|Прогресс по Python — уровень изучения|Python Progress — learning level}}
Line 7: Line 7:
     }}
     }}
   </div>
   </div>
   <div style="position: relative; height: 30px; background: #888; border-radius: 5px; overflow: hidden;">
   <div style="position: relative; height: 20px; background: #888; border-radius: 4px; overflow: hidden;">
     <div style="
     <div style="
       width: {{{percent|0}}}%;
       width: {{{percent|0}}}%;
Line 14: Line 14:
         45deg,
         45deg,
         #4caf50,
         #4caf50,
         #4caf50 10px,
         #4caf50 8px,
         #388e3c 10px,
         #388e3c 8px,
         #388e3c 20px
         #388e3c 16px
       );
       );
       border-radius: 5px 0 0 5px;
       border-radius: 4px 0 0 4px;
       transition: width 0.5s ease-in-out;
       transition: width 0.5s ease-in-out;
     ">
     ">
Line 28: Line 28:
       transform: translateX(-50%);
       transform: translateX(-50%);
       height: 100%;
       height: 100%;
       line-height: 30px;
       line-height: 20px;
       font-weight: bold;
       font-weight: bold;
      font-size: 12px;
       user-select: none;
       user-select: none;
       pointer-events: none;
       pointer-even
    ">{{{percent|0}}}%</div>
  </div>
</div>

Revision as of 10:27, 28 July 2025

   Python Progress — learning level
   <div style="
     position: absolute;
     top: 0;
     left: 50%;
     transform: translateX(-50%);
     height: 100%;
     line-height: 20px;
     font-weight: bold;
     font-size: 12px;
     user-select: none;
     pointer-even