main.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. @font-face {
  2. font-family: 'ola';
  3. src: url('fonts/ola/olasans-webfont.eot');
  4. src: url('fonts/ola/olasans-webfont.eot?#iefix') format('embedded-opentype'),
  5. url('fonts/ola/olasans-webfont.woff2') format('woff2'),
  6. url('fonts/ola/olasans-webfont.woff') format('woff'),
  7. url('fonts/ola/olasans-webfont.ttf') format('truetype');
  8. font-weight: normal;
  9. font-style: normal;
  10. }
  11. /* Generated by Font Squirrel (https://www.fontsquirrel.com) on June 17, 2016 */
  12. @font-face {
  13. font-family: 'vollkorn';
  14. src: url('fonts/volkorn/vollkorn-bold-webfont.woff2') format('woff2'),
  15. url('fonts/volkorn/vollkorn-bold-webfont.woff') format('woff');
  16. font-weight: bold;
  17. font-style: normal;
  18. }
  19. @font-face {
  20. font-family: 'vollkorn';
  21. src: url('fonts/volkorn/vollkorn-bolditalic-webfont.woff2') format('woff2'),
  22. url('fonts/volkorn/vollkorn-bolditalic-webfont.woff') format('woff');
  23. font-weight: bold;
  24. font-style: italic;
  25. }
  26. @font-face {
  27. font-family: 'vollkorn';
  28. src: url('fonts/volkorn/vollkorn-italic-webfont.woff2') format('woff2'),
  29. url('fonts/volkorn/vollkorn-italic-webfont.woff') format('woff');
  30. font-weight: normal;
  31. font-style: italic;
  32. }
  33. @font-face {
  34. font-family: 'vollkorn';
  35. src: url('fonts/volkorn/vollkorn-regular-webfont.woff2') format('woff2'),
  36. url('fonts/volkorn/vollkorn-regular-webfont.woff') format('woff');
  37. font-weight: normal;
  38. font-style: normal;
  39. }
  40. body{
  41. font-family: 'vollkorn',sans-serif;
  42. max-width: 100%;
  43. height:100%;
  44. margin: 30px 0;
  45. font-size:14px;
  46. }
  47. h1, h2, h3, h4, h5, h6{
  48. font-family: 'ola',sans-serif;
  49. margin:0;
  50. }
  51. #main{
  52. h1, h2{
  53. // border: 2px solid #000;
  54. // padding: 5px;
  55. // display: inline-block;
  56. // position: absolute;
  57. }
  58. h1{
  59. // text-transform: uppercase;
  60. // padding: 5px 1rem;
  61. // top: 100px;
  62. white-space: nowrap;
  63. }
  64. h2{
  65. // top:0;
  66. white-space: nowrap;
  67. // padding: 5px 1rem;
  68. font-size: 1rem;
  69. }
  70. }
  71. p{
  72. font-size: 1.5em;
  73. }
  74. ul{margin:0; padding:0;}
  75. li{
  76. list-style: none;
  77. }
  78. img{max-width:100%;}
  79. code{
  80. // border: 1px solid #000;
  81. padding: 5px;
  82. }
  83. header#header{
  84. width: 18%;
  85. min-width: 200px;
  86. position:fixed;
  87. padding: 0 1rem;
  88. h1{
  89. font-size: 1rem;
  90. // border-bottom: 2px solid #000;
  91. margin-bottom: 1em;
  92. }
  93. #menu{
  94. li{
  95. p{
  96. margin-top: 0;
  97. margin-bottom:0.2em;
  98. font-size: 1em;
  99. }
  100. a{
  101. color: #000;
  102. }
  103. }
  104. }
  105. }
  106. div.user{
  107. position:relative;
  108. width: 55%;
  109. max-width: 800px;
  110. margin:0 auto 5rem auto;
  111. header{
  112. min-height: 200px;
  113. }
  114. .content{
  115. // border: 2px solid #000;
  116. padding: 1rem;
  117. width: 100%;
  118. margin-bottom: 2rem;
  119. }
  120. section.images ul{
  121. width: 105%;
  122. li{
  123. line-height: 0;
  124. margin: 1rem 0;
  125. // border: 2px solid #000;
  126. img{
  127. max-width: 100%;
  128. width: 100%;
  129. }
  130. }
  131. }
  132. p{
  133. img{
  134. border:none;
  135. }
  136. }
  137. }
  138. @media print {
  139. @page {
  140. margin: 1cm;
  141. size: A4;
  142. }
  143. // div {
  144. // }
  145. div.user{
  146. width: 17cm;
  147. margin-top: 2cm;
  148. page-break-after: always;
  149. max-width: 19cm;
  150. p, code {
  151. // page-break-after: always;
  152. page-break-inside: avoid;
  153. }
  154. section.images ul{
  155. li{
  156. page-break-inside: avoid;
  157. margin-top: 1cm;
  158. }
  159. }
  160. }
  161. }