]> git.plutz.net Git - cgilite/blob - common.css
bugfix/typo: correct transformation of header fields into web server variable names
[cgilite] / common.css
1 /* ======= GENERIC HTML STYLES ======= */
2
3 * {
4   box-sizing: border-box;
5   position: relative;
6   font: inherit;
7   text-decoration: inherit;
8   color: inherit; background: transparent;
9   max-width: 100%;
10   margin: 0; padding: 0;
11   border: none;
12 }
13
14 body {
15   font: normal normal normal medium/1.5em sans-serif;
16   color: #000; background: #FFF;
17 }
18
19 ul, ol, dl, table, pre, p { margin-bottom: .5em; }
20 p:only-child { margin-bottom: 0; }
21
22 table {
23   max-width: 100%;
24   overflow-x: auto;
25 }
26 th, td { padding: .25em .75em; }
27
28 a {
29   font-style: italic;
30   text-decoration: underline;
31   color: #068;
32 }
33 a.button {
34   font-style: inherit;
35   text-decoration: inherit;
36   color: inherit;
37 }
38
39 sup { vertical-align: super; }
40 sub { vertical-align: sub; }
41 small { font-size: .75em; }
42 big   { font-size: 1.25em; }
43 strike, del, s { text-decoration: line-through; }
44 u {text-decoration: underline; }
45 i, em { font-style: italic; }
46 b, strong { font-weight: bolder; }
47 tt, code, var, samp, kbd { font-family: monospace; }
48 kbd { font-style: italic; }
49
50 ul, ol { margin-left: 1.125em; }
51 dl dt { font-weight: bolder; }
52 table th { font-weight: bold; }
53
54 li p + ul, li p + ol {
55   margin-top: -.25em;
56 }
57
58 hr { border-bottom: 1pt solid; }
59
60 h1, h2, h3 {
61   font-weight: bold;
62   margin-top: .75em;
63   margin-bottom: .5em;
64 }
65
66 h4, h5, h6, form legend {
67   font-weight: bolder;
68   margin-bottom: .25em;
69 }
70
71 h1 { font-size: 1.5em; }
72 h2 { font-size: 1.125em; }
73
74 select, input, button, textarea, a.button {
75   display: inline-block;
76   color: #000; background-color: #FFF;
77   border: .5pt solid;
78   padding: .25em .75em;
79   vertical-align: text-bottom;
80   border: .5pt solid #000;
81   border-radius: 2pt;
82 }
83 select { padding: .375em 0; }
84 textarea { min-height: 7em; }
85
86 input[type=radio], input[type=checkbox] {
87   vertical-align: baseline;
88 }
89 input[type=number] { text-align: right; padding-right: 0; }
90
91 button, input[type=button], a.button {
92   box-shadow: .125em .125em .25em;
93   cursor: pointer;
94 }
95 input[type=radio], input[type=checkbox], label[for] {
96   cursor: pointer;
97 }
98
99 label { margin-right: .75em; }
100 input + label {
101   margin-left: .375em;
102 }
103
104 input.search + button.search {
105   width: 2.5em;
106   color: transparent;
107   background-color: #CCC;
108   margin-left: -2pt;
109   border-left: none;
110   border-radius: 0 2pt 2pt 0;
111   white-space: nowrap;
112 }
113 input.search + button.search:before {
114   content: '\1f50d';
115   color: #000;
116   font-weight: bold;
117 }
118
119 @media print {
120   @page { margin: 20mm; }
121
122   h1 { text-align: center; }
123
124   h1, h2, h3, h4, h5, h6, form legend {
125     page-break-inside: avoid;
126     page-break-after: avoid;
127     page-break-before: auto;
128   }
129   li { page-break-inside: avoid; }
130   th, dt { page-break-after: avoid; }
131 }
132
133 /* ======= End Generic Styles ======= */
134
135 /* ======= Common Styles ======= */
136
137 *[tooltip]:hover:after {
138   display: block;
139   position: absolute;
140   min-width: 12em;
141   bottom: 100%; left: 50%; transform: translate(-50%, 0);
142   content: attr(tooltip);
143   padding: .5em;
144   color: #000; background-color: #FFC;
145   border: .5pt solid;
146   z-index: 1;
147 }
148
149 input[type=radio].tab { display: none; }
150 input[type=radio].tab + label {
151   display: table-cell;
152   padding: .5em 1em;
153   color: #000; background-color: #EEE;
154   border: .5pt solid;
155 }
156 input[type=radio].tab:checked + label {
157   background-color: #FFF;
158   border-bottom: none;
159   box-shadow: .125em -.125em .125em #888;
160   z-index: 1;
161 }
162 input[type=radio].tab ~ *.tab {
163   display: none;
164   width: 100%;
165   margin-top: -.5pt; padding: .25em .75em;
166   border: .5pt solid;
167   border-radius: 0;
168   box-shadow: .125em .125em .125em #888;
169 }
170
171 /* ======= End Common Styles ======= */