page.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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: 0 !important;
  151. }
  152. .table-noten {
  153. width: 100%;
  154. border: none;
  155. border-collapse: collapse;
  156. margin-bottom: 1rem;
  157. }
  158. .table-bordered {
  159. border-collapse: collapse;
  160. tr {
  161. border-bottom: thin solid #333;
  162. }
  163. }
  164. .fach-bezeichnung {
  165. padding-left: 10mm;
  166. &.padding-5 {
  167. padding-left: 2rem;
  168. }
  169. }
  170. .td-fach-note {
  171. padding-bottom: .2rem;
  172. padding-top: .2rem;
  173. width: 12rem;
  174. span {
  175. background-color: #dcdcdc !important;
  176. text-align: center;
  177. width: 10rem;
  178. display: block;
  179. vertical-align: middle;
  180. margin:0 auto;
  181. &.e-note {
  182. background-color: white !important;
  183. width: 17rem;
  184. margin: 0;
  185. }
  186. }
  187. }
  188. .td-padding-extra {
  189. padding: 2mm 0 2mm 0;
  190. }
  191. .fachgruppe-margin {
  192. padding-top: 0.3rem;
  193. }
  194. .fett {
  195. font-weight: bolder;
  196. }
  197. .lernfeld-lernbereich {
  198. padding-left: 2rem;
  199. padding-bottom:0;
  200. }
  201. .lernbereich {
  202. padding-left: 20mm;
  203. }
  204. .klein {
  205. font-size: smaller;
  206. }
  207. .eng {
  208. line-height: 1.3rem;
  209. }
  210. .grau *{
  211. color: rgb(100,100,100) !important;
  212. }
  213. ul.dashes {
  214. margin: 0;
  215. list-style-type: none;
  216. padding-left: 1rem;
  217. li:before {
  218. content: "–";
  219. position: absolute;
  220. margin-left: -1rem;
  221. }
  222. }
  223. .schulnummer {
  224. text-align: right;
  225. }
  226. .wasserzeichen {
  227. position: absolute;
  228. opacity: 0.5;
  229. z-index: 99;
  230. color: red;
  231. font-size: 96pt;
  232. }
  233. .seitenlogo {
  234. position: absolute;
  235. bottom: 10mm;
  236. left: 10mm;
  237. }
  238. * {
  239. box-sizing: border-box;
  240. -moz-box-sizing: border-box;
  241. }
  242. table.fixed {
  243. table-layout: fixed;
  244. table th, table td {
  245. overflow: hidden;
  246. }
  247. }
  248. @media print {
  249. * {
  250. //alles was Farbe hat mitdrucken
  251. -webkit-print-color-adjust: exact;
  252. }
  253. page {
  254. page-break-after: always;
  255. margin: 0px;
  256. border: none;
  257. margin-bottom: 0px;
  258. -webkit-box-shadow:initial;
  259. -moz-box-shadow:initial;
  260. box-shadow: initial;
  261. }
  262. @page {
  263. page[size="A4"][orientation="portrait"] {
  264. size: A4 portrait;
  265. }
  266. page[size="A4"][orientation="landscape"] {
  267. size: A4 landscape;
  268. }
  269. page[size="A3"][orientation="portrait"] {
  270. size: A3 portrait;
  271. }
  272. page[size="A3"][orientation="landscape"] {
  273. size: A3 landscape;
  274. }
  275. }
  276. }