Skip to content

Commit 2b21cb9

Browse files
author
sylvain-galineau
committed
For Baldur, with love
1 parent 53c7900 commit 2b21cb9

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed

baldur.html

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<!--
2+
Copyright 2014 Adobe Systems Inc.;
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
14+
-->
15+
<!doctype html>
16+
<html>
17+
<head>
18+
<title>dropcap.js Intro</title>
19+
<meta charset="utf-8">
20+
<style>
21+
html {
22+
font-family: Georgia, serif;
23+
font-size: 32px;
24+
}
25+
26+
@media only screen and (max-device-width : 400px) {
27+
html {
28+
font-size: 16px;
29+
}
30+
}
31+
32+
@media only screen and (min-device-width : 400px) and (max-device-width : 480px) {
33+
html {
34+
font-size: 24px;
35+
}
36+
}
37+
38+
.main {
39+
width: 21rem;
40+
margin: 5em auto 2rem auto;
41+
}
42+
43+
.definition {
44+
font-family: "Times New Roman";
45+
}
46+
47+
.main .meta {
48+
margin: 0;
49+
font-family: "Proxima Nova","Gill Sans",Corbel,Arial,sans-serif;
50+
font-size: 0.75rem;
51+
font-weight: bold;
52+
text-align: right;
53+
}
54+
55+
#drop-cap {
56+
font-family: Cochin;
57+
}
58+
59+
.demo-link {
60+
display: block;
61+
width: 10rem;
62+
margin: 3rem auto 0 auto;
63+
padding: 0.5rem;
64+
border-radius: 0.2rem;
65+
background-color: #1F8DD6;
66+
color: white;
67+
text-align: center;
68+
text-decoration: none;
69+
font-family: sans-serif;
70+
font-weight: bold;
71+
font-size: 0.6rem;
72+
}
73+
74+
.demo-link:hover {
75+
background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
76+
}
77+
78+
</style>
79+
</head>
80+
<body>
81+
<img class="adobe-redtag-logo" src="Adobe_Red_Tag_Logo.png" />
82+
<a href="https://github.com/sylvain-galineau"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
83+
84+
<section class="main">
85+
<p class="definition"><span id="drop-cap">D</span>ROP CAPS are an affectation that mocks and parodies prints' long history of bespoke illustration by mutilating the first word in a chapter.</p>
86+
87+
<p class="meta"><a href="https://twitter.com/fakebaldur/status/517713829812514816">Baldur Bjarnason</a></p>
88+
89+
</section>
90+
91+
<script src="dropcap.min.js"></script>
92+
<script>
93+
var dropcap = document.querySelector("#drop-cap");
94+
window.Dropcap.layout(dropcap, 3);
95+
</script>
96+
</body>
97+
</html>

0 commit comments

Comments
 (0)