/modules/mod_base/lib/css/zp-dialog.css

https://code.google.com/p/zotonic/ · CSS · 287 lines · 230 code · 34 blank · 23 comment · 0 complexity · a4f6aed0792fa49d07504c57ad614a1b MD5 · raw file

  1. /* Dialog styesheet.
  2. ----------------------------------------------------------
  3. @package: Zotonic 2009
  4. @Author: Tim Benniks <tim@timbenniks.nl>
  5. Copyright 2009 Tim Benniks
  6. Licensed under the Apache License, Version 2.0 (the "License");
  7. you may not use this file except in compliance with the License.
  8. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. ---------------------------------------------------------- */
  16. .dialog {
  17. position: absolute !important;
  18. color: #f9f9f9;
  19. top: 200px;
  20. width: 450px;
  21. height: auto;
  22. z-index: 998;
  23. }
  24. .dialog-top {
  25. background: transparent url(/lib/images/dialog_top_middle.png) repeat-x;
  26. height: auto;
  27. left: 0;
  28. margin: 0 25px;
  29. padding: 25px 0 0 0;
  30. position: relative;
  31. top: 0;
  32. width: 100%;
  33. cursor: move;
  34. }
  35. .dialog-top-left {
  36. background: transparent url(/lib/images/dialog_top_left.png) no-repeat;
  37. height: 100%;
  38. left: -25px;
  39. position: absolute;
  40. top: 0;
  41. width: 25px;
  42. height: 25px;
  43. }
  44. .dialog-top-right {
  45. background: transparent url(/lib/images/dialog_top_right.png) no-repeat;
  46. height: 100%;
  47. right: -25px;
  48. position: absolute;
  49. top: 0;
  50. width: 25px;
  51. height: 25px;
  52. }
  53. .dialog-content {
  54. background: transparent url(/lib/images/dialog_content_left.png) repeat-y;
  55. height: auto;
  56. padding: 0 25px;
  57. position: relative;
  58. width: 100%;
  59. overflow: hidden;
  60. }
  61. .dialog-inner-content {
  62. background: transparent url(/lib/images/dialog_content.png) repeat;
  63. float: left;
  64. padding: 10px 0 0 0;
  65. width: 100%;
  66. overflow: hidden;
  67. }
  68. .dialog-content-right {
  69. background: transparent url(/lib/images/dialog_content_right.png) repeat-y;
  70. height: 100%;
  71. position: absolute;
  72. right: 0;
  73. top: 0;
  74. width: 25px;
  75. }
  76. .dialog-bottom {
  77. background: transparent url(/lib/images/dialog_bottom_middle.png) repeat-x;
  78. height: auto;
  79. left: 0;
  80. margin: 0 25px;
  81. padding: 41px 0 0 0;
  82. position: relative;
  83. top: 0;
  84. width: 100%;
  85. z-index: 999;
  86. }
  87. .dialog-bottom-left {
  88. background: transparent url(/lib/images/dialog_bottom_left.png) no-repeat;
  89. height: 100%;
  90. left: -25px;
  91. position: absolute;
  92. top: 0;
  93. width: 25px;
  94. height: 41px;
  95. }
  96. .dialog-bottom-right {
  97. background: transparent url(/lib/images/dialog_bottom_right.png) no-repeat;
  98. height: 100%;
  99. right: -25px;
  100. position: absolute;
  101. top: 0;
  102. width: 25px;
  103. height: 41px;
  104. }
  105. .dialog-close {
  106. background: transparent url(/lib/images/close.png) no-repeat top;
  107. height: 15px;
  108. width: 15px;
  109. left: -17px;
  110. top: 7px;
  111. position: absolute;
  112. cursor: pointer;
  113. }
  114. .dialog-close:hover,
  115. .dialog-close:focus,
  116. .dialog-close:active {
  117. background-position: bottom;
  118. }
  119. h5.dialog-title {
  120. display: block;
  121. font-size: 11px;
  122. position: absolute;
  123. text-align: center;
  124. top: 6px;
  125. width: 100%;
  126. text-shadow: 1px 2px 2px #444;
  127. font-weight: bold;
  128. }
  129. .dialog .ui-resizable-se {
  130. bottom: -34px;
  131. cursor: se-resize;
  132. height: 17px;
  133. right: 6px;
  134. width: 23px;
  135. }
  136. .dialog .ui-resizable-handle {
  137. display: block;
  138. font-size: 0.1px;
  139. position: absolute;
  140. z-index: 99999;
  141. }
  142. .dialog input, .dialog textarea, .dialog select {
  143. background: #333;
  144. color: #eee;
  145. border-color: #666;
  146. padding: 4px;
  147. width: 300px;
  148. -moz-border-radius: 3px;
  149. -webkit-border-radius: 3px;
  150. border-width: 1px;
  151. }
  152. .dialog select {
  153. width: 310px;
  154. }
  155. .dialog option {
  156. background: #333;
  157. color: #eee;
  158. border: none;
  159. }
  160. .dialog input:focus, .dialog textarea:focus {
  161. background: #444;
  162. }
  163. .dialog label {
  164. margin: 2px 12px 0 0;
  165. width: 90px;
  166. }
  167. .dialog button,
  168. .dialog a.button {
  169. -moz-border-radius: 10px;
  170. -webkit-border-radius: 10px;
  171. background: #333;
  172. border-color: #666;
  173. color: #eee;
  174. text-transform: lowercase;
  175. }
  176. .dialog button:hover,
  177. .dialog a.button:hover {
  178. -moz-border-radius: 10px;
  179. -webkit-border-radius: 10px;
  180. color: #fff;
  181. background: #444;
  182. border-color: #111;
  183. }
  184. .dialog label, .dialog p, .dialog h3, .dialog h4, .dialog h5 {
  185. color: #eee;
  186. }
  187. .dialog input.form-field-error,
  188. .dialog textarea.form-field-error {
  189. background: #603d3d;
  190. color: #fff;
  191. margin-right: 3px;
  192. border-color: #be2727;
  193. }
  194. .dialog .z_invalid {
  195. color: #ff0000;
  196. font-size: 18px;
  197. }
  198. /* tabs in dialog
  199. ------------------------------------------------------- */
  200. .dialog .ui-tabs-nav {
  201. margin: 0;
  202. }
  203. .dialog .ui-tabs-nav li {
  204. display: block;
  205. float: left;
  206. background-color: transparent;
  207. margin: 0 1px 0 0;
  208. border: 0;
  209. padding: 0;
  210. }
  211. .dialog .ui-tabs-nav li a {
  212. color: #fff;
  213. padding: 4px 8px;
  214. -moz-border-radius-topright: 6px;
  215. -moz-border-radius-topleft: 6px;
  216. -webkit-border-top-left-radius: 6px;
  217. -webkit-border-top-right-radius: 6px;
  218. text-decoration: none;
  219. background: #555 url(/lib/images/dialog_top_middle.png) repeat-x left -5px;
  220. color: #b6b6b6;
  221. font-size: 11px;
  222. }
  223. .dialog li.ui-state-active a {
  224. text-shadow: 1px 2px 2px #000;
  225. color: #fff;
  226. }
  227. .dialog .ui-tabs-panel {
  228. padding: 9px;
  229. -moz-border-radius-bottomleft: 6px;
  230. -moz-border-radius-bottomright: 6px;
  231. -moz-border-radius-topright: 6px;
  232. -webkit-border-bottom-left-radius: 6px;
  233. -webkit-border-bottom-right-radius: 6px;
  234. -webkit-border-top-right-radius: 6px;
  235. background: none;
  236. border: solid #555;
  237. border-width: 2px 1px 1px;
  238. color: #eee;
  239. margin: 0 0 16px 0;
  240. min-height: 40px;
  241. }
  242. .dialog .ui-tabs-hide {
  243. display: none !important;
  244. }
  245. .dialog .ui-tabs .ui-tabs-selected {
  246. font-weight: normal;
  247. }