You are here

l10n_client.css in Localization client 7

Same filename and directory in other branches
  1. 5 l10n_client.css
  2. 6.2 l10n_client.css
  3. 6 l10n_client.css
/**
 * width percentages add to 99% rather than 100% to prevent float
 * overflows from occurring in an unnamed browser that can't decide
 * how it wants to round.
 */

/* l10n_client container */
#l10n-client {
  text-align: left;
  z-index: 499; /* This will appear under the overlay */
  line-height: 1em;
  color: #000;
  background: #fff;
  position: fixed;
  bottom: 0;
  right: 0;
  overflow: hidden;
}
.l10n-client-maximized {
  width: 100%;
}

* html #l10n-client {
  position: static;
}

#l10n-client-string-select .string-list,
#l10n-client-string-editor .source,
#l10n-client-string-editor .editor {
  height: 20em;
}

#l10n-client .labels {
  overflow: hidden;
  position: relative;
  height: 2em;
  color: #fff;
  background: #37a;
}
#l10n-client .labels .label {
  display: none;
}
/* Panel toggle button (span) */
#l10n-client .labels .toggle {
  cursor: pointer;
  display: block;
  right: 0;
  padding: 0 .75em;
  height: 2em;
  line-height: 2em;
  text-transform: uppercase;
  text-align: center;
}
.l10n-client-maximized .labels .toggle {
  position: absolute;
  background: #000;
}

/* Panel labels */
#l10n-client h2 {
  border-left: 1px solid #fff;
  height: 1em;
  line-height: 1em;
  padding: .5em;
  margin: 0;
  font-size: 1em;
  text-transform: uppercase;
}

#l10n-client .strings h2 {
  border: 0;
}

/* 25 + 37 + 37 = 99 */
#l10n-client .strings {
  width: 25%;
  float: left;
}
#l10n-client .source {
  width: 37%;
  float: left;
}
#l10n-client .translation {
  width: 37%;
  float: left;
}

/* Translatable string list */
#l10n-client-string-select {
  display: none;
  float: left;
  width: 25%;
}
#l10n-client .string-list {
  height: 17em;
  overflow: auto;
  list-style: none none;
  margin: 0;
  padding: 0;
}
#l10n-client .string-list li {
  font-size: .9em;
  min-height: 2em;
  line-height: 1.5em;
  cursor: default;
  background: transparent;
  list-style: none none;
  border-bottom: 1px solid #ddd;
  padding: .25em .5em;
  margin: 0;
}

/* Green for translated */
#l10n-client .string-list li.translated {
  border-bottom-color: #9c3;
  background: #cf6;
  color: #360;
}
#l10n-client .string-list li.translated:hover {
  background: #df8;
}
#l10n-client .string-list li.translated:active {
  background: #9c3;
}
#l10n-client .string-list li.hidden {
  display: none;
}

/* Gray + Blue hover for untranslated */
#l10n-client .string-list li.untranslated {
}
#l10n-client .string-list li.untranslated:hover {
  background: #ace;
}
#l10n-client .string-list li.untranslated:active {
  background: #8ac;
}

/* Selected string is indicated by bold text */
#l10n-client .string-list li.active {
  font-weight: bold;
}

#l10n-client #l10n-client-search-form {
  background: #eee;
  text-align: center;
  height: 2em;
  line-height: 2em;
  margin: 0;
  padding: .5em .5em;
}
#l10n-client #l10n-client-search-form .form-item,
#l10n-client #l10n-client-search-form input.form-text,
#l10n-client #l10n-client-search-form #search-filter-go,
#l10n-client #l10n-client-search-form #l10n-client-search-filter-clear {
  display: inline;
  vertical-align: middle;
}
#l10n-client #l10n-client-search-form .form-item {
  margin: 0;
  padding: 0;
}
#l10n-client #l10n-client-search-form input.form-text {
  width: 80%;
}
#l10n-client #l10n-client-search-form #l10n-client-search-filter-clear {
  width: 10%;
  margin: 0;
}

