/
business-card.scss
71 lines (57 loc) · 1022 Bytes
/
business-card.scss
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
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
}
@page {
size: 91mm 54.5mm;
margin: 0;
}
@media print {
body {
width: 91mm; /* needed for Chrome */
}
}
.sheet {
width: 91mm;
height: 54.5mm; /* 0.5mm余裕をもたせる */
// page-break-after: always;
page-break-before: always;
position: relative;
margin: 0;
padding: 5mm;
&:nth-of-type(1) {
page-break-before: auto;
}
.name {
width: 100%;
margin-top: 15mm;
height: 10mm;
line-height: 10mm;
//border: 1px solid black;
font-size: 13mm;
text-align: center;
}
.signature {
width: 100%;
margin-top: 10mm;
height: 10mm;
line-height: 10mm;
font-size: 3mm;
color: #777;
text-align: center;
}
}
/* プレビュー用のスタイル */
@media screen {
body {
background: #eee;
}
.sheet {
background: white; /* 背景を白く */
box-shadow: 0 .5mm 2mm rgba(0, 0, 0, .3); /* ドロップシャドウ */
margin: 5mm;
}
}