ty

Air ambulance charity seeks new £80k-a-year pilot

The successful candidate will fly one of its Airbus H145 helicopters, Yorkshire Air Ambulance says.




ty

Junction closed after third fatality in six months

An accident blackspot in Cornwall is closed after a third fatal crash in the last six months.




ty

Truro City extend Oxlade-Chamberlain's loan deal

Truro City extend Christian Oxlade-Chamberlain’s loan from Kidderminster Harriers until 31 January.




ty

Truro City see unbeaten record end at Boreham Wood

Truro City manager John Askey says his side looked "weary" in their 1-0 loss at Boreham Wood in National League South.




ty

Man pleads guilty to city centre disorder

Simon Beech, 36, took part in riots in Stoke-on-Trent on 3 August.




ty

'We embrace it' - Dias on Man City losing streak

Manchester City defender Ruben Dias says the Premier League champions "embrace" the "challenge" posed by their losing streak.




ty

Swedish football fans turn city green and white

Stockholm-based women's football club Hammarby is known for its large and vociferous fanbase.




ty

Double-decker bus crash prompts safety review

The move by Transport for Greater Manchester follows Saturday's crash, which injured 17 people.




ty

Stockport County beat Forest Green Rovers in extra time

Watch highlights as a Kyle Wootton goal in extra time gives League One Stockport County a narrow victory over National League high-fliers Forest Green Rovers in the first round of the FA Cup.




ty

'It's a once-in-a-lifetime opportunity'

Sisters Alice, Chloe and Lucy will be part of the Children in Need Choir on Friday.




ty

Greene takes Loughborough University coaching role

Former World, European and Commonwealth Games 400m hurdles champion Dai Greene becomes Loughborough University's head of sprints and hurdles.




ty

Route confirmed ahead of city's Sikh procession

Nagar Kirtan will make its way through Leicester on Sunday, with rolling road closures planned.




ty

Could Cambridge city cows be on the moo-ve?

The sight of cows grazing freely on the city’s commons has been put in doubt.




ty

Cambridge City pin hopes on youth in Women's FA Cup

Cambridge City are set to play in the first round of the Women's FA Cup for only the second time - with over half of their team just 16 years old.




ty

Crews tackle fire at derelict city-centre building

Lancashire Fire and Rescue Service say four crews were deployed to a derelict building in Preston.




ty

Berkshire's Big Picture: Wednesday's image of the county

Showcasing the best images sent to us from around Berkshire.




ty

Learning disability charity founder made MBE

My Life My Choice founder Michael Edwards is recognised during a ceremony at Windsor Castle.




ty

Ending charity was 'last thing we wanted to do'

The former boss of Derbyshire Community Transport has been reflecting on the charity's demise.




ty

Sephora - from 1970s shop to 'beauty amusement park'

Influencers say Sephora is "another world for beauty" as it prepares to open in Birmingham.




ty

Fire service praised over safety improvements

A watchdog says a fire service is taking "significant steps" to address concerns raised a year ago.




ty

Plans for carbon capture facility at incinerator

The business says it is welcoming public feedback on the proposal.




ty

Schools launch road safety campaign

The campaign aims to increase speed awareness and improve road safety around schools.




ty

Paralympian says party snub example of inequality

The high-end store has apologised for not hosting Paralympic athletes alongside Team GB Olympians.




ty

Safety improvements at accident 'hot spot' begin

New road markings are being installed on the slip road following a fatal crash in September.




ty

Eco groups call for clarity over coal mine

Eco groups call for a mining firm to "break its silence" over a coal mine.




ty

Guernsey property prices up in third 2024 quarter

The increase compares with a decrease during the the same period in 2023.




ty

Handling of child poverty plan is 'catalogue of failures'

A review into the government's handling of a child poverty strategy has found it has failed.




ty

Third of working age people die in poverty - report

According to Marie Curie, 35% of working age people who died in Bradford were in poverty.




ty

Olympic sailor's boat raises £18,000 for charity

Micky Beckett charged £10 a ticket in the raffle for the ILCA 7 dinghy he used to compete.




ty