#l10n-client-string-editor {
  display: none;
  float: left;
  width: 74%;
}
#l10n-client-string-editor .source {
  overflow: hidden;
  width: 50%;
  float: left;
}
#l10n-client-string-editor .source .source-text {
  line-height: 1.5em;
  background: #eee;
  height: 15em;
  padding: 1em;
  margin: 1em 1em 0.5em;
  overflow: auto;
}

#l10n-client-string-editor .context {
  line-height: 1em;
  height: 1em;
  font-size: 0.8em;
  margin: 0.5em 1em 1em 1em;
  padding: 0 1em 0 1em;
}

#l10n-client-string-editor .translation {
  overflow: hidden;
  width: 49%;
  float: right;
}

#l10n-client-form {
  padding: 0;
}
#l10n-client-form .form-textarea {
  height: 13em;
  font-size: 1em;
  line-height: 1.25em;
  width: 95%;
}
#l10n-client-form .form-submit {
  margin-top: 0;
}

#l10n-client-data {
  display: none;
}

.l10n-client-feedback {
  background-color: #DF8;
  padding: 5px;
  font-style: italic;
  margin-bottom: 10px;
}
.l10n-client-feedback.message-warning {
  background-color: #FD8;
}
.l10n-client-feedback.message-error {
  background-color: #F00;
  color: #fff;
}
#l10n-client .l10n-client-minimized {
  height: 2em;
  overflow: hidden;
}
#l10n-client .l10n-client-maximized {
  height: 22em;
}
#l10n-client .toggle-expanded {
  border-bottom: 22em solid #fff;
}

File

