]> git.plutz.net Git - confetti/blob - cgilite/common.css
Merge commit '69f00ca6b1c936ca39cba43a670852919eefb82c'
[confetti] / 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, 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   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 /* ======= End Generic Styles ======= */
91
92 /* ======= Common Styles ======= */
93
94 *[tooltip]:hover:after {
95   display: block;
96   position: absolute;
97   bottom: -100%; left: 50%; transform: translate(-50%, 0);
98   content: attr(tooltip);
99   padding: .5em;
100   background-color: #FFC;
101   color: #000;
102   border: .5pt solid;
103   z-index: 1;
104 }
105
106 input[type=radio].tab { display: none; }
107 input[type=radio].tab + label {
108   display: table-cell;
109   padding: .5em 1em;
110   background-color: #EEE;
111   border: .5pt solid;
112 }
113 input[type=radio].tab:checked + label {
114   background-color: #FFF;
115   border-bottom: none;
116   box-shadow: .125em -.125em .125em #888;
117   z-index: 1;
118 }
119 input[type=radio].tab ~ *.tab {
120   display: none;
121   width: 100%;
122   margin-top: -.5pt; padding: .25em .75em;
123   border: .5pt solid;
124   border-radius: 0;
125   box-shadow: .125em .125em .125em #888;
126 }
127
128 /* ======= End Common Styles ======= */