xref: /template/writr/css/global.less (revision 8876a98f4928c496cac67d49d3b1f714d04a6ab1)
1/* =Global
2----------------------------------------------- */
3
4
5// Fixing fieldset display width overflowing
6fieldset {
7    min-width: 0;
8}
9
10body.custom-background-size {
11    background-position: 0 0 !important;
12    background-repeat: no-repeat !important;
13    background-attachment: fixed !important;
14    -webkit-background-size: cover !important;
15    -moz-background-size:    cover !important;
16    background-size:         cover !important;
17}
18
19/* Headings */
20h1,
21h2,
22h3,
23h4,
24h5,
25h6 {
26    clear: left;
27    margin: 0 0 20px;
28    color: @ini_text_alt;
29}
30h1 {
31    font-size: 32px;
32    line-height: 1.2;
33}
34h2 {
35    font-size: 24px;
36    line-height: 1.3;
37}
38h3 {
39    font-size: 22px;
40    line-height: 1.4;
41}
42h4 {
43    font-size: 18px;
44}
45h5 {
46    font-size: 16px;
47}
48h6 {
49    font-size: 14px;
50}
51hr {
52    background-color: @ini_background_alt;
53    border: 0;
54    height: 5px;
55    margin-bottom: 20px;
56}
57
58/* Text elements */
59p {
60    margin-bottom: 20px;
61}
62ul,
63ol {
64    margin: 0 0 20px 0;
65}
66ul {
67    list-style: disc inside;
68}
69ol {
70    list-style: decimal inside;
71}
72li > ul,
73li > ol {
74    margin-bottom: 0;
75    margin-left: 20px;
76}
77li .li {
78    display: inline;
79}
80dt {
81    font-weight: bold;
82}
83dd {
84    margin: 0 20px 20px;
85}
86dl.code dd,
87dl.file dd {
88    margin-left: 0;
89}
90b,
91strong {
92    font-weight: bold;
93}
94dfn,
95cite,
96em,
97i {
98    font-style: italic;
99}
100cite {
101    color: @ini_theme_color;
102}
103blockquote {
104    padding: 0 0 0 20px;
105    border-left: 15px double @ini_background_alt;
106}
107blockquote > div.no {
108    display: block;
109    margin-bottom: 20px;
110}
111address {
112    margin: 0 0 20px;
113}
114pre {
115    overflow: auto;
116    padding: 20px;
117    margin-bottom: 20px;
118    max-width: 100%;
119    background: @ini_background_alt;
120    font: 15px/1.6 "Courier 10 Pitch", Courier, monospace;
121    direction: ltr;
122    unicode-bidi: bidi-override;
123    text-align: left;
124}
125code,
126kbd,
127tt,
128var {
129    font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
130    color: #c7254e;
131}
132abbr,
133acronym {
134    border-bottom: 1px dotted;
135    cursor: help;
136    text-decoration: none;
137}
138mark,
139ins {
140    padding: 0 5px;
141    background: @ini_theme_color;
142    color: @ini_background;
143    text-decoration: none;
144}
145sup,
146sub {
147    font-size: 75%;
148    height: 0;
149    line-height: 0;
150    position: relative;
151    vertical-align: baseline;
152}
153sup {
154    bottom: 1ex;
155}
156sub {
157    top: .5ex;
158}
159small {
160    font-size: 75%;
161}
162big {
163    font-size: 125%;
164}
165figure {
166    margin: 0;
167}
168table {
169    margin: 0 0 20px;
170    width: 100%;
171    background: @ini_background_alt;
172}
173div.table {
174    overflow-x: auto;
175    margin-bottom: 20px;
176}
177div.table table {
178    margin-bottom: 0;
179}
180th {
181    background: @ini_background_neu;
182    font-weight: bold;
183}
184th,
185td {
186    padding: 10px;
187    border-bottom: 1px solid @ini_background_neu;
188}
189tr:last-of-type td {
190    border-bottom: none;
191}
192img {
193    margin: auto;
194    height: auto; /* Make sure images are scaled correctly. */
195    max-width: 100%; /* Adhere to container width. */
196}
197
198/* Video */
199embed,
200iframe,
201object,
202video {
203    display: block;
204    max-width: 100%;
205    margin-bottom: 20px;
206}
207
208/* Forms */
209button{
210    color: @ini_background;
211}
212body,
213button,
214input,
215select,
216textarea {
217    font-family: @ini_font;
218    font-size: 16px;
219    line-height: 1.5;
220    border-width: 3px;
221}
222body,
223input,
224select,
225textarea {
226    color: @ini_text;
227}
228button,
229input,
230select,
231textarea {
232    margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
233    vertical-align: baseline; /* Improves appearance and consistency in all browsers */
234    *vertical-align: middle; /* Improves appearance and consistency in all browsers */
235}
236button,
237input {
238    line-height: normal; /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */
239}
240select {
241    width: 100%;
242    color: @ini_text_alt;
243
244    &[multiple="multiple"] {
245        height: auto !important;
246    }
247}
248button,
249input[type="button"],
250input[type="reset"],
251input[type="submit"] {
252    padding: 10px 20px;
253    border: none;
254    background: @ini_theme_color;
255    color: @ini_background;
256    font-size: 14px;
257    line-height: 1.5;
258    font-weight: bold;
259    text-transform: uppercase;
260    cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */
261    -webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */
262    -webkit-box-sizing: border-box;
263    -moz-box-sizing:    border-box;
264    box-sizing:         border-box;
265}
266button:hover,
267input[type="button"]:hover,
268input[type="reset"]:hover,
269input[type="submit"]:hover,
270button:focus,
271input[type="button"]:focus,
272input[type="reset"]:focus,
273input[type="submit"]:focus,
274button:active,
275input[type="button"]:active,
276input[type="reset"]:active,
277input[type="submit"]:active {
278    background: @ini_theme_color_alt;
279}
280input[type="checkbox"],
281input[type="radio"] {
282    box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */
283    padding: 0; /* Addresses excess padding in IE8/9 */
284    width: 16px !important;
285    height: 16px !important;
286}
287input[type="search"] {
288    -webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
289    -webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
290    -moz-box-sizing:    content-box;
291    box-sizing:         content-box;
292}
293input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
294    -webkit-appearance: none;
295}
296button::-moz-focus-inner,
297input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
298    border: 0;
299    padding: 0;
300}
301select,
302input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
303textarea {
304    width: 100%;
305    height: 40px;
306    padding: 5px 10px;
307    background: transparent;
308    color: @ini_text;
309    border: 5px solid @ini_background_alt;
310    font-size: 14px;
311    line-height: 1.43;
312    -webkit-box-sizing: border-box;
313    -moz-box-sizing:    border-box;
314    box-sizing:         border-box;
315    -webkit-appearance: none;
316    transition: all 0.5s ease;
317}
318table {
319    select,
320    input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
321    textarea {
322        border: 5px solid @ini_background_neu;
323    }
324}
325select:focus,
326input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):focus,
327textarea:focus {
328    outline: none;
329    border: 5px solid @ini_theme_color;
330}
331textarea {
332    overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
333    vertical-align: top; /* Improves readability and alignment in all browsers */
334    height: auto;
335}
336::-webkit-input-placeholder {
337   color: @ini_text;
338}
339:-moz-placeholder {
340   color: @ini_text;
341}
342::-moz-placeholder {
343   color: @ini_text;
344}
345:-ms-input-placeholder {
346   color: @ini_text;
347}
348
349button,
350select,
351input:not([type="checkbox"]):not([type="radio"]),
352textarea {
353    -webkit-border-radius: 20px;
354    -moz-border-radius:    20px;
355    border-radius:         20px;
356}
357
358/* Links */
359a {
360    color: @ini_theme_color;
361}
362a:hover,
363a:focus,
364a:active {
365    color: @ini_theme_color_alt;
366}
367
368/* Transition */
369a:not(#writr__sidebar-toggle),
370select,
371input,
372.site-title a,
373.site-info a,
374.main-navigation a {
375    transition:         all 0.25s ease-in-out;
376}
377
378/* removing images of external links */
379a.urlextern {
380	background-image: none!important;
381	padding: 0px!important;
382}
383
384/* Alignment */
385.medialeft {
386    display: inline;
387    float: left;
388    margin: 0 20px 20px 0;
389}
390.mediaright {
391    display: inline;
392    float: right;
393    margin: 0 0 20px 20px;
394}
395.mediacenter {
396    clear: both;
397    display: block;
398    margin: 0 auto 20px auto;
399}
400
401/* Clearing */
402.clear:before,
403.clear:after,
404.site-header:before,
405.site-header:after,
406.site-content:before,
407.site-content:after,
408.site-footer:before,
409.site-footer:after,
410.widget:before,
411.widget:after {
412    content: '';
413    display: table;
414}
415
416.clear:after,
417.site-header:after,
418.site-content:after,
419.site-footer:after,
420.widget:after {
421    clear: both;
422}
423