Created
November 5, 2014 22:14
-
-
Save tolja/736b2103a667562df0db to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<body> | |
<div class="box1"></div> | |
<div class="box2"></div> | |
<div class="box3"></div> | |
<div class="box4"></div> | |
</body> |
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
// ---- | |
// 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 Variablen für die "px" Werte und | |
// füge die Variablen dann 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 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
.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 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
<body> | |
<div class="box1"></div> | |
<div class="box2"></div> | |
<div class="box3"></div> | |
<div class="box4"></div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment