main.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. font-size: 2em;
  63. white-space: nowrap;
  64. }
  65. h2{
  66. // top:0;
  67. font-size: 1.3em;
  68. white-space: nowrap;
  69. // padding: 5px 1rem;
  70. font-size: 1rem;
  71. }
  72. }
  73. p{
  74. font-size: 1.5em;
  75. }
  76. ul{margin:0; padding:0;}
  77. li{
  78. list-style: none;
  79. }
  80. img{max-width:100%;}
  81. code{
  82. // border: 1px solid #000;
  83. padding: 5px;
  84. }
  85. header#header{
  86. width: 18%;
  87. min-width: 200px;
  88. position:fixed;
  89. padding: 0 1rem;
  90. h1{
  91. font-size: 1rem;
  92. // border-bottom: 2px solid #000;
  93. margin-bottom: 1em;
  94. }
  95. #menu{
  96. li{
  97. p{
  98. margin-top: 0;
  99. margin-bottom:0.2em;
  100. font-size: 1em;
  101. }
  102. a{
  103. color: #000;
  104. }
  105. }
  106. }
  107. }
  108. div.user{
  109. position:relative;
  110. width: 55%;
  111. max-width: 800px;
  112. margin:0 auto 5rem auto;
  113. overflow-x: hidden;
  114. // outline: 1px solid red;
  115. header{
  116. min-height: 200px;
  117. }
  118. .content{
  119. // border: 2px solid #000;
  120. padding: 1rem;
  121. width: 100%;
  122. margin-bottom: 2rem;
  123. }
  124. section.images ul{
  125. width: 105%;
  126. li{
  127. line-height: 0;
  128. margin: 1rem 0;
  129. // border: 2px solid #000;
  130. img{
  131. max-width: 100%;
  132. width: 100%;
  133. }
  134. }
  135. }
  136. p{
  137. img{
  138. border:none;
  139. }
  140. }
  141. video{
  142. max-width: 100%;
  143. max-height: 600px;
  144. }
  145. }
  146. @media print {
  147. @page {
  148. margin: 1cm;
  149. size: A4;
  150. }
  151. // div {
  152. // }
  153. div.user{
  154. width: 17cm;
  155. margin-top: 2cm;
  156. page-break-after: always;
  157. max-width: 19cm;
  158. p, code {
  159. // page-break-after: always;
  160. page-break-inside: avoid;
  161. }
  162. section.images ul{
  163. li{
  164. page-break-inside: avoid;
  165. margin-top: 1cm;
  166. }
  167. }
  168. }
  169. }