entity-links.css in Printer and PDF versions for Drupal 8+ 8
.node_view ul {
list-style-type: none;
}
.node_view a {
text-decoration: none;
}
.node_view ul.pre_links li {
float: left;
}
.node_view ul.pre_links li:first-child {
/** the image will be vertically aligned in the center **/
background: url(../icons/print_icon.png) left center no-repeat;
/** move the text to the right **/
padding-left: 20px;
}
.node_view ul.pre_links li:nth-child(2) {
/** the image will be vertically aligned in the center **/
background: url(../icons/pdf_icon.png) left center no-repeat;
/** move the text to the right **/
padding-left: 20px;
margin-left: 7px;
}
File
css/entity-links.css
View source
- .node_view ul {
- list-style-type: none;
- }
- .node_view a {
- text-decoration: none;
- }
- .node_view ul.pre_links li {
- float: left;
- }
- .node_view ul.pre_links li:first-child {
- /** the image will be vertically aligned in the center **/
- background: url(../icons/print_icon.png) left center no-repeat;
- /** move the text to the right **/
- padding-left: 20px;
- }
- .node_view ul.pre_links li:nth-child(2) {
- /** the image will be vertically aligned in the center **/
- background: url(../icons/pdf_icon.png) left center no-repeat;
- /** move the text to the right **/
- padding-left: 20px;
- margin-left: 7px;
- }