michael@0: /* michael@0: * michael@0: * Licensed to the Apache Software Foundation (ASF) under one michael@0: * or more contributor license agreements. See the NOTICE file michael@0: * distributed with this work for additional information michael@0: * regarding copyright ownership. The ASF licenses this file michael@0: * to you under the Apache License, Version 2.0 (the michael@0: * "License"); you may not use this file except in compliance michael@0: * with the License. You may obtain a copy of the License at michael@0: * michael@0: * http://www.apache.org/licenses/LICENSE-2.0 michael@0: * michael@0: * Unless required by applicable law or agreed to in writing, michael@0: * software distributed under the License is distributed on an michael@0: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY michael@0: * KIND, either express or implied. See the License for the michael@0: * specific language governing permissions and limitations michael@0: * under the License. michael@0: * michael@0: */ michael@0: michael@0: /* Main dialog setup */ michael@0: form[role="dialog"] { michael@0: background: michael@0: url(../img/pattern.png) repeat left top, michael@0: url(../img/gradient.png) no-repeat left top / 100% 100%; michael@0: overflow: hidden; michael@0: position: absolute; michael@0: z-index: 100; michael@0: top: 0; michael@0: left: 0; michael@0: right: 0; michael@0: bottom: 0; michael@0: padding: 1.5rem 0 7rem; michael@0: font-family: "MozTT", Sans-serif; michael@0: font-size: 0; michael@0: /* Using font-size: 0; we avoid the unwanted visual space (about 3px) michael@0: created by white-spaces and break lines in the code betewen inline-block elements */ michael@0: color: #fff; michael@0: text-align: left; michael@0: } michael@0: michael@0: form[role="dialog"]:before { michael@0: content: ""; michael@0: display: inline-block; michael@0: vertical-align: middle; michael@0: width: 0.1rem; michael@0: height: 100%; michael@0: margin-left: -0.1rem; michael@0: } michael@0: michael@0: form[role="dialog"] > section { michael@0: font-weight: lighter; michael@0: font-size: 1.8rem; michael@0: color: #FAFAFA; michael@0: padding: 0 1.5rem; michael@0: -moz-box-sizing: padding-box; michael@0: width: 100%; michael@0: display: inline-block; michael@0: overflow-y: scroll; michael@0: max-height: 100%; michael@0: vertical-align: middle; michael@0: white-space: normal; michael@0: } michael@0: michael@0: form[role="dialog"] h1 { michael@0: font-weight: normal; michael@0: font-size: 1.6rem; michael@0: line-height: 1.5em; michael@0: color: #fff; michael@0: margin: 0; michael@0: padding: 0 1.5rem 1rem; michael@0: border-bottom: 0.1rem solid #686868; michael@0: } michael@0: michael@0: /* Menu & buttons setup */ michael@0: form[role="dialog"] menu { michael@0: margin: 0; michael@0: padding: 1.5rem; michael@0: padding-bottom: 0.5rem; michael@0: border-top: solid 0.1rem rgba(255, 255, 255, 0.1); michael@0: background: #2d2d2d url(../img/pattern.png) repeat left top; michael@0: display: block; michael@0: overflow: hidden; michael@0: position: absolute; michael@0: left: 0; michael@0: right: 0; michael@0: bottom: 0; michael@0: text-align: center; michael@0: } michael@0: michael@0: form[role="dialog"] menu button::-moz-focus-inner { michael@0: border: none; michael@0: outline: none; michael@0: } michael@0: form[role="dialog"] menu button { michael@0: width: 100%; michael@0: height: 2.4rem; michael@0: margin: 0 0 1rem; michael@0: padding: 0 1.5rem; michael@0: -moz-box-sizing: border-box; michael@0: display: inline-block; michael@0: vertical-align: middle; michael@0: text-overflow: ellipsis; michael@0: white-space: nowrap; michael@0: overflow: hidden; michael@0: background: #fafafa url(../img/default.png) repeat-x left bottom/ auto 100%; michael@0: border: 0.1rem solid #a6a6a6; michael@0: border-radius: 0.3rem; michael@0: font: 500 1.2rem/2.4rem 'MozTT', Sans-serif; michael@0: color: #333; michael@0: text-align: center; michael@0: text-shadow: 0.1rem 0.1rem 0 rgba(255,255,255,0.3); michael@0: text-decoration: none; michael@0: outline: none; michael@0: } michael@0: michael@0: /* Press (default & recommend) */ michael@0: form[role="dialog"] menu button:active, michael@0: form[role="dialog"] menu button.recommend:active, michael@0: a.recommend[role="button"]:active { michael@0: border-color: #008aaa; michael@0: color: #333; michael@0: } michael@0: michael@0: /* Recommend */ michael@0: form[role="dialog"] menu button.recommend { michael@0: background-image: url(../img/recommend.png); michael@0: background-color: #00caf2; michael@0: border-color: #008eab; michael@0: } michael@0: michael@0: /* Danger */ michael@0: form[role="dialog"] menu button.danger, michael@0: a.danger[role="button"] { michael@0: background-image: url(../img/danger.png); michael@0: background-color: #b70404; michael@0: color: #fff; michael@0: text-shadow: none; michael@0: border-color: #820000; michael@0: } michael@0: michael@0: /* Danger Press */ michael@0: form[role="dialog"] menu button.danger:active { michael@0: background-image: url(../img/danger-press.png); michael@0: background-color: #890707; michael@0: } michael@0: michael@0: /* Disabled */ michael@0: form[role="dialog"] > menu > button[disabled] { michael@0: background: #5f5f5f; michael@0: color: #4d4d4d; michael@0: text-shadow: none; michael@0: border-color: #4d4d4d; michael@0: pointer-events: none; michael@0: } michael@0: michael@0: michael@0: form[role="dialog"] menu button:nth-child(even) { michael@0: margin-left: 1rem; michael@0: } michael@0: michael@0: form[role="dialog"] menu button, michael@0: form[role="dialog"] menu button:nth-child(odd) { michael@0: margin: 0 0 1rem 0; michael@0: } michael@0: michael@0: form[role="dialog"] menu button { michael@0: width: calc((100% - 1rem) / 2); michael@0: } michael@0: michael@0: form[role="dialog"] menu button.full { michael@0: width: 100%; michael@0: } michael@0: michael@0: /* Specific component code */ michael@0: form[role="dialog"] p { michael@0: word-wrap: break-word; michael@0: margin: 1rem 0 0; michael@0: padding: 0 1.5rem 1rem; michael@0: line-height: 3rem; michael@0: } michael@0: michael@0: form[role="dialog"] p img { michael@0: float: left; michael@0: margin-right: 2rem; michael@0: } michael@0: michael@0: form[role="dialog"] p strong { michael@0: font-weight: lighter; michael@0: } michael@0: michael@0: form[role="dialog"] p small { michael@0: font-size: 1.4rem; michael@0: font-weight: normal; michael@0: color: #cbcbcb; michael@0: display: block; michael@0: } michael@0: michael@0: form[role="dialog"] dl { michael@0: border-top: 0.1rem solid #686868; michael@0: margin: 1rem 0 0; michael@0: overflow: hidden; michael@0: padding-top: 1rem; michael@0: font-size: 1.6rem; michael@0: line-height: 2.2rem; michael@0: } michael@0: michael@0: form[role="dialog"] dl > dt { michael@0: clear: both; michael@0: float: left; michael@0: width: 7rem; michael@0: padding-left: 1.5rem; michael@0: font-weight: 500; michael@0: text-align: left; michael@0: } michael@0: michael@0: form[role="dialog"] dl > dd { michael@0: padding-right: 1.5rem; michael@0: font-weight: 300; michael@0: text-overflow: ellipsis; michael@0: vertical-align: top; michael@0: overflow: hidden; michael@0: } michael@0: michael@0: /* input areas */ michael@0: input[type="text"], michael@0: input[type="password"], michael@0: input[type="email"], michael@0: input[type="tel"], michael@0: input[type="search"], michael@0: input[type="url"], michael@0: input[type="number"], michael@0: textarea { michael@0: -moz-box-sizing: border-box; michael@0: display: block; michael@0: overflow: hidden; michael@0: width: 100%; michael@0: height: 3rem; michael@0: resize: none; michael@0: padding: 0 1rem; michael@0: font-size: 1.6rem; michael@0: line-height: 3rem; michael@0: border: 0.1rem solid #ccc; michael@0: border-radius: 0.3rem; michael@0: box-shadow: none; /* override the box-shadow from the system (performance issue) */ michael@0: background: #fff url(input_areas/images/ui/shadow.png) repeat-x; michael@0: }