Skip to content

Instantly share code, notes, and snippets.

View dippas's full-sized avatar
🇵🇹

Serpa dippas

🇵🇹
View GitHub Profile
@dippas
dippas / input.scss
Created June 28, 2023 18:16
Generated by SassMeister.com.
div.toc-wrapper {
counter-reset: my-counter 0;
$maxCount: 25;
@for $counterValue from 1 through $maxCount {
$formattedValue: if($counterValue < 10, '0' + $counterValue, $counterValue);
li.toc-item-h2 {
&:nth-child(#{$counterValue})::before {
@dippas
dippas / gist:77126c30e1d129b5276f4c45d2f289fb
Created July 9, 2021 17:23 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@dippas
dippas / input.scss
Created February 10, 2021 14:30
Generated by SassMeister.com.
.username {
color: red;
.mobile & {
font-weight: bold
}
.desktop & {
font-weight: normal
}
@dippas
dippas / input.scss
Created January 22, 2021 20:09
Generated by SassMeister.com.
@use 'sass:math';
$a: math.tan(15deg) / 2;
.text {
padding: $a;
}
@dippas
dippas / input.scss
Created January 9, 2021 13:38
Generated by SassMeister.com.
h1, h2, h3, h4, h5, h6 {
&.orange {
color: orange;
}
&.darkgreen {
color: dark-green;
}
&.lightgreen {
@dippas
dippas / input.sass
Last active May 8, 2017 13:25
why does almost all of this file get omitted in the output?
// ----
// libsass (v3.5.0.beta.2)
// ----
button.btn-danger
background-image:none
button
border: 1px inset
.danger
background-image:none
@dippas
dippas / input.scss
Last active May 5, 2017 01:41
SASS error: Incompatible units: 'px' and 'px*px'
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
@mixin font-size($base: 16 ){
font-size: $base + px; //fallback for old browsers
font-size: (.0625 * $base) + rem;
}
$font-size-base: 14 !default;
@dippas
dippas / input.scss
Last active May 5, 2017 01:38
Remove Bootstrap 4 button outline Mixin
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
@mixin outline($value) {
outline: $value;
}
button {
@dippas
dippas / input.scss
Last active May 5, 2017 01:34
Using css selector lastchild and :after together in angular2
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
:host/deep/.title-main {
display: flex;
margin-bottom: 0;
.title-inside {