| 1 | package HTML::Notebook::Style; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use utf8; | ||
| 6 | |||
| 7 | use Moose; | ||
| 8 | use namespace::autoclean; | ||
| 9 | |||
| 10 | =encoding utf-8 | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | HTML::Notebook::Style - Notebook style | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | This class allow customizing notebook appearance | ||
| 19 | |||
| 20 | =head1 METHODS | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | =head2 head | ||
| 25 | |||
| 26 | Returns the html for the head of the html | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | sub head { | ||
| 31 | return ' | ||
| 32 | <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script> | ||
| 33 | <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/readable/bootstrap.min.css" rel="stylesheet" integrity="sha384-Li5uVfY2bSkD3WQyiHX8tJd0aMF91rMrQP5aAewFkHkVSTT2TmD2PehZeMmm7aiL" crossorigin="anonymous"> | ||
| 34 | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> | ||
| 35 | <style> | ||
| 36 | #notebook-body {padding-top: 25px;} | ||
| 37 | .cell {padding-left: 5%; padding-right: 5%; padding-top: 25px; padding-botton: 25px} | ||
| 38 | </style> | ||
| 39 | '; | ||
| 40 | } | ||
| 41 | |||
| 42 | =head2 header | ||
| 43 | |||
| 44 | Returns the html for the notebook header section | ||
| 45 | |||
| 46 | =cut | ||
| 47 | |||
| 48 | sub header { | ||
| 49 | return ''; | ||
| 50 | } | ||
| 51 | |||
| 52 | __PACKAGE__->meta()->make_immutable; | ||
| 53 | |||
| 54 | 1; | ||
| 55 | |||
| 56 | __END__ |