fonts.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #sidebar-panel-fontinspector {
  5. margin: 0;
  6. display: flex;
  7. flex-direction: column;
  8. padding-bottom: 20px;
  9. width: 100%;
  10. height: 100%;
  11. }
  12. #sidebar-panel-fontinspector > .devtools-toolbar {
  13. display: flex;
  14. }
  15. #font-container {
  16. overflow: auto;
  17. flex: auto;
  18. }
  19. #all-fonts {
  20. padding: 0;
  21. margin: 0;
  22. }
  23. #font-showall {
  24. cursor: pointer;
  25. flex-shrink: 0;
  26. }
  27. #font-showall:hover {
  28. text-decoration: underline;
  29. }
  30. .dim > #font-container,
  31. .font:not(.has-code) .font-css-code,
  32. .font-is-local,
  33. .font-is-remote,
  34. .font.is-local .font-format-url,
  35. #font-template {
  36. display: none;
  37. }
  38. .font.is-remote .font-is-remote,
  39. .font.is-local .font-is-local {
  40. display: inline;
  41. }
  42. .font-format::before {
  43. content: "(";
  44. }
  45. .font-format::after {
  46. content: ")";
  47. }
  48. .preview-input-toolbar {
  49. display: flex;
  50. width: 100%;
  51. }
  52. .font-preview-container {
  53. overflow-x: auto;
  54. }
  55. #font-preview-text-input {
  56. margin-top: 1px;
  57. margin-bottom: 1px;
  58. padding-top: 0;
  59. padding-bottom: 0;
  60. flex: 1;
  61. }
  62. .font {
  63. padding: 10px 10px;
  64. }
  65. .theme-dark .font {
  66. border-bottom: 1px solid #444;
  67. }
  68. .theme-light .font {
  69. border-bottom: 1px solid #DDD;
  70. }
  71. .font:last-of-type {
  72. border-bottom: 0;
  73. }
  74. .theme-light .font:nth-child(even) {
  75. background: #F4F4F4;
  76. }
  77. .font-preview {
  78. margin-left: -4px;
  79. height: 60px;
  80. display: block;
  81. }
  82. .font-info {
  83. display: block;
  84. }
  85. .font-name {
  86. display: inline;
  87. }
  88. .font-css-code {
  89. max-width: 100%;
  90. overflow: hidden;
  91. text-overflow: ellipsis;
  92. padding: 5px;
  93. }
  94. .theme-light .font-css-code,
  95. .theme-light .font-url {
  96. border: 1px solid #CCC;
  97. background: white;
  98. }
  99. .theme-dark .font-css-code,
  100. .theme-dark .font-url {
  101. border: 1px solid #333;
  102. background: black;
  103. color: white;
  104. }