Skip to content

Commit

Permalink
Merge pull request #103 from XuluWarrior/print-friendly-html
Browse files Browse the repository at this point in the history
Print friendly html
  • Loading branch information
XuluWarrior authored Sep 21, 2024
2 parents d661ecc + 91ae3f9 commit a06dbb2
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 14 deletions.
15 changes: 13 additions & 2 deletions assets/css/styles-1.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ ul {
color: #fb866a;
}
/* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) {
@media only screen and (max-width: 767px) {
.sidebar-wrapper {
position: static;
width: inherit;
Expand All @@ -286,7 +286,7 @@ ul {
}
/* Small devices (tablets, 768px and up) */
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media only screen and (min-width: 992px) {
.skillset .level-title {
display: inline-block;
float: left;
Expand All @@ -303,3 +303,14 @@ ul {
}
/* Large devices (large desktops, 1200px and up) */
/* Ex-Large devices (large desktops, 1200px and up) */
@media print {
html,
body {
width: 1020px;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
}
.item {
break-inside: avoid;
}
15 changes: 13 additions & 2 deletions assets/css/styles-2.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ ul {
color: #fb866a;
}
/* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) {
@media only screen and (max-width: 767px) {
.sidebar-wrapper {
position: static;
width: inherit;
Expand All @@ -286,7 +286,7 @@ ul {
}
/* Small devices (tablets, 768px and up) */
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media only screen and (min-width: 992px) {
.skillset .level-title {
display: inline-block;
float: left;
Expand All @@ -303,3 +303,14 @@ ul {
}
/* Large devices (large desktops, 1200px and up) */
/* Ex-Large devices (large desktops, 1200px and up) */
@media print {
html,
body {
width: 1020px;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
}
.item {
break-inside: avoid;
}
15 changes: 13 additions & 2 deletions assets/css/styles-3.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ ul {
color: #fb866a;
}
/* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) {
@media only screen and (max-width: 767px) {
.sidebar-wrapper {
position: static;
width: inherit;
Expand All @@ -286,7 +286,7 @@ ul {
}
/* Small devices (tablets, 768px and up) */
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media only screen and (min-width: 992px) {
.skillset .level-title {
display: inline-block;
float: left;
Expand All @@ -303,3 +303,14 @@ ul {
}
/* Large devices (large desktops, 1200px and up) */
/* Ex-Large devices (large desktops, 1200px and up) */
@media print {
html,
body {
width: 1020px;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
}
.item {
break-inside: avoid;
}
15 changes: 13 additions & 2 deletions assets/css/styles-4.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ ul {
color: #fb866a;
}
/* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) {
@media only screen and (max-width: 767px) {
.sidebar-wrapper {
position: static;
width: inherit;
Expand All @@ -286,7 +286,7 @@ ul {
}
/* Small devices (tablets, 768px and up) */
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media only screen and (min-width: 992px) {
.skillset .level-title {
display: inline-block;
float: left;
Expand All @@ -303,3 +303,14 @@ ul {
}
/* Large devices (large desktops, 1200px and up) */
/* Ex-Large devices (large desktops, 1200px and up) */
@media print {
html,
body {
width: 1020px;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
}
.item {
break-inside: avoid;
}
15 changes: 13 additions & 2 deletions assets/css/styles-5.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ ul {
color: #fb866a;
}
/* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) {
@media only screen and (max-width: 767px) {
.sidebar-wrapper {
position: static;
width: inherit;
Expand All @@ -286,7 +286,7 @@ ul {
}
/* Small devices (tablets, 768px and up) */
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media only screen and (min-width: 992px) {
.skillset .level-title {
display: inline-block;
float: left;
Expand All @@ -303,3 +303,14 @@ ul {
}
/* Large devices (large desktops, 1200px and up) */
/* Ex-Large devices (large desktops, 1200px and up) */
@media print {
html,
body {
width: 1020px;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
}
.item {
break-inside: avoid;
}
15 changes: 13 additions & 2 deletions assets/css/styles-6.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ ul {
color: #fb866a;
}
/* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) {
@media only screen and (max-width: 767px) {
.sidebar-wrapper {
position: static;
width: inherit;
Expand All @@ -286,7 +286,7 @@ ul {
}
/* Small devices (tablets, 768px and up) */
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media only screen and (min-width: 992px) {
.skillset .level-title {
display: inline-block;
float: left;
Expand All @@ -303,3 +303,14 @@ ul {
}
/* Large devices (large desktops, 1200px and up) */
/* Ex-Large devices (large desktops, 1200px and up) */
@media print {
html,
body {
width: 1020px;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
}
.item {
break-inside: avoid;
}
14 changes: 12 additions & 2 deletions assets/less/default/responsive.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) {
@media only screen and (max-width: 767px) {

.sidebar-wrapper {
position: static;
Expand Down Expand Up @@ -29,7 +29,7 @@
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
@media only screen and (min-width: 992px) {

.skillset .level-title {
display: inline-block;
Expand Down Expand Up @@ -60,4 +60,14 @@

}

@media print {
html, body {
width: 1020px;
-webkit-print-color-adjust:exact !important;
print-color-adjust:exact !important;
}
}

.item {
break-inside: avoid;
}

0 comments on commit a06dbb2

Please sign in to comment.