-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
226 lines (187 loc) · 4.22 KB
/
Copy pathstyle.css
File metadata and controls
226 lines (187 loc) · 4.22 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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
@media screen {
html {
background-image: url('media/bg.png') ;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover ;
text-size-adjust: 100%; /* prevents text size issues on android */
}
body {
font-family: 'Noto Sans', sans-serif;
color: #3d3d3f;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
text-align: left;
padding-top: 5%;
padding-right: 0px;
padding-bottom: 40px;
padding-left: 0px;
}
main.page {
background-color: #fff;
border: 1px solid #ddd;
box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.1);
display: block;
max-width: 1140px;
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
}
/* Images fill parent div */
img {
object-fit:fill;
max-width: 100%;
max-height: 100%;
}
.qr-img{
position:absolute;
right: 4%;
}
/* todo: is this for a specific title? */
h2 {
padding-left: 1em;
}
/* Used to invoke a new row in a page */
.row {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
.row2 {
display: grid;
grid-template-columns: 45% auto;
width: 100%;
box-sizing: border-box;
}
/* The following are used to 1/3 split a page vertically */
.left-col {
position: relative;
width: 100%;
padding: 25px;
border-right: 1.5px solid #ddd;
flex-grow: 0;
flex-shrink: 0;
flex-basis: 33.3333%;
max-width: 33.333333%;
}
/* TODO ad-hoc increase, based on content */
.technologies li {
margin-top: 6%;
}
.right-col {
position: relative;
width: 100%;
padding: 0px;
flex-grow: 0;
flex-shrink: 0;
flex-basis: 66.6667%;
max-width: 66.666667%;
}
.event-list {
position: auto; /* placeholder */
}
.event-list-separator {
margin-top: 1%;
border-bottom: 1.5px solid #ddd;
}
.event-list .event {
padding: 1em 2em;
position: relative;
border-left: 1.5px solid var(--color-border);
margin: 0px;
}
.event .date { font-style: italic; }
.event .name { margin: .25% 0 1%; padding: 0px; }
.event .desc { margin: .25% 0 1%; padding: 0px; }
.event .list { position: auto; /* placeholder */ }
.project-images {
display: flex;
flex-wrap: nowrap;
gap: 1%;
overflow: hidden;
justify-content: flex-start;
width: 100%; */
}
.project-images img {
height: 5rem;
object-fit: cover;
flex-grow: 1;
flex-shrink: 1;
}
.print-button {
position: fixed; /* Fix the button's position */
bottom: 20px; /* Position 20px from the bottom */
right: 20px; /* Position 20px from the right */
width: 100px; /* Set width */
height: 100px; /* Set height to be the same as width */
font-size: 30px; /* Increase font size for the icon */
border: none; /* Remove border */
border-radius: 50%; /* Make the button perfectly circular */
cursor: pointer; /* Pointer cursor on hover */
background-color: rgb(250, 250, 255);
transition: background-color 0.3s ease; /* Smooth transition */
z-index: 1000; /* Ensure the button is on top of other elements */
box-shadow: 0 0 10px #555555;
}
.print-button:hover {
background-color: rgb(220, 220, 255);
}
/* Exception class to have compact elements with defaults */
.compact {
margin: 0px;
padding: 0px;
}
*, ::after, ::before {
box-sizing: border-box;
}
@media print {
body {
font-family: 'Noto Sans', sans-serif;
color: #3d3d3f;
font-size: 8pt;
font-weight: 400;
line-height: 1.4;
text-align: left;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
margin: 0 0 0 0;
zoom: 97%; /* TODO Tune me if content changes */
}
main.page {
background-color: #fff;
display: block;
max-width: auto;
max-height: auto;
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
@page { size: letter portrait; }
/* .left-col li { */
/* margin-left: -12%; */
/* } */
.right-col {
padding-top: 40px;
}
/* Prevent visited links from printing in dull color */
a {
text-decoration: underline;
color: blue;
}
/* Qr code is too big*/
.qr-img {
zoom: 85%;
}
.print-button { display: none !important; }
.project-images { height: 3rem; }
}