Spaces:
Sleeping
Sleeping
Commit
·
6858e31
1
Parent(s):
af987b1
fix: use context media feature range notation in style.css
Browse files
style.css
CHANGED
@@ -2,50 +2,65 @@ body {
|
|
2 |
font-family: Arial, sans-serif;
|
3 |
margin: 20px;
|
4 |
}
|
|
|
5 |
fieldset {
|
6 |
margin-bottom: 15px;
|
7 |
border: 1px solid #ccc;
|
8 |
padding: 10px;
|
9 |
}
|
|
|
10 |
legend {
|
11 |
font-weight: bold;
|
12 |
}
|
13 |
-
|
|
|
|
|
14 |
width: 100%;
|
15 |
padding: 5px;
|
16 |
margin: 5px 0;
|
17 |
box-sizing: border-box;
|
18 |
}
|
19 |
-
|
|
|
|
|
20 |
width: 100%;
|
21 |
border-collapse: collapse;
|
22 |
margin-bottom: 10px;
|
23 |
}
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
26 |
border: 1px solid #ccc;
|
27 |
padding: 5px;
|
28 |
text-align: left;
|
29 |
}
|
|
|
30 |
button {
|
31 |
padding: 8px 12px;
|
32 |
margin: 5px;
|
33 |
}
|
|
|
34 |
.quotation-print {
|
35 |
max-width: 800px;
|
36 |
margin: auto;
|
37 |
}
|
|
|
38 |
.quotation-print h2 {
|
39 |
text-align: center;
|
40 |
margin-bottom: 20px;
|
41 |
}
|
|
|
42 |
.quotation-print .section {
|
43 |
margin-bottom: 15px;
|
44 |
}
|
|
|
45 |
.totals table {
|
46 |
float: right;
|
47 |
border: none;
|
48 |
}
|
|
|
49 |
.totals td {
|
50 |
padding: 4px 8px;
|
51 |
border: none;
|
@@ -59,4 +74,38 @@ button {
|
|
59 |
|
60 |
.quote-meta {
|
61 |
text-align: right;
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
font-family: Arial, sans-serif;
|
3 |
margin: 20px;
|
4 |
}
|
5 |
+
|
6 |
fieldset {
|
7 |
margin-bottom: 15px;
|
8 |
border: 1px solid #ccc;
|
9 |
padding: 10px;
|
10 |
}
|
11 |
+
|
12 |
legend {
|
13 |
font-weight: bold;
|
14 |
}
|
15 |
+
|
16 |
+
input,
|
17 |
+
textarea {
|
18 |
width: 100%;
|
19 |
padding: 5px;
|
20 |
margin: 5px 0;
|
21 |
box-sizing: border-box;
|
22 |
}
|
23 |
+
|
24 |
+
#items-table,
|
25 |
+
.quotation-table {
|
26 |
width: 100%;
|
27 |
border-collapse: collapse;
|
28 |
margin-bottom: 10px;
|
29 |
}
|
30 |
+
|
31 |
+
#items-table th,
|
32 |
+
#items-table td,
|
33 |
+
.quotation-table th,
|
34 |
+
.quotation-table td {
|
35 |
border: 1px solid #ccc;
|
36 |
padding: 5px;
|
37 |
text-align: left;
|
38 |
}
|
39 |
+
|
40 |
button {
|
41 |
padding: 8px 12px;
|
42 |
margin: 5px;
|
43 |
}
|
44 |
+
|
45 |
.quotation-print {
|
46 |
max-width: 800px;
|
47 |
margin: auto;
|
48 |
}
|
49 |
+
|
50 |
.quotation-print h2 {
|
51 |
text-align: center;
|
52 |
margin-bottom: 20px;
|
53 |
}
|
54 |
+
|
55 |
.quotation-print .section {
|
56 |
margin-bottom: 15px;
|
57 |
}
|
58 |
+
|
59 |
.totals table {
|
60 |
float: right;
|
61 |
border: none;
|
62 |
}
|
63 |
+
|
64 |
.totals td {
|
65 |
padding: 4px 8px;
|
66 |
border: none;
|
|
|
74 |
|
75 |
.quote-meta {
|
76 |
text-align: right;
|
77 |
+
}
|
78 |
+
|
79 |
+
@media screen and (width <= 768px) {
|
80 |
+
#items-table thead {
|
81 |
+
display: none;
|
82 |
+
}
|
83 |
+
|
84 |
+
#items-table,
|
85 |
+
#items-table tbody,
|
86 |
+
#items-table tr,
|
87 |
+
#items-table td {
|
88 |
+
display: block;
|
89 |
+
width: 100%;
|
90 |
+
}
|
91 |
+
|
92 |
+
#items-table tr {
|
93 |
+
margin-bottom: 15px;
|
94 |
+
}
|
95 |
+
|
96 |
+
#items-table td {
|
97 |
+
text-align: right;
|
98 |
+
padding-left: 50%;
|
99 |
+
position: relative;
|
100 |
+
}
|
101 |
+
|
102 |
+
#items-table td::before {
|
103 |
+
content: attr(data-label);
|
104 |
+
position: absolute;
|
105 |
+
left: 0;
|
106 |
+
width: 45%;
|
107 |
+
padding-left: 15px;
|
108 |
+
font-weight: bold;
|
109 |
+
text-align: left;
|
110 |
+
}
|
111 |
+
}
|