auditor.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {% extends "layouts/base.html" %}
  2. {% block styles %}
  3. <link rel="stylesheet" href="{{ url_for('static', filename='css/toastr.min.css') }}"/>
  4. <style>
  5. /* Estilo para los "chips" de redes sociales */
  6. .social-chip {
  7. padding: 8px 16px;
  8. border-radius: 9999px;
  9. font-size: 0.875rem;
  10. font-weight: 600;
  11. cursor: pointer;
  12. transition: all 0.2s ease-in-out;
  13. border: 1px solid #e5e7eb; /* gray-200 */
  14. background-color: #f9fafb; /* gray-50 */
  15. color: #374151; /* gray-700 */
  16. box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  17. }
  18. .social-chip:hover {
  19. border-color: #93c5fd; /* blue-300 */
  20. background-color: #eff6ff; /* blue-50 */
  21. transform: translateY(-1px);
  22. box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  23. }
  24. .social-chip.selected {
  25. background-color: #2563eb; /* blue-600 */
  26. color: white;
  27. border-color: #1d4ed8; /* blue-800 */
  28. box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  29. }
  30. .social-chip.selected:hover {
  31. background-color: #1d4ed8;
  32. }
  33. /* Estilo para el tooltip de ayuda sobre los chips */
  34. .tooltip {
  35. position: absolute;
  36. bottom: 100%;
  37. left: 50%;
  38. transform: translateX(-50%);
  39. margin-bottom: 8px;
  40. background-color: #111827; /* gray-900 */
  41. color: white;
  42. padding: 4px 8px;
  43. border-radius: 4px;
  44. font-size: 0.75rem;
  45. font-weight: 500;
  46. white-space: nowrap;
  47. opacity: 0;
  48. transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  49. pointer-events: none; /* Para que no interfiera con el click */
  50. transform-origin: bottom center;
  51. transform: translateX(-50%) scale(0.95);
  52. }
  53. .group:hover .tooltip {
  54. opacity: 1;
  55. transform: translateX(-50%) scale(1);
  56. }
  57. </style>
  58. {% endblock styles %}
  59. {% block content %}
  60. {% include 'partials/auditoria.html' %}
  61. {% endblock %}
  62. {% block scripts %}
  63. <script src="{{ url_for('static', filename='js/chart.js') }}"></script>
  64. <script src="{{ url_for('static', filename='js/jquery-4.0.0.min.js') }}"></script>
  65. <script src="{{ url_for('static', filename='js/toastr.min.js') }}"></script>
  66. <!-- Divided scripts -->
  67. <script src="{{ url_for('static', filename='js/auditoria/config_and_utils.js') }}"></script>
  68. <script src="{{ url_for('static', filename='js/auditoria/renderers.js') }}"></script>
  69. <script src="{{ url_for('static', filename='js/auditoria/user_search_and_inputs.js') }}"></script>
  70. <script src="{{ url_for('static', filename='js/auditoria/form_and_results.js') }}"></script>
  71. <script>
  72. document.addEventListener('DOMContentLoaded', ()=>{
  73. window.__AUD_FORM__ && window.__AUD_FORM__.initFormAndResults();
  74. window.__AUD_USER_INPUTS__ && window.__AUD_USER_INPUTS__.initUserAndInputs();
  75. });
  76. </script>
  77. {% endblock scripts %}