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,211 @@
1
+ <!--
2
+ //
3
+ //
4
+ // Benachrichtigungen
5
+ -->
6
+
7
+ In Anwenungen sind Rückmeldungen an einen Benutzer unerlässlich.
8
+ Zur Erstellung solcher Benachrichtigungen steht die CSS-Klasse `.notification`
9
+ zur Verfügung. Die Nachricht sollte dabei in den Container
10
+ `.notification-content` geschrieben werden. Überschriften haben
11
+ die CSS-Klasse `.notification-heading`:
12
+
13
+ <div class="tc-example">
14
+ <div class="notification">
15
+ <div class="notification-content">
16
+ <div class="notification-heading">Regular</div>
17
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
18
+ </div>
19
+ </div>
20
+ </div>
21
+
22
+ ```html
23
+ <div class="notification">
24
+ <div class="notification-content">
25
+ <div class="notification-heading">Regular</div>
26
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
27
+ </div>
28
+ </div>
29
+ ```
30
+
31
+ ## Funktionale Dekorationen
32
+
33
+ Um die Bedeutungen von Benachrichtigungen zu unterstützen
34
+ stehen verschiedene Farb-Varianten zur Verfügung:
35
+
36
+ <div class="tc-example">
37
+ <div class="notification notification-positive">
38
+ <div class="notification-content">
39
+ <div class="notification-heading">Positive</div>
40
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
41
+ </div>
42
+ </div>
43
+ <div class="notification notification-warning">
44
+ <div class="notification-content">
45
+ <div class="notification-heading">Warning</div>
46
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
47
+ </div>
48
+ </div>
49
+ <div class="notification notification-negative">
50
+ <div class="notification-content">
51
+ <div class="notification-heading">Negative</div>
52
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
53
+ </div>
54
+ </div>
55
+ </div>
56
+
57
+ ```html
58
+ <div class="notification notification-positive">...</div>
59
+ <div class="notification notification-warning">...</div>
60
+ <div class="notification notification-negative">...</div>
61
+ ```
62
+
63
+ ## Overlay Dekoration
64
+
65
+ Werden Benachrichtigungen über anderem Inhalt angezeigt sollte dies auch
66
+ visuell vermittelt werden. Hierfür ist die CSS-Klasse `.notification-overlay`
67
+ zuständig:
68
+
69
+ <div class="tc-example">
70
+ <div class="notification notification-overlay">
71
+ <div class="notification-content">
72
+ <div class="notification-heading">Overlay</div>
73
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
74
+ </div>
75
+ </div>
76
+ </div>
77
+
78
+ ```html
79
+ <div class="notification">
80
+ <div class="notification-content notification-overlay">
81
+ <div class="notification-heading">Overlay</div>
82
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
83
+ </div>
84
+ </div>
85
+ ```
86
+
87
+ ## Zusätzlicher Inhalt
88
+
89
+ Um den Inhalt einer Benachrichtigungen nochmals zu verdeutlichen kann
90
+ zusätzlicher Inhalt in Form eines Icons oder eines Bildes in die
91
+ Benachrichtigung integriert werden. Der zusätzliche Inhalt kann mit der
92
+ CSS-Klasse `.notification-left` vor und mit der CSS-Klasse `.notification-right`
93
+ hinter dem Inhalt platziert werden:
94
+
95
+ <div class="tc-example">
96
+ <div class="notification">
97
+ <div class="notification-left">
98
+ <div class="icon-frame"><i class="icon icon-comment icon-large"></i></div>
99
+ </div>
100
+ <div class="notification-content">
101
+ <div class="notification-heading">Icon</div>
102
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
103
+ </div>
104
+ </div>
105
+ <div class="notification">
106
+ <div class="notification-left">
107
+ <div class="img-frame"><img class="img-thumbnail" src="assets/play.jpg" alt="spielende Kinder"/></div>
108
+ </div>
109
+ <div class="notification-content">
110
+ <div class="notification-heading">Image</div>
111
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
112
+ </div>
113
+ </div>
114
+ </div>
115
+
116
+ ```html
117
+ <!-- Icon -->
118
+ <div class="notification">
119
+ <div class="notification-left">
120
+ <div class="icon-frame"><i class="icon icon-comment icon-large"></i></div>
121
+ </div>
122
+ <div class="notification-content">
123
+ ...
124
+ </div>
125
+ </div>
126
+
127
+ <!-- Bild -->
128
+ <div class="notification">
129
+ <div class="notification-left">
130
+ <div class="img-frame"><img class="img-thumbnail" src="assets/play.jpg" alt="spielende Kinder"/></div>
131
+ </div>
132
+ <div class="notification-content">
133
+ ...
134
+ </div>
135
+ </div>
136
+ ```
137
+
138
+ <div class="tc-note">
139
+ **Anmerkung:**
140
+ Besondere Beachtung sollte dabei den CSS-Klassen `.icon-frame` und
141
+ `.img-frame` geschenkt werden in denen jeweils kein Zeilenumbruch
142
+ und Leerzeichen enthalten sein sollten
143
+ </div>
144
+
145
+ ## Schließbare Benachrichtigungen
146
+
147
+ Die Schließen-Funktion benötigt das JavaScript `notification`-Plugin.
148
+
149
+ <div class="tc-example">
150
+ <div class="notification notification-dismissible fade in">
151
+ <button type="button" class="close" data-dismiss="notification">
152
+ <span aria-hidden="true">x</span>
153
+ <span class="sr-only">Schließen</span>
154
+ </button>
155
+ <div class="notification-content">
156
+ <div class="notification-heading">Schließen</div>
157
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
158
+ </div>
159
+ </div>
160
+ </div>
161
+
162
+ ### Verwendung
163
+
164
+ Zunächst wird natürlich ein Schließen-Button benötigt. Hierfür sollte
165
+ das Mikro-Modul `.close` verwendet werden.
166
+ Über das Attribut `data-dismiss="notification"` wird die Schließen-Funktionalität
167
+ aktiviert:
168
+
169
+ ```html
170
+ <div class="notification notification-dismissible">
171
+ <button type="button" class="close" data-dismiss="notification">
172
+ <span aria-hidden="true">x</span>
173
+ <span class="sr-only">Schließen</span>
174
+ </button>
175
+ <div class="notification-content">
176
+ <div class="notification-heading">Schließen</div>
177
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed dia.
178
+ </div>
179
+ </div>
180
+ ```
181
+
182
+ Um das Schließen zu Animieren müssen die CSS-Klassen `.fade` und `.in` bereits
183
+ auf die Benachrichtigung angewendet sein.
184
+
185
+ **Methoden**
186
+
187
+ Schließen einer Benachrichtigung
188
+ ```js
189
+ $().notification('close')
190
+ ```
191
+ Die Benachrichtigung wird komplett aus dem DOM entfernt.
192
+
193
+ <table class="table table-small">
194
+ <caption>Events</caption>
195
+ <thead>
196
+ <tr>
197
+ <th>Typ</th>
198
+ <th>Beschreibung</th>
199
+ </tr>
200
+ </thead>
201
+ <tbody>
202
+ <tr>
203
+ <td>close.tc.modal</td>
204
+ <td>Dieses Event tritt noch vor dem eigentlichen Schließen des Modal-Dialogs auf.</td>
205
+ </tr>
206
+ <tr>
207
+ <td>closed.tc.modal</td>
208
+ <td>Dieses Event tritt auf, wenn der Modal-Dialog fertig geschlossen wurde.</td>
209
+ </tr>
210
+ </tbody>
211
+ </table>
@@ -0,0 +1,110 @@
1
+ //
2
+ // Notifications
3
+ // ----------------------------------------
4
+
5
+ .notification {
6
+ background-color: fallback-rgba($notification-bgr-color, .05, $background-color-regular);
7
+ // background-color: rgba($notification-bgr-color, .05); since alpha is to low
8
+ border: 1px solid $notification-border-color;
9
+ border-radius: $notification-border-radius;
10
+ @include clearfix();
11
+ display: block;
12
+ margin-bottom: $notification-margin-bottom;
13
+ padding: $notification-padding;
14
+ text-align: left;
15
+ font-size: $notification-font-size;
16
+
17
+ &:empty {
18
+ display: none;
19
+ }
20
+
21
+ }
22
+
23
+ .notification-dismissible {
24
+ padding-right: building-units(4);
25
+
26
+ > .close {
27
+ margin-right: building-units(-3);
28
+ margin-top: -7px;
29
+ margin-left: building-units(1.5);
30
+
31
+ &.focus,
32
+ &:focus {
33
+ color: $notification-close-button-focus;
34
+ outline: 0;
35
+ }
36
+
37
+ &.hover,
38
+ &:hover {
39
+ color: $notification-close-button-hover;
40
+ }
41
+
42
+ &.active,
43
+ &:active {
44
+ color: $notification-close-button-active;
45
+ }
46
+
47
+ }
48
+ }
49
+
50
+ .notification-content,
51
+ .notification-left,
52
+ .notification-right {
53
+ overflow: hidden;
54
+ zoom: 1;
55
+ }
56
+
57
+ .notification-content > p {
58
+ padding: 0;
59
+ margin: 0;
60
+ }
61
+
62
+ .notification-left {
63
+ float: left;
64
+ margin-right: building-units(1);
65
+ }
66
+
67
+ .notification-right {
68
+ float: right;
69
+ margin-left: building-units(1);
70
+ }
71
+
72
+ .notification-heading {
73
+ font-size: $notification-heading-font-size;
74
+ font-weight: 400;
75
+ padding: 0;
76
+ margin: 0;
77
+ }
78
+
79
+ .notification-overlay {
80
+ box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
81
+ }
82
+
83
+ .notification-positive {
84
+ @include notification-variant($color-positive, $color-positive);
85
+ }
86
+
87
+ .notification-warning {
88
+ @include notification-variant($color-warning, $color-warning);
89
+ }
90
+
91
+ .notification-negative {
92
+ @include notification-variant($color-negative, $color-negative);
93
+ }
94
+
95
+ .notification-badge {
96
+ float: right;
97
+ margin-top: building-units(-.5) + 1;
98
+ margin-right: building-units(-1);
99
+ background-color: $color-gray-dark;
100
+ color: #fff;
101
+ }
102
+
103
+ .notification .icon-frame {
104
+ padding: 7px 0 0;
105
+
106
+ .icon-large {
107
+ font-size: 42px;
108
+ }
109
+
110
+ }
@@ -0,0 +1,67 @@
1
+ <!--
2
+ //
3
+ //
4
+ // Pager
5
+ -->
6
+
7
+ Eine komfortable Navigation zu angrenzenden Seiten, lässt sich mit Pager-Buttons
8
+ umsetzen. Die `.pager`-Klasse lässt sich auf Buttons wie Links, gleichermaßen
9
+ anwenden, um den jeweiligen Umständen semantisch gerecht werden zu können:
10
+
11
+
12
+ <div class="tc-example">
13
+ <button class="pager">Pager</button>
14
+ <button class="pager pager-icon" title="next"><i class="icon icon-navigation-right" aria-hidden="true"></i></button>
15
+ <button class="pager"><i class="icon icon-navigation-left" aria-hidden="true"></i>Left</button>
16
+ <button class="pager">Right<i class="icon icon-navigation-right right" aria-hidden="true"></i></button>
17
+ <button class="pager pager-clean">Right<i class="icon icon-navigation-right right" aria-hidden="true"></i></button>
18
+ </div>
19
+
20
+ ```html
21
+ <button class="pager">Pager</button>
22
+ <button class="pager pager-icon" title="next"><i class="icon icon-navigation-right" aria-hidden="true"></i></button>
23
+ <button class="pager"><i class="icon icon-navigation-left" aria-hidden="true"></i>Icon Left</button>
24
+ <button class="pager">Icon Right<i class="icon icon-navigation-right right" aria-hidden="true"></i></button>
25
+ <button class="pager pager-clean">Right<i class="icon icon-navigation-right right" aria-hidden="true"></i></button>
26
+ ```
27
+
28
+ ### Size
29
+
30
+ <div class="tc-example">
31
+ <button class="pager pager-small">Small</button>
32
+ <button class="pager">Regular</button>
33
+ <button class="pager pager-large">Large</button>
34
+ </div>
35
+
36
+ ```html
37
+ <button class="pager pager-small">Small</button>
38
+ <button class="pager">Regular</button>
39
+ <button class="pager pager-large">Large</button>
40
+ ```
41
+
42
+ ### Width
43
+
44
+ <div class="tc-example">
45
+ <button class="pager pager-block">Grid Based</button>
46
+ </div>
47
+
48
+ ```html
49
+ <button class="pager pager-block">Grid Based</button>
50
+ ```
51
+
52
+
53
+ ### Aligned & Clean
54
+
55
+ <div class="tc-example">
56
+ <div class="clearfix">
57
+ <button class="pager pager-clean clean left"><i class="icon icon-navigation-left" aria-hidden="true"></i>Previous</button>
58
+ <button class="pager pager-clean right">Next<i class="icon icon-navigation-right right" aria-hidden="true"></i></button>
59
+ </div>
60
+ </div>
61
+
62
+ ```html
63
+ <div class="clearfix">
64
+ <button class="pager pager-clean left"><i class="icon icon-navigation-left" aria-hidden="true"></i>Previous</button>
65
+ <button class="pager pager-clean right">Next<i class="icon icon-navigation-right right" aria-hidden="true"></i></button>
66
+ </div>
67
+ ```
@@ -0,0 +1,138 @@
1
+ //
2
+ // Pager
3
+ // ----------------------------------------
4
+
5
+ .pager {
6
+ border-radius: 3em;
7
+ @include transition(all $transition-time-out $transition-function);
8
+ background: $pager-background-color;
9
+ background-image: none;
10
+ border: 1px solid $pager-border-color;
11
+ color: $pager-text-color;
12
+ cursor: pointer;
13
+ display: inline-block;
14
+ font-weight: normal;
15
+ font-size: $font-size-regular; // prevent font-size inherit in other modules / scopes
16
+ line-height: $line-height-regular; // prevent line-height inherit in other modules / scopes
17
+ padding: $button-padding;
18
+ text-align: center;
19
+ vertical-align: bottom;
20
+ white-space: nowrap;
21
+ text-decoration: none;
22
+
23
+ &.right {
24
+ float: right;
25
+ }
26
+
27
+ &.left {
28
+ float: left;
29
+ }
30
+
31
+ > .icon {
32
+ padding-right: $button-icon-indent;
33
+ margin-left: -$button-icon-indent / 2;
34
+
35
+ &.right {
36
+ padding-left: $button-icon-indent;
37
+ padding-right: 0;
38
+ margin-left: 0;
39
+ margin-right: -$button-icon-indent / 2;
40
+ }
41
+ }
42
+
43
+ &.focus,
44
+ &:focus {
45
+ text-decoration: none;
46
+ @include tab-focus();
47
+ }
48
+
49
+ &.hover,
50
+ &:hover {
51
+ text-decoration: none;
52
+ background-color: hsv-darken($pager-background-color, 7%, true);
53
+ border-color: hsv-darken($pager-border-color, 7%, true);
54
+ @include transition($transition-time-in, '-duration');
55
+ }
56
+
57
+ &.active,
58
+ &:active {
59
+ text-decoration: none;
60
+ background-color: hsv-darken($pager-background-color, 15%, true);
61
+ border-color: hsv-darken($pager-border-color, 15%, true);
62
+ }
63
+
64
+ &.disabled,
65
+ &[disabled] {
66
+ cursor: not-allowed;
67
+ background: $pager-disabled-bgr-color;
68
+ border-color: $pager-disabled-border-color;
69
+ color: $pager-disabled-text-color;
70
+ }
71
+ }
72
+
73
+ .pager-small {
74
+ font-size: $pager-small-font-size;
75
+ padding: $pager-small-padding;
76
+ }
77
+
78
+ .pager-large {
79
+ font-size: $pager-large-font-size;
80
+ padding: $pager-large-padding;
81
+ }
82
+
83
+ .pager-icon {
84
+ padding: $pager-padding-minimal;
85
+ padding-left: 0;
86
+ padding-right: 0;
87
+ width: 36px;
88
+
89
+ &.pager-small {
90
+ width: 32px;
91
+ }
92
+
93
+ &.pager-large {
94
+ width: 48px;
95
+ height: 48px;
96
+
97
+ .icon {
98
+ font-size: 36px;
99
+ padding: 1px 0 0 2px;
100
+ }
101
+
102
+ }
103
+
104
+ .icon {
105
+ padding: 0;
106
+ margin-left: 0;
107
+ margin-right: 0;
108
+
109
+ }
110
+ }
111
+
112
+ .pager + .pager {
113
+ margin-left: building-units(2);
114
+ }
115
+
116
+ .pager-minimal {
117
+ padding: $pager-padding-minimal;
118
+ }
119
+
120
+ .pager-block {
121
+ width: 100%;
122
+ }
123
+
124
+ .pager-clean {
125
+ border-color: transparent;
126
+
127
+ &.hover,
128
+ &:hover {
129
+ text-decoration: none;
130
+ border-color: transparent;
131
+ }
132
+
133
+ &.active,
134
+ &:active {
135
+ text-decoration: none;
136
+ border-color: transparent;
137
+ }
138
+ }