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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +52 -0
- data/_includes/footer.html +16 -0
- data/_includes/header.html +55 -0
- data/_layouts/article.html +46 -0
- data/_layouts/chapter.html +39 -0
- data/_layouts/default.html +75 -0
- data/_sass/.csslintrc +20 -0
- data/_sass/.scss-lint.yml +212 -0
- data/_sass/_accessibility-seo.md +233 -0
- data/_sass/_accessibility.md +17 -0
- data/_sass/_accessibility.scss +30 -0
- data/_sass/_animation.scss +17 -0
- data/_sass/_badges.md +39 -0
- data/_sass/_badges.scss +50 -0
- data/_sass/_brandbar.scss +34 -0
- data/_sass/_brandcolor.md +92 -0
- data/_sass/_brandcolor.scss +24 -0
- data/_sass/_brandheader.scss +35 -0
- data/_sass/_brandnav.scss +224 -0
- data/_sass/_breadcrumb.md +39 -0
- data/_sass/_breadcrumb.scss +44 -0
- data/_sass/_button.md +218 -0
- data/_sass/_button.scss +146 -0
- data/_sass/_cancel.scss +13 -0
- data/_sass/_checkbox.md +55 -0
- data/_sass/_checkbox.scss +124 -0
- data/_sass/_close.scss +16 -0
- data/_sass/_collapse.scss +30 -0
- data/_sass/_content-list.md +375 -0
- data/_sass/_content-list.scss +49 -0
- data/_sass/_doc-msp-theme.md +106 -0
- data/_sass/_doc-msp-theme.scss +59 -0
- data/_sass/_expandable.md +141 -0
- data/_sass/_expandable.scss +21 -0
- data/_sass/_font-faces.md +83 -0
- data/_sass/_font-faces.scss +15 -0
- data/_sass/_footer.md +392 -0
- data/_sass/_footer.scss +147 -0
- data/_sass/_forms.md +139 -0
- data/_sass/_forms.scss +199 -0
- data/_sass/_functions.md +251 -0
- data/_sass/_functions.scss +389 -0
- data/_sass/_grid.md +449 -0
- data/_sass/_grid.scss +314 -0
- data/_sass/_header.md +1042 -0
- data/_sass/_helper.md +212 -0
- data/_sass/_helper.scss +150 -0
- data/_sass/_icons.md +153 -0
- data/_sass/_icons.scss +154 -0
- data/_sass/_images.md +21 -0
- data/_sass/_images.scss +54 -0
- data/_sass/_jsbutton.md +171 -0
- data/_sass/_media.scss +48 -0
- data/_sass/_mixins.scss +430 -0
- data/_sass/_modal.md +329 -0
- data/_sass/_modal.scss +117 -0
- data/_sass/_nav.scss +40 -0
- data/_sass/_navbar.scss +250 -0
- data/_sass/_normalize.md +7 -0
- data/_sass/_normalize.scss +423 -0
- data/_sass/_notifications.md +211 -0
- data/_sass/_notifications.scss +110 -0
- data/_sass/_pager.md +67 -0
- data/_sass/_pager.scss +138 -0
- data/_sass/_pagination.md +49 -0
- data/_sass/_pagination.scss +95 -0
- data/_sass/_qtip.md +74 -0
- data/_sass/_qtip.scss +175 -0
- data/_sass/_radio.md +53 -0
- data/_sass/_radio.scss +122 -0
- data/_sass/_scaffolding.scss +61 -0
- data/_sass/_search.md +0 -0
- data/_sass/_search.scss +90 -0
- data/_sass/_select.md +55 -0
- data/_sass/_select.scss +146 -0
- data/_sass/_tables.md +405 -0
- data/_sass/_tables.scss +131 -0
- data/_sass/_totop.md +126 -0
- data/_sass/_totop.scss +33 -0
- data/_sass/_type.md +817 -0
- data/_sass/_type.scss +450 -0
- data/_sass/_variables.scss +480 -0
- data/_sass/themes/bevel-theme/theme.scss +13 -0
- data/_sass/themes/dark-theme/_badges.scss +37 -0
- data/_sass/themes/dark-theme/_brandnav.scss +30 -0
- data/_sass/themes/dark-theme/_breadcrumb.scss +17 -0
- data/_sass/themes/dark-theme/_button.scss +86 -0
- data/_sass/themes/dark-theme/_checkbox.scss +9 -0
- data/_sass/themes/dark-theme/_content-list.scss +40 -0
- data/_sass/themes/dark-theme/_forms.scss +107 -0
- data/_sass/themes/dark-theme/_images.scss +30 -0
- data/_sass/themes/dark-theme/_mixins.scss +67 -0
- data/_sass/themes/dark-theme/_modal.scss +9 -0
- data/_sass/themes/dark-theme/_navbar.scss +15 -0
- data/_sass/themes/dark-theme/_notifications.scss +94 -0
- data/_sass/themes/dark-theme/_pager.scss +46 -0
- data/_sass/themes/dark-theme/_pagination.scss +81 -0
- data/_sass/themes/dark-theme/_qtip.scss +8 -0
- data/_sass/themes/dark-theme/_radio.scss +9 -0
- data/_sass/themes/dark-theme/_scaffolding.scss +29 -0
- data/_sass/themes/dark-theme/_select.scss +93 -0
- data/_sass/themes/dark-theme/_tables.scss +57 -0
- data/_sass/themes/dark-theme/_type.scss +70 -0
- data/_sass/themes/dark-theme/_variables.scss +171 -0
- data/_sass/themes/dark-theme/theme.scss +36 -0
- data/_sass/themes/debug-theme/theme.scss +415 -0
- metadata +179 -0
data/_sass/_icons.scss
ADDED
@@ -0,0 +1,154 @@
|
|
1
|
+
//
|
2
|
+
// Icons
|
3
|
+
// ----------------------------------------
|
4
|
+
|
5
|
+
@font-face {
|
6
|
+
font-family: 'Telekom-Icon';
|
7
|
+
font-style: normal;
|
8
|
+
font-weight: 400;
|
9
|
+
src: url('../font/teleicon-outline.eot');
|
10
|
+
src: url('../font/teleicon-outline.eot?#iefix') format('embedded-opentype'),
|
11
|
+
url('../font/teleicon-outline.woff') format('woff'),
|
12
|
+
url('../font/teleicon-outline.ttf') format('truetype'),
|
13
|
+
url('../font/teleicon-outline.svg#teleicon-outline') format('svg');
|
14
|
+
}
|
15
|
+
|
16
|
+
@font-face {
|
17
|
+
font-family: 'Telekom-Icon';
|
18
|
+
font-style: normal;
|
19
|
+
font-weight: 700;
|
20
|
+
src: url('../font/teleicon-solid.eot');
|
21
|
+
src: url('../font/teleicon-solid.eot?#iefix') format('embedded-opentype'),
|
22
|
+
url('../font/teleicon-solid.woff') format('woff'),
|
23
|
+
url('../font/teleicon-solid.ttf') format('truetype'),
|
24
|
+
url('../font/teleicon-solid.svg#teleicon-solid') format('svg');
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
.icon {
|
29
|
+
position: relative;
|
30
|
+
bottom: 1px;
|
31
|
+
vertical-align: middle;
|
32
|
+
display: inline-block;
|
33
|
+
font-family: 'Telekom-Icon';
|
34
|
+
font-style: normal;
|
35
|
+
font-weight: normal;
|
36
|
+
line-height: 1;
|
37
|
+
text-transform: none !important; // if icon is used in uppercase context
|
38
|
+
-webkit-font-smoothing: antialiased; // reduce font weight
|
39
|
+
-moz-osx-font-smoothing: grayscale; // reduce font weight
|
40
|
+
}
|
41
|
+
|
42
|
+
.icon-solid {
|
43
|
+
font-weight: 700;
|
44
|
+
}
|
45
|
+
|
46
|
+
.icon-large {
|
47
|
+
font-size: 36px;
|
48
|
+
}
|
49
|
+
|
50
|
+
.icon-warning:before { content: '\21'; }
|
51
|
+
.icon-navigation-up:before { content: '\22'; }
|
52
|
+
.icon-navigation-down:before { content: '\24'; }
|
53
|
+
.icon-navigation-left:before { content: '\25'; }
|
54
|
+
.icon-export:before { content: '\26'; }
|
55
|
+
.icon-import:before { content: '\28'; }
|
56
|
+
.icon-scroll-left:before { content: '\29'; }
|
57
|
+
.icon-favorites:before { content: '\2a'; }
|
58
|
+
.icon-add:before { content: '\2b'; }
|
59
|
+
.icon-decrease:before { content: '\2d'; }
|
60
|
+
.icon-record:before { content: '\3b'; }
|
61
|
+
.icon-scroll-right:before { content: '\2f'; }
|
62
|
+
.icon-tile-view:before { content: '\30'; }
|
63
|
+
.icon-skip-to-start:before { content: '\31'; }
|
64
|
+
.icon-previous:before { content: '\32'; }
|
65
|
+
.icon-rewind:before { content: '\33'; }
|
66
|
+
.icon-play:before { content: '\34'; }
|
67
|
+
.icon-pause:before { content: '\35'; }
|
68
|
+
.icon-stop:before { content: '\36'; }
|
69
|
+
.icon-fast-forward:before { content: '\37'; }
|
70
|
+
.icon-next:before { content: '\38'; }
|
71
|
+
.icon-skip-to-end:before { content: '\39'; }
|
72
|
+
.icon-more:before { content: '\3a'; }
|
73
|
+
.icon-help_2:before { content: '\3c'; }
|
74
|
+
.icon-list-view:before { content: '\3d'; }
|
75
|
+
.icon-information_2:before { content: '\3e'; }
|
76
|
+
.icon-help:before { content: '\3f'; }
|
77
|
+
.icon-calendar:before { content: '\41'; }
|
78
|
+
.icon-shopping-cart:before { content: '\42'; }
|
79
|
+
.icon-copy:before { content: '\43'; }
|
80
|
+
.icon-move-to-trash:before { content: '\44'; }
|
81
|
+
.icon-tablet-pc:before { content: '\45'; }
|
82
|
+
.icon-folder:before { content: '\46'; }
|
83
|
+
.icon-filter:before { content: '\47'; }
|
84
|
+
.icon-login:before { content: '\48'; }
|
85
|
+
.icon-comment:before { content: '\49'; }
|
86
|
+
.icon-start-call:before { content: '\4a'; }
|
87
|
+
.icon-speaker-off:before { content: '\4b'; }
|
88
|
+
.icon-lock:before { content: '\4c'; }
|
89
|
+
.icon-microphone-socket:before { content: '\4d'; }
|
90
|
+
.icon-ringtone-off:before { content: '\4e'; }
|
91
|
+
.icon-clock:before { content: '\4f'; }
|
92
|
+
.icon-add-to-watchlist:before { content: '\50'; }
|
93
|
+
.icon-computer:before { content: '\51'; }
|
94
|
+
.icon-iptv:before { content: '\52'; }
|
95
|
+
.icon-settings:before { content: '\53'; }
|
96
|
+
.icon-digits:before { content: '\54'; }
|
97
|
+
.icon-my-profile:before { content: '\55'; }
|
98
|
+
.icon-confirm:before { content: '\56'; }
|
99
|
+
.icon-smartphone:before { content: '\57'; }
|
100
|
+
.icon-cancel:before { content: '\58'; }
|
101
|
+
.icon-cloud:before { content: '\59'; }
|
102
|
+
.icon-zoom-out:before { content: '\5a'; }
|
103
|
+
.icon-attachment:before { content: '\61'; }
|
104
|
+
.icon-bookmark:before { content: '\62'; }
|
105
|
+
.icon-context-menu:before { content: '\63'; }
|
106
|
+
.icon-download:before { content: '\64'; }
|
107
|
+
.icon-edit:before { content: '\65'; }
|
108
|
+
.icon-file:before { content: '\66'; }
|
109
|
+
.icon-reload:before { content: '\67'; }
|
110
|
+
.icon-home:before { content: '\68'; }
|
111
|
+
.icon-information:before { content: '\69'; }
|
112
|
+
.icon-end-call:before { content: '\6a'; }
|
113
|
+
.icon-speaker-on:before { content: '\6b'; }
|
114
|
+
.icon-link:before { content: '\6c'; }
|
115
|
+
.icon-message:before { content: '\6d'; }
|
116
|
+
.icon-ringtone-on:before { content: '\6e'; }
|
117
|
+
.icon-loading-indicator:before { content: '\6f'; }
|
118
|
+
.icon-print:before { content: '\70'; }
|
119
|
+
.icon-search:before { content: '\71'; }
|
120
|
+
.icon-reply:before { content: '\72'; }
|
121
|
+
.icon-synchronize:before { content: '\73'; }
|
122
|
+
.icon-telekom-1T1:before { content: '\74'; }
|
123
|
+
.icon-upload:before { content: '\75'; }
|
124
|
+
.icon-success:before { content: '\76'; }
|
125
|
+
.icon-forward:before { content: '\77'; }
|
126
|
+
.icon-error:before { content: '\78'; }
|
127
|
+
.icon-share:before { content: '\79'; }
|
128
|
+
.icon-zoom-in:before { content: '\7a'; }
|
129
|
+
.icon-navigation-right:before { content: '\a7'; }
|
130
|
+
.icon-maximize:before { content: '\dc'; }
|
131
|
+
.icon-cover-view:before { content: '\df'; }
|
132
|
+
.icon-warning_2:before { content: '\e4'; }
|
133
|
+
.icon-minimize:before { content: '\fc'; }
|
134
|
+
|
135
|
+
.icon-frame {
|
136
|
+
width: $icon-frame-width;
|
137
|
+
height: $icon-frame-height;
|
138
|
+
text-align: center;
|
139
|
+
white-space: nowrap;
|
140
|
+
padding: 0;
|
141
|
+
|
142
|
+
&:before {
|
143
|
+
content: '';
|
144
|
+
display: inline-block;
|
145
|
+
height: 100%;
|
146
|
+
vertical-align: middle;
|
147
|
+
}
|
148
|
+
|
149
|
+
> .icon {
|
150
|
+
display: inline-block;
|
151
|
+
height: auto;
|
152
|
+
vertical-align: middle;
|
153
|
+
}
|
154
|
+
}
|
data/_sass/_images.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
<!--
|
2
|
+
//
|
3
|
+
//
|
4
|
+
// Bilder
|
5
|
+
-->
|
6
|
+
|
7
|
+
Bilder werden in der Regel mit dem `<img>`-Tag ausgezeichnet.
|
8
|
+
Sie kommen ausschließlich mit Rahmen vor. Die CSS-Klasse
|
9
|
+
`.img-vignette-square` sorgt für die Umrandung:
|
10
|
+
|
11
|
+
<div class="tc-example">
|
12
|
+
<div class="img-vignette-square">
|
13
|
+
<img src="assets/play.jpg" width="252" height="168" alt="Beispielbild">
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
```html
|
18
|
+
<div class="img-vignette-square">
|
19
|
+
<img src="{url}" width="252" height="168" alt="Beispielbild">
|
20
|
+
</div>
|
21
|
+
```
|
data/_sass/_images.scss
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
//
|
2
|
+
// Default Image Classes
|
3
|
+
// ----------------------------------------
|
4
|
+
|
5
|
+
.img-round {
|
6
|
+
border-radius: 50%;
|
7
|
+
vertical-align: bottom;
|
8
|
+
}
|
9
|
+
|
10
|
+
.img-thumbnail {
|
11
|
+
max-width: 100%;
|
12
|
+
max-height: 100%;
|
13
|
+
height: auto;
|
14
|
+
padding: 2px;
|
15
|
+
border: 1px solid $image-tn-border-color;
|
16
|
+
background: #fff;
|
17
|
+
}
|
18
|
+
|
19
|
+
.img-frame {
|
20
|
+
width: $image-frame-width;
|
21
|
+
height: $image-frame-height;
|
22
|
+
text-align: center;
|
23
|
+
white-space: nowrap;
|
24
|
+
padding: 0;
|
25
|
+
|
26
|
+
&:before {
|
27
|
+
content: '';
|
28
|
+
display: inline-block;
|
29
|
+
height: 100%;
|
30
|
+
vertical-align: middle;
|
31
|
+
}
|
32
|
+
|
33
|
+
> img {
|
34
|
+
display: inline-block;
|
35
|
+
height: auto;
|
36
|
+
vertical-align: middle;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.img-frame-small {
|
41
|
+
width: $image-frame-width-small;
|
42
|
+
height: $image-frame-height-small;
|
43
|
+
}
|
44
|
+
|
45
|
+
.img-vignette-square {
|
46
|
+
display: inline-block;
|
47
|
+
|
48
|
+
> img {
|
49
|
+
outline: 1px solid rgba(0, 0, 0, .3);
|
50
|
+
outline-offset: -1px;
|
51
|
+
padding: .5px;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
data/_sass/_jsbutton.md
ADDED
@@ -0,0 +1,171 @@
|
|
1
|
+
<!--
|
2
|
+
//
|
3
|
+
//
|
4
|
+
// Buitton
|
5
|
+
-->
|
6
|
+
|
7
|
+
In Anwendungen für die ein veränderbarer Buttonstate, ein ToogleButton
|
8
|
+
oder eine Button-Sectioned mit *radio* oder *check* Funktion benötigt
|
9
|
+
werden, steht das jQuery-Plugin: `button()` zur Verfügung.
|
10
|
+
|
11
|
+
### Dynamisch veränderbare Buttenstates
|
12
|
+
Für alle Buttonelemente ist es möglich die States *active*, *disable*,
|
13
|
+
*enable*, *default* zusetzen so wie die States Active und Disabled mit
|
14
|
+
*toggleactive* und *toggledisable* zu Togglen.
|
15
|
+
|
16
|
+
<div class="tc-note">
|
17
|
+
**Anmerkung:**
|
18
|
+
Der State *enable* ermöglicht es Aktive Button die Disabled wurde wieder in den aktiven Zustand zu setzen.
|
19
|
+
Der State *default* dient als Reset.
|
20
|
+
</div>
|
21
|
+
|
22
|
+
|
23
|
+
Die Einbindung für States ist wie folgt:
|
24
|
+
|
25
|
+
<div class="tc-example">
|
26
|
+
<button id="button-b" class="btn btn-default" >Active</button>
|
27
|
+
<button id="button-c" class="btn btn-default" >Disabled</button>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
```html
|
31
|
+
<button id="button-b" class="btn btn-default" >Active</button>
|
32
|
+
<button id="button-c" class="btn btn-default" >Disabled</button>
|
33
|
+
```
|
34
|
+
|
35
|
+
```js
|
36
|
+
$(document).ready(function() {
|
37
|
+
$('#button-a').button('default')
|
38
|
+
$('#button-b').button('active')
|
39
|
+
$('#button-c').button('disable')
|
40
|
+
$('#button-d').button('enable')
|
41
|
+
})
|
42
|
+
```
|
43
|
+
|
44
|
+
Die Einbindung für Toogle das Toggeln von States ist wie folgt:
|
45
|
+
|
46
|
+
<div class="tc-example">
|
47
|
+
<button id="button-e" class="btn btn-default">Toggle Active</button>
|
48
|
+
<button id="button-f" class="btn btn-default">Toggle Disable</button>
|
49
|
+
<button id="button-g" class="btn btn-default">Button</button>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
```html
|
53
|
+
<button id="button-e" class="btn btn-default">Toggle Active</button>
|
54
|
+
<button id="button-f" class="btn btn-default">Toggle Disable</button>
|
55
|
+
<button id="button-g" class="btn btn-default">Button</button>
|
56
|
+
```
|
57
|
+
|
58
|
+
```js
|
59
|
+
$(document).ready(function() {
|
60
|
+
$('#button-e').click(function (e) {
|
61
|
+
$('#button-g').button("toggleactive");
|
62
|
+
})
|
63
|
+
$('#button-f').click(function (e) {
|
64
|
+
$('#button-g').button("toggledisable");
|
65
|
+
})
|
66
|
+
})
|
67
|
+
```
|
68
|
+
|
69
|
+
### Toogle Button
|
70
|
+
Durch das Verwenden des Data-Attributes *data-toggle="button"* erhällt
|
71
|
+
ein Button automatisch ein Toggle-Verhalten.
|
72
|
+
Zusätzlich kann durch das Data-Attribut *data-callback="$meineFunktion"*
|
73
|
+
eine Callbackfunktion bestimmt werden die bei dem event on *press*
|
74
|
+
aufgerufen wird. Übergeben werden hierbei das *aufrufende Element* und der *state*
|
75
|
+
|
76
|
+
Die Einbindung für einen Togglebutton ist wie folgt:
|
77
|
+
|
78
|
+
<div class="tc-example">
|
79
|
+
<button class="btn btn-default" data-toggle="button" >Togglebutton</button>
|
80
|
+
<button id="button-h" class="btn btn-default" data-toggle="button" data-callback="myFunction">Togglebutton mit Callback</button>
|
81
|
+
<p id="callbackOutput" class="text-xsmall"></p>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
```html
|
85
|
+
<button class="btn btn-default" data-toggle="button" >Togglebutton</button>
|
86
|
+
<button id="button-h" class="btn btn-default" data-toggle="button" data-callback="myFunction" >Togglebutton</button>
|
87
|
+
```
|
88
|
+
|
89
|
+
```js
|
90
|
+
$(document).ready(function() {
|
91
|
+
myFunction = function (element, event) {
|
92
|
+
|
93
|
+
}
|
94
|
+
}
|
95
|
+
```
|
96
|
+
|
97
|
+
### Radio Button-Sectioned
|
98
|
+
Durch das Verwenden des Data-Attribut *data-toggle="buttonsectioned-radio"* erhält eine ButtonSectioned automatisch ein Radio-Button verhalten.
|
99
|
+
Zusätzlich kann durch das Data-Attribut *data-callback="$meineFunktion"* eine Callback-Funktion eine Callback-Funktion aufgerufen werden.
|
100
|
+
Übergeben werden hierbei das *aufrufende Element* und der *state*.
|
101
|
+
|
102
|
+
|
103
|
+
<div class="tc-note tc-note-info">
|
104
|
+
**Tipp:**
|
105
|
+
Durch das Verwenden des Data-Attribut *data-callback-states="all"*
|
106
|
+
in dem umschließenden Element können die States aller Elemente
|
107
|
+
die sich bei der Interaktion verändern ausgegeben werden.
|
108
|
+
</div>
|
109
|
+
|
110
|
+
Die Einbindung für einen Buttongroup mit Radio Verhalten ist wie folgt:
|
111
|
+
|
112
|
+
<div class="tc-example">
|
113
|
+
<div class="btn-sectioned" data-toggle="buttonsectioned-radio">
|
114
|
+
<button class="btn btn-default" data-callback="myFunctionA">Button 1</button>
|
115
|
+
<button class="btn btn-default" data-callback="myFunctionA">Button 2</button>
|
116
|
+
<button class="btn btn-default" data-callback="myFunctionA" disabled>Button 3</button>
|
117
|
+
<button class="btn btn-default" data-callback="myFunctionA">Button 4</button>
|
118
|
+
</div>
|
119
|
+
<p id="callbackOutput-a" class="text-xsmall"></p>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
```html
|
123
|
+
<div class="btn-sectioned" data-toggle="buttonsectioned-radio">
|
124
|
+
<button class="btn btn-default" data-callback="myFunctionA">Button 1</button>
|
125
|
+
<button class="btn btn-default" data-callback="myFunctionA">Button 2</button>
|
126
|
+
<button class="btn btn-default" data-callback="myFunctionA" disabled>Button 3</button>
|
127
|
+
<button class="btn btn-default" data-callback="myFunctionA">Button 4</button>
|
128
|
+
</div>
|
129
|
+
```
|
130
|
+
|
131
|
+
```js
|
132
|
+
$(document).ready(function() {
|
133
|
+
var text = ''
|
134
|
+
myFunctionA = function (element, event) {
|
135
|
+
text += 'callback from ' + element.text() + ' '+ event + '<br/>'
|
136
|
+
$('#callbackOutput-a').html(text)
|
137
|
+
}
|
138
|
+
}
|
139
|
+
```
|
140
|
+
|
141
|
+
<br/>
|
142
|
+
Die Einbindung für einen Button-Sectioned mit Checkbox Verhalten ist wie folgt:
|
143
|
+
|
144
|
+
<div class="tc-example">
|
145
|
+
<div class="btn-sectioned" data-toggle="buttonsectioned" data-callback-states="all">
|
146
|
+
<button class="btn btn-default" data-callback="myFunctionB">Button 1</button>
|
147
|
+
<button class="btn btn-default" data-callback="myFunctionB">Button 2</button>
|
148
|
+
<button class="btn btn-default" data-callback="myFunctionB" disabled>Button 3</button>
|
149
|
+
<button class="btn btn-default" data-callback="myFunctionB">Button 4</button>
|
150
|
+
</div>
|
151
|
+
<p id="callbackOutput-b" class="text-xsmall"></p>
|
152
|
+
</div>
|
153
|
+
|
154
|
+
```html
|
155
|
+
<div class="btn-sectioned" data-toggle="buttonsectioned" data-callback-states="all">
|
156
|
+
<button class="btn btn-default" data-callback="myFunctionB">Button 1</button>
|
157
|
+
<button class="btn btn-default" data-callback="myFunctionB">Button 2</button>
|
158
|
+
<button class="btn btn-default" data-callback="myFunctionB" disabled>Button 3</button>
|
159
|
+
<button class="btn btn-default" data-callback="myFunctionB">Button 4</button>
|
160
|
+
</div>
|
161
|
+
```
|
162
|
+
|
163
|
+
```js
|
164
|
+
$(document).ready(function() {
|
165
|
+
var textB = ''
|
166
|
+
myFunctionB = function (element, event) {
|
167
|
+
textB += 'callback from ' + element.text() + ' '+ event + '<br/>'
|
168
|
+
$('#callbackOutput-b').html(textB)
|
169
|
+
}
|
170
|
+
}
|
171
|
+
```
|
data/_sass/_media.scss
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
//
|
2
|
+
// Media
|
3
|
+
// ----------------------------------------
|
4
|
+
|
5
|
+
.media {
|
6
|
+
padding: $media-padding;
|
7
|
+
}
|
8
|
+
|
9
|
+
.media-body,
|
10
|
+
.media-left,
|
11
|
+
.media-right {
|
12
|
+
display: table-cell;
|
13
|
+
vertical-align: middle;
|
14
|
+
height: $media-min-height; // = min-height for table-cell
|
15
|
+
}
|
16
|
+
|
17
|
+
.media-left {
|
18
|
+
padding-right: $media-column-padding;
|
19
|
+
}
|
20
|
+
|
21
|
+
.media-right {
|
22
|
+
padding-left: $media-column-padding;
|
23
|
+
}
|
24
|
+
|
25
|
+
.media-body {
|
26
|
+
width: 100%;
|
27
|
+
padding: $media-body-padding;
|
28
|
+
}
|
29
|
+
|
30
|
+
.media-top {
|
31
|
+
vertical-align: top;
|
32
|
+
}
|
33
|
+
|
34
|
+
.media-bottom {
|
35
|
+
vertical-align: bottom;
|
36
|
+
}
|
37
|
+
|
38
|
+
.media-heading {
|
39
|
+
margin: 0;
|
40
|
+
padding: 0;
|
41
|
+
}
|
42
|
+
|
43
|
+
.media-hint {
|
44
|
+
margin: 0;
|
45
|
+
padding: 0;
|
46
|
+
color: $font-color-light;
|
47
|
+
font-size: $media-hint-font-size;
|
48
|
+
}
|