xonecas.io
1361
Xc

xonecas.com / files

xonecas.com / css / style.css

2.0 KB
1/* === reset used elements === */
2html,
3body,
4section,
5header,
6h1,
7h2 {
8    display: block;
9    margin: 0;
10    padding: 0;
11}
12
13html {
14    background: #efefef;
15    color: #333;
16    font-family: 'Helvetica Neue', Helvetica, Arial, sans;
17    font-size: 100%;
18    -webkit-text-size-adjust: 100%;
19    -ms-text-size-adjust: 100%;
20    min-height: 100%;
21}
22
23body {
24    width: 100%;
25    margin: 40px auto;
26}
27
28section {
29    margin: 40px 0;
30}
31
32img,
33object {
34    max-width: 100%;
35}
36
37img {
38    border: 0;
39    -ms-interpolation-mode: bicubic;
40}
41
42a,
43a:visited {
44    color: #CA3416;
45    /* color: hsl(10, 80%, 44%); */
46    text-decoration: none;
47}
48
49a:hover,
50a:active {
51    color: #555;
52}
53
54h1, h2 {
55    font-family: 'Gentium Basic', serif;
56    line-height: 1.2;
57    margin: 0 3.125%;
58}
59
60h1 {
61    font-size: /* 42 / 16 */ 2.625em;
62}
63h2 {
64    font-size: /* 24 / 16 */ 1.5em;
65}
66
67p {
68    margin: 40px 3.125%;
69}
70
71hr {
72    border: none;
73    background: #aaa;
74    height: 1px;
75    box-shadow: 0 0 3px #aaa;
76}
77
78::-moz-selection {
79    background: #333;
80    color: #fff;
81    text-shadow: none;
82}
83
84::selection {
85    background: #333;
86    color: #fff;
87    text-shadow: none;
88}
89
90/* === my styles === */
91
92.xonecas-elsewhere a, .promote-a-better-web a {
93    text-align: center;
94}
95
96.xonecas-elsewhere a {
97    float: left;
98    width: 18.75%;
99    margin: 20px 3.125%;
100}
101
102.promote-a-better-web > a {
103    float: left;
104    width: 25%;
105    margin: 20px 4.167%;
106}
107
108#bg {
109    position: fixed;
110    top: 0;
111    left: 0;
112    z-index: -1;
113}
114
115@media screen and (min-width: 480px) {
116    html {
117        font-size: 18px;
118    }
119}
120
121@media screen and (max-width: 480px) {
122    .xonecas-elsewhere a {
123        width: 37.5%;
124        margin: 20px 6.25%;
125    }
126}
127
128@media screen and (min-width: 960px) {
129    html {
130        font-size: 20px;
131    }
132
133    body {
134        max-width: 960px;
135    }
136
137    .xonecas-elsewhere a:after {
138        content: attr(title);
139        display: block;
140        margin-top: 20px;
141    }
142}
143
144/* util */
145.cf:before,
146.cf:after {
147    content:"";
148    display:table;
149}
150
151.cf:after {
152    clear:both;
153}
154
155.cf {
156    *zoom:1;
157}