Skip to content

Instantly share code, notes, and snippets.

View fabiofidanza's full-sized avatar

fabiofidanza

View GitHub Profile
@fabiofidanza
fabiofidanza / pecetta.css
Last active April 18, 2023 10:00
Cost-example pecetta
.cost-example--value:nth-child(3) {
position: relative;
}
.cost-example--value:nth-child(3)::after {
content: "Il più urgente";
position: absolute;
z-index: 9000;
font-size: 10px;
text-align: center;
<?php
$page = file_get_contents('https://risorse.arcipelagoeducativo.it/risorse/crucipuzzle-dellorientamento');
$title_re = '/<title>([^\/]+)<\/title>/m';
preg_match_all($title_re, $page, $matches, PREG_SET_ORDER, 0);
$title = $matches[0][1];
\s*<span>\s*(?:[^<]*|(?R))\s*<\/span>\s*
$re = '/\s*<span>\s*(?:[^<]*|(?R))\s*<\/span>\s*/imsU';
@fabiofidanza
fabiofidanza / burger.scss
Created October 26, 2020 15:16
CSS only no extra element burger
/* hamburger */
&:after, &:before {
content: "";
position: absolute;
right: 0;
top: 50%;
width: $menuUnit * 6;
background: $white;
height: $menuUnit;
@fabiofidanza
fabiofidanza / sass-interpolation.scss
Created May 27, 2016 16:10
Sass unicode interpolation
$termsIcons: (
1 : ('e91c','e91d'),
2 : ('e919','e918'),
3 : ('e91e','e91f'),
4 : ('e91a','e91b'),
);
.page-taxonomy-term {
.title-container {
img[style*='float: r'] {
margin: $colPadding 0 $colPadding $colPadding;
}
img[style*='float: l'] {
margin: $colPadding $colPadding $colPadding 0;
}