]> git.plutz.net Git - cgilite/blob - common.css
style for definition lists, adjusted list padding
[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 blockquote {
51   background-color: #EEE;
52   margin: .5em 0;
53   padding: 1em 2em;
54   white-space: pre-line;
55 }
56
57 ul, ol { padding-left: 1.5em; }
58 dl dt { font-weight: bolder; }
59 dl dd {
60   margin: 0 2em;
61   background-color: #EEE;
62 }
63 table th { font-weight: bold; }
64
65 li p + ul, li p + ol {
66   margin-top: -.25em;
67 }
68
69 hr { border-bottom: 1pt solid; }
70
71 h1, h2, h3 {
72   font-weight: bold;
73   margin-top: .75em;
74   margin-bottom: .5em;
75 }
76
77 h4, h5, h6, form legend {
78   font-weight: bolder;
79   margin-bottom: .25em;
80 }
81
82 h1 { font-size: 1.5em; }
83 h2 { font-size: 1.125em; }
84
85 select, input, button, textarea, a.button {
86   display: inline-block;
87   color: #000; background-color: #FFF;
88   border: .5pt solid;
89   padding: .25em .75em;
90   vertical-align: text-bottom;
91   border: .5pt solid #000;
92   border-radius: 2pt;
93 }
94 select { padding: .375em 0; }
95 textarea { min-height: 7em; }
96
97 input[type=radio], input[type=checkbox] {
98   vertical-align: baseline;
99 }
100 input[type=number] { text-align: right; padding-right: 0; }
101
102 button, input[type=button], a.button {
103   box-shadow: .125em .125em .25em;
104   cursor: pointer;
105 }
106 input[type=radio], input[type=checkbox], label[for] {
107   cursor: pointer;
108 }
109
110 label { margin-right: .75em; }
111 input + label {
112   margin-left: .375em;
113 }
114
115 input.search + button.search {
116   width: 2.5em;
117   color: transparent;
118   background-color: #CCC;
119   margin-left: -2pt;
120   border-left: none;
121   border-radius: 0 2pt 2pt 0;
122   white-space: nowrap;
123 }
124 input.search + button.search:before {
125   content: '\1f50d';
126   color: #000;
127   font-weight: bold;
128 }
129
130 @media print {
131   @page { margin: 20mm; }
132
133   h1 { text-align: center; }
134
135   h1, h2, h3, h4, h5, h6, form legend {
136     page-break-inside: avoid;
137     page-break-after: avoid;
138     page-break-before: auto;
139   }
140   li { page-break-inside: avoid; }
141   th, dt { page-break-after: avoid; }
142 }
143
144 /* ======= End Generic Styles ======= */
145
146 /* ======= Common Styles ======= */
147
148 *[tooltip]:hover:after {
149   display: block;
150   position: absolute;
151   min-width: 12em;
152   bottom: 100%; left: 50%; transform: translate(-50%, 0);
153   content: attr(tooltip);
154   padding: .5em;
155   color: #000; background-color: #FFC;
156   border: .5pt solid;
157   z-index: 1;
158 }
159
160 input[type=radio].tab { display: none; }
161 input[type=radio].tab + label {
162   display: table-cell;
163   padding: .5em 1em;
164   color: #000; background-color: #EEE;
165   border: .5pt solid;
166 }
167 input[type=radio].tab:checked + label {
168   background-color: #FFF;
169   border-bottom: none;
170   box-shadow: .125em -.125em .125em #888;
171   z-index: 1;
172 }
173 input[type=radio].tab ~ *.tab {
174   display: none;
175   width: 100%;
176   margin-top: -.5pt; padding: .25em .75em;
177   border: .5pt solid;
178   border-radius: 0;
179   box-shadow: .125em .125em .125em #888;
180 }
181
182 /* Markdown line-block */
183 .line-block { white-space: pre-wrap; }
184 .line-block br { display: none; }
185
186 /* ======= End Common Styles ======= */