Dorset's Big Picture: Wednesday's image of the county

Showcasing the best images sent to us from around Dorset.




ty

The Wiltshire boy who inspired a national charity

Horatio Chapple’s mother Olivia talks about Horatio’s Garden.




ty

Teen says charity therapy 'may have saved my life'

A teenager explains how therapeutic groups for children, helped by Children in Need, supported her.




ty

City car park set to reopen as others close

A parking area shut during Covid is reopening to help offset the spaces lost during regeneration work.




ty

Charity helps disabled people access beauty spots

A Norwich disability group thanks a charity for making a city beauty spot more accessible.




ty

Roblox introduces new safety features, Australia bans Under 16s from social media

Roblox is introducing new safety features for children under the age of 13, following criticism of how it protects younger users. The free online gaming platform, which has around 70 million […]

The post Roblox introduces new safety features, Australia bans Under 16s from social media appeared first on Tech Digest.




ty

AI university course uptake increased by 453% over 5 years, claims study

The development and rising popularity of AI is not only impacting the tech we use, but also the career paths the next generation are taking. A recent study by laptop and tech […]

The post AI university course uptake increased by 453% over 5 years, claims study appeared first on Tech Digest.




ty

How to use networking and customer advocacy to build your brand community

Personalisation in marketing works because personal connections matter. That extends beyond your customers, too. Personal connections include the relationships you have with your suppliers, your stakeholders, your employees, industry peers… the list goes on.




ty

Introducing TODS – a typographic and OpenType default stylesheet

Introducing TODS, an open source typography and opentype default stylesheet. One of the great things about going to conferences is the way it can spark an idea and kick start something. This project was initiated following a conversation with Roel Nieskens (of Wakamai Fondue fame) at CSS Day, where he demonstrated his Mildly Opinionated Prose Styles (MOPS).

The idea is to set sensible typographic defaults for use on prose (a column of text), making particular use of the font features provided by OpenType. The main principle is that it can be used as starting point for all projects, so doesn’t include design-specific aspects such as font choice, type scale or layout (including how you might like to set the line-length).

Within the styles is mildly opinionated best practice, which will help set suitable styles should you forget. This means you can also use the style sheet as a checklist, even if you don't want to implement it as-is.

TODS uses OpenType features extensively and variable font axes where available. It makes full use of the cascade to set sensible defaults high up, with overrides applied further down. It also contains some handy utility classes.

You can apply the TODS.css stylesheet in its entirety, as its full functionality relies on progressive enhancement within both browsers and fonts. Anything that is not supported will safely be ignored. The only possible exceptions to this are sub/superscripts and application of a grade axis in dark mode, as these are font-specific and could behave unexpectedly depending on the capability of the font.

