forked from twpayne/igc2kmz.py
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.css
184 lines (164 loc) · 3.41 KB
/
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
/* Light Theme */
:root {
--background-color: #f8f9fa;
--text-color: #343a40;
--link-color: green; /* Blue color for links */
--delete-icon-color: #343a40;
}
/* Dark Theme */
@media (prefers-color-scheme: dark) {
:root {
--background-color: #252526;
--text-color: #f8f9fa;
--link-color: green;
--delete-icon-color: #f8f9fa;
}
}
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: var(--background-color);
color: var(--text-color);
font-size: 14px;
min-height: 100vh; /* Ensure body covers full viewport height */
position: relative; /* Establish positioning context for absolute positioning of footer */
}
.container {
width: 95%; /* Set width to 100% */
padding: 10px;
margin: 0 auto;
}
.logo {
width: 100px;
}
h1 {
font-size: 30px;
margin-top: 10px;
margin-bottom: 10px;
text-align: center;
}
input[type="file"] {
display: none; /* Hide the default file input */
}
.upload-button-label {
padding: 12px 20px;
font-size: 14px;
background-color: var(--link-color);
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
float: right; /* Float to the right */
}
.choose-file-label {
padding: 12px 20px;
font-size: 14px;
background-color: var(--link-color); /* Blue color */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.file-name {
display: inline-block;
padding: 12px 20px;
font-size: 14px;
background-color: #6c848c;
border-radius: 5px;
text-align: center; /* Center align file name */
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px; /* Add margin at the top */
}
th, td {
border: none; /* Remove all borders */
padding: 12px;
text-align: left;
border-bottom: 1px solid var(--text-color); /* Add bottom border only */
}
th {
background-color: #6c848c;
color: white;
}
td {
text-align: center; /* Center align content in data cells */
}
.delete-icon {
width: 30px;
height: 30px;
filter: invert(1); /* Invert only in dark theme */
}
.bookcontainer {
display: flex;
width: 95%;
height: 80px;
align-items: center;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 -2px 4px rgba(0, 0, 0, 0.2); /* Slightly darker shadow */
margin: 0 auto;
}
.image-column {
width: 80px;
height: 100%;
}
.description-column {
flex-grow: 1;
padding-left: 10px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
background-color: var(--background-color);
color: var(--text-color);
margin-bottom: 50px;
}
/* Revert icon color back to black in light theme */
@media (prefers-color-scheme: light) {
.delete-icon {
filter: invert(0);
}
}
a {
color: var(--link-color); /* Set link color */
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
@media only screen and (max-width: 600px) {
.container {
padding: 10px;
}
}
@media (pointer: coarse) {
/* mobile device */
body {
font-size: 34px;
}
.bookcontainer {
height: 120px;
}
.image-column {
width: 120px;
}
.delete-icon {
width: 40px;
height: 40px;
}
.file-name {
font-size: 20px;
}
.choose-file-label {
font-size: 28px;
}
.upload-button-label {
font-size: 28px;
}
h1 { font-size: 50px;}
.logo {
width: 200px;
}
}