Nico Huber | ee52fbc | 2023-06-24 11:52:57 +0000 | [diff] [blame] | 1 | /* |
| 2 | * SimpleID |
| 3 | * |
| 4 | * Copyright (C) Kelvin Mo 2009 |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public |
| 17 | * License along with this program; if not, write to the Free |
| 18 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 19 | * |
| 20 | * $Id$ |
| 21 | */ |
| 22 | |
| 23 | @import url(normalize.css); |
| 24 | |
| 25 | /* General elements -------------------------------------------------------- */ |
| 26 | html { |
| 27 | font: 12px/19px Helvetica, Arial, sans-serif; |
| 28 | } |
| 29 | |
| 30 | h1 { |
| 31 | font-weight: normal; |
| 32 | color: #666666; |
| 33 | } |
| 34 | |
| 35 | a { |
| 36 | border-bottom: 1px solid #CCCCCC; |
| 37 | color: #1144AA; |
| 38 | text-decoration: none !important; |
| 39 | font-weight: bold; |
| 40 | } |
| 41 | a:visited { |
| 42 | border-color: #CCCCCC; |
| 43 | color: #114499; |
| 44 | } |
| 45 | a:focus, a:hover { |
| 46 | border-color: #4488EE; |
| 47 | color: #4488EE; |
| 48 | } |
| 49 | |
| 50 | table { |
| 51 | border-collapse: collapse; |
| 52 | margin: 0 0 1em 0; |
| 53 | width: 100%; |
| 54 | } |
| 55 | |
| 56 | td, th { |
| 57 | border-bottom: 1px solid #CCCCCC; |
| 58 | text-align: left; |
| 59 | vertical-align: top; |
| 60 | padding: 5px 5px; |
| 61 | } |
| 62 | th { |
| 63 | border-bottom: 0px; |
| 64 | background-color: #666666; |
| 65 | color: #FFFFFF; |
| 66 | white-space: nowrap; |
| 67 | font-weight: bold; |
| 68 | } |
| 69 | |
| 70 | pre { |
| 71 | border:1px solid #CCCCCC; |
| 72 | padding: 5px; |
| 73 | font-family:"Bitstream Vera Sans Mono","Courier New",monospace; |
| 74 | font-size: 0.9em; |
| 75 | white-space: nowrap; |
| 76 | overflow: scroll; |
| 77 | } |
| 78 | |
| 79 | /* Page layout ------------------------------------------------------------- */ |
| 80 | #header { |
| 81 | background-color: #666666; |
| 82 | color: #CCCCCC; |
| 83 | padding: 0px 10px; |
| 84 | line-height: 1; |
| 85 | } |
| 86 | #header-inner { margin: 0px auto; max-width: 1140px; } |
| 87 | |
| 88 | #header h1 { |
| 89 | font-weight: bold; |
| 90 | font-size: 14px; |
| 91 | text-transform: uppercase; |
| 92 | margin: 0.5em 0; |
| 93 | color: #CCCCCC; |
| 94 | letter-spacing: 0; |
| 95 | } |
| 96 | |
| 97 | #header h1 a { |
| 98 | color: #FFFFFF; |
| 99 | text-decoration: none; |
| 100 | border-bottom: none; |
| 101 | } |
| 102 | |
| 103 | #nav-toggle, #logo { float: left; padding: 5px 0px; } |
| 104 | #nav-toggle { |
| 105 | padding: 5px; |
| 106 | border-right: 1px solid #FFFFFF; |
| 107 | margin-right: 0.5em; |
| 108 | cursor: pointer; |
| 109 | display: none; |
| 110 | } |
| 111 | #nav-toggle img { padding: 0.5em; } |
| 112 | |
| 113 | #nav { |
| 114 | background-color: #666666; |
| 115 | color: #CCCCCC; |
| 116 | padding: 5px 10px; |
| 117 | } |
| 118 | #nav-inner { margin: 0px auto; max-width: 1140px; } |
| 119 | #nav ul { |
| 120 | margin: 0; |
| 121 | padding: 0; |
| 122 | text-align: left; |
| 123 | } |
| 124 | #nav li { |
| 125 | display: inline; |
| 126 | list-style-type: none; |
| 127 | } |
| 128 | #nav a { |
| 129 | background-color: #888888; |
| 130 | padding: 6px 8px; |
| 131 | border-width: 0; |
| 132 | color: #FFFFFF; |
| 133 | } |
| 134 | #nav ul#nav-left { float: left; } |
| 135 | #nav ul#nav-right { float: right; } |
| 136 | |
| 137 | #user { |
| 138 | float: right; |
| 139 | margin: 0.5em 0; |
| 140 | padding: 5px 0; |
| 141 | } |
| 142 | .logged-in-as .identity { |
| 143 | padding-left: 20px; |
| 144 | background: transparent url(user.png) no-repeat top left; |
| 145 | color: #FFFFFF; |
| 146 | } |
| 147 | .logged-in-as a { |
| 148 | color: #FFFFFF; |
| 149 | border-bottom-color: #FFFFFF; |
| 150 | font-weight: normal; |
| 151 | } |
| 152 | #logout:before { content: " ยท "; } |
| 153 | |
| 154 | #user-toggle { |
| 155 | float: right; |
| 156 | padding: 5px; |
| 157 | margin-left: 0.5em; |
| 158 | border-left: 1px solid #FFFFFF; |
| 159 | cursor: pointer; |
| 160 | display: none; |
| 161 | } |
| 162 | #user-toggle img { padding: 0.5em; } |
| 163 | |
| 164 | #footer { |
| 165 | margin: 2em 0; |
| 166 | padding: 0px 10px; |
| 167 | text-align: right; |
| 168 | font-size: 0.9em; |
| 169 | color: #999999; |
| 170 | } |
| 171 | #footer address { font-style: normal } |
| 172 | #footer a { color: #999999; } |
| 173 | |
| 174 | #content { |
| 175 | margin: auto; |
| 176 | padding: 1em 10px; |
| 177 | max-width: 1140px; |
| 178 | clear: both; |
| 179 | } |
| 180 | |
| 181 | |
| 182 | /* Specific elements ------------------------------------------------------- */ |
| 183 | .realm, .site { |
| 184 | padding-left: 20px; |
| 185 | background: transparent url(world.png) no-repeat top left; |
| 186 | } |
| 187 | .app { |
| 188 | padding-left: 20px; |
| 189 | background: transparent url(application.png) no-repeat top left; |
| 190 | } |
| 191 | .device { |
| 192 | padding-left: 20px; |
| 193 | background: transparent url(drive.png) no-repeat top left; |
| 194 | } |
| 195 | .url-elide { color: #999999; } |
| 196 | |
| 197 | span.last-time { display: none; } |
| 198 | |
| 199 | .message, .login-security { |
| 200 | border: 1px solid #666666; |
| 201 | border-radius: 4px; |
| 202 | padding: 0 10px; |
| 203 | background: #DDDDDD; |
| 204 | margin-bottom: 10px; |
| 205 | } |
| 206 | .message p { line-height: 1; } |
| 207 | |
| 208 | .unsecure { |
| 209 | border: 1px solid #AAAA11; |
| 210 | background: #FFFFDD; |
| 211 | } |
| 212 | .unsecure p { padding-left: 20px; background: transparent url(lock-open.png) no-repeat top left; } |
| 213 | .secure { |
| 214 | border: 1px solid #44AA11; |
| 215 | background: #EEFFDD; |
| 216 | } |
| 217 | .secure p { padding-left: 20px; background: transparent url(lock.png) no-repeat top left; } |
| 218 | |
| 219 | .block { |
| 220 | background-color: #EEEEEE; |
| 221 | margin-bottom: 20px; |
| 222 | } |
| 223 | .block-header { |
| 224 | background-color: #666666; |
| 225 | margin:0 0 5px; |
| 226 | padding: 5px 10px; |
| 227 | } |
| 228 | .block-header h2 { |
| 229 | font-size: 1.2em; |
| 230 | font-weight: bold; |
| 231 | color: #FFFFFF; |
| 232 | margin: 0; |
| 233 | padding: 0; |
| 234 | border-top-width: 0; |
| 235 | } |
| 236 | .block-header-links { |
| 237 | float: right; |
| 238 | font-size: 0.9em; |
| 239 | text-align: right; |
| 240 | white-space: nowrap; |
| 241 | } |
| 242 | .block-header-links a { |
| 243 | color: #FFFFFF; |
| 244 | border-bottom-color: #FFFFFF; |
| 245 | font-weight: normal; |
| 246 | } |
| 247 | .block-content { |
| 248 | padding: 5px 10px; |
| 249 | } |
| 250 | .block-content p { |
| 251 | margin: 0 0 5px 0; |
| 252 | padding: 0; |
| 253 | } |
| 254 | .block-content h3 { |
| 255 | font-size: 1em; |
| 256 | font-weight: bold; |
| 257 | margin: 0; |
| 258 | padding: 5px 0 0 0; |
| 259 | } |
| 260 | |
| 261 | #discovery label { display: inline; } |
| 262 | #discovery-templates { display: none; } |
| 263 | |
| 264 | .otp-key { |
| 265 | font-size: 18px; |
| 266 | font-family: "Bitstream Vera Sans Mono","Courier New",monospace; |
| 267 | margin: 5px; |
| 268 | } |
| 269 | .otp-letters { padding: 0 2px; } |
| 270 | #otp-key-qr { padding: 16px 0; } |
| 271 | |
| 272 | /* Forms */ |
| 273 | .form-item { margin: 1em 0; } |
| 274 | |
| 275 | label { |
| 276 | display: block; |
| 277 | font-weight: bold; |
| 278 | padding: 2px 0; |
| 279 | } |
| 280 | label.option { font-weight: normal; } |
| 281 | |
| 282 | select, textarea, input[type="text"], input[type="password"], input[type="number"] { |
| 283 | display: inline-block; |
| 284 | padding: 0.5em; |
| 285 | border: 1px solid #AAAAAA; |
| 286 | border-radius: 2px; |
| 287 | } |
| 288 | select:focus, textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus { |
| 289 | border-color: #1144AA; |
| 290 | } |
| 291 | |
| 292 | input[type="submit"], input[type="button"] { |
| 293 | padding: 0.5em 1em; |
| 294 | background-color: #EEEEEE; |
| 295 | border: 1px solid #999999; |
| 296 | border-radius: 2px; |
| 297 | zoom: 1; |
| 298 | vertical-align: middle; |
| 299 | font-weight: bold; |
| 300 | } |
| 301 | input[type="submit"]:active, input[type="button"]:active { |
| 302 | box-shadow: 0 0 0 1px rgba(0,0,0, 0.15) inset, 0 0 6px rgba(0,0,0, 0.20) inset; |
| 303 | } |
| 304 | input[type="submit"][disabled], input[type="button"][disabled] { |
| 305 | color: #999999 !important; |
| 306 | background-color: #EEEEEE !important; |
| 307 | border-color: #999999 !important; |
| 308 | } |
| 309 | input[type="submit"].form-default, input[type="button"].form-default { |
| 310 | color: #FFFFFF; |
| 311 | background-color: #1144AA; |
| 312 | border-color: #114499; |
| 313 | } |
| 314 | |
| 315 | input[type="radio"], input[type="checkbox"] { margin: 0.5em 0; } |
| 316 | input[type="radio"]:focus, input[type="checkbox"]:focus { |
| 317 | outline: 1px auto #1144AA; |
| 318 | } |
| 319 | |
| 320 | /* Dialogs and dialog pages */ |
| 321 | .dialog-page { background: #EEEEEE; } |
| 322 | .dialog-page #content { |
| 323 | padding-top: 50px; |
| 324 | max-width: 400px; |
| 325 | } |
| 326 | .dialog-page #content-inner { |
| 327 | padding: 20px; |
| 328 | border: 10px solid #DDDDDD; |
| 329 | background: #FFFFFF; |
| 330 | } |
| 331 | |
| 332 | .dialog-page form { padding-right: 2px; } /* Used to adjust the padding in text boxes */ |
| 333 | .dialog-page .form-item { padding-right: 1em; } /* Used to adjust the padding in text boxes */ |
| 334 | .dialog-page select, .dialog-page textarea, .dialog-page input[type="text"], .dialog-page input[type="password"], .dialog-page input[type="number"] { |
| 335 | width: 100%; |
| 336 | } |
| 337 | |
| 338 | /* Mobile devices ---------------------------------------------------------- */ |
| 339 | @media only screen and (max-width: 767px) { |
| 340 | html { font-size: 14px; } |
| 341 | |
| 342 | #logo .version { display: none; } |
| 343 | |
| 344 | #nav-toggle, #user-toggle { display: block; } |
| 345 | #nav-toggle.expand, #user-toggle.expand { background-color: #888888; } |
| 346 | |
| 347 | #nav { |
| 348 | display: none; |
| 349 | position: absolute; |
| 350 | float: none; |
| 351 | left: 10px; |
| 352 | top: 40px; |
| 353 | padding: 0; |
| 354 | } |
| 355 | #nav.expand { display: block; } |
| 356 | #nav li { display: block; } |
| 357 | #nav a { display: block; } |
| 358 | |
| 359 | #user { |
| 360 | display: none; |
| 361 | position: absolute; |
| 362 | float: none; |
| 363 | right: 10px; |
| 364 | top: 40px; |
| 365 | background-color: #888888; |
| 366 | margin: 0; |
| 367 | padding: 0 8px; |
| 368 | } |
| 369 | #user.expand { display: block; } |
| 370 | #user span { |
| 371 | display: block; |
| 372 | padding: 6px 0; |
| 373 | } |
| 374 | #logout:before { content: ""; } |
| 375 | |
| 376 | .dialog-page { background: #FFFFFF; } |
| 377 | .dialog-page #content { padding-top: 10px; } |
| 378 | .dialog-page #content-inner { |
| 379 | padding: 0px; |
| 380 | border-width: 0px; |
| 381 | } |
| 382 | } |
| 383 | |