/** * My additions */ /* centers anything in class="center" */ .center { margin-left: auto; margin-right: auto; } /* images */ .left_image { float:left; padding:5px; border:1px solid gray; margin: 5px 20px 5px 0px; } .left_image p { margin-top:0px; margin-bottom:0px; font-size: 100%; font-style:italic; padding-top:5px; text-align: center; } .right_image { float:right; padding:5px; border:1px solid gray; margin: 5px 0px 5px 20px; } .right_image p { margin-top:0px; margin-bottom:0px; font-size: 100%; font-style:italic; padding-top:5px; text-align: center; } .center_image { display: block; text-align: center; font-size: 100%; padding:5px; /* border:1px solid gray; */ } .center_image p { margin-top:0px; margin-bottom:0px; font-size:100%; font-style:italic; padding-top:5px; text-align: center; } /* this centers text */ p.centerblock { margin-left: auto; margin-right: auto; width: 80%; /* font-size: 15px; */ font-size: 100%; font-style: italic; } /* css for pullquote and pull-left */ /* from https://andytaylor.me/2012/12/03/pull-quotes/ */ /* for html

*/ p[data-pullquote] { display: block; } @media screen and (max-width: 600px) { p[data-pullquote] { display: none; } } p[data-pullquote]:before { content: attr(data-pullquote); float: right; width: 200px; /* margin: 0 0 0.5em 30px; */ margin: 0 0 .5em 30px; padding: 0 -5% 0 0; /* font-size: 1.3em; */ font-size: 130%; font-style: italic; /* color: $brand-color; */ color: #3E6D48; text-align: center; } /* for html

*/ p.pull-left[data-pullquote]:before { float: left; margin: 0 30px 0 0; } /* Inline footnotes. */ /* sources: * https://sheep.horse/2017/10/how_you_are_reading_this_page.html * or * https://edwardtufte.github.io/tufte-css/ * code is here: * https://github.com/edwardtufte/tufte-css */ body { counter-reset: linenote-counter; } .linenote, .marginnote { float: right; /* clear: right; */ /* with this in, the notes drop below an adjoining image. with it out, they display over the top of the image. same for the clear property below */ margin-right: -60%; width: 50%; margin-top: 0; margin-bottom: 0; font-size: 100% ; line-height: 1.3; vertical-align: baseline; position: relative; padding: 5px; } .linenote-number { counter-increment: linenote-counter; } .linenote-number:after, .linenote:before { content: counter(linenote-counter) ' '; /* font-family: et-book-roman-old-style; */ position: relative; vertical-align: baseline; color: #6F9B79; } .linenote-number:after { content: counter(linenote-counter); font-size: 100%; top: -0.5rem; left: 0.1rem; } .linenote:before { content: counter(linenote-counter) ' '; } .marginnote .code, .linenote .code { font-size: 100%; } input.inline-toggle { display: none; } label.linenote-number { display: inline; } label.inline-toggle:not(.linenote-number) { display: none; } label.inline-toggle:not(.linenote-number) { display: inline; } .linenote, .marginnote { display: none; } .inline-toggle:checked + .linenote, .inline-toggle:checked + .marginnote { display: block; float: none; /* clear: both; */ width: 80%; margin-left: 10%; vertical-align: baseline; position: relative; background-color: #FBFAF5; /* box-shadow values are offset-x, offset-y, blur-radius, spread-radius, rgba color where a = opacity. negative offset puts a shadow on left and top sides. */ box-shadow: 2px 2px 2px 1px rgba(111, 155, 121, 0.2), -2px -2px 2px 1px rgba(111, 155, 121, 0.2); } /* This permanently hides the checkbox */ input[type=checkbox]{ display:none; }