In order to preview some of the TODS features, you can check out the preview page tods.html and toggle TODS.css on and off. (This needs more work as the text is a bit of a mish-mash of examples and instructions, and it's missing some of the utility classes and dark mode. But that’s what open source is for… feel free to fork, improve and add back into the repo.)

Walkthrough of the TODS.css stylesheet

You can download a latest version of the stylesheet from the TODS Github repo (meaning some of the code may have changed a bit).

Table of contents:

  1. Reset
  2. Web fonts
  3. Global defaults
  4. Block spacing
  5. Opentype utility classes
  6. Generic help classes
  7. Prose styling defaults
  8. Headings
  9. Superscripts and subscripts
  10. Tables and numbers
  11. Quotes
  12. Hyphenation
  13. Dark mode/inverted text

1. Reset

Based on Andy Bell’s more modern CSS reset. Only the typographic rules in his reset are used here. You might like to apply the other rules too.

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

Prevent font size inflation when rotating from portrait to landscape. The best explainer for this is by Kilian. He also explains why we still need those ugly prefixes too.

body, h1, h2, h3, h4, h5, h6, address, p, hr, pre, blockquote, ol, ul, li, dl, dt, dd, figure, figcaption, div, table, caption, form, fieldset {
  margin: 0;
}

Remove default margins in favour of better control in authored CSS.

input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

Inherit fonts for inputs and buttons.

2. Web fonts

Use modern variable font syntax so that only supporting browsers get the variable font. Others will get generic fallbacks.

@font-face {
  font-family: 'Literata';
  src: url('/fonts/Literata-var.woff2') format('woff2') tech(variations),
       url('/fonts/Literata-var.woff2') format('woff2-variations');
  font-weight: 1 1000;
  font-stretch: 50% 200%;
  font-style: normal;
  font-display: fallback;
}

Include full possible weight range to avoid unintended synthesis of variable fonts with a weight axis. Same applies to stretch range for variable fonts with a width axis.

For main body fonts, use fallback for how the browser should behave while the webfont is loading. This gives the font an extremely small block period and a short swap period, providing the best chance for text to render.

@font-face {
  font-family: 'Literata';
  src: url('/fonts/Literata-Italic-var.woff2') format('woff2') tech(variations),
       url('/fonts/Literata-Italic-var.woff2') format('woff2-variations');
  font-weight: 1 1000;
  font-stretch: 50% 200%;
  font-style: italic;
  font-display: swap;
}

For italics use swap for an extremely small block period and an infinite swap period. This means italics can be synthesised and swapped in once loaded.

@font-face {
  font-family: 'Plex Sans';
  src: url('/fonts/Plex-Sans-var.woff2') format('woff2') tech(variations),
       url('/fonts/Plex-Sans-var.woff2') format('woff2-variations');
  font-weight: 1 1000;
  font-stretch: 50% 200%;
  font-style: normal;
  font-display: fallback;
  size-adjust:105%; /* make monospace fonts slightly bigger to match body text. Adjust to suit – you might need to make them smaller */
}

When monospace fonts are used inline with text fonts, they often need tweaking to appear balanced in terms of size. Use size-adjust to do this without affecting reported font size and associated units such as em.

3. Global defaults

Set some sensible defaults that can be used throughout the whole web page. Override these where you need to through the magic of the cascade.

body {
    line-height: 1.5;
    text-decoration-skip-ink: auto;
    font-optical-sizing: auto;
    font-variant-ligatures: common-ligatures no-discretionary-ligatures no-historical-ligatures contextual;
    font-kerning: normal;
}

Set a nice legible line height that gets inherited. The font- properties are set to default CSS and OpenType settings, however they are still worth setting specifically just in case.

button, input, label { 
  line-height: 1.1; 
}

Set shorter line heights on interactive elements. We’ll do the same for headings later on.

4. Block spacing

Reinstate block margins we removed in the reset section. We’re setting consistent spacing based on font size on primary elements within ‘flow’ contexts. The entire ‘prose’ area is a flow context, but so might other parts of the page. For more details on the ‘flow’ utility see Andy Bell’s favourite three lines of CSS.

.flow > * + * {
  margin-block-start: var(--flow-space, 1em);
}

Rule says that every direct sibling child element of .flow has margin-block-start added to it. The > combinator is added to prevent margins being added recursively.

.prose {
  --flow-space: 1.5em;
}

Set generous spacing between primary block elements (in this case it’s the same as the line height). You could also choose a value from a fluid spacing scale, if you are going down the fluid typography route (recommended, but your milage may vary). See Utopia.fyi for more details and a fluid type tool.

5. OpenType utility classes

.dlig { font-variant-ligatures: discretionary-ligatures; }
.hlig { font-variant-ligatures: historical-ligatures; }
.dlig.hlig { font-variant-ligatures: discretionary-ligatures historical-ligatures; } /* Apply both historic and discretionary */

.pnum { font-variant-numeric: proportional-nums; }
.tnum { font-variant-numeric: tabular-nums;    }
.lnum { font-variant-numeric: lining-nums; }
.onum { font-variant-numeric: oldstyle-nums; }
.zero { font-variant-numeric: slashed-zero;    }
.pnum.zero { font-variant-numeric: proportional-nums slashed-zero; } /* Apply slashed zeroes to proportional numerals */
.tnum.zero { font-variant-numeric: tabular-nums slashed-zero; }
.lnum.zero { font-variant-numeric: lining-nums slashed-zero; }
.onum.zero { font-variant-numeric: oldstyle-nums slashed-zero; }
.tnum.lnum.zero { font-variant-numeric: tabular-nums lining-nums slashed-zero; }
.frac { font-variant-numeric: diagonal-fractions; }
.afrc { font-variant-numeric: stacked-fractions; }
.ordn { font-variant-numeric: ordinal; }

.smcp { font-variant-caps: small-caps; }
.c2sc { font-variant-caps: unicase; }
.hist { font-variant-alternates: historical-forms; }

Helper utilities matching on/off Opentype layout features available through high level CSS properties.

@font-feature-values "Fancy Font Name" { /* match font-family webfont name */

    /* All features are font-specific. */
    @styleset { cursive: 1; swoopy: 7 16; }
    @character-variant { ampersand: 1; capital-q: 2; }
    @stylistic { two-story-g: 1; straight-y: 2; }
    @swash { swishy: 1; flowing: 2; wowzers: 3 }
    @ornaments { clover: 1; fleuron: 2; }
    @annotation { circled: 1; boxed: 2; }
}

Other Opentype features can have multiple glyphs, accessible via an index number defined in the font – these will be explained in documentation that came with your font. These vary between fonts, so you need to set up a new @font-font-features rule for each different font, ensuring the font name matches that of the font family. You then give each feature a custom name such as ‘swoopy’. Note that stylesets can be combined, which is why swoopy has a space-separated list of indices 7 16.

/* Stylesets */
.ss01 { font-variant-alternates: styleset(cursive); }
.ss02 { font-variant-alternates: styleset(swoopy); }

/* Character variants */
.cv01 { font-variant-alternates: character-variant(ampersand); }
.cv02 { font-variant-alternates: character-variant(capital-q); }

/* Stylistic alternates */
.salt1 { font-variant-alternates: stylistic(two-story-g); }
.salt2 { font-variant-alternates: stylistic(straight-y); }

/* Swashes */
.swsh1 { font-variant-alternates: swash(swishy); }
.swsh2 { font-variant-alternates: swash(flowing); }

/* Ornaments */
.ornm1 { font-variant-alternates: ornaments(clover); }
.ornm2 { font-variant-alternates: ornaments(fleuron); }

/* Alternative numerals */
.nalt1 { font-variant-alternates: annotation(circled); }
.nalt2 { font-variant-alternates: annotation(boxed); }

Handy utility classes showing how to access the font feature values you set up earlier using the font-variant-alternates property.

:root {
    --opentype-case: "case" off;
    --opentype-sinf: "sinf" off;
}

/* If class is applied, update custom property */
.case {
    --opentype-case: "case" on;
}

.sinf {
    --opentype-sinf: "sinf" on;
}

/* Apply current state of all custom properties, defaulting to off */
* { 
    font-feature-settings: var(--opentype-case, "case" off), var(--opentype-sinf, "sinf" off);
}

Set custom properties for OpenType features only available through low level font-feature-settings. We need this approach because font-feature-settings does not inherit in the same way as font-variant. See Roel’s write-up, including how to apply the same methodology to custom variable font axes.

6. Generic helper classes

Some utilities to help ensure best typographic practice.

.centered {
    text-align: center;
    text-wrap: balance;
}

When centring text you’ll almost always want the text to be ‘balanced’, meaning roughly the same number of characters on each line.

.uppercase {
    text-transform: uppercase;
    --opentype-case: "case" on;
}

When fully capitalising text, ensure punctuation designed to be used within caps is turned on where available, using the Opentype ‘case’ feature.

.smallcaps {
    font-variant-caps: all-small-caps;
    font-variant-numeric: oldstyle-nums;    
}

Transform both upper and lowercase letters to small caps, and use old style-numerals within runs of small caps so they match size-wise.

7. Prose styling defaults

Assign a .prose class to your running text, that is to say an entire piece of prose such as the full text of an article or blog post.

.prose {
    text-wrap: pretty;
    font-variant-numeric: oldstyle-nums proportional-nums;
    font-size-adjust: 0.507;
}

Firstly we get ourselves better widow/orphan control, aiming for blocks of text to not end with a line containing a word on its own. Also we use proportional old-style numerals in running text.

Also adjust the size of fallback fonts to match the webfont to maintain legibility with fallback fonts and reduce visible reflowing. The font-size-adjust number is the aspect ratio of the webfont, which you can calculate using this tool.

strong, b, th { 
    font-weight: bold;
    font-size-adjust: 0.514; 
}

Apply a different adjustment to elements which are typically emboldened by default, as bold weights often have a different aspect ratio – check for the different weights you may be using, including numeric semi-bolds (eg. 650). Headings are dealt with separately as the aspect ratio may be affected by optical sizing.

8. Headings

h1, h2, h3, h4 { 
    line-height: 1.1; 
    font-size-adjust: 0.514;
    font-variant-numeric: lining-nums; }

Set shorter line heights on your main headings. Set an aspect ratio for fallback fonts – check for different weights of headings. Use lining numerals in headings, especially when using Title Case.

h1 {
    font-variant-ligatures: discretionary-ligatures; 
    font-size-adjust: 0.521;
}

Turn on fancy ligatures for main headings. If the font has an optical sizing axis, you might need to adjust the aspect ratio accordingly.

h1.uppercase {
    font-variant-caps: titling-caps;
}

When setting a heading in all caps, use titling capitals which are specially designed for setting caps at larger sizes.

9. Superscripts and subscripts

Use proper super- and subscript characters. Apply to sub and sup elements as well as utility classes for when semantic sub/superscripts are not required.

@supports ( font-variant-position: sub ) {
    sub, .sub {
        vertical-align: baseline;
        font-size: 100%;
        line-height: inherit;
        font-variant-position: sub;
    }
}

@supports ( font-variant-position: super ) {
    sup, .sup {
        vertical-align: baseline;
        font-size: 100%;
        line-height: inherit;
        font-variant-position: super;
    }
}

If font-variant-position is not specified, browsers will synthesise sub/superscripts, so we need to manually turn off the synthesis. This is the only way to use a font’s proper sub/sup glyphs, however it’s only safe to use this if you know your font has glyphs for all the characters you are sub/superscripting. If the font lacks those characters (most only have sub/superscript numbers, not letters), then only Firefox (correctly) synthesises sup and sub – all other browsers will display normal characters in the regular way as we turned the synthesis off.

.chemical { 
    --opentype-sinf: "sinf" on;
}

For chemical formulae like H2O, use scientific inferiors instead of sub.

10. Tables and numbers

td, math, time[datetime*=":"] {
    font-variant-numeric: tabular-nums lining-nums slashed-zero;    
}

Make sure all numbers in tables are lining tabular numerals, adding slashed zeroes for clarity. This could usefully apply where a time is specifically marked up, as well as in mathematics.

11. Quotes

Use curly quotes and hang punctuation around blockquotes.

:lang(en) > * { quotes: '“' '”' '‘' '’' ; } /* “Generic English ‘style’” */
:lang(en-GB) > * { quotes: '‘' '’' '“' '”'; } /* ‘British “style”’ */
:lang(fr) > * { quotes: '«?0202F' '?0202F»' '“' '”'; } /* « French “style” » */

Set punctuation order for inline quotes. Quotes are language-specific, so set a lang attribute on your HTML element or send the language via a server header. Note the narrow non-breaking spaces encoded in the French example.

q::before { content: open-quote }
q::after  { content: close-quote }

Insert quotes before and after q element content.

.quoted, .quoted q {
    quotes: '“' '”' '‘' '’';
}

Punctuation order for blockquotes, using a utility class to surround with double-quotes.

.quoted p:first-of-type::before {
    content: open-quote;
}
.quoted p:last-of-type::after  {
    content: close-quote;
}

Append quotes to the first and last paragraphs in the blockquote.

.quoted p:first-of-type::before {
    margin-inline-start: -0.87ch; /* Adjust according to font */
}
.quoted p {
    hanging-punctuation: first last;
}
@supports(hanging-punctuation: first last) {
    .quoted p:first-of-type::before {
        margin-inline-start: 0;
    }
}

Hang the punctuation outside of the blockquote. Firstly manually hang punctuation with a negative margin, then remove the manual intervention and use hanging-punctuation if supported.

12. Hyphenation

Turn on hyphenation for prose. Language is required in order for the browser to use the correct hyphenation dictionary.

.prose {
    -webkit-hyphens: auto;
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 3;
    -webkit-hyphenate-limit-lines: 2;

    hyphens: auto;
    hyphenate-limit-chars: 7 4 3;
    hyphenate-limit-lines: 2;    
    hyphenate-limit-zone: 8%;
    hyphenate-limit-last: always;
}

Include additional refinements to hyphenation. Respectively, these stop short words being hyphenated, prevent ladders of hyphens, and reduce overall hyphenation a bit. Safari uses legacy properties to achieve some of the same effects, hence the ugly prefixes and slightly different syntax.

.prose pre, .prose code, .prose var, .prose samp, .prose kbd,
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    -webkit-hyphens: manual;
    hyphens: manual;
}

