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