/**
 * @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 book and chapter pages.
 *
 * The button sits in the same block as the formats (.pub_format_*), where the
 * theme styles every link as a download button, with the download arrow in
 * ::before. Inheriting that gave the button a download icon (it downloads
 * nothing) and an 8px offset from the margin. Only those two are corrected and
 * the icon becomes a book; the rest follows the theme.
 *
 * In place of the PDF link (flip_replaces_pdf) the button stands where the link
 * stood, so the offset 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-left: 0 !important;
	margin-top: .35rem !important;
	display: inline-block;
}

/* The font is declared, not inherited. In the formats box the theme already gives
   download links FontAwesome, but the button is also added to the chapter list
   (.files), which does not get it: there ::before inherited the body font, found no
   glyph and drew 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 */
}