Turn hyphens off for monospace and headings.

13. Dark mode/inverted text

Reduce grade if available to prevent bloom of inverted type.

:root {
  --vf-grad: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --vf-grad: -50;
  }
}

* {
  font-variation-settings: "GRAD" var(--vf-grad, 0);
}

Not all fonts have a grade (GRAD) axis, and the grade number is font-specific. We’re using the customer property method because font-variation-settings provides low-level control meaning each subsequent use of the property completely overrides prior use – the values are not inherited or combined, unlike with font-variant for example.

There are probably better ways of doing some of these things, and the preview page is rather lacking at the moment. Please let me know on Github, or better still fork it, edit and resubmit.

Read or add comments




ty

Bristol City have depth to be top team - Mehmeti

Bristol City have the squad depth to be a "top team" and challenge in the Championship this season says forward Anis Mehmeti.




ty

Newspapers & trending: Stars return to city centre

A look at what stories are trending across the West of England on 13 November 2024.







ty

Why Does The City Of London Cross Some Bridges And Not Others?

Boundary anomalies, ahoy!




ty

Call of Duty: Black Ops 6 launches, Kia EV3 scoops EV award

Call of Duty: Black Ops 6 has finally dropped for gamers to get stuck into. The Call of Duty (CoD) series is one of the best-selling in history with more […]

