mirror of
https://github.com/wassname/CanvasTextWrapper.git
synced 2026-07-14 11:13:24 +08:00
v0.1.0
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
/* http://meyerweb.com/eric/tools/css/reset/
|
||||
v2.0 | 20110126
|
||||
License: none (public domain)
|
||||
*/
|
||||
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article, aside, details, figcaption, figure,
|
||||
footer, header, hgroup, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
}
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
body {
|
||||
width: 960px;
|
||||
margin: auto;
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
div, header, footer, article {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
header, footer, article {
|
||||
width: 930px;
|
||||
margin: auto;
|
||||
background-color: #0D9F69;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
header {
|
||||
font-size: 60px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.description {
|
||||
width: 800px;
|
||||
margin-top: 20px;
|
||||
font-size: 22px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
a {
|
||||
font-size: 20px;
|
||||
font-weight: normal;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
article {
|
||||
border-top: 1px solid #fff;
|
||||
}
|
||||
|
||||
.white-block {
|
||||
display: table-cell;
|
||||
height: 30px;
|
||||
padding: 20px;
|
||||
vertical-align: middle;
|
||||
background-color: #fff;
|
||||
font-weight: 100;
|
||||
color: #0D9F69;
|
||||
line-height: 120%;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0;
|
||||
line-height: 120%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-weight: 700;
|
||||
text-decoration: underline;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.syntax {
|
||||
padding: 10px 10px 0 20px;
|
||||
}
|
||||
|
||||
.syntax > li {
|
||||
list-style: none;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.values li {
|
||||
text-indent: 20px;
|
||||
list-style: inside circle;
|
||||
line-height: 120%;
|
||||
}
|
||||
|
||||
section {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
section > div {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
width: 450px;
|
||||
margin: 15px;
|
||||
border: 1px solid #0D9F69;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
section h2 {
|
||||
color: #0D9F69;
|
||||
text-indent: 30px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
section > div div {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
background-color: #0D9F69;
|
||||
margin-top: 250px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
canvas, img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
span {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
span, .emph {
|
||||
font-weight: 600;
|
||||
display: inline;
|
||||
}
|
||||
Reference in New Issue
Block a user