notification.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. /*
  2. *
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. *
  20. */
  21. /* Main dialog setup */
  22. form[role="dialog"] {
  23. background:
  24. url(../img/pattern.png) repeat left top,
  25. url(../img/gradient.png) no-repeat left top / 100% 100%;
  26. overflow: hidden;
  27. position: absolute;
  28. z-index: 100;
  29. top: 0;
  30. left: 0;
  31. right: 0;
  32. bottom: 0;
  33. padding: 1.5rem 0 7rem;
  34. font-family: "MozTT", Sans-serif;
  35. font-size: 0;
  36. /* Using font-size: 0; we avoid the unwanted visual space (about 3px)
  37. created by white-spaces and break lines in the code betewen inline-block elements */
  38. color: #fff;
  39. text-align: left;
  40. }
  41. form[role="dialog"]:before {
  42. content: "";
  43. display: inline-block;
  44. vertical-align: middle;
  45. width: 0.1rem;
  46. height: 100%;
  47. margin-left: -0.1rem;
  48. }
  49. form[role="dialog"] > section {
  50. font-weight: lighter;
  51. font-size: 1.8rem;
  52. color: #FAFAFA;
  53. padding: 0 1.5rem;
  54. -moz-box-sizing: padding-box;
  55. width: 100%;
  56. display: inline-block;
  57. overflow-y: scroll;
  58. max-height: 100%;
  59. vertical-align: middle;
  60. white-space: normal;
  61. }
  62. form[role="dialog"] h1 {
  63. font-weight: normal;
  64. font-size: 1.6rem;
  65. line-height: 1.5em;
  66. color: #fff;
  67. margin: 0;
  68. padding: 0 1.5rem 1rem;
  69. border-bottom: 0.1rem solid #686868;
  70. }
  71. /* Menu & buttons setup */
  72. form[role="dialog"] menu {
  73. margin: 0;
  74. padding: 1.5rem;
  75. padding-bottom: 0.5rem;
  76. border-top: solid 0.1rem rgba(255, 255, 255, 0.1);
  77. background: #2d2d2d url(../img/pattern.png) repeat left top;
  78. display: block;
  79. overflow: hidden;
  80. position: absolute;
  81. left: 0;
  82. right: 0;
  83. bottom: 0;
  84. text-align: center;
  85. }
  86. form[role="dialog"] menu button::-moz-focus-inner {
  87. border: none;
  88. outline: none;
  89. }
  90. form[role="dialog"] menu button {
  91. width: 100%;
  92. height: 2.4rem;
  93. margin: 0 0 1rem;
  94. padding: 0 1.5rem;
  95. -moz-box-sizing: border-box;
  96. display: inline-block;
  97. vertical-align: middle;
  98. text-overflow: ellipsis;
  99. white-space: nowrap;
  100. overflow: hidden;
  101. background: #fafafa url(../img/default.png) repeat-x left bottom/ auto 100%;
  102. border: 0.1rem solid #a6a6a6;
  103. border-radius: 0.3rem;
  104. font: 500 1.2rem/2.4rem 'MozTT', Sans-serif;
  105. color: #333;
  106. text-align: center;
  107. text-shadow: 0.1rem 0.1rem 0 rgba(255,255,255,0.3);
  108. text-decoration: none;
  109. outline: none;
  110. }
  111. /* Press (default & recommend) */
  112. form[role="dialog"] menu button:active,
  113. form[role="dialog"] menu button.recommend:active,
  114. a.recommend[role="button"]:active {
  115. border-color: #008aaa;
  116. color: #333;
  117. }
  118. /* Recommend */
  119. form[role="dialog"] menu button.recommend {
  120. background-image: url(../img/recommend.png);
  121. background-color: #00caf2;
  122. border-color: #008eab;
  123. }
  124. /* Danger */
  125. form[role="dialog"] menu button.danger,
  126. a.danger[role="button"] {
  127. background-image: url(../img/danger.png);
  128. background-color: #b70404;
  129. color: #fff;
  130. text-shadow: none;
  131. border-color: #820000;
  132. }
  133. /* Danger Press */
  134. form[role="dialog"] menu button.danger:active {
  135. background-image: url(../img/danger-press.png);
  136. background-color: #890707;
  137. }
  138. /* Disabled */
  139. form[role="dialog"] > menu > button[disabled] {
  140. background: #5f5f5f;
  141. color: #4d4d4d;
  142. text-shadow: none;
  143. border-color: #4d4d4d;
  144. pointer-events: none;
  145. }
  146. form[role="dialog"] menu button:nth-child(even) {
  147. margin-left: 1rem;
  148. }
  149. form[role="dialog"] menu button,
  150. form[role="dialog"] menu button:nth-child(odd) {
  151. margin: 0 0 1rem 0;
  152. }
  153. form[role="dialog"] menu button {
  154. width: calc((100% - 1rem) / 2);
  155. }
  156. form[role="dialog"] menu button.full {
  157. width: 100%;
  158. }
  159. /* Specific component code */
  160. form[role="dialog"] p {
  161. word-wrap: break-word;
  162. margin: 1rem 0 0;
  163. padding: 0 1.5rem 1rem;
  164. line-height: 3rem;
  165. }
  166. form[role="dialog"] p img {
  167. float: left;
  168. margin-right: 2rem;
  169. }
  170. form[role="dialog"] p strong {
  171. font-weight: lighter;
  172. }
  173. form[role="dialog"] p small {
  174. font-size: 1.4rem;
  175. font-weight: normal;
  176. color: #cbcbcb;
  177. display: block;
  178. }
  179. form[role="dialog"] dl {
  180. border-top: 0.1rem solid #686868;
  181. margin: 1rem 0 0;
  182. overflow: hidden;
  183. padding-top: 1rem;
  184. font-size: 1.6rem;
  185. line-height: 2.2rem;
  186. }
  187. form[role="dialog"] dl > dt {
  188. clear: both;
  189. float: left;
  190. width: 7rem;
  191. padding-left: 1.5rem;
  192. font-weight: 500;
  193. text-align: left;
  194. }
  195. form[role="dialog"] dl > dd {
  196. padding-right: 1.5rem;
  197. font-weight: 300;
  198. text-overflow: ellipsis;
  199. vertical-align: top;
  200. overflow: hidden;
  201. }
  202. /* input areas */
  203. input[type="text"],
  204. input[type="password"],
  205. input[type="email"],
  206. input[type="tel"],
  207. input[type="search"],
  208. input[type="url"],
  209. input[type="number"],
  210. textarea {
  211. -moz-box-sizing: border-box;
  212. display: block;
  213. overflow: hidden;
  214. width: 100%;
  215. height: 3rem;
  216. resize: none;
  217. padding: 0 1rem;
  218. font-size: 1.6rem;
  219. line-height: 3rem;
  220. border: 0.1rem solid #ccc;
  221. border-radius: 0.3rem;
  222. box-shadow: none; /* override the box-shadow from the system (performance issue) */
  223. background: #fff url(input_areas/images/ui/shadow.png) repeat-x;
  224. }