-
Notifications
You must be signed in to change notification settings - Fork 0
/
pages-styles.css
162 lines (144 loc) · 2.31 KB
/
pages-styles.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
150
151
152
153
154
155
156
157
158
159
160
161
.pages-frame {
background-color: #eee;
border: 3px groove #888;
box-sizing: border-box;
margin: 0 auto;
position: relative;
width: 100%;
height: 100%;
}
.page-container {
overflow: auto;
width: 100%;
height: 100%;
}
.page {
background-color: #fff;
box-shadow: 0px 2px 7px #0008;
break-after: always;
display: flex;
flex-flow: column;
height: 297mm;
width: 210mm;
margin: 10px auto;
position: relative;
.header, .footer {
box-sizing: border-box;
flex-grow: 0;
flex-shrink: 0;
z-index: 11;
>* {
position: absolute;
}
* {
margin: 0;
pointer-events: none;
}
}
.header:hover, .footer:hover {
background-color: #f8f8f8;
cursor: pointer;
}
.background-image {
display: block;
height: 100%;
margin: 0 auto;
z-index: -1;
}
.main {
box-sizing: border-box;
flex: 1 1 auto;
border: 2px solid transparent;
&:focus-within {
border: 2px solid #33f;
}
>.content {
display: flow-root;
padding: 0 10mm 0 10mm;
word-wrap: break-word;
}
>.content:focus {
outline: 0px solid transparent;
}
}
.test-table {
border: 1px solid #000;
td {
padding: 5px;
}
}
}
.single-page {
background-color: #fff;
box-shadow: 0px 2px 7px #0008;
width: 210mm;
margin: 10px auto;
.content {
padding: 10mm;
word-wrap: break-word;
}
}
.page-break {
border-top: 3px dotted #33f;
border-bottom: 3px dotted #33f;
font-family: sans;
text-align: center;
&::before {
content: "page break";
}
}
.pages-popup-window {
background-color: #eee;
border: 2px solid #222;
box-shadow: 5px 5px 10px #0008;
display: flex;
flex-flow: column;
position: absolute;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
width: 450px;
height: min(350px, 80%);
top: max(5px, calc(50% - (350px / 2)));
z-index: 12;
.title {
flex: 0 0 auto;
margin: 0;
padding: 4px;
border-bottom: 2px solid #333;
}
.content {
flex: 1 1 auto;
overflow: auto;
details table td {
padding: 2px 4px 2px 0;
}
summary {
padding: 4px 0 4px 0;
.delete-button {
float: right;
}
}
summary:hover {
cursor: pointer;
background-color: #ddd;
}
}
}
@media print {
body {
margin: 0;
}
body>not(.page-frame) {
display: none !important;
}
.page-frame {
border: none;
height: fit-content;
width: fit-content;
}
.page {
margin: 0;
}
}