Sassified the CSS a bit

This commit is contained in:
Sofia 2017-10-01 23:20:12 +03:00
parent 788ad8134e
commit 3da2287bbc
4 changed files with 59 additions and 30 deletions

View File

@ -24,8 +24,8 @@
<ul>Another style</ul>
</li></ul><ul tabindex="0" class="list-symbol">Help
<li>
<ul><a href="https://git.teasca.de/teascade">What is this?</a></ul>
<ul>Oh no</ul>
<ul><a href="https://git.teasca.de/teascade/retrofuturistic-universe">What is this?</a></ul>
<ul><a href="https://git.teasca.de/teascade/retrofuturistic-universe/issues">Oh no</a></ul>
<ul><hr></ul>
<ul>A thing under hr</ul>
</li></ul>
@ -44,23 +44,23 @@
<div class="hr"><hr></div>
<p>Stuff under the hr!</p>
</li>
</div>
<div class="box double white width-50">
</div
><div class="box white width-50">
<p>Welcome to a thing! This is a list, hello!</p>
<p>The list:</p>
<li>
<ul>Thing in a list </ul>
<ul>Another thing</ul>
</li>
<p>new line</p>
<p>6th line</p>
</li>
<div class="space-1em"></div>
</div>
</div>
<div>
<div class="box blue width-100">
<div class="padding-2">
<div class="padding-1">
<div class="">
<p>Dolorem iusto nihil modi perspiciatis. Omnis nemo sed nam sed sunt qui. Laudantium accusantium architecto sint et necessitatibus quibusdam. Doloribus hic similique ut reiciendis rem ut placeat. Sit doloremque autem dicta quasi commodi nihil qui.</p>
<div class="space-1em"></div>
<p><b>Some stuff</b></p>
<div class="space-1em"></div>
<p>This is a blue box</p>

View File

@ -196,17 +196,44 @@ nav > li {
.space-2em {
min-height: 42px; }
.space-3em {
min-height: 63px; }
.space-4em {
min-height: 84px; }
.space-5em {
min-height: 105px; }
.width-5 {
width: 5ch; }
.width-10 {
width: 10ch; }
.width-15 {
width: 15ch; }
.width-20 {
width: 20ch; }
.width-25 {
width: 25ch; }
.width-50 {
min-width: 50ch; }
width: 48ch; }
.width-100 {
min-width: 100ch; }
width: 98ch; }
.width-150 {
min-width: 150ch; }
width: 148ch; }
.width-200 {
min-width: 200ch; }
width: 198ch; }
.width-250 {
width: 248ch; }
.padding-1 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C,UAAe;EAAE,UAAU,EAAE,KAAiB;;AAI9C,QAAqB;EAAE,KAAK,EAAE,GAAY;;AAA1C,SAAqB;EAAE,KAAK,EAAE,IAAY;;AAA1C,SAAqB;EAAE,KAAK,EAAE,IAAY;;AAA1C,SAAqB;EAAE,KAAK,EAAE,IAAY;;AAA1C,SAAqB;EAAE,KAAK,EAAE,IAAY;;AAG1C,SAAsB;EAAE,KAAK,EAAE,IAAmB;;AAAlD,UAAsB;EAAE,KAAK,EAAE,IAAmB;;AAAlD,UAAsB;EAAE,KAAK,EAAE,KAAmB;;AAAlD,UAAsB;EAAE,KAAK,EAAE,KAAmB;;AAAlD,UAAsB;EAAE,KAAK,EAAE,KAAmB;;AAIlD,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,IAAiB;EAAE,cAAc,EAAE,IAAiB;;AAArG,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,IAAiB;EAAE,cAAc,EAAE,IAAiB;;AAArG,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,IAAiB;EAAE,cAAc,EAAE,IAAiB;;AAArG,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,IAAiB;EAAE,cAAc,EAAE,IAAiB;;AAArG,UAAe;EAAE,OAAO,EAAE,GAAQ;EAAE,WAAW,EAAE,KAAiB;EAAE,cAAc,EAAE,KAAiB",
"sources": ["style.scss"],
"names": [],
"file": "style.css"

View File

@ -276,16 +276,18 @@ nav {
}
// Style helpers, like space-takers
.space-1em { min-height: $line-height; }
.space-2em { min-height: $line-height * 2; }
.width-50 { min-width: 50ch; }
.width-100 { min-width: 100ch; }
.width-150 { min-width: 150ch; }
.width-200 { min-width: 200ch; }
@for $i from 1 through 5 {
.space-#{$i}em { min-height: $line-height * $i; }
}
.padding-1 { padding: 1ch; padding-top: $line-height; padding-bottom: $line-height; }
.padding-2 { padding: 2ch; padding-top: $line-height * 2; padding-bottom: $line-height * 2; }
.padding-3 { padding: 3ch; padding-top: $line-height * 3; padding-bottom: $line-height * 3; }
.padding-4 { padding: 4ch; padding-top: $line-height * 4; padding-bottom: $line-height * 4; }
.padding-5 { padding: 5ch; padding-top: $line-height * 5; padding-bottom: $line-height * 5; }
@for $width from 1 through 5 {
.width-#{$width * 5} { width: $width * 5ch; }
}
@for $width from 1 through 5 {
.width-#{$width * 50} { width: $width * 50ch - 2ch; }
}
@for $i from 1 through 5 {
.padding-#{$i} { padding: $i * 1ch; padding-top: $line-height * $i; padding-bottom: $line-height * $i; }
}