-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.css
149 lines (139 loc) · 3.21 KB
/
demo.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*================
Screen styles specifically for demo page
Version 1.0
Author: Tangent Snowball FED team
Created: 12.19.2011
Last revised: 03.16.2012
Contents:
--
==================*/
/*========
[=0: Set font-face rules]
========*/
h1,
header[role="banner"] h2{
font-family: 'Bree Serif', arial, sans-serif;
}
/*========
[=1:Global layout styles]
======== */
html{
background:#eee;
}
body{
width:80%;
max-width:800px;
margin:0 auto;
padding:5em 0;
}
nav[role="navigation"]{
position:fixed;
z-index:1;
width:100%;
top:0;
left:0;
height:100px;
background: -moz-linear-gradient(top, rgba(255,255,255,1) 56%, rgba(255,255,255,0) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(56%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 56%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,1) 56%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,1) 56%,rgba(255,255,255,0) 100%); /* IE10+ */
background: linear-gradient(top, rgba(255,255,255,1) 56%,rgba(255,255,255,0) 100%); /* W3C */
}
nav[role="navigation"] ol{
list-style:none;
margin:0 auto;
padding:0;
width:80%;
max-width:800px;
background:#111;
border-radius:0 0 0.25em 0.25em;
}
nav[role="navigation"] li{
display:inline;
margin:0;
}
nav[role="navigation"] a{
display:block;
width:25%;
line-height:3em;
float:left;
text-align:center;
color:#fff;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
header[role="banner"]{
text-align:center;
margin:0 0 3em 0;
}
header hgroup{
margin:0 0 2em 0;
}
header[role="banner"] h1,
header[role="banner"] h2{
margin:0;
font-size:3em;
color:#333;
text-shadow:1px 1px 0 #fff;
}
header[role="banner"] p{
color:#000;
font-size:1.2em;
margin:0 0 0.5em 0;
text-shadow:1px 1px 0 #fff;
text-align:left;
}
article{
background:#fff;
padding:1em 2em;
margin:0 0 2em 0;
border-radius:0.25em;
box-shadow:0 0 2px #ccc;
}
article h1:nth-of-type(1){
margin-top:0;
text-align:center;
border-bottom:1px solid #ccc;
padding:0 0 0.5em 0;
}
article h1:nth-of-type(1):before,
article h1:nth-of-type(1):after
{content:"-";}
#page-footer{
color:#666;
padding:1em 0 2em 0;
text-shadow:0 1px 0 #fff;
text-align:center;
}
@media only screen and (min-width:200px) and (max-width:600px){
h1{font-size:2em;}
h2{font-size:1.2em;}
h3{font-size:1em;}
body{width:100%;}
nav[role="navigation"] ol{
width:100%;
border-radius:0;
}
header[role="banner"]{
padding:0 5%;
}
header[role="banner"] h1,
header[role="banner"] h2{
font-size:2em;
}
header[role="banner"] p{
font-size:1em;
font-weight:bold;
}
article{
padding-left:5%;
padding-right:5%;
border-radius:0;
border-top:3px solid #999;
border-bottom:1px solid #ccc;
}
}