form-goto.tpl 872 B

12345678910111213141516171819202122232425262728293031323334
  1. % content = setdefault("content", "") or ""
  2. % disabled = (setdefault("disabled", False) and 'readonly="true"') or ""
  3. <form id="goto" method="{{ method }}" action="{{ action }}">
  4. <style>
  5. input[type="url"]::-webkit-scrollbar {
  6. width: 11px;
  7. }
  8. input[type="url"] {
  9. color: #cccccc;
  10. background-color: #080808;
  11. scrollbar-width: thin;
  12. scrollbar-color: var(--thumbBG) var(--scrollbarBG);
  13. }
  14. input[type="url"]::-webkit-scrollbar-track {
  15. background: var(--scrollbarBG);
  16. }
  17. input[type="url"]::-webkit-scrollbar-thumb {
  18. background-color: var(--thumbBG) ;
  19. border-radius: 6px;
  20. border: 3px solid var(--scrollbarBG);
  21. }
  22. </style>
  23. <input type="url"
  24. style="width: 80%"
  25. id="input-url"
  26. name="url"
  27. {{!disabled}}
  28. required="true"
  29. autofocus="true"
  30. placeholder="Paste URL here..."
  31. value="{{ content }}"
  32. ></input>
  33. </form>
  34. % include('form-common')