xref: /template/writr/css/global.less (revision b90546bf132fe186c2a7acd2eb9696300ab193d4)
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}
291select,
292input[type="text"],
293input[type="url"],
294input[type="email"],
295input[type="password"],
296input[type="search"],
297textarea {
298    width: 100%;
299    height: 40px;
300    padding: 5px 10px;
301    background: transparent;
302    color: @ini_text;
303    border: 5px solid @ini_background_alt;
304    font-size: 14px;
305    line-height: 1.43;
306    -webkit-box-sizing: border-box;
307    -moz-box-sizing:    border-box;
308    box-sizing:         border-box;
309    -webkit-appearance: none;
310}
311select:focus,
312input[type="text"]:focus,
313input[type="url"]:focus,
314input[type="email"]:focus,
315input[type="password"]:focus,
316input[type="search"]:focus,
317textarea:focus {
318    outline: none;
319    border-color: @ini_background_neu;
320}
321textarea {
322    overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
323    vertical-align: top; /* Improves readability and alignment in all browsers */
324    height: auto;
325}
326::-webkit-input-placeholder {
327   color: @ini_text;
328}
329:-moz-placeholder {
330   color: @ini_text;
331}
332::-moz-placeholder {
333   color: @ini_text;
334}
335:-ms-input-placeholder {
336   color: @ini_text;
337}
338
339button,
340select,
341input[type="button"],
342input[type="reset"],
343input[type="submit"],
344input[type="text"],
345input[type="url"],
346input[type="email"],
347input[type="password"],
348input[type="search"],
349textarea {
350    -webkit-border-radius: 20px;
351    -moz-border-radius:    20px;
352    border-radius:         20px;
353}
354
355/* Links */
356a {
357    color: @ini_theme_color;
358}
359a:hover,
360a:focus,
361a:active {
362    color: @ini_theme_color_alt;
363}
364
365/* Transition */
366a:not(#writr__sidebar-toggle),
367select,
368input,
369.site-title a,
370.site-info a,
371.main-navigation a {
372    transition:         all 0.25s ease-in-out;
373}
374
375/* removing images of external links */
376a.urlextern {
377	background-image: none!important;
378	padding: 0px!important;
379}
380
381/* Alignment */
382.medialeft {
383    display: inline;
384    float: left;
385    margin: 0 20px 20px 0;
386}
387.mediaright {
388    display: inline;
389    float: right;
390    margin: 0 0 20px 20px;
391}
392.mediacenter {
393    clear: both;
394    display: block;
395    margin: 0 auto 20px auto;
396}
397
398/* Clearing */
399.clear:before,
400.clear:after,
401.site-header:before,
402.site-header:after,
403.site-content:before,
404.site-content:after,
405.site-footer:before,
406.site-footer:after,
407.widget:before,
408.widget:after {
409    content: '';
410    display: table;
411}
412
413.clear:after,
414.site-header:after,
415.site-content:after,
416.site-footer:after,
417.widget:after {
418    clear: both;
419}
420