]> git.plutz.net Git - confetti/blob - common.css
Squashed 'cgilite/' changes from c207699..80b3d8c
[confetti] / 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, p { margin-bottom: .5em; }
20
21 a {
22   font-style: italic;
23   text-decoration: underline;
24   color: #068;
25 }
26 a.button {
27   font-style: inherit;
28   text-decoration: inherit;
29   color: inherit;
30 }
31
32 sup { vertical-align: super; }
33 sub { vertical-align: sub; }
34 small { font-size: .75em; }
35 big   { font-size: 1.25em; }
36 strike, del, s { text-decoration: line-through; }
37 u {text-decoration: underline; }
38 i, em { font-style: italic; }
39 b, strong { font-weight: bolder; }
40 tt, code, var, samp, kbd { font-family: monospace; }
41 kbd { font-style: italic; }
42
43 ul, ol { margin-left: 1.125em; }
44 dl dt { font-weight: bolder; }
45 table th { font-weight: bold; }
46
47 h1, h2, h3 {
48   font-weight: bold;
49   margin-top: .75em;
50   margin-bottom: .5em;
51 }
52
53 h4, h5, h6, form legend {
54   font-weight: bolder;
55   margin-bottom: .25em;
56 }
57
58 h1 { font-size: 1.5em; }
59 h2 { font-size: 1.125em; }
60
61 select, input, button, textarea, a.button {
62   display: inline-block;
63   color: #000; background-color: #FFF;
64   border: .5pt solid;
65   padding: .25em .75em;
66   vertical-align: text-bottom;
67   border: .5pt solid #000;
68   border-radius: 2pt;
69 }
70 select { padding: .375em 0; }
71
72 input[type=radio], input[type=checkbox] {
73   vertical-align: baseline;
74 }
75 input[type=number] { text-align: right; padding-right: 0; }
76
77 button, input[type=button], a.button {
78   box-shadow: .125em .125em .25em;
79   cursor: pointer;
80 }
81 input[type=radio], input[type=checkbox], label[for] {
82   cursor: pointer;
83 }
84
85 label { margin-right: .75em; }
86 input + label {
87   margin-left: .375em;
88 }
89
90 @media print {
91   @page { margin: 20mm; }
92
93   h1 { text-align: center; }
94
95   h1, h2, h3, h4, h5, h6, form legend {
96     page-break-inside: avoid;
97     page-break-after: avoid;
98     page-break-before: auto;
99   }
100   li { page-break-inside: avoid; }
101   th, dt { page-break-after: avoid; }
102 }
103
104 /* ======= End Generic Styles ======= */
105
106 /* ======= Common Styles ======= */
107
108 *[tooltip]:hover:after {
109   display: block;
110   position: absolute;
111   bottom: -100%; left: 50%; transform: translate(-50%, 0);
112   content: attr(tooltip);
113   padding: .5em;
114   color: #000; background-color: #FFC;
115   border: .5pt solid;
116   z-index: 1;
117 }
118
119 input[type=radio].tab { display: none; }
120 input[type=radio].tab + label {
121   display: table-cell;
122   padding: .5em 1em;
123   color: #000; background-color: #EEE;
124   border: .5pt solid;
125 }
126 input[type=radio].tab:checked + label {
127   background-color: #FFF;
128   border-bottom: none;
129   box-shadow: .125em -.125em .125em #888;
130   z-index: 1;
131 }
132 input[type=radio].tab ~ *.tab {
133   display: none;
134   width: 100%;
135   margin-top: -.5pt; padding: .25em .75em;
136   border: .5pt solid;
137   border-radius: 0;
138   box-shadow: .125em .125em .125em #888;
139 }
140
141 /* ======= End Common Styles ======= */