l10n_client.css
View source
  1. /**
  2. * width percentages add to 99% rather than 100% to prevent float
  3. * overflows from occurring in an unnamed browser that can't decide
  4. * how it wants to round.
  5. */
  6. /* l10n_client container */
  7. #l10n-client {
  8. text-align: left;
  9. z-index: 499; /* This will appear under the overlay */
  10. line-height: 1em;
  11. color: #000;
  12. background: #fff;
  13. position: fixed;
  14. bottom: 0;
  15. right: 0;
  16. overflow: hidden;
  17. }
  18. .l10n-client-maximized {
  19. width: 100%;
  20. }
  21. * html #l10n-client {
  22. position: static;
  23. }
  24. #l10n-client-string-select .string-list,
  25. #l10n-client-string-editor .source,
  26. #l10n-client-string-editor .editor {
  27. height: 20em;
  28. }
  29. #l10n-client .labels {
  30. overflow: hidden;
  31. position: relative;
  32. height: 2em;
  33. color: #fff;
  34. background: #37a;
  35. }
  36. #l10n-client .labels .label {
  37. display: none;
  38. }
  39. /* Panel toggle button (span) */
  40. #l10n-client .labels .toggle {
  41. cursor: pointer;
  42. display: block;
  43. right: 0;
  44. padding: 0 .75em;
  45. height: 2em;
  46. line-height: 2em;
  47. text-transform: uppercase;
  48. text-align: center;
  49. }
  50. .l10n-client-maximized .labels .toggle {
  51. position: absolute;
  52. background: #000;
  53. }
  54. /* Panel labels */
  55. #l10n-client h2 {
  56. border-left: 1px solid #fff;
  57. height: 1em;
  58. line-height: 1em;
  59. padding: .5em;
  60. margin: 0;
  61. font-size: 1em;
  62. text-transform: uppercase;
  63. }
  64. #l10n-client .strings h2 {
  65. border: 0;
  66. }
  67. /* 25 + 37 + 37 = 99 */
  68. #l10n-client .strings {
  69. width: 25%;
  70. float: left;
  71. }
  72. #l10n-client .source {
  73. width: 37%;
  74. float: left;
  75. }
  76. #l10n-client .translation {
  77. width: 37%;
  78. float: left;
  79. }
  80. /* Translatable string list */
  81. #l10n-client-string-select {
  82. display: none;
  83. float: left;
  84. width: 25%;
  85. }
  86. #l10n-client .string-list {
  87. height: 17em;
  88. overflow: auto;
  89. list-style: none none;
  90. margin: 0;
  91. padding: 0;
  92. }
  93. #l10n-client .string-list li {
  94. font-size: .9em;
  95. min-height: 2em;
  96. line-height: 1.5em;
  97. cursor: default;
  98. background: transparent;
  99. list-style: none none;
  100. border-bottom: 1px solid #ddd;
  101. padding: .25em .5em;
  102. margin: 0;
  103. }
  104. /* Green for translated */
  105. #l10n-client .string-list li.translated {
  106. border-bottom-color: #9c3;
  107. background: #cf6;
  108. color: #360;
  109. }
  110. #l10n-client .string-list li.translated:hover {
  111. background: #df8;
  112. }
  113. #l10n-client .string-list li.translated:active {
  114. background: #9c3;
  115. }
  116. #l10n-client .string-list li.hidden {
  117. display: none;
  118. }
  119. /* Gray + Blue hover for untranslated */
  120. #l10n-client .string-list li.untranslated {
  121. }
  122. #l10n-client .string-list li.untranslated:hover {
  123. background: #ace;
  124. }
  125. #l10n-client .string-list li.untranslated:active {
  126. background: #8ac;
  127. }
  128. /* Selected string is indicated by bold text */
  129. #l10n-client .string-list li.active {
  130. font-weight: bold;
  131. }
  132. #l10n-client #l10n-client-search-form {
  133. background: #eee;
  134. text-align: center;
  135. height: 2em;
  136. line-height: 2em;
  137. margin: 0;
  138. padding: .5em .5em;
  139. }
  140. #l10n-client #l10n-client-search-form .form-item,
  141. #l10n-client #l10n-client-search-form input.form-text,
  142. #l10n-client #l10n-client-search-form #search-filter-go,
  143. #l10n-client #l10n-client-search-form #l10n-client-search-filter-clear {
  144. display: inline;
  145. vertical-align: middle;
  146. }
  147. #l10n-client #l10n-client-search-form .form-item {
  148. margin: 0;
  149. padding: 0;
  150. }
  151. #l10n-client #l10n-client-search-form input.form-text {
  152. width: 80%;
  153. }
  154. #l10n-client #l10n-client-search-form #l10n-client-search-filter-clear {
  155. width: 10%;
  156. margin: 0;
  157. }
  158. #l10n-client-string-editor {
  159. display: none;
  160. float: left;
  161. width: 74%;
  162. }
  163. #l10n-client-string-editor .source {
  164. overflow: hidden;
  165. width: 50%;
  166. float: left;
  167. }
  168. #l10n-client-string-editor .source .source-text {
  169. line-height: 1.5em;
  170. background: #eee;
  171. height: 15em;
  172. padding: 1em;
  173. margin: 1em 1em 0.5em;
  174. overflow: auto;
  175. }
  176. #l10n-client-string-editor .context {
  177. line-height: 1em;
  178. height: 1em;
  179. font-size: 0.8em;
  180. margin: 0.5em 1em 1em 1em;
  181. padding: 0 1em 0 1em;
  182. }
  183. #l10n-client-string-editor .translation {
  184. overflow: hidden;
  185. width: 49%;
  186. float: right;
  187. }
  188. #l10n-client-form {
  189. padding: 0;
  190. }
  191. #l10n-client-form .form-textarea {
  192. height: 13em;
  193. font-size: 1em;
  194. line-height: 1.25em;
  195. width: 95%;
  196. }
  197. #l10n-client-form .form-submit {
  198. margin-top: 0;
  199. }
  200. #l10n-client-data {
  201. display: none;
  202. }
  203. .l10n-client-feedback {
  204. background-color: #DF8;
  205. padding: 5px;
  206. font-style: italic;
  207. margin-bottom: 10px;
  208. }
  209. .l10n-client-feedback.message-warning {
  210. background-color: #FD8;
  211. }
  212. .l10n-client-feedback.message-error {
  213. background-color: #F00;
  214. color: #fff;
  215. }
  216. #l10n-client .l10n-client-minimized {
  217. height: 2em;
  218. overflow: hidden;
  219. }
  220. #l10n-client .l10n-client-maximized {
  221. height: 22em;
  222. }
  223. #l10n-client .toggle-expanded {
  224. border-bottom: 22em solid #fff;
  225. }