chiark / gitweb /
chpwd.css: Use the abbreviated border-setting notation.
[chopwood] / chpwd.css
CommitLineData
a2916c06
MW
1/* -*-css-*-
2 *
3 * Style sheet for Chopwood
4 *
5 * (c) 2013 Mark Wooding
6 */
7
8/*----- Licensing notice --------------------------------------------------*
9 *
10 * This file is part of Chopwood: a password-changing service.
11 *
12 * Chopwood is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Affero General Public License as
14 * published by the Free Software Foundation; either version 3 of the
15 * License, or (at your option) any later version.
16 *
17 * Chopwood is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU Affero General Public License for more details.
21 *
22 * You should have received a copy of the GNU Affero General Public
23 * License along with Chopwood; if not, see
24 * <http://www.gnu.org/licenses/>.
25 */
26
27/*----- General typesetting and layout -----------------------------------*/
28
29h1 {
d67ea869 30 border-bottom: medium solid;
9140b588 31 padding-bottom: 1ex;
a2916c06
MW
32}
33
34h2 {
d67ea869 35 border-top: thin solid;
9140b588
MW
36 padding-top: 1ex;
37 margin-top: 4ex;
a2916c06
MW
38}
39
40h1 + h2, h2:first-child {
9140b588
MW
41 border-top-style: hidden;
42 margin-top: inherit;
a2916c06
MW
43}
44
45div.credits {
d67ea869 46 border-top: thin solid;
9140b588
MW
47 padding-top: 0.5ex;
48 margin-top: 2ex;
49 text-align: right;
50 font-size: small;
51 font-style: italic;
a2916c06
MW
52}
53
5b7c6334
MW
54div.warn {
55 border: thin solid;
56 padding: 0ex 1em 2ex 1em;
57 margin: 2ex 1em;
58 background: red;
59}
60
a2916c06
MW
61/*----- Form layout -------------------------------------------------------*/
62
63/* Common form validation styling. */
64
65.whinge {
9140b588
MW
66 font-size: smaller;
67 visibility: hidden;
a2916c06
MW
68}
69
6971f41b
MW
70.login-whinge {
71 text-align: center;
72}
73
a2916c06 74.wrong {
9140b588
MW
75 color: red;
76 visibility: visible;
a2916c06
MW
77}
78
79/* Specific forms. */
80
81td.label { text-align: right; }
82
83.expand { height: 100%; }
84div.expand-outer { position: relative; }
85div.expand-inner {
9140b588
MW
86 position: absolute;
87 width: 50%;
88 height: 100%;
a2916c06
MW
89}
90div.expand-reference {
9140b588 91 margin-left: 50%;
a2916c06
MW
92}
93
94table.expand { width: 95%; }
95table.expand,
96table.expand tbody,
97table.expand tr {
9140b588
MW
98 border-collapse: collapse;
99 border-spacing: 0;
a2916c06
MW
100}
101table.expand td { padding: 0; }
102
103#acct-list {
9140b588
MW
104 width: 100%;
105 height: 100%;
a2916c06
MW
106}
107
108/*----- That's all, folks -------------------------------------------------*/