-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.css
executable file
·149 lines (128 loc) · 2.11 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
/*
* Base Template
* Combines HTML5 Boilerplate & Boostrap. Includes some basic templating.
* Authored by Stephen Shaw ([email protected])
*/
/* @group Basics */
*,
*:before,
*:after {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
body {
color: #333333;
font-weight: 400;
font-size: 15px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
line-height: 20px;
margin: 0;
padding: 4em 0 4em 20%;
}
a {
color: #da0d25;
text-decoration: none;
}
a:hover,
a:focus {
color: #f22840;
text-decoration: none;
}
p { margin: 0 0 20px; }
h1,
h2,{
margin: 10px 0;
font-weight: 500;
line-height: 40px;
color: inherit;
text-align: center;
}
h1 small,
h2 small {
font-weight: 400;
line-height: 1;
color: #8d8d8d;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
/* @end */
.main-header {
position: fixed;
top: 0;
bottom: 0;
left: 0;
width: 20%;
background: #eee;
padding: 1em;
}
.main-header__nav {
border-top: solid 1px #ccc;
margin: 1em -1em;
}
.main-header__nav a {
display: block;
padding: 0.5em 1em;
border-bottom: solid 1px #ddd;
}
.main-header__nav a:hover,
.main-header__nav a:focus {
color: #eee;
background: #da0d25;
}
@media (max-width: 800px) {
body { padding: 0; }
.main-header {
position: relative;
width: 100%;
}
.main-header__nav a { display: inline-block; border: none; }
}
.intro {
padding: 4em 2em;
}
.demo {
padding: 6em 2em;
}
.demo h2 {
text-align: center;
font-size: 22px;
margin-bottom: 1em;
}
.demo .flipster {
margin: 0 -2em;
}
.code {
display: block;
background: #eee;
padding: 1em;
border-radius: 1em;
margin: 2em auto;
max-width: 30em;
font-size: 0.8em;
width: fit-content;
white-space: pre-wrap;
}
.button {
display: inline-block;
padding: 5px 10px;
margin: 0;
background-color: #da0d25;
background-position: center center;
background-repeat: no-repeat;
color: #FFF;
text-shadow: none;
vertical-align: middle;
cursor: pointer;
border: 0;
transition: all 300ms ease;
}
.button:hover,
.button:focus {
color: #7a0715;
background: #f22840;
}