page.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. @import "../bower_components/normalize-css/normalize.css";
  2. $font-stack: "Tex Gyre Heros";
  3. $font-color-light: #c0c0c0;
  4. @font-face {
  5. font-family: 'TeX Gyre Heros';
  6. src: url('/fonts/texgyreheros-regular-webfont.woff') format('woff');
  7. font-style: normal;
  8. }
  9. @font-face {
  10. font-family: 'TeX Gyre Heros';
  11. src: url('/fonts/texgyreheros-bold-webfont.woff') format('woff');
  12. font-style: normal;
  13. font-weight: bold;
  14. }
  15. @font-face {
  16. font-family: 'TeX Gyre Heros';
  17. src: url('/fonts/texgyreheros-italic-webfont.woff') format('woff');
  18. font-style: italic;
  19. }
  20. @font-face {
  21. font-family: 'TeX Gyre Heros';
  22. src: url('/fonts/texgyreheros-bolditalic-webfont.woff') format('woff');
  23. font-style: italic;
  24. font-weight: bold;
  25. }
  26. html {
  27. font-size: 62.5%; }
  28. body {
  29. font-size: 1.33em; /* currently ems cause chrome bug misinterpreting rems on body element */
  30. line-height: 1.5;
  31. font-weight: normal;
  32. font-family: $font-stack;
  33. color: #333;
  34. }
  35. /* Typography
  36. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  37. h1, h2, h3, h4, h5, h6 {
  38. margin-top: 0;
  39. margin-bottom: 0;
  40. font-weight: 400;
  41. }
  42. h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}
  43. h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
  44. h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }
  45. h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
  46. h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }
  47. h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
  48. p { margin-top: 0; }
  49. page {
  50. position: relative;
  51. padding: 10mm 25mm 10mm 25mm;
  52. display: block;
  53. border: 1px solid black;
  54. -webkit-box-shadow: 5px 5px 4px 0px rgba(192,192,192,1);
  55. -moz-box-shadow: 5px 5px 4px 0px rgba(192,192,192,1);
  56. box-shadow: 5px 5px 4px 0px rgba(192,192,192,1);
  57. }
  58. page[size="A4"][orientation="portrait"] {
  59. width: 210mm;
  60. height: 296.8mm;
  61. }
  62. page[size="A4"][orientation="landscape"] {
  63. width: 296.8mm;
  64. height: 210mm;
  65. }
  66. page[size="A3"][orientation="portrait"] {
  67. width: 296.8mm;
  68. height: 420mm;
  69. }
  70. page[size="A3"][orientation="landscape"] {
  71. width: 420mm;
  72. height: 296.8mm;
  73. }
  74. page[size="A5"][orientation="portrait"] {
  75. width: 14.8cm;
  76. height: 21cm;
  77. }
  78. page[size="A5"][orientation="landscape"] {
  79. width: 21cm;
  80. height: 14.8cm;
  81. }
  82. .grid {
  83. display: grid;
  84. grid-gap: 0px;
  85. align-content: start;
  86. grid-template-columns: auto;
  87. grid-template-rows: auto 1fr auto;
  88. grid-template-areas: "header"
  89. "main"
  90. "footer";
  91. }
  92. .header {
  93. grid-area: header;
  94. align-self: start;
  95. }
  96. .main {
  97. grid-area: main;
  98. align-self: start;
  99. }
  100. .footer {
  101. grid-area: footer;
  102. align-self: end;
  103. }
  104. .main-grid {
  105. grid-area: main;
  106. display: grid;
  107. grid-column-gap: 25mm;
  108. grid-template-columns: 1fr 1fr;
  109. grid-template-rows: auto 1fr auto;
  110. grid-template-areas: "header-left header-right"
  111. "main-left main-right"
  112. "footer-left footer-right";
  113. }
  114. .main-left { grid-area: main-left; }
  115. .main-right { grid-area: main-right; }
  116. .footer-grid {
  117. grid-area: footer;
  118. display: grid;
  119. grid-column-gap: 25mm;
  120. grid-template-columns: 1fr 1fr;
  121. grid-template-rows: auto;
  122. grid-template-areas: "footer-left footer-right";
  123. }
  124. .footer-left { grid-area: footer-left; }
  125. .footer-right { grid-area: footer-right; }
  126. .flex-grid { display: flex; }
  127. .col { flex: 1; }
  128. .col-2 { flex: 2; }
  129. .voffset-halb { margin-top: 0.5rem; }
  130. @for $i from 1 through 20 {
  131. .voffset-#{$i} {
  132. margin-top: #{$i}rem
  133. }}
  134. .text-center { text-align: center !important; }
  135. hr {
  136. border: 0;
  137. border-top: 1px solid #eee;
  138. border-color: #000;
  139. height: 1px;
  140. margin: 3px 0;
  141. &.hr-rot {
  142. border-color: #ff2700;
  143. margin: 8px 0;
  144. }
  145. &.hr-grau {
  146. border-color: rgb(100,100,100) !important;
  147. }
  148. }
  149. .table-eng {
  150. margin-bottom: 0px;
  151. td {
  152. padding: 1px !important;
  153. font-size: 9pt;
  154. }
  155. }
  156. .table-noten {
  157. width: 100%;
  158. margin-bottom: 1em;
  159. }
  160. .fach-bezeichnung {
  161. padding-left: 10mm;
  162. &.padding-5 {
  163. padding-left: 2em;
  164. }
  165. }
  166. .td-fach-note {
  167. padding: 0;
  168. width: 12em;
  169. span {
  170. background-color: #dcdcdc !important;
  171. text-align: center;
  172. width: 10em;
  173. display: block;
  174. vertical-align: middle;
  175. margin:0 auto;
  176. &.e-note {
  177. background-color: white !important;
  178. width: 17em;
  179. margin: 0;
  180. padding: 0;
  181. }
  182. }
  183. }
  184. .td-padding-extra {
  185. padding: 2mm 0 2mm 0;
  186. }
  187. .fachgruppe-margin {
  188. padding-top: 0.3em;
  189. }
  190. .fett {
  191. font-weight: bolder;
  192. }
  193. .lernfeld-lernbereich {
  194. padding-left: 2em;
  195. }
  196. .lernbereich {
  197. padding-left: 20mm;
  198. }
  199. .klein {
  200. font-size: smaller;
  201. }
  202. .eng {
  203. line-height: 1.3em;
  204. }
  205. .grau *{
  206. color: rgb(100,100,100) !important;
  207. }
  208. ul.dashes {
  209. margin: 0;
  210. list-style-type: none;
  211. padding-left: 1em;
  212. li:before {
  213. content: "–";
  214. position: absolute;
  215. margin-left: -1em;
  216. }
  217. }
  218. .schulnummer {
  219. text-align: right;
  220. }
  221. .wasserzeichen {
  222. position: absolute;
  223. opacity: 0.5;
  224. z-index: 99;
  225. color: red;
  226. font-size: 96pt;
  227. }
  228. .seitenlogo {
  229. position: absolute;
  230. bottom: 10mm;
  231. left: 10mm;
  232. }
  233. * {
  234. box-sizing: border-box;
  235. -moz-box-sizing: border-box;
  236. }
  237. table.fixed {
  238. table-layout: fixed;
  239. table th, table td {
  240. overflow: hidden;
  241. }
  242. }
  243. @media print {
  244. * {
  245. //alles was Farbe hat mitdrucken
  246. -webkit-print-color-adjust: exact;
  247. }
  248. page {
  249. page-break-after: always;
  250. margin: 0px;
  251. border: none;
  252. margin-bottom: 0px;
  253. -webkit-box-shadow:initial;
  254. -moz-box-shadow:initial;
  255. box-shadow: initial;
  256. }
  257. @page {
  258. page[size="A4"][orientation="portrait"] {
  259. size: A4 portrait;
  260. }
  261. page[size="A4"][orientation="landscape"] {
  262. size: A4 landscape;
  263. }
  264. page[size="A3"][orientation="portrait"] {
  265. size: A3 portrait;
  266. }
  267. page[size="A3"][orientation="landscape"] {
  268. size: A3 landscape;
  269. }
  270. }
  271. }