forked from bgermann/cforms2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobile-admin.css
More file actions
159 lines (142 loc) · 4.64 KB
/
mobile-admin.css
File metadata and controls
159 lines (142 loc) · 4.64 KB
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
/**
* Mobile Admin Styles for cforms2
* Only optimize form navigation, leave table as desktop version
*/
/* Apply on narrow screens (including desktop browser testing) */
@media (max-width: 782px) {
/* Form Navigation - Mobile optimized (keep the good version) */
.chgformbox {
display: block !important;
width: 100% !important;
background-color: #f8f9fa !important;
border-radius: 8px !important;
padding: 12px !important;
margin-bottom: 16px !important;
box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}
.chgformbox td {
display: block !important;
width: 100% !important;
padding: 0 !important;
}
.chgformbox .chgL {
margin-bottom: 12px !important;
text-align: center !important;
}
.chgformbox .chgL select {
width: 100% !important;
min-height: 44px !important;
font-size: 16px !important;
padding: 10px !important;
border-radius: 6px !important;
border: 1px solid #ddd !important;
margin-bottom: 8px !important;
}
.chgformbox .chgL .go {
width: 100% !important;
min-height: 44px !important;
font-size: 16px !important;
padding: 10px 16px !important;
border-radius: 6px !important;
background-color: #0073aa !important;
color: white !important;
border: none !important;
}
.chgformbox .chgM {
text-align: center !important;
margin-top: 12px !important;
}
.chgformbox .chgM input {
margin: 4px 2px !important;
min-width: 44px !important;
min-height: 44px !important;
padding: 8px !important;
font-size: 14px !important;
border-radius: 6px !important;
border: 1px solid #ddd !important;
background-color: white !important;
}
.chgformbox .chgM input.chgbuttonhi {
background-color: #0073aa !important;
color: white !important;
border-color: #0073aa !important;
}
/* Leave the table area completely alone - no changes */
/* Users can zoom in/out or rotate device to see full table */
/* Just add a helpful message */
.cf-content::before {
content: "💡 Tipp: Gerät drehen (Querformat) oder herauszoomen für vollständige Tabelle" !important;
display: block !important;
background: #e7f3ff !important;
border: 1px solid #b3d9ff !important;
padding: 12px !important;
text-align: center !important;
font-size: 14px !important;
margin-bottom: 12px !important;
border-radius: 6px !important;
color: #0066cc !important;
font-weight: normal !important;
}
/* Action buttons - make them smaller but keep functionality */
#cf_actions {
position: sticky !important;
bottom: 0 !important;
background-color: white !important;
border-top: 1px solid #ddd !important;
padding: 8px !important;
z-index: 100 !important;
width: 100% !important;
box-sizing: border-box !important;
}
#cf_actions input {
margin: 2px !important;
font-size: 12px !important;
padding: 6px 8px !important;
}
/* Form options - force all tables to full width */
.form-table,
table.form-table,
.cformsoptions table,
.cf-content table {
width: 100% !important;
max-width: 100% !important;
table-layout: fixed !important;
box-sizing: border-box !important;
}
/* Force table rows and cells to full width */
.form-table tr,
.form-table td,
.form-table th {
width: 100% !important;
display: block !important;
box-sizing: border-box !important;
}
/* Left align field labels */
.form-table .obL,
.form-table th {
text-align: left !important;
font-weight: bold !important;
margin-bottom: 8px !important;
}
/* Full width form inputs */
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="url"],
.form-table input[type="number"],
.form-table input[type="date"],
.form-table input[type="time"],
.form-table select,
.form-table textarea {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
min-height: 44px !important;
font-size: 16px !important;
padding: 12px !important;
}
/* Specific textarea styling */
.form-table textarea {
min-height: 120px !important;
resize: vertical !important;
}
}