The post Call of Duty: Black Ops 6 launches, Kia EV3 scoops EV award appeared first on ShinyShiny.




ty

Is Nintendo Switch 2 about to be announced? Instagram lowers quality of less popular videos

The internet is still convinced a Nintendo Switch 2 announcement is going to happen this month, as a part of a major third-party open world game is also rumoured. It’ll […]

The post Is Nintendo Switch 2 about to be announced? Instagram lowers quality of less popular videos appeared first on ShinyShiny.




ty

In Defence of Anonymity

Last month, I was invited to speak at TEDx East End. The theme was 'Society Beyond Borders,' so I opted to talk about the history of anonymity, and why it is so important to preserve it for marginalised activists and writers.

Very often when you see the word 'anonymous' these days, it's followed almost immediately by the word 'troll'. But the rich history of anonymity and pseudonymity is far more than that, and has been a refuge for artists and others almost since the beginning of recorded history. In this talk I explore some of the leading lights of anonymity, and why they chose not to use their real names.





ty

News roundup: I Like Eich. 140 byte synthesizer, An End To Negativity, Sencha Touch 2.0, Dart (again)

Listen to this week's podcast (October 29, 2011) (23:05 minutes) I'm trying a little something different this week. I hope you guys like pictures. :) Brenden Eich + "I Like Ike" mashup by @lonnen 140 byte synthesizer A while back Jed Schmidt created a simple little project on GitHub called 140 bytes ...




ty

Did the change of start time affect your ability to watch the Brazilian GP? | Debates and Polls

F1 did something it has never done before last weekend and moved a race start time earlier. But did that affect your ability to watch?



  • Debates and Polls

ty

Michigan development program not a pretty site

Taxpayers lose with poorly designed site preparation program