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