Skip to content

Instantly share code, notes, and snippets.

@ABooooo
ABooooo / new_gist_file_0
Created March 19, 2015 07:49
compile sass update / watch
sass --update
sass --update sytle.scss
sass --update style.scss:style.css
sass --update folder:folder
sass --watch folder:folder
@ABooooo
ABooooo / new_gist_file_0
Created March 19, 2015 07:51
terminal commands
ls - list files and folders
clear - reset terminal
cd .. - one folder back
@ABooooo
ABooooo / new_gist_file.sass
Last active November 1, 2018 08:16
mixins with arguments
// regular arguments
@mixin customBorder ($width, $color, $style) {
border: {
width: $width;
color: $color;
style: $style;
}
}
// define @font-face with compass
@include font-face("KlavikaBold-Basic", font-files("KlavikaBasic-Bold_latin.woff", "KlavikaBasic-Bold_latin.ttf", "KlavikaBasic-Bold_latin.svg"), "KlavikaBasic-Bold_latin.eot");
// define font-family on html tag
h1 {
font-family: KlavikaBold-Basic;
}
@ABooooo
ABooooo / new_gist_file_0
Created April 9, 2015 20:29
Add files and folder to repos
git add .
git commit -m "comment"
git push
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:42
Get image url from resourses
lib.headerimage = IMG_RESOURCE
lib.headerimage {
file {
import.data = levelmedia:-1, slide
treatIdAsReference = 1
import.listNum = 0
}
}
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:44
Add custom header tags / style
#header styles
lib.stdheader.10.10 < lib.stdheader.10.1
lib.stdheader.10.10 {
dataWrap = <h1>|</h1>
}
lib.stdheader.10.11 < lib.stdheader.10.1
lib.stdheader.10.11 {
dataWrap = <h2>|</h2>
}
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:45
Add page ID to body tag
# bodyTag
page.bodyTag >
page.bodyTagCObject = TEXT
page.bodyTagCObject.field = uid
page.bodyTagCObject.wrap = <body id="page-|">
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:47
Add logo through typoscript
lib.logo = IMAGE
lib.logo {
file = fileadmin/templates/verovis/img/verovisLogo.png
stdWrap.typolink.parameter = 2
// stdWrap.typolink.ATagParams = class="home"
stdWrap.typolink.title = zur Startseite
# wrap it all as you like
wrap = <p class="logo pull-right">|</p>
}
@ABooooo
ABooooo / new_gist_file_0
Created May 28, 2015 06:49
Include image from resourses
lib.headerimage = IMAGE
lib.headerimage {
file {
import.data = levelmedia:-1, slide
treatIdAsReference = 1
import.listNum = 0
}
}
#include in html