]> git.plutz.net Git - cgilite/blob - common.css
user invite function, handle invite/registration expire, always allow registration...
[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   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 textarea { min-height: 7em; }
72
73 input[type=radio], input[type=checkbox] {
74   vertical-align: baseline;
75 }
76 input[type=number] { text-align: right; padding-right: 0; }
77
78 button, input[type=button], a.button {
79   box-shadow: .125em .125em .25em;
80   cursor: pointer;
81 }
82 input[type=radio], input[type=checkbox], label[for] {
83   cursor: pointer;
84 }
85
86 label { margin-right: .75em; }
87 input + label {
88   margin-left: .375em;
89 }
90
91 @media print {
92   @page { margin: 20mm; }
93
94   h1 { text-align: center; }
95
96   h1, h2, h3, h4, h5, h6, form legend {
97     page-break-inside: avoid;
98     page-break-after: avoid;
99     page-break-before: auto;
100   }
101   li { page-break-inside: avoid; }
102   th, dt { page-break-after: avoid; }
103 }
104
105 /* ======= End Generic Styles ======= */
106
107 /* ======= Common Styles ======= */
108
109 *[tooltip]:hover:after {
110   display: block;
111   position: absolute;
112   min-width: 12em;
113   bottom: 100%; left: 50%; transform: translate(-50%, 0);
114   content: attr(tooltip);
115   padding: .5em;
116   color: #000; background-color: #FFC;
117   border: .5pt solid;
118   z-index: 1;
119 }
120
121 input[type=radio].tab { display: none; }
122 input[type=radio].tab + label {
123   display: table-cell;
124   padding: .5em 1em;
125   color: #000; background-color: #EEE;
126   border: .5pt solid;
127 }
128 input[type=radio].tab:checked + label {
129   background-color: #FFF;
130   border-bottom: none;
131   box-shadow: .125em -.125em .125em #888;
132   z-index: 1;
133 }
134 input[type=radio].tab ~ *.tab {
135   display: none;
136   width: 100%;
137   margin-top: -.5pt; padding: .25em .75em;
138   border: .5pt solid;
139   border-radius: 0;
140   box-shadow: .125em .125em .125em #888;
141 }
142
143 /* ======= End Common Styles ======= */