Accueil > Notes > @b_b - Seenthis
http://www.seenthis.net/people/b_b
Articles
-
Fluid_typography with discrete steps
24 juillet, par b_b (@b_b)#Fluid_typography with discrete #steps
▻https://css-tip.com/fluid-typographyUse the round() function and create a fluid typography with a discrete function instead of a continuous one.
Define the step and get precise values within a specific range. Very useful if you have some calculation based on the font-size like using the em unit. No more rounding issue!
/* Instead of */
p {
font-size: clamp(1rem,1rem + 3vw,2.5rem);
}
/* use */
p {
font-size: clamp(1rem,round(down,1rem + 3vw,2px),2.5rem);
}
#css
-
PHP 8 : match or switch ? - stitcher.io
4 juillet, par b_b (@b_b)#PHP 8 : #match or #switch ? - stitcher.io
▻https://stitcher.io/blog/php-8-match-or-switchLet’s start by comparing the two. Here’s a classic switch example:
switch ($statusCode) {
case 200:
case 300:
$message = null;
break;
case 400:
$message = 'not found';
break;
case 500:
$message = 'server error';
break;
default:
$message = 'unknown status code';
break;
}Here’s its match equivalent:
$message = match ($statusCode) {
200, 300 => null,
400 => 'not found',
500 => 'server error',
default => 'unknown status code',
};First of all, the match expression is significantly shorter:
– it doesn’t require a break statement
– it can combine different arms into one using a comma
– it returns a value, so you only have to assign value once -
balladaniel/leaflet-dataclassification : Single-step data classification, symbology and legend…
1er juillet, par b_b (@b_b)balladaniel/leaflet-dataclassification: Single-step data #classification, symbology and legend creation for GeoJSON data powered thematic maps
▻https://github.com/balladaniel/leaflet-dataclassification
▻https://repository-images.githubusercontent.com/611253581/8a731581-17c1-4592-9ca4-2438326ddb1cClassifies quantitative data from attributes, styles the features appropriately and also creates a clean, simple and appealing #legend depicting the value classes and their associated symbols, all combined in a single step. Classifying point features can be done based on symbol color and size, line features based on color and width, polygon features based on fill color (for choropleth maps) and fill pattern (hatch fill). Extends the L.geoJSON layer.
Aims to simplify #data_visualization and creation of elegant thematic web maps with #Leaflet using #GeoJSON data, with a more traditional approach of thematic cartography.
demo ▻https://balladaniel.github.io/leaflet-dataclassification/examples/combined
-
Type Fluidity
27 juin, par b_b (@b_b)Type Fluidity
▻https://wearerequired.github.io/fluidityGenerator for #CSS #clamp values for #fluid_typography sizes.
-
Home - Easy !Appointments
21 juin, par b_b (@b_b)Home - Easy !Appointments
▻https://easyappointments.orgEasy!Appointments is a highly customizable web application that allows customers to book #appointments with you via a sophisticated web interface.
Potential alternative to Doctolib