doc-msp-theme 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +52 -0
  4. data/_includes/footer.html +16 -0
  5. data/_includes/header.html +55 -0
  6. data/_layouts/article.html +46 -0
  7. data/_layouts/chapter.html +39 -0
  8. data/_layouts/default.html +75 -0
  9. data/_sass/.csslintrc +20 -0
  10. data/_sass/.scss-lint.yml +212 -0
  11. data/_sass/_accessibility-seo.md +233 -0
  12. data/_sass/_accessibility.md +17 -0
  13. data/_sass/_accessibility.scss +30 -0
  14. data/_sass/_animation.scss +17 -0
  15. data/_sass/_badges.md +39 -0
  16. data/_sass/_badges.scss +50 -0
  17. data/_sass/_brandbar.scss +34 -0
  18. data/_sass/_brandcolor.md +92 -0
  19. data/_sass/_brandcolor.scss +24 -0
  20. data/_sass/_brandheader.scss +35 -0
  21. data/_sass/_brandnav.scss +224 -0
  22. data/_sass/_breadcrumb.md +39 -0
  23. data/_sass/_breadcrumb.scss +44 -0
  24. data/_sass/_button.md +218 -0
  25. data/_sass/_button.scss +146 -0
  26. data/_sass/_cancel.scss +13 -0
  27. data/_sass/_checkbox.md +55 -0
  28. data/_sass/_checkbox.scss +124 -0
  29. data/_sass/_close.scss +16 -0
  30. data/_sass/_collapse.scss +30 -0
  31. data/_sass/_content-list.md +375 -0
  32. data/_sass/_content-list.scss +49 -0
  33. data/_sass/_doc-msp-theme.md +106 -0
  34. data/_sass/_doc-msp-theme.scss +59 -0
  35. data/_sass/_expandable.md +141 -0
  36. data/_sass/_expandable.scss +21 -0
  37. data/_sass/_font-faces.md +83 -0
  38. data/_sass/_font-faces.scss +15 -0
  39. data/_sass/_footer.md +392 -0
  40. data/_sass/_footer.scss +147 -0
  41. data/_sass/_forms.md +139 -0
  42. data/_sass/_forms.scss +199 -0
  43. data/_sass/_functions.md +251 -0
  44. data/_sass/_functions.scss +389 -0
  45. data/_sass/_grid.md +449 -0
  46. data/_sass/_grid.scss +314 -0
  47. data/_sass/_header.md +1042 -0
  48. data/_sass/_helper.md +212 -0
  49. data/_sass/_helper.scss +150 -0
  50. data/_sass/_icons.md +153 -0
  51. data/_sass/_icons.scss +154 -0
  52. data/_sass/_images.md +21 -0
  53. data/_sass/_images.scss +54 -0
  54. data/_sass/_jsbutton.md +171 -0
  55. data/_sass/_media.scss +48 -0
  56. data/_sass/_mixins.scss +430 -0
  57. data/_sass/_modal.md +329 -0
  58. data/_sass/_modal.scss +117 -0
  59. data/_sass/_nav.scss +40 -0
  60. data/_sass/_navbar.scss +250 -0
  61. data/_sass/_normalize.md +7 -0
  62. data/_sass/_normalize.scss +423 -0
  63. data/_sass/_notifications.md +211 -0
  64. data/_sass/_notifications.scss +110 -0
  65. data/_sass/_pager.md +67 -0
  66. data/_sass/_pager.scss +138 -0
  67. data/_sass/_pagination.md +49 -0
  68. data/_sass/_pagination.scss +95 -0
  69. data/_sass/_qtip.md +74 -0
  70. data/_sass/_qtip.scss +175 -0
  71. data/_sass/_radio.md +53 -0
  72. data/_sass/_radio.scss +122 -0
  73. data/_sass/_scaffolding.scss +61 -0
  74. data/_sass/_search.md +0 -0
  75. data/_sass/_search.scss +90 -0
  76. data/_sass/_select.md +55 -0
  77. data/_sass/_select.scss +146 -0
  78. data/_sass/_tables.md +405 -0
  79. data/_sass/_tables.scss +131 -0
  80. data/_sass/_totop.md +126 -0
  81. data/_sass/_totop.scss +33 -0
  82. data/_sass/_type.md +817 -0
  83. data/_sass/_type.scss +450 -0
  84. data/_sass/_variables.scss +480 -0
  85. data/_sass/themes/bevel-theme/theme.scss +13 -0
  86. data/_sass/themes/dark-theme/_badges.scss +37 -0
  87. data/_sass/themes/dark-theme/_brandnav.scss +30 -0
  88. data/_sass/themes/dark-theme/_breadcrumb.scss +17 -0
  89. data/_sass/themes/dark-theme/_button.scss +86 -0
  90. data/_sass/themes/dark-theme/_checkbox.scss +9 -0
  91. data/_sass/themes/dark-theme/_content-list.scss +40 -0
  92. data/_sass/themes/dark-theme/_forms.scss +107 -0
  93. data/_sass/themes/dark-theme/_images.scss +30 -0
  94. data/_sass/themes/dark-theme/_mixins.scss +67 -0
  95. data/_sass/themes/dark-theme/_modal.scss +9 -0
  96. data/_sass/themes/dark-theme/_navbar.scss +15 -0
  97. data/_sass/themes/dark-theme/_notifications.scss +94 -0
  98. data/_sass/themes/dark-theme/_pager.scss +46 -0
  99. data/_sass/themes/dark-theme/_pagination.scss +81 -0
  100. data/_sass/themes/dark-theme/_qtip.scss +8 -0
  101. data/_sass/themes/dark-theme/_radio.scss +9 -0
  102. data/_sass/themes/dark-theme/_scaffolding.scss +29 -0
  103. data/_sass/themes/dark-theme/_select.scss +93 -0
  104. data/_sass/themes/dark-theme/_tables.scss +57 -0
  105. data/_sass/themes/dark-theme/_type.scss +70 -0
  106. data/_sass/themes/dark-theme/_variables.scss +171 -0
  107. data/_sass/themes/dark-theme/theme.scss +36 -0
  108. data/_sass/themes/debug-theme/theme.scss +415 -0
  109. metadata +179 -0
@@ -0,0 +1,389 @@
1
+ //
2
+ // Functions
3
+ // ----------------------------------------
4
+
5
+ ////// common functions //////
6
+
7
+ // returns the max of two values
8
+ @function max($v1, $v2) {
9
+ @return if($v1 > $v2, $v1, $v2);
10
+ }
11
+
12
+ // returns the min of two values
13
+ @function min($v1, $v2) {
14
+ @return if($v1 < $v2, $v1, $v2);
15
+ }
16
+
17
+ @function to-string($list, $glue: '', $is-nested: false) {
18
+ $result: null;
19
+
20
+ @for $i from 1 through length($list) {
21
+ $e: nth($list, $i);
22
+
23
+ @if type-of($e) == list {
24
+ $result: $result#{to-string($e, $glue, true)};
25
+ } @else {
26
+ $result: if($i != length($list) or $is-nested, $result#{$e}#{$glue}, $result#{$e});
27
+ }
28
+ }
29
+
30
+ @return $result;
31
+ }
32
+
33
+ ////// unit handling functions //////
34
+
35
+ @function strip-unit($number) {
36
+ @if type-of($number) == 'number' and not unitless($number) {
37
+ @return $number / ($number * 0 + 1);
38
+ }
39
+
40
+ @return $number;
41
+ }
42
+
43
+ @function strip-unit-when-zero($number) {
44
+ @if type-of($number) == 'number' and not unitless($number) {
45
+ $unitless: strip-unit($number);
46
+ @if $unitless == 0 {
47
+ @return $unitless;
48
+ }
49
+ }
50
+
51
+ @return $number;
52
+ }
53
+
54
+ ////// common css helper //////
55
+
56
+ // returns a color, based on an alpha-value against a background-color
57
+ // its the fallback solution for browsers without rgba support
58
+ @function fallback-rgba($color, $alpha, $background-color: #fff) {
59
+ @return mix($color, $background-color, percentage($alpha));
60
+ }
61
+
62
+ ////// building unit functions //////
63
+
64
+ // calculates the padding of a button in the context of building units
65
+ @function building-unit-box-padding($line-height, $height, $padding-horizontal) {
66
+ @return floor(max(0, (($height * $building-unit - 1) - $line-height) / 2) - 1) max(0, ($padding-horizontal * $building-unit - 1)) floor(max(0, (($height * $building-unit - 1) - $line-height) / 2));
67
+ }
68
+
69
+ @function building-units($value) {
70
+ @return $value * $building-unit;
71
+ }
72
+
73
+ // returns the pixels of the capline to the top based on the font-size
74
+ @function calculate-line-height-offset($font-size, $line-height) {
75
+ @return ($font-size * $line-height - $font-size) / 2;
76
+ }
77
+
78
+ @function capline-pixels($font-size, $line-height) {
79
+ @return ceil($font-size * $font-capline-top-ratio + calculate-line-height-offset($font-size, $line-height));
80
+ }
81
+
82
+ @function capline-bu($bu, $font-size, $line-height: 1) {
83
+ @return strip-unit-when-zero($bu * $building-unit - capline-pixels($font-size, $line-height));
84
+ }
85
+
86
+ // returns the pixels of the capline to the top based on the font-size
87
+ @function baseline-pixels($font-size, $line-height) {
88
+ @return floor($font-size * $font-baseline-bottom-ratio + calculate-line-height-offset($font-size, $line-height));
89
+ }
90
+
91
+ @function baseline-bu($bu, $font-size, $line-height: 1) {
92
+ @return strip-unit-when-zero($bu * $building-unit - baseline-pixels($font-size, $line-height));
93
+ }
94
+
95
+ ////// HSV calculations //////
96
+
97
+ // returns a hsv color
98
+ @function hsv($hue: 0, $saturation: 100%, $value: 100%) {
99
+ @return ($hue, $saturation, $value, 1);
100
+ }
101
+
102
+ // returns a hsva color
103
+ @function hsva($hue: 0, $saturation: 100%, $value: 100%, $alpha: 1) {
104
+ @return ($hue, $saturation, $value, $alpha);
105
+ }
106
+
107
+ // returns the converted hsv color, based on a rbg color
108
+ @function color-to-hsv($r, $g: 0, $b: 0, $a: 1) {
109
+ $color: #000;
110
+
111
+ @if type-of($r) != 'color' {
112
+ $color: rgba($r, $g, $b, $a);
113
+ } @else {
114
+ $color: $r;
115
+ }
116
+
117
+ // rgba
118
+ $r: red($color) / 255;
119
+ $g: green($color) / 255;
120
+ $b: blue($color) / 255;
121
+ $a: alpha($color);
122
+
123
+ // conversion values
124
+ $cmax: max($r, max($g, $b));
125
+ $cmin: min($r, min($g, $b));
126
+ $delta: $cmax - $cmin;
127
+
128
+ // hsv
129
+ $hue: hue($color);
130
+ $saturation: 0;
131
+ @if $cmax != 0 {
132
+ $saturation: percentage($delta / $cmax);
133
+ }
134
+ $value: percentage($cmax);
135
+
136
+ @return ($hue, $saturation, $value, $a);
137
+ }
138
+
139
+ // returns the converted rgb color, based on a hsv color
140
+ @function hsv-to-color($h, $saturation: 100%, $value: 100%, $alpha: 1) {
141
+ @if type-of($h) == 'list' {
142
+ $alpha: hsv-alpha($h);
143
+ $value: hsv-value($h);
144
+ $saturation: hsv-saturation($h);
145
+ $h: hsv-hue($h);
146
+ } @else if type-of($h) == 'number' {
147
+ @if unitless($h) {
148
+ $h: (360 * (0 + $h)) + 'deg';
149
+ }
150
+ }
151
+
152
+ $chroma: hsl($h, 100%, 50%);
153
+
154
+ @if unit($saturation) == '%' {
155
+ $saturation: 0 + ($saturation / 100%);
156
+ }
157
+ @if unit($value) == '%' {
158
+ $value: 0 + ($value / 100%);
159
+ }
160
+
161
+ $c: $value * $saturation;
162
+ $m: ($value - $c) * 255;
163
+
164
+ $r: max(0, min(red($chroma) * $c + $m, 255));
165
+ $g: max(0, min(green($chroma) * $c + $m, 255));
166
+ $b: max(0, min(blue($chroma) * $c + $m, 255));
167
+
168
+ $color: rgba($r, $g, $b, $alpha);
169
+
170
+ @return $color;
171
+ }
172
+
173
+ // HSV properties //
174
+
175
+ // returns the hue value of a hsv color
176
+ @function hsv-hue($hsv) {
177
+ @if type-of($hsv) == 'color' {
178
+ $hsv: color-to-hsv($hsv);
179
+ }
180
+ @return nth($hsv, 1);
181
+ }
182
+
183
+ // sets the hue value of a hsv color
184
+ @function hsv-set-hue($hsv, $value, $return-rgb-color: false) {
185
+ @if type-of($hsv) == 'color' {
186
+ $hsv: color-to-hsv($hsv);
187
+ }
188
+ $result: ($value, hsv-saturation($hsv), hsv-value($hsv), hsv-alpha($hsv));
189
+ @if ($return-rgb-color) {
190
+ @return hsv-to-color($result);
191
+ }
192
+ @return $result;
193
+ }
194
+
195
+ // returns the saturation value of a hsv color
196
+ @function hsv-saturation($hsv) {
197
+ @if type-of($hsv) == 'color' {
198
+ $hsv: color-to-hsv($hsv);
199
+ }
200
+ @return nth($hsv, 2);
201
+ }
202
+
203
+ // sets the saturation value of a hsv color
204
+ @function hsv-set-saturation($hsv, $value, $return-rgb-color: false) {
205
+ @if type-of($hsv) == 'color' {
206
+ $hsv: color-to-hsv($hsv);
207
+ }
208
+ $current: nth($hsv, 2);
209
+ $result: hsv-adjust-saturation($hsv, $value - $current);
210
+ @if ($return-rgb-color) {
211
+ @return hsv-to-color($result);
212
+ }
213
+ @return $result;
214
+ }
215
+
216
+ // returns the value of a hsv color
217
+ @function hsv-value($hsv) {
218
+ @if type-of($hsv) == 'color' {
219
+ $hsv: color-to-hsv($hsv);
220
+ }
221
+ @return nth($hsv, 3);
222
+ }
223
+
224
+ // sets the value of a hsv color
225
+ @function hsv-set-value($hsv, $value, $return-rgb-color: false) {
226
+ @if type-of($hsv) == 'color' {
227
+ $hsv: color-to-hsv($hsv);
228
+ }
229
+ $current: nth($hsv, 3);
230
+ $result: hsv-adjust-brightness($hsv, $value - $current);
231
+ @if ($return-rgb-color) {
232
+ @return hsv-to-color($result);
233
+ }
234
+ @return $result;
235
+ }
236
+
237
+ // returns the alpha value of a hsv color
238
+ @function hsv-alpha($hsv) {
239
+ @if type-of($hsv) == 'color' {
240
+ $hsv: color-to-hsv($hsv);
241
+ }
242
+ @return nth($hsv, 4);
243
+ }
244
+
245
+ // sets the alpha value of a hsv color
246
+ @function hsv-set-alpha($hsv, $value, $return-rgb-color: false) {
247
+ @if type-of($hsv) == 'color' {
248
+ $hsv: color-to-hsv($hsv);
249
+ }
250
+ $result: (hsv-hue($hsv), hsv-saturation($hsv), hsv-value($hsv), $value);
251
+ @if ($return-rgb-color) {
252
+ @return hsv-to-color($result);
253
+ }
254
+ @return $result;
255
+ }
256
+
257
+ // HSV adjustment functions //
258
+
259
+ // returns the inverted hsv color
260
+ @function hsv-invert($hsv-color, $return-rgb-color: false) {
261
+ @if type-of($hsv-color) == 'color' {
262
+ $hsv-color: color-to-hsv($hsv-color);
263
+ }
264
+
265
+ $result: hsva(360deg - hsv-hue($hsv-color), 100% - hsv-saturation($hsv-color), 100% - hsv-value($hsv-color), hsv-alpha($hsv-color));
266
+ @if ($return-rgb-color) {
267
+ @return hsv-to-color($result);
268
+ }
269
+ @return $result;
270
+ }
271
+
272
+ // changes the brightness of a hsv color
273
+ @function hsv-adjust-brightness($hsv-color, $value, $return-rgb-color: false) {
274
+ @if $hsv-color == false {
275
+ @return false;
276
+ }
277
+
278
+ @if type-of($hsv-color) == 'color' {
279
+ $hsv-color: color-to-hsv($hsv-color);
280
+ }
281
+
282
+ $hue: hsv-hue($hsv-color);
283
+ $saturation: hsv-saturation($hsv-color);
284
+ $brightness: hsv-value($hsv-color);
285
+ $alpha: hsv-alpha($hsv-color);
286
+
287
+ @if unit($value) == '%' {
288
+ $value: 0 + ($value / 100%);
289
+ }
290
+
291
+ $brightness: max(0, min(($brightness / 100%) + $value, 1));
292
+ $result: ($hue, $saturation, percentage($brightness), $alpha);
293
+ @if ($return-rgb-color) {
294
+ @return hsv-to-color($result);
295
+ }
296
+ @return $result;
297
+ }
298
+
299
+ // changes the hue value of a hsv color
300
+ @function hsv-adjust-hue($hsv-color, $value, $return-rgb-color: false) {
301
+ @if $hsv-color == false {
302
+ @return false;
303
+ }
304
+
305
+ @if type-of($hsv-color) == 'color' {
306
+ $hsv-color: color-to-hsv($hsv-color);
307
+ }
308
+
309
+ $hue: hsv-hue($hsv-color);
310
+ $saturation: hsv-saturation($hsv-color);
311
+ $brightness: hsv-value($hsv-color);
312
+ $alpha: hsv-alpha($hsv-color);
313
+
314
+ @if unit($value) != 'deg' {
315
+ $value: $value * 360deg;
316
+ }
317
+
318
+ $hue: max(0, min($hue + $value, 1));
319
+ $result: ($hue, $saturation, $brightness, $alpha);
320
+ @if ($return-rgb-color) {
321
+ @return hsv-to-color($result);
322
+ }
323
+ @return $result;
324
+ }
325
+
326
+ // changes the saturation of a hsv color
327
+ @function hsv-adjust-saturation($hsv-color, $value, $return-rgb-color: false) {
328
+ @if $hsv-color == false {
329
+ @return false;
330
+ }
331
+
332
+ @if type-of($hsv-color) == 'color' {
333
+ $hsv-color: color-to-hsv($hsv-color);
334
+ }
335
+
336
+ $hue: hsv-hue($hsv-color);
337
+ $saturation: hsv-saturation($hsv-color);
338
+ $brightness: hsv-value($hsv-color);
339
+ $alpha: hsv-alpha($hsv-color);
340
+
341
+ @if unit($value) == '%' {
342
+ $value: 0 + ($value / 100%);
343
+ }
344
+
345
+ $saturation: max(0, min(($saturation / 100%) + $value, 1));
346
+ $result: ($hue, $saturation, $brightness, $alpha);
347
+
348
+ @if $return-rgb-color == true {
349
+ @return hsv-to-color($result);
350
+ }
351
+ @return $result;
352
+ }
353
+
354
+ // cloned common HSV functions //
355
+
356
+ @function hsv-lighten($hsv-color, $value, $return-rgb-color: false) {
357
+ @return hsv-adjust-brightness($hsv-color, $value, $return-rgb-color);
358
+ }
359
+
360
+ @function hsv-darken($hsv-color, $value, $return-rgb-color: false) {
361
+ @return hsv-adjust-brightness($hsv-color, 0 - $value, $return-rgb-color);
362
+ }
363
+
364
+ @function hsv-saturate($hsv-color, $value, $return-rgb-color: false) {
365
+ @return hsv-adjust-saturation($hsv-color, $value, $return-rgb-color);
366
+ }
367
+
368
+ @function hsv-desaturate($hsv-color, $value, $return-rgb-color: false) {
369
+ @return hsv-adjust-saturation($hsv-color, 0 - $value, $return-rgb-color);
370
+ }
371
+
372
+ @function hsv-grayscale($hsv-color, $return-rgb-color: false) {
373
+ @return hsv-adjust-saturation($hsv-color, 0 - hsv-saturation($hsv-color), $return-rgb-color);
374
+ }
375
+
376
+ @function hsv-complement($hsv-color, $return-rgb-color: false) {
377
+ @if type-of($hsv-color) == 'color' {
378
+ $hsv-color: color-to-hsv($hsv-color);
379
+ }
380
+ $deg: hsv-hue($hsv-color) + 180deg;
381
+ @if ($deg >= 360deg) {
382
+ $deg: $deg - 360deg;
383
+ }
384
+ $result: hsva($deg, hsv-saturation($hsv-color), hsv-value($hsv-color), hsv-alpha($hsv-color));
385
+ @if $return-rgb-color == true {
386
+ @return hsv-to-color($result);
387
+ }
388
+ @return $result;
389
+ }
@@ -0,0 +1,449 @@
1
+ <!--
2
+ //
3
+ //
4
+ // Grid
5
+ -->
6
+
7
+ <p>
8
+ Jede Seite liegt in einem Container `.container-*`. Er sorgt dafür, dass
9
+ die Seite nur eine bestimmte Breite einnimmt und mittig platziert wird.
10
+ Er ist außderdem für das "responsive"-Verhalten der Seite verantwortlich.
11
+ </p>
12
+
13
+ <div class="tc-note">
14
+ **Anmerkung:**
15
+ Zu Demonstrationszwecken "brechen" wir hier mit dem üblichen Layout.
16
+ </div>
17
+ </div>
18
+ </div>
19
+
20
+
21
+
22
+ <div class="main">
23
+ <div class="container-fixed">
24
+
25
+ <h2>Anwendung</h2>
26
+
27
+ <p>
28
+ Um ein einfaches Spaltenlayout zu erstellen, legt man lediglich eine `.row`
29
+ und die entsprechenden Anzahl von `.col-*-*` Spalten in den Container.
30
+ </p>
31
+
32
+ {% highlight html %}
33
+ <div class="container-fixed">
34
+ <div class="row">
35
+ <div class="col-l-4">Navigation</div>
36
+ <div class="col-l-8">Inhalt</div>
37
+ </div>
38
+ </div>
39
+ {% endhighlight %}
40
+
41
+ </div>
42
+ </div>
43
+
44
+ <div class="container-fixed demo-grid grid-debug">
45
+ <div class="row">
46
+ <div class="col-l-4 demo-col">
47
+ <span class="text-nowrap">Navigation</span>
48
+ </div>
49
+ <div class="col-l-8 demo-col">
50
+ <span class="text-nowrap">Inhalt</span>
51
+ </div>
52
+ </div>
53
+ </div>
54
+
55
+
56
+ <div class="container-fixed">
57
+ <p>
58
+ In der Summe sollten sich pro Reihe zwölf Spalen befinden, da es sich
59
+ beim hier vorliegenden Grid standardmäßig um ein 12-spaltiges System handelt.
60
+ </p>
61
+ </div>
62
+
63
+ <div class="container-fixed demo-grid grid-debug">
64
+ <div class="row"><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div><div class="col-l-1 demo-col"><span class="text-nowrap">col-l-1</span></div></div>
65
+ <div class="row"><div class="col-l-2 demo-col"><span class="text-nowrap">col-l-2</span></div><div class="col-l-2 demo-col"><span class="text-nowrap">col-l-2</span></div><div class="col-l-2 demo-col"><span class="text-nowrap">col-l-2</span></div><div class="col-l-2 demo-col"><span class="text-nowrap">col-l-2</span></div><div class="col-l-2 demo-col"><span class="text-nowrap">col-l-2</span></div><div class="col-l-2 demo-col"><span class="text-nowrap">col-l-2</span></div></div>
66
+ <div class="row"><div class="col-l-3 demo-col"><span class="text-nowrap">col-l-3</span></div><div class="col-l-3 demo-col"><span class="text-nowrap">col-l-3</span></div><div class="col-l-3 demo-col"><span class="text-nowrap">col-l-3</span></div><div class="col-l-3 demo-col"><span class="text-nowrap">col-l-3</span></div></div>
67
+ <div class="row"><div class="col-l-4 demo-col"><span class="text-nowrap">col-l-4</span></div><div class="col-l-4 demo-col"><span class="text-nowrap">col-l-4</span></div><div class="col-l-4 demo-col"><span class="text-nowrap">col-l-4</span></div></div>
68
+ <div class="row"><div class="col-l-6 demo-col"><span class="text-nowrap">col-l-6</span></div><div class="col-l-6 demo-col"><span class="text-nowrap">col-l-6</span></div></div>
69
+ <div class="row"><div class="col-l-3 demo-col"><span class="text-nowrap">col-l-3</span></div><div class="col-l-6 demo-col"><span class="text-nowrap">col-l-6</span></div><div class="col-l-3 demo-col"><span class="text-nowrap">col-l-3</span></div></div>
70
+ <div class="row"><div class="col-l-4 demo-col"><span class="text-nowrap">col-l-4</span></div><div class="col-l-8 demo-col"><span class="text-nowrap">col-l-8</span></div></div>
71
+ <div class="row"><div class="col-l-12 demo-col"><span class="text-nowrap">col-l-12</span></div></div>
72
+ </div>
73
+
74
+ <div class="main">
75
+ <div class="container-fixed">
76
+
77
+ <h2>Container</h2>
78
+
79
+ <p>
80
+ Es gibt zwei Arten von Containern, welche das Verhalten des Grids bestimmern.
81
+ Die Klasse `container-fixed` ist für Layouts mit festgelegter Breite gedacht;
82
+ `container-liquid` für jene, die sich von Haus automatisch in die komplette
83
+ Breite einpassen.
84
+ </p>
85
+
86
+ <p>
87
+ Beide Container verhalten sich responsive und passen sich an die Breite
88
+ des Tabs/Fensters an.
89
+ </p>
90
+
91
+ <p>
92
+ Ein Container mit `container-fixed` erhält seine Breite in einem
93
+ bestimmten Bereich und schaltet stufenweise auf die nächst verfügbare
94
+ Größe um. Ist nicht genug Freiraum verfügbar (mittlere Größe oder
95
+ weniger), verhält er sich ebenfalls wie `container-liquid`.
96
+ </p>
97
+
98
+ <p>
99
+ <strong>Liquid Grid Beispiel</strong>
100
+ </p>
101
+
102
+ </div>
103
+ </div>
104
+
105
+
106
+ <div class="container-liquid demo-grid grid-debug">
107
+ <div class="row">
108
+ <div class="demo-col col-l-3">A</div>
109
+ <div class="demo-col col-l-3">B</div>
110
+ <div class="demo-col col-l-3">C</div>
111
+ <div class="demo-col col-l-3">D</div>
112
+ </div>
113
+ </div>
114
+
115
+ <div class="main">
116
+ <div class="container-fixed">
117
+ <br>
118
+ <p>
119
+ <strong>Beispiel für ein fixiertes Grid</strong>
120
+ <span class="col-l-hide col-xl-hide small text-warning">Die aktuelle
121
+ Fenstergröße ist kleiner <strong>L.</strong> Der Kontainer verhält sich
122
+ wie die liquid Variante.</span>
123
+ </p>
124
+ </div>
125
+ </div>
126
+
127
+
128
+ <div class="container-fixed demo-grid grid-debug">
129
+ <div class="row">
130
+ <div class="demo-col col-l-3">A</div>
131
+ <div class="demo-col col-l-3">B</div>
132
+ <div class="demo-col col-l-3">C</div>
133
+ <div class="demo-col col-l-3">D</div>
134
+ </div>
135
+ </div>
136
+
137
+
138
+ <div class="main">
139
+ <div class="container-fixed">
140
+
141
+ <h3>Ausrichtung</h3>
142
+
143
+ <p>
144
+ Mit den Klassen `left, center, right` lassen sich fixierte Grids an der
145
+ entsprechenden Kante der Seite ausrichten. Ist keine Klasse explizit
146
+ aufgeführt, wird der Container zentriert.
147
+ </p>
148
+
149
+ <p>
150
+ <strong>Beispiele für die Ausrichtung</strong>
151
+ <span class="col-l-hide col-xl-hide small text-negative">Die aktuelle
152
+ Fenstergröße ist kleiner <strong>L.</strong> Der Kontainer verhält sich
153
+ wie die liquid Variante.</span>
154
+ </p>
155
+
156
+ </div>
157
+ </div>
158
+
159
+ <div class="container-liquid left">
160
+ <div class="row">
161
+ <div class="col-l-12">left</div>
162
+ </div>
163
+ </div>
164
+ <div class="container-fixed demo-grid grid-debug left">
165
+ <div class="row">
166
+ <div class="demo-col col-l-3">A</div>
167
+ <div class="demo-col col-l-3">B</div>
168
+ <div class="demo-col col-l-3">C</div>
169
+ <div class="demo-col col-l-3">D</div>
170
+ </div>
171
+ </div>
172
+ <br>
173
+ <div class="container-liquid left">
174
+ <div class="row">
175
+ <div class="col-l-12">right</div>
176
+ </div>
177
+ </div>
178
+ <div class="container-fixed demo-grid grid-debug right">
179
+ <div class="row">
180
+ <div class="demo-col col-l-3">A</div>
181
+ <div class="demo-col col-l-3">B</div>
182
+ <div class="demo-col col-l-3">C</div>
183
+ <div class="demo-col col-l-3">D</div>
184
+ </div>
185
+ </div>
186
+
187
+
188
+ <div class="main">
189
+ <div class="container-fixed">
190
+
191
+ <h2>Bildschirmgrößen</h2>
192
+
193
+ <p>
194
+ Das Grid-System unterstützt bis zu fünf verschiedene Größen, welche von
195
+ Mobilegeräten über Tablets, Desktop bis zu TV-Geräten sämtliche
196
+ Gerätetypen abdecken sollen. Die Größen werden unterteilt in `XS, S, M,
197
+ L` und `XL`. Die Ausgangsgröße ist `L` und wird durch den zweiten Teil
198
+ im `col-*-*`-Klassennamen angegeben. Durch die Verwendung von weiteren
199
+ Klassen wie `col-s-6` or `col-xl-12` erhält man bei sich ändernder
200
+ Fensterbreite ein dynamischeres Layout.
201
+ </p>
202
+
203
+ <p>
204
+ <strong>Tipp:</strong> Dies ist wohl der beste Moment um auf ein
205
+ mitgeliefertes Werkzeug hinzuweisen, das <a href="#debugThingy">`DebugThingy!`</a>,
206
+ welches sich in der rechten oberen Ecke befindet. Durch Drücken des
207
+ <i class="icon icon-lock" aria-hidden="true"></i>-Knopfs, wird die momentane Breite des
208
+ vorliegenden Seiteninhalts festgesetzt/gelöst. Dadurch sind die
209
+ Beispiele leichter nachvollziehbar, da sie nicht mehr vertikal
210
+ verrutschen, wenn die Fenstergröße geändert wird.
211
+ </p>
212
+
213
+ <p>
214
+ <strong>Beispiel:</strong>
215
+ </p>
216
+
217
+ </div>
218
+ </div>
219
+
220
+ <div class="container-liquid demo-grid grid-debug">
221
+ <div class="row">
222
+ <div class="demo-col col-l-3 col-m-6 col-s-12">
223
+ A:
224
+ <span class="col-s-emphased">S-12</span> //
225
+ <span class="col-m-emphased">M-6</span> //
226
+ <span class="col-l-emphased">L-3</span>
227
+ <strong style="color:red">
228
+ <span class="visible-xs">!XS</span>
229
+ <span class="visible-xl">!XL</span>
230
+ </strong>
231
+ </div>
232
+ <div class="demo-col col-l-9 col-m-6 col-s-12">
233
+ B:
234
+ <span class="col-s-emphased">S-12</span> //
235
+ <span class="col-m-emphased">M-6</span> //
236
+ <span class="col-l-emphased">L-9</span>
237
+ <strong style="color:red;">
238
+ <span class="visible-xs">!XS</span>
239
+ <span class="visible-xl">!XL</span>
240
+ </strong>
241
+ </div>
242
+ </div>
243
+ </div>
244
+
245
+ <div class="main">
246
+ <div class="container-fixed">
247
+
248
+ <p>
249
+ Wie bereits erwähnt ist die Standartgröße des Grids Größe `L`. Mit `XL`
250
+ überschreibt man die Werte für größere Layouts; mit den Größen `M, S, XS`
251
+ überschreibt man sukzessive die Spaltenbreiten für schmalere Layouts.
252
+ Eine Spaltenbreite die durch `S` angegeben wird, gilt also auch für
253
+ `XS`-Layouts, sofern für diese nicht auch eine Klasse angegeben wurde.
254
+ </p>
255
+
256
+ <p>
257
+ <strong>Hinweis:</strong> Es ist eforderlich, dass der Viewport im head
258
+ des Dokuments korrekt angegeben wird.
259
+ </p>
260
+
261
+ {% highlight html %}<meta name="viewport" content="width=device-width, initial-scale=1.0">{% endhighlight %}
262
+
263
+ <p>
264
+ <strong>Beispiel:</strong>
265
+ </p>
266
+
267
+ </div>
268
+ </div>
269
+
270
+ <div class="container-fixed demo-grid grid-debug">
271
+ <div class="row">
272
+ <div class="demo-col col-xs-12 col-s-6 col-l-8 text-ellipsis">
273
+ <span class="text-nowrap col-xs-emphased">col-xs-12</span>
274
+ <span class="text-nowrap col-s-emphased">col-s-6</span>
275
+ <span class="text-nowrap col-m-emphased col-l-emphased col-xl-emphased">col-l-8</span>
276
+ </div>
277
+ <div class="demo-col col-s-6 col-l-4">
278
+ <span class="text-nowrap col-xs-emphased col-s-emphased">col-s-6</span>
279
+ <span class="text-nowrap col-m-emphased col-l-emphased col-xl-emphased">col-l-4</span>
280
+ </div>
281
+ </div>
282
+ <div class="row">
283
+ <div class="demo-col col-xs-6 col-l-4">
284
+ <span class="text-nowrap col-xs-emphased">col-xs-6</span>
285
+ <span class="text-nowrap col-s-emphased col-m-emphased col-l-emphased col-xl-emphased">col-l-4</span>
286
+ </div>
287
+ <div class="demo-col col-xs-6 col-l-4">
288
+ <span class="text-nowrap col-xs-emphased">col-xs-6</span>
289
+ <span class="text-nowrap col-s-emphased col-m-emphased col-l-emphased col-xl-emphased">col-l-4</span>
290
+ </div>
291
+ <div class="demo-col col-xs-6 col-l-4">
292
+ <span class="text-nowrap col-xs-emphased">col-xs-6</span>
293
+ <span class="text-nowrap col-s-emphased col-m-emphased col-l-emphased col-xl-emphased">col-l-4</span>
294
+ </div>
295
+ </div>
296
+ <div class="row">
297
+ <div class="demo-col col-l-6">
298
+ <span class="text-nowrap text-strong">col-l-6</span>
299
+ </div>
300
+ <div class="demo-col col-l-6">
301
+ <span class="text-nowrap text-strong">col-l-6</span>
302
+ </div>
303
+ </div>
304
+ </div>
305
+
306
+ <div class="main">
307
+ <div class="container-fixed">
308
+
309
+ <h2>Verschachtelungen</h2>
310
+
311
+ <p>
312
+ Verschachteln ist problemlos möglich. Sobald eine `.row` innerhalb einer
313
+ Spalte eingefügt wird, ist diese der Ausgangspunkt für ein neues
314
+ 12-Spalten-System.
315
+ </p>
316
+
317
+ {% highlight html %}
318
+ <div class="container-fixed">
319
+ <div class="row">
320
+ <div class="col-l-4">Navigation</div>
321
+ <div class="col-l-8">
322
+ <div class="row">
323
+ <div class="col-l-6">Teil 1</div>
324
+ <div class="col-l-6">Teil 2</div>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ </div>
329
+ {% endhighlight %}
330
+
331
+ <p>
332
+ <strong>Beispiel:</strong>
333
+ </p>
334
+
335
+ </div>
336
+ </div>
337
+
338
+ <div class="container-fixed demo-grid grid-debug">
339
+ <div class="row">
340
+ <div class="demo-col col-l-4 col-m-12">
341
+ <span class="text-nowrap col-l-emphased col-xl-emphased">col-l-4</span>
342
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">col-m-12</span>
343
+ </div>
344
+ <div class="demo-col col-l-8 col-m-12">
345
+ <span class="text-nowrap col-l-emphased col-xl-emphased">col-l-8</span>
346
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">col-m-12</span>
347
+ <div class="row">
348
+ <div class="demo-col col-l-6 col-m-12">
349
+ <span class="text-nowrap col-l-emphased col-xl-emphased">col-l-6</span>
350
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">col-m-12</span>
351
+ </div>
352
+ <div class="demo-col col-l-6 col-m-12">
353
+ <span class="text-nowrap col-l-emphased col-xl-emphased">col-l-6</span>
354
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">col-m-12</span>
355
+ </div>
356
+ </div>
357
+ </div>
358
+ </div>
359
+ </div>
360
+
361
+
362
+ <div class="container-fixed">
363
+
364
+ <h2>Utility Klassen</h2>
365
+
366
+ <div class="tc-note tc-note-warning">
367
+ **Achtung:**
368
+ Die Utility Klassen sind mit Version 2.1 veraltet. Bitte verwenden Sie die
369
+ Hilfsklassen `.hidden-*` und `.visible-*`. Siehe [Helfer](helper.html)
370
+ </div>
371
+
372
+
373
+ Es ist möglich Inhalt abhängig von der aktuellen Layoutgröße zu zeigen
374
+ oder zu verstecken und damit die Seite gerätefreundlicher zu machen.
375
+ Genau wie bei den Spalten gibt es hierfür Klassen, welche nach Größe
376
+ benannt sind, bspw. `col-s-hide` oder `col-xl-show`. Im Gegensatz zu den
377
+ Klassen für Spalten jedoch, gelten diese ausdrücklich nur für die
378
+ jeweilige Größe und nicht die darauf folgenden.
379
+
380
+ **Beispiel:**
381
+
382
+ </div>
383
+
384
+ <div class="container-fixed demo-grid grid-debug">
385
+ <div class="row">
386
+ <div class="col-l-12">
387
+
388
+ <p>
389
+ Aktuell sehen sie das Grid in Größe
390
+ <strong><span class="visible-xs">XS</span><span class="visible-s">S</span><span class="visible-m">M</span><span class="visible-l">L</span><span class="visible-xl">XL</span></strong>. Verändern Sie die Breite des Fensters um die Größen
391
+ (<span class="hidden-xs text-emphased">XS, </span><span class="hidden-s text-emphased">S, </span><span class="hidden-m text-emphased">M<span class="hidden-l hidden-xl">,</span> </span><span class="hidden-l"><span class="visible-xl">oder</span> <span class="text-emphased">L</span> </span><span class="hidden-xl">oder <span class="text-emphased">XL</span></span>) zu sehen.
392
+ </p>
393
+
394
+ </div>
395
+ </div>
396
+ </div>
397
+
398
+
399
+ <div class="main">
400
+ <div class="container-fixed">
401
+
402
+ <h2>Versatz und resets</h2>
403
+
404
+ <p>
405
+ Spalten mit verschiedenen Abständen bei unterschiedlichen breakpoints.
406
+ </p>
407
+
408
+ <p>
409
+ <strong>Beispiel:</strong>
410
+ </p>
411
+
412
+ </div>
413
+ </div>
414
+
415
+ <div class="container-fixed demo-grid grid-debug">
416
+ <div class="row">
417
+ <div class="demo-col col-l-6 col-m-5">
418
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">col-m-5</span>
419
+ <span class="text-nowrap col-l-emphased col-xl-emphased">col-l-6</span>
420
+ </div>
421
+ <div class="demo-col col-l-6 col-m-5 offset-m-2">
422
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">col-m-5</span>
423
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">offset-m-2</span>
424
+ <span class="text-nowrap col-l-emphased col-xl-emphased">col-l-6</span>
425
+ </div>
426
+ </div>
427
+ <div class="row">
428
+ <div class="demo-col col-m-6 col-l-5 col-xl-6">
429
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">col-m-6</span>
430
+ <span class="text-nowrap col-l-emphased">col-l-5</span>
431
+ <span class="text-nowrap col-xl-emphased">col-xl-6</span>
432
+ </div>
433
+ <div class="demo-col col-m-6 offset-m-0 col-l-5 offset-l-2 col-xl-6 offset-xl-0">
434
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">col-m-6</span>
435
+ <span class="text-nowrap col-xs-emphased col-s-emphased col-m-emphased">offset-m-0</span>
436
+ <span class="text-nowrap col-l-emphased">col-l-5</span>
437
+ <span class="text-nowrap col-l-emphased">offset-l-2</span>
438
+ <span class="text-nowrap col-xl-emphased">col-xl-6</span>
439
+ <span class="text-nowrap col-xl-emphased">offset-xl-0</span>
440
+ </div>
441
+ </div>
442
+ </div>
443
+
444
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
445
+ <script type="text/javascript" src="js/components.min.js"></script>
446
+ <script>//$(document).debugThingy()</script>
447
+
448
+ <div class="main">
449
+ <div class="container-fixed">