aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/main.css15
-rw-r--r--src/styles/resume.css31
2 files changed, 42 insertions, 4 deletions
diff --git a/src/styles/main.css b/src/styles/main.css
index 1c47ae6..5886f3c 100644
--- a/src/styles/main.css
+++ b/src/styles/main.css
@@ -32,7 +32,9 @@ footer {
/* link */
-a, a:hover, a:visited {
+a,
+a:hover,
+a:visited {
color: blue;
}
@@ -69,7 +71,8 @@ table {
border-collapse: collapse;
}
-table th, table td {
+table th,
+table td {
padding: .4em 1em .4em 1em;
margin: 0;
overflow: hidden;
@@ -77,15 +80,19 @@ table th, table td {
/* code */
-pre, p code, li code {
+pre,
+p code,
+li code {
background-color: #eeeeee;
overflow: auto;
}
/* media file */
-img, video {
+img,
+video {
max-width: 100%;
+ cursor: crosshair;
}
/* screen size */
diff --git a/src/styles/resume.css b/src/styles/resume.css
new file mode 100644
index 0000000..c54af72
--- /dev/null
+++ b/src/styles/resume.css
@@ -0,0 +1,31 @@
+/* mainly for pdf */
+
+@media print {
+ html {
+ max-width: 85%;
+ }
+
+ h1,
+ h2,
+ h3,
+ h4 {
+ page-break-after:avoid;
+ break-after: avoid;
+ }
+
+}
+
+@page {
+ size: A3 portrait;
+
+}
+
+body > ul > li,
+ul > ul,
+ul > ul > li {
+ break-inside: avoid;
+}
+
+ul:nth-child(1) {
+ margin-bottom: 1em;
+}
remember that computers suck.