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/_forms.md
ADDED
@@ -0,0 +1,139 @@
|
|
1
|
+
<!--
|
2
|
+
//
|
3
|
+
//
|
4
|
+
// Formulare
|
5
|
+
-->
|
6
|
+
|
7
|
+
Der HTML-Standard bietet verschiedenste Eingabefelder. Aufgrund dieser Vielfalt können Elemente nur sinnvoll gestaltet werden, wenn sie individuell behandelt werden. Daher werden im folgenden Abschnitt die Eingabefelder der Komponenten im Detail betrachtet.
|
8
|
+
|
9
|
+
## Texteingaben
|
10
|
+
|
11
|
+
### Einfache Eingabefelder
|
12
|
+
|
13
|
+
Die einfachste Form des Eingabefelds ist das `<input>`-Feld. HTML5 sieht hierfür verschiedenste Typen vor. Im einfachsten Fall handelt es sich dabei um den Typ `<input type="text">`. Durch die CSS-Klasse `.form-input` kann das gewünschte Aussehen und Verhalten angewendet werden.
|
14
|
+
|
15
|
+
Da Eingabefelder immer in Kombination mit einer Beschriftung erscheinen sollten, werden sie mit einem `<div>`-Tag mit der CSS-Klasse `.form-input-set`
|
16
|
+
ummantelt. Es schafft die Anordnung von Eingabefeld und Beschriftung:
|
17
|
+
|
18
|
+
<div class="tc-example">
|
19
|
+
<div class="form-input-set">
|
20
|
+
<label for="text1">Standard Eingabefeld</label>
|
21
|
+
<input type="text" class="form-input" name="text1" id="text1" placeholder="Placeholder">
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
```html
|
26
|
+
<div class="form-input-set">
|
27
|
+
<label for="text1">Standard Eingabefeld</label>
|
28
|
+
<input type="text" class="form-input" name="text1" id="text1" placeholder="...">
|
29
|
+
</div>
|
30
|
+
```
|
31
|
+
|
32
|
+
<div class="tc-note tc-note-info">
|
33
|
+
**Tipp:**
|
34
|
+
Das Attribut <code>placehoder="Placeholder"</code> sorgt für das Erscheinen eines Platzhaltertextes, wenn das Element leer ist. So kann der Benutzer gezeigt werden, was dort einzutragen ist.
|
35
|
+
Hinweis: Das Placeholder-Attribut ist im Internet-Explorer kleiner
|
36
|
+
Version 9 nicht verfügbar.
|
37
|
+
</div>
|
38
|
+
|
39
|
+
### Mehrzeilige Eingabefelder
|
40
|
+
|
41
|
+
Für lange Texte ist in HTML der `<textarea>`-Tag vorgesehen.
|
42
|
+
Da die Eingabe dem einfachen Eingabefeld sehr ähnelt, kann ebenfalls die CSS-Klasse `.form-input` angewendet werden:
|
43
|
+
|
44
|
+
<div class="tc-example">
|
45
|
+
<div class="form-input-set">
|
46
|
+
<label for="text2">Lange Texteingabe</label>
|
47
|
+
<textarea class="form-input" name="text2" id="text2">Lorem ipsum...
|
48
|
+
</textarea>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
```html
|
53
|
+
<div class="form-input-set">
|
54
|
+
<label for="text2">Lange Texteingabe</label>
|
55
|
+
<textarea class="form-input" name="text2" id="text2">Lorem ipsum...</textarea>
|
56
|
+
</div>
|
57
|
+
```
|
58
|
+
|
59
|
+
### Funktionale Dekorationen
|
60
|
+
|
61
|
+
Um dem Benutzer ein angemessenes Eingabe-Feedback zu bieten, werden verschiedene Dekorationen für Formularfelder angeboten. Die CSS-Klassen `.decoration-positive`,
|
62
|
+
`.decoration-warning` und `.decoration-negative` werden dabei auf das umgebene `<div>`-Tag angewendet um auch das `<label>` beeinflussen zu können:
|
63
|
+
|
64
|
+
<div class="tc-example">
|
65
|
+
<div class="form-input-set decoration-positive">
|
66
|
+
<label for="text3">Erfolgreich Eingabefeld</label>
|
67
|
+
<input type="text" class="form-input" name="text3" id="text3" placeholder="Placeholder">
|
68
|
+
</div>
|
69
|
+
<div class="form-input-set decoration-warning">
|
70
|
+
<label for="text4">Warnung Eingabefeld</label>
|
71
|
+
<input type="text" class="form-input" name="text4" id="text4" placeholder="Placeholder">
|
72
|
+
</div>
|
73
|
+
<div class="form-input-set decoration-negative">
|
74
|
+
<label for="text5">Erfolglos Eingabefeld</label>
|
75
|
+
<input type="text" class="form-input" name="text5" id="text5" placeholder="Placeholder">
|
76
|
+
</div>
|
77
|
+
<div class="form-input-set">
|
78
|
+
<label for="text6">Inaktives Eingabefeld</label>
|
79
|
+
<input type="text" class="form-input" name="text6" id="text6" placeholder="Placeholder" disabled="disabled">
|
80
|
+
</div>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
```html
|
84
|
+
<!-- Erfolgreich Eingabefeld -->
|
85
|
+
<div class="form-input-set decoration-positive">...</div>
|
86
|
+
|
87
|
+
<!-- Warnung Eingabefeld -->
|
88
|
+
<div class="form-input-set decoration-warning">...</div>
|
89
|
+
|
90
|
+
<!-- Erfolglos Eingabefeld -->
|
91
|
+
<div class="form-input-set decoration-negative">...</div>
|
92
|
+
|
93
|
+
<!-- Inaktiv Eingabefeld -->
|
94
|
+
<input type="text" class="form-input" name="text6" id="text6" disabled="disabled">
|
95
|
+
```
|
96
|
+
|
97
|
+
<div class="tc-note">
|
98
|
+
**Anmerkung Barrierefreiheit:**
|
99
|
+
Die eingesetzen Farben haben im Zusammenhang mit Eingabefeldern meist die
|
100
|
+
Funktion der visuellen Rückmeldung über eine getätigte Eingabe. Diese wird
|
101
|
+
von Unterstützungstechnologien in der Regel nicht erkannt. Deshlab sollte zur
|
102
|
+
visuellen Rückmeldung auch unbedingt eine textuelle Rückmeldung wie:
|
103
|
+
"Dies ist ein Pflichtfeld, bitte geben Sie ihren Vornamen ein" oder ähnliches
|
104
|
+
erfolgen.
|
105
|
+
</div>
|
106
|
+
|
107
|
+
### Fieldsets
|
108
|
+
|
109
|
+
Um Eingabefelder logisch zusammenfassen ist das `<fieldset>`-Tag vorgesehen.
|
110
|
+
Der `<legend>`-Tag sorgt dabei für die nötige Beschriftung der Gruppe:
|
111
|
+
|
112
|
+
<div class="tc-example">
|
113
|
+
<fieldset class="form-fieldset">
|
114
|
+
<legend>Benutzerdaten</legend>
|
115
|
+
<div class="form-input-set">
|
116
|
+
<label for="text7">Login</label>
|
117
|
+
<input type="text" class="form-input" name="text7" id="text7" placeholder="Login">
|
118
|
+
</div>
|
119
|
+
<div class="form-input-set">
|
120
|
+
<label for="text8">Password</label>
|
121
|
+
<input type="password" class="form-input" name="text8" id="text8" placeholder="Password">
|
122
|
+
</div>
|
123
|
+
</fieldset>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
```html
|
127
|
+
<fieldset class="form-fieldset">
|
128
|
+
<legend>Benutzerdaten</legend>
|
129
|
+
...
|
130
|
+
</fieldset>
|
131
|
+
```
|
132
|
+
|
133
|
+
<div class="tc-note">
|
134
|
+
**Anmerkung:**
|
135
|
+
Das <code>fieldset</code> hat im Bezug auf die Größenberechnung je nach Browser unterschiedliche Verhalten.
|
136
|
+
Ziel ist es meist, dass das Formular unabhängig von der umliegenden Seite in jedem Fall komplett und nicht
|
137
|
+
bschnitten angezeigt wird. Das hat aber auch zur Folge, dass die CSS-Klasse `.text-ellipsed` innerhalb
|
138
|
+
des <code>fieldset</code> nicht greift.
|
139
|
+
</div>
|
data/_sass/_forms.scss
ADDED
@@ -0,0 +1,199 @@
|
|
1
|
+
//
|
2
|
+
// Default Form Elements
|
3
|
+
// ----------------------------------------
|
4
|
+
|
5
|
+
label {
|
6
|
+
display: inline-block;
|
7
|
+
}
|
8
|
+
|
9
|
+
.form-input {
|
10
|
+
background-color: $input-bgr-color;
|
11
|
+
border: 1px solid $input-border-color;
|
12
|
+
border-radius: $input-border-radius;
|
13
|
+
color: $input-font-color;
|
14
|
+
display: block;
|
15
|
+
font-size: $font-size-regular; // prevent font-size inherit in other modules / scopes
|
16
|
+
line-height: $line-height-regular; // set line height since it was resetted by normalize
|
17
|
+
padding: $input-padding;
|
18
|
+
width: 100%;
|
19
|
+
@include placeholder($input-font-color-placeholder);
|
20
|
+
-webkit-appearance: none;
|
21
|
+
@include transition(all $transition-time-out $transition-function);
|
22
|
+
|
23
|
+
&.hover,
|
24
|
+
&:hover { // on input fields the cursor indicates focus, so we need no hover on focuesed states
|
25
|
+
background-color: hsv-darken($input-bgr-color, 7%, true);
|
26
|
+
@include transition($transition-time-in, '-duration');
|
27
|
+
}
|
28
|
+
|
29
|
+
@include form-control-focus($input-bgr-color);
|
30
|
+
|
31
|
+
&.active,
|
32
|
+
&:active {
|
33
|
+
background-color: hsv-darken($input-bgr-color, 15%, true);
|
34
|
+
}
|
35
|
+
|
36
|
+
&.disabled,
|
37
|
+
&.readonly,
|
38
|
+
&[disabled],
|
39
|
+
&[readonly] {
|
40
|
+
background-color: $input-disabled-bgr-color;
|
41
|
+
border-color: $input-disabled-border-color;
|
42
|
+
color: $input-disabled-font-color;
|
43
|
+
cursor: not-allowed;
|
44
|
+
resize: none;
|
45
|
+
@include placeholder($input-disabled-font-color-placeholder);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// firefox fix to prevent textareas < one line
|
50
|
+
textarea.form-input { min-height: $input-min-height; }
|
51
|
+
|
52
|
+
.decoration-positive { @include input-decoration-variant($color-positive, $color-positive, $background-color-regular); }
|
53
|
+
.decoration-warning { @include input-decoration-variant($color-warning, $color-warning, $background-color-regular); }
|
54
|
+
.decoration-negative { @include input-decoration-variant($color-negative, $color-negative, $background-color-regular); }
|
55
|
+
|
56
|
+
.form-input-set {
|
57
|
+
display: block;
|
58
|
+
margin-bottom: building-units(1);
|
59
|
+
|
60
|
+
> label {
|
61
|
+
display: block;
|
62
|
+
font-size: $font-size-small;
|
63
|
+
@include margin-top-bu(1, $font-size-small);
|
64
|
+
@include margin-bottom-bu(.5, $font-size-small);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
|
69
|
+
// default checkbox/radio style
|
70
|
+
.form-radio,
|
71
|
+
.form-checkbox {
|
72
|
+
width: 24px;
|
73
|
+
height: 24px;
|
74
|
+
}
|
75
|
+
|
76
|
+
.form-radio-set,
|
77
|
+
.form-checkbox-set {
|
78
|
+
display: block;
|
79
|
+
margin-bottom: 12px;
|
80
|
+
|
81
|
+
label {
|
82
|
+
display: block;
|
83
|
+
padding-left: 36px; // reset label to left align on small screens = width + margin of radio/checkbox
|
84
|
+
cursor: pointer;
|
85
|
+
line-height: 24px;
|
86
|
+
}
|
87
|
+
|
88
|
+
&.disabled label {
|
89
|
+
cursor: not-allowed;
|
90
|
+
color: $input-disabled-font-color;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
.form-radio-set .form-radio,
|
95
|
+
.form-checkbox-set .form-checkbox {
|
96
|
+
vertical-align: middle;
|
97
|
+
float: left;
|
98
|
+
margin-left: -36px; // reset label to left align on small screens = width + margin of radio/checkbox
|
99
|
+
margin-right: 12px;
|
100
|
+
}
|
101
|
+
|
102
|
+
.form-fieldset {
|
103
|
+
border: 0;
|
104
|
+
padding: 0 12px;
|
105
|
+
margin: 0;
|
106
|
+
min-width: 0;
|
107
|
+
|
108
|
+
> legend {
|
109
|
+
color: $color-gray;
|
110
|
+
display: block;
|
111
|
+
width: 100%;
|
112
|
+
box-sizing: content-box;
|
113
|
+
padding: 0 12px;
|
114
|
+
margin: 0 -12px;
|
115
|
+
padding-bottom: baseline-bu(1, $font-size-regular, $line-height-regular);
|
116
|
+
border-bottom: 1px solid #b2b2b2;
|
117
|
+
}
|
118
|
+
|
119
|
+
> legend + * {
|
120
|
+
-webkit-margin-top-collapse: separate;
|
121
|
+
margin-top: 12px;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
// fieldset width fix for ff
|
126
|
+
// @-moz-document url-prefix() {
|
127
|
+
// .form-fieldset {
|
128
|
+
// display: table-cell;
|
129
|
+
// }
|
130
|
+
// }
|
131
|
+
|
132
|
+
.form-select {
|
133
|
+
background-color: #ededed;
|
134
|
+
border: 1px solid $input-border-color;
|
135
|
+
border-radius: $input-border-radius;
|
136
|
+
color: $input-font-color;
|
137
|
+
display: block;
|
138
|
+
font-size: $font-size-regular; // prevent font-size inherit in other modules / scopes
|
139
|
+
line-height: $line-height-regular; // set line height since it was resetted by normalize
|
140
|
+
padding: $input-padding;
|
141
|
+
width: 100%;
|
142
|
+
|
143
|
+
option {
|
144
|
+
background-color: #fff; // reset background color
|
145
|
+
}
|
146
|
+
|
147
|
+
&.focus,
|
148
|
+
&:focus {
|
149
|
+
background-color: #ededed;
|
150
|
+
outline: 0;
|
151
|
+
}
|
152
|
+
|
153
|
+
&.hover,
|
154
|
+
&:hover {
|
155
|
+
background-color: hsv-darken(#ededed, 7%, true);
|
156
|
+
}
|
157
|
+
|
158
|
+
&.active,
|
159
|
+
&:active {
|
160
|
+
background-color: hsv-darken(#ededed, 15%, true);
|
161
|
+
}
|
162
|
+
|
163
|
+
&.disabled,
|
164
|
+
&.readonly,
|
165
|
+
&[disabled],
|
166
|
+
&[readonly] {
|
167
|
+
background-color: #f7f7f7;
|
168
|
+
border-color: $input-disabled-border-color;
|
169
|
+
color: $input-disabled-font-color;
|
170
|
+
cursor: not-allowed;
|
171
|
+
resize: none;
|
172
|
+
@include placeholder($input-disabled-font-color-placeholder);
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
.has-icon {
|
177
|
+
position: relative;
|
178
|
+
|
179
|
+
.form-input {
|
180
|
+
padding-left: 36px;
|
181
|
+
|
182
|
+
.input-group-large & {
|
183
|
+
padding-left: 52px;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
.form-icon {
|
189
|
+
position: absolute;
|
190
|
+
top: 0;
|
191
|
+
left: 0;
|
192
|
+
z-index: 3;
|
193
|
+
display: block;
|
194
|
+
text-align: center;
|
195
|
+
pointer-events: none;
|
196
|
+
width: 36px;
|
197
|
+
height: 36px;
|
198
|
+
line-height: 36px;
|
199
|
+
}
|
data/_sass/_functions.md
ADDED
@@ -0,0 +1,251 @@
|
|
1
|
+
<!--
|
2
|
+
//
|
3
|
+
//
|
4
|
+
// SCSS
|
5
|
+
-->
|
6
|
+
|
7
|
+
Im Folgenden werden Funktionen der Komponenten erklärt,
|
8
|
+
die die SCSS Bibliothek erweitern:
|
9
|
+
|
10
|
+
## Mathematische Funktionen
|
11
|
+
|
12
|
+
#### max
|
13
|
+
```
|
14
|
+
max(a, b):Number
|
15
|
+
```
|
16
|
+
|
17
|
+
Vergleicht a und b; gibt den höheren Wert zurück
|
18
|
+
|
19
|
+
#### min
|
20
|
+
```
|
21
|
+
min(a, b):Number
|
22
|
+
```
|
23
|
+
|
24
|
+
Vergleicht a und b; gibt den kleineren Wert zurück
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
## Layout
|
30
|
+
|
31
|
+
### building units
|
32
|
+
|
33
|
+
#### building-unit-box-padding
|
34
|
+
```
|
35
|
+
building-unit-box-padding($line-height, $height, $padding-horizontal)
|
36
|
+
```
|
37
|
+
Erstellt Padding-Werte pasierend auf den Building-Units.
|
38
|
+
|
39
|
+
#### fallback-rgba
|
40
|
+
```
|
41
|
+
fallback-rgba($color, $alpha, $background-color: #fff):color
|
42
|
+
```
|
43
|
+
Gibt eine transparente Farbe als Farbe ohne Transparenz zur Grundfarbe Weiß zurück. Die Farbe gegen die gerechnet wird, kann optional übergeben werden.
|
44
|
+
|
45
|
+
#### capline-pixels
|
46
|
+
```
|
47
|
+
capline-pixels($font-size):Number
|
48
|
+
```
|
49
|
+
Ermittelt die Anzahl der Pixel zwischen Versalhöhe und border einer Schrift bei gegebener Größe und der standardmäßigen Zeilenhöhe.
|
50
|
+
|
51
|
+
#### baseline-pixels
|
52
|
+
```
|
53
|
+
baseline-pixels($font-size):Number
|
54
|
+
```
|
55
|
+
Ermittelt die Anzahl der Pixel zwischen Grundline und border einer Schrift bei gegebener Größe und der standardmäßigen Zeilenhöhe.
|
56
|
+
|
57
|
+
|
58
|
+
## Farbfunktionen
|
59
|
+
|
60
|
+
### HSV-Farbraum
|
61
|
+
|
62
|
+
Funktionen für Farben im HSV-Farbraum, wie bspw. in Adobes Photoshop. Farben werden dort mittels Farbton (hue), saturation (Sättigung), Hellwert (value) definiert.
|
63
|
+
|
64
|
+
#### hsv
|
65
|
+
```
|
66
|
+
hsv(hue: 0, saturation: 100%, value: 100%):(hue, saturation, value, 1)
|
67
|
+
```
|
68
|
+
|
69
|
+
Ein HSV-Farbraum Farb-Objekt (Alpha=1)
|
70
|
+
|
71
|
+
#### hsva
|
72
|
+
```
|
73
|
+
hsva(hue: 0, saturation: 100%, value: 100%, alpha: 1):(hue, saturation, value, alpha);
|
74
|
+
```
|
75
|
+
|
76
|
+
Ein HSV-Farbraum Farb-Objekt mit Alphawert
|
77
|
+
|
78
|
+
|
79
|
+
#### color-to-hsv
|
80
|
+
```
|
81
|
+
color-to-hsv(color/red, green: 0, b: 0, a: 1):hsva
|
82
|
+
```
|
83
|
+
|
84
|
+
Erwartet eine RGB(A)-Farbe (color) oder vier Farbkomponenten (Rot, Grün, Blau, Alpha) und gibt die Farbe im HSV-Farbraum (hsv) zurück.
|
85
|
+
|
86
|
+
#### hsv-to-color
|
87
|
+
```
|
88
|
+
hsv-to-color(hsv(a)/hue, saturation: 100%, value: 100%, alpha: 1):color
|
89
|
+
```
|
90
|
+
|
91
|
+
Erwartet eine HSV(A)-Farbe (hsv(a)) oder vier Farbkomponenten (hue, saturation, value, alpha) und gibt die Farbe im RGB-Farbraum (rgb(a)) zurück.
|
92
|
+
|
93
|
+
|
94
|
+
#### hsv-hue
|
95
|
+
```
|
96
|
+
hsv-hue(hsv/color):Number
|
97
|
+
```
|
98
|
+
|
99
|
+
Gibt den Farbton (hue) einer Farbe (hsv/color) zurück.
|
100
|
+
|
101
|
+
#### hsv-set-hue
|
102
|
+
```
|
103
|
+
hsv-set-hue(color/hsv, hue, return-rgb-color: false):hsv/color
|
104
|
+
```
|
105
|
+
|
106
|
+
Setzt den Farbton einer Farbe im HSV-Farbraum und gibt sie zurück.
|
107
|
+
|
108
|
+
Erwartet eine Farbe (color/hsv) und den zu setzenden Wert.
|
109
|
+
Der dritte Parameter bestimmt ob die zurückgegebene Farbe im RGB oder HSV Farbraum definiert sein soll
|
110
|
+
@default: hsv
|
111
|
+
|
112
|
+
|
113
|
+
#### hsv-saturation
|
114
|
+
```
|
115
|
+
hsv-saturation(color/hsv):Number
|
116
|
+
```
|
117
|
+
Gibt den Sättigungswert einer Farbe im HSV-Farbraum zurück.
|
118
|
+
Erwartet eine Farbe im rgb oder hsv Farbraum (color/hsv)
|
119
|
+
|
120
|
+
#### hsv-set-saturation
|
121
|
+
```
|
122
|
+
hsv-set-saturation(hsv, saturation, return-rgb-color: false):hsv/color
|
123
|
+
```
|
124
|
+
|
125
|
+
Setzt den Sättigungswert einer Farbe im HSV-Farbraum und gibt sie zurück.
|
126
|
+
|
127
|
+
Erwartet eine Farbe (color/hsv) und den zu setzenden Wert.
|
128
|
+
Der dritte Parameter bestimmt ob die zurückgegebene Farbe im RGB oder HSV Farbraum definiert sein soll
|
129
|
+
@default: hsv
|
130
|
+
|
131
|
+
|
132
|
+
#### hsv-value
|
133
|
+
```
|
134
|
+
hsv-value(color/hsv):Number
|
135
|
+
```
|
136
|
+
Gibt den Helligkeitswert einer Farbe im HSV-Farbraum zurück.
|
137
|
+
Erwartet eine Farbe im rgb oder hsv Farbraum (color/hsv)
|
138
|
+
|
139
|
+
#### hsv-set-value
|
140
|
+
```
|
141
|
+
hsv-set-value(hsv, value, return-rgb-color: false):hsv/color
|
142
|
+
```
|
143
|
+
|
144
|
+
Setzt den Helligkeitswert einer Farbe im HSV-Farbraum und gibt sie zurück.
|
145
|
+
|
146
|
+
Erwartet eine Farbe (color/hsv) und den zu setzenden Wert.
|
147
|
+
Der dritte Parameter bestimmt ob die zurückgegebene Farbe im RGB oder HSV Farbraum definiert sein soll
|
148
|
+
@default: hsv
|
149
|
+
|
150
|
+
|
151
|
+
#### hsv-alpha
|
152
|
+
```
|
153
|
+
hsv-alpha(color/hsv):Number
|
154
|
+
```
|
155
|
+
Gibt den Opazitätswert einer Farbe im HSV-Farbraum zurück.
|
156
|
+
Erwartet eine Farbe im rgb oder hsv Farbraum (color/hsv)
|
157
|
+
|
158
|
+
#### hsv-set-alpha
|
159
|
+
```
|
160
|
+
hsv-set-alpha(hsv, alpha, return-rgb-color: false):hsv/color
|
161
|
+
```
|
162
|
+
|
163
|
+
Setzt den Opazitätswert einer Farbe im HSV-Farbraum und gibt sie zurück.
|
164
|
+
|
165
|
+
Erwartet eine Farbe (color/hsv) und den zu setzenden Wert.
|
166
|
+
Der dritte Parameter bestimmt ob die zurückgegebene Farbe im RGB oder HSV Farbraum definiert sein soll
|
167
|
+
@default: hsv
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
### HSV modifikations Funktionen
|
174
|
+
|
175
|
+
#### hsv-invert
|
176
|
+
```
|
177
|
+
hsv-invert($hsv-color, $return-rgb-color: false):hsv/color
|
178
|
+
```
|
179
|
+
Invertiert alle Werte einer Farbe im HSV-Farbraum mit Ausnahme des Alphawertes.
|
180
|
+
|
181
|
+
Der zweite Parameter bestimmt ob die zurückgegebene Farbe im RGB oder HSV Farbraum definiert sein soll
|
182
|
+
@default: hsv
|
183
|
+
|
184
|
+
|
185
|
+
#### hsv-adjust-brightness
|
186
|
+
```
|
187
|
+
hsv-adjust-brightness(hsv, brightness-shift, return-rgb-color: false):hsv/color
|
188
|
+
```
|
189
|
+
Ändert den Helligkeitswert einer Farbe im HSV-Farbraum, ausgehend vom *ursprünglichen* Wert
|
190
|
+
Der dritte Parameter bestimmt ob die zurückgegebene Farbe im RGB oder HSV Farbraum definiert sein soll
|
191
|
+
@default: hsv
|
192
|
+
|
193
|
+
|
194
|
+
#### hsv-adjust-hue
|
195
|
+
```
|
196
|
+
hsv-adjust-hue(hsv, hue-shift, return-rgb-color: false):hsv/color
|
197
|
+
```
|
198
|
+
Ändert den Farbton einer Farbe im HSV-Farbraum, ausgehend vom *ursprünglichen* Wert um die angegebenen Grad°.
|
199
|
+
Der dritte Parameter bestimmt ob die zurückgegebene Farbe im RGB oder HSV Farbraum definiert sein soll
|
200
|
+
@default: hsv
|
201
|
+
|
202
|
+
|
203
|
+
#### hsv-adjust-saturation
|
204
|
+
```
|
205
|
+
hsv-adjust-saturation(hsv, saturation-shift, return-rgb-color: false):hsv/color
|
206
|
+
```
|
207
|
+
Ändert den Farbton einer Farbe im HSV-Farbraum, ausgehend vom *ursprünglichen* Wert um die angegebenen Grad°.
|
208
|
+
Der dritte Parameter bestimmt ob die zurückgegebene Farbe im RGB oder HSV Farbraum definiert sein soll
|
209
|
+
@default: hsv
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
### Weitere Funktionen
|
216
|
+
|
217
|
+
#### hsv-lighten
|
218
|
+
```
|
219
|
+
hsv-lighten($hsv-color, $value, $return-rgb-color: false):hsv/color
|
220
|
+
```
|
221
|
+
Erhöht die Helligkeit der Farbe.
|
222
|
+
|
223
|
+
#### hsv-darken
|
224
|
+
```
|
225
|
+
hsv-darken($hsv-color, $value, $return-rgb-color: false):hsv/color
|
226
|
+
```
|
227
|
+
Verringert die Helligkeit der Farbe.
|
228
|
+
|
229
|
+
|
230
|
+
#### hsv-saturate
|
231
|
+
```
|
232
|
+
hsv-saturate($hsv-color, $value, $return-rgb-color: false):hsv/color
|
233
|
+
```
|
234
|
+
|
235
|
+
#### hsv-adjust-desaturate
|
236
|
+
```
|
237
|
+
hsv-desaturate(hsv-color, value, return-rgb-color: false):hsv/color
|
238
|
+
```
|
239
|
+
Verringert die Sättigung der Farbe um den angegebenen Wert.
|
240
|
+
|
241
|
+
#### hsv-adjust-grayscale
|
242
|
+
```
|
243
|
+
hsv-grayscale($hsv-color, $return-rgb-color: false):hsv/color
|
244
|
+
```
|
245
|
+
Gibt die als reinen Grauwert zurück.
|
246
|
+
|
247
|
+
#### hsv-adjust-complement
|
248
|
+
```
|
249
|
+
hsv-complement($hsv-color, $return-rgb-color: false):hsv/color
|
250
|
+
```
|
251
|
+
Gibt die Komplementärfarbe zurück.
|