/**
 * @file plugins/generic/pdfFlipbook/styles/button.css
 *
 * Copyright (c) 2026 OJSBR (https://ojsbr.com)
 * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
 *
 * The "Flip through" button of the article landing page.
 *
 * The button copies the classes of the OJS PDF galley link (obj_galley_link
 * pdf), so it already looks like the neighbouring button. Only the download
 * arrow is corrected: the flipbook downloads nothing, so it becomes a book.
 *
 * In place of the PDF link (flip_replaces_pdf) the button stands where the link
 * stood, so the spacing of the theme is kept; keeping the label too
 * (flip_keeps_label), it is the PDF link as the theme drew it, icon included.
 */
.flip_open_btn:not(.flip_replaces_pdf) {
	margin-inline-start: .5rem;
	display: inline-block;
}

/* The font is declared, not inherited. In OJS the galley link already uses
   FontAwesome, but a theme may style the links differently; without the font
   the ::before content would render as a box. */
.flip_open_btn:not(.flip_keeps_label):before {
	font-family: FontAwesome !important;
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin-right: .35rem;
	content: "\f02d" !important; /* a book instead of the download arrow */
}
