Last active
August 29, 2015 14:08
-
-
Save tolja/ff86ec5919fbd4ff1d26 to your computer and use it in GitHub Desktop.
Revisions
-
tolja revised this gist
Nov 5, 2014 . No changes.There are no files selected for viewing
-
tolja revised this gist
Nov 5, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ // Aufgabe 2 // Erstelle Variablen für die "px" Werte und // füge die Variablen im Code ein // Aufgabe 3 -
tolja created this gist
Nov 5, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <body> <div class="box1"></div> <div class="box2"></div> <div class="box3"></div> <div class="box4"></div> </body> This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,51 @@ // ---- // Sass (v3.4.7) // Compass (v1.0.1) // ---- // Aufgabe 1 // Erstelle eine Variable für "black" und "yellow" // in dem unten gegeben Code und verwende die Variablen dann. // Aufgabe 2 // Erstelle eine Variable für die "px" Werte und // füge die Variablen im Code ein // Aufgabe 3 // Die Boxen sind fortlaufend halb so groß wie // ihr Vorgänger. Um die Größe zu halbieren kann // man im SCSS direkte Division anwenden, z.B. // $size / 2. Versuche dies mit den Variablen // anzuwenden. body { } .box1 { background-color: yellow; height: 400px; width: 400px; float:left; } .box2 { background-color: black; height: 200px; width: 200px; float:left; } .box3 { background-color: yellow; height: 100px; width: 100px; float:left; } .box4 { background-color: black; height: 50px; width: 50px; float:left; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ .box1 { background-color: yellow; height: 400px; width: 400px; float: left; } .box2 { background-color: black; height: 200px; width: 200px; float: left; } .box3 { background-color: yellow; height: 100px; width: 100px; float: left; } .box4 { background-color: black; height: 50px; width: 50px; float: left; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <body> <div class="box1"></div> <div class="box2"></div> <div class="box3"></div> <div class="box4"></div> </body>