main.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. :root {
  6. --container-paddding: 20px;
  7. --input-padding-vertical: 2px;
  8. --input-padding-horizontal: 4px;
  9. --input-margin-vertical: 4px;
  10. --input-margin-horizontal: 0;
  11. }
  12. html, body {
  13. height: 100%;
  14. min-height: 100%;
  15. padding: 0;
  16. margin: 0;
  17. }
  18. body {
  19. display: grid;
  20. grid-template-rows: auto 1fr;
  21. }
  22. input:not([type='checkbox']),
  23. textarea {
  24. display: block;
  25. width: 100%;
  26. border: none;
  27. margin-right: 0.3em;
  28. font-family: var(--vscode-font-family);
  29. padding: var(--input-padding-vertical) var(--input-padding-horizontal);
  30. color: var(--vscode-input-foreground);
  31. outline-color: var(--vscode-input-border);
  32. background-color: var(--vscode-input-background);
  33. }
  34. input::placeholder,
  35. textarea::placeholder {
  36. color: var(--vscode-input-placeholderForeground);
  37. }
  38. button {
  39. border: none;
  40. padding: 3px;
  41. text-align: center;
  42. outline: 1px solid transparent;
  43. color: var(--vscode-icon-foreground);
  44. background: none;
  45. border-radius: 5px;
  46. }
  47. button:hover:not(:disabled) {
  48. cursor: pointer;
  49. color: var(--vscode-toolbar-hoverForeground);
  50. background: var(--vscode-toolbar-hoverBackground);
  51. }
  52. button:disabled {
  53. opacity: 0.5;
  54. }
  55. input:focus,
  56. button:focus {
  57. outline-color: var(--vscode-focusBorder);
  58. }
  59. .header {
  60. display: flex;
  61. margin: 0.4em 1em;
  62. }
  63. .url-input {
  64. flex: 1;
  65. }
  66. .controls {
  67. display: flex;
  68. }
  69. .controls button {
  70. display: flex;
  71. margin-right: 0.3em;
  72. }
  73. .content {
  74. width: 100%;
  75. height: 100%;
  76. display: flex;
  77. justify-content: center;
  78. }
  79. iframe {
  80. width: 100%;
  81. height: 100%;
  82. border: none;
  83. background: white; /* Browsers default to a white background */
  84. }
  85. .iframe-focused-alert {
  86. display: none;
  87. position: absolute;
  88. bottom: 1em;
  89. background: var(--vscode-editorWidget-background);
  90. color: var(--vscode-editorWidget-foreground);
  91. padding: 0.2em 0.2em;
  92. border-radius: 4px;
  93. font-size: 8px;
  94. font-family: monospace;
  95. user-select: none;
  96. pointer-events: none;
  97. }
  98. .iframe-focused.enable-focus-lock-indicator .iframe-focused-alert {
  99. display: block;
  100. }