-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d3b24a
commit 98c5ca6
Showing
4 changed files
with
140 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Jodaresponsive ersetzt mediaQuerys in CSS Dateien. z.B. bei Bootstrap. Dadurch kann die Größe der CSS Dateien drastisch reduziert werden. | ||
|
||
Die Syntax im class="" Attribut ist wie folgt: | ||
|
||
``` | ||
class="classe :: <defaultClass> :breakpoint: <alternativeClass>" | ||
``` | ||
|
||
Beispiel: | ||
|
||
``` | ||
<div class="col :: col-6 :md: col-4 :lg: col-2"> | ||
``` | ||
|
||
entspricht: | ||
|
||
``` | ||
<div class="col col-6 col-md-4 col-lg-2"> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Jodashorts ermöglichen im Text schnell ein HTML Element ohne unterelement anzulgen: | ||
|
||
```html | ||
[element attr="" attr2=""] | ||
``` | ||
|
||
In der Regel genutzt, um Input-Element o.ä. zu erstellen. | ||
|
||
```markdown | ||
[input type="submit" class="btn btn-primary" value="Absenden"] | ||
[input type="submit" class="btn btn-primary" value="Absenden"] | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Jodastyle ermöglicht die Manipulation des DOM mittels CSS attributen: | ||
|
||
Wrap: | ||
|
||
```html | ||
<div class=".box"></div> | ||
<div class=".box"></div> | ||
<div class=".box"></div> | ||
``` | ||
|
||
```css | ||
.box { | ||
--joda-wrap: @row; | ||
} | ||
``` | ||
|
||
Wrappt die eine oder mehrere aufeinander folgende Element in ein neues Element. Das DOM Ergebnis: | ||
|
||
```html | ||
<div class="row"> | ||
<div class=".box"></div> | ||
<div class=".box"></div> | ||
<div class=".box"></div> | ||
</div> | ||
``` | ||
|
||
Joda USE: | ||
|
||
Das wohl häufgste Element: --joda-use. Es ermöglicht die nutzung eines Templates. (Intern setzt das layout="use: xyz" Attribut lediglich --joda-use: xzy;) | ||
|
||
```html | ||
<div class="box" style="--joda-use='box'; --layout-cols: 3"></div> | ||
``` | ||
|
||
ist das gleiche wie: | ||
|
||
```html | ||
<div class="box" layout="use: box; cols: 3"></div> | ||
``` | ||
|
||
Beim use wird das das Template Element über das geuste element kopiert. (der Tag ändert sich ggf.) |