Skip to content

Instantly share code, notes, and snippets.

View scheibome's full-sized avatar

Scheibo scheibome

View GitHub Profile
@scheibome
scheibome / .gitconfig-part1
Created January 18, 2024 06:34
git-user-split
# Deine Basis in der .gitconfig
[user]
name = Dein Name
email = deineprivate@email.com
@scheibome
scheibome / input.scss
Created September 8, 2021 06:38
Generated by SassMeister.com.
%checkboxandRadioStyle {
+ label {
&:before {
border: 1px solid red;
@at-root .checkboxtype#{&} {
border-color: black;
}
}
.message > li {
background-color: green;
}
.message--error.message > li {
background-color: red;
}
@scheibome
scheibome / input.scss
Last active October 22, 2021 08:57
Spacing before and after in scss with scss-maps
$spacing-orientation-map: (
'frame-space-before': 'top',
'frame-space-after': 'bottom'
);
$spacing-map: (
'extra-small': '1',
'small': '2'
);
@scheibome
scheibome / input.scss
Created April 20, 2021 18:57
Generated by SassMeister.com. - Bootstrap Color Theme
$blue: #d63384;
$yellow: #ffc107;
$green: #198754;
$primary: $yellow;
$success: $green;
$theme-colors: (
"primary": $primary,
"success": $success
@scheibome
scheibome / LanguageMenu.html
Last active January 13, 2023 10:39
Simple language menu in TYPO3
<f:if condition="{menuLanguage}">
<nav class="c-languageselect">
<button class="c-languageselect__button" id="languageselectbutton">
{site.languages.{data.sys_language_uid}.navigationTitle}
<i class="icon icon-expand_more"></i>
</button>
<ul id="languageselect__list" class="c-languageselect__list">
<f:for each="{menuLanguage}" as="item">
<li class="c-languageselect__item">
<f:if condition="{item.active} == 0">
@scheibome
scheibome / question1.scss
Last active June 11, 2019 10:34
How can I write this in #SCSS without writing the >li again? I don't have a clue
// How can I write this in #SCSS without writing the > li for message--error again?
// like .message.message--error > li
.message {
> li {
background-color: green;
}
@scheibome
scheibome / input.scss
Last active March 21, 2019 13:08
SASS font-size and color via sass-map in breakpoints
// ----
// Sass (v3.4.25)
// Compass (v1.0.3)
// ----
$h1-fontsize: (
null: (
size: 26px
),
'768px': (
@scheibome
scheibome / input.scss
Last active March 21, 2019 07:37
px to rem converting
// ----
// Sass (v3.4.25)
// Compass (v1.0.3)
// ----
/**
* Convert font-size from px to rem with px fallback
*
* @param $size - the value in pixel you want to convert
*
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li aria-expanded="false" aria-haspopup="true">
<button>Submenu</button>
<ul>
<li><a href="#">Submenulink 1</a></li>
<li><a href="#">Submenulink 2</a></li>
<li><a href="#">Submenulink 3</a></li>
<li><a href="#">Submenulink 4</a></li>