mirror of
https://github.com/wassname/CanvasTextWrapper.git
synced 2026-06-27 19:45:29 +08:00
137 lines
1.8 KiB
CSS
137 lines
1.8 KiB
CSS
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;
|
|
}
|