• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4252 shaares
2 / 32
Filters
623 results tagged webdesign

A practical guide to using shadow DOM

QRCode

How (and why) to use shadow DOM, now that the declarative syntax is here.

https://www.youtube.com/watch?v=8Z8H2NEbLtE

shadow DOM has lower precedence than regular styles

(X, Y, Z)
#id, classes and attrs, elements

[id="myid"] is (0,1,0) not (1,0,0)!

You can duplicate classes to increase specificity! (0, 4, 0)
.button.button.button.button
or
.button {
&&& {
}
}

is( .button, #hammertime )
.button:not(#id1#id2) -> "impossible" because two IDs, (2, 0, 0)!

Decreasing specificity

:where( .button) -> (0,0,0)

** Very useful for css reset!
input:where([type="checkbox"])

17:55 - meta keyword in sass

** Might need to use !important in layers (dialog: display:none)

https://mayank.co/blog/declarative-shadow-dom-guide/
November 21, 2024 at 2:26:17 PM EST *
webdesign css html
FILLER

OpenFreeMap

QRCode

OpenFreeMap – Open-Source Map Hosting lets you display custom maps on your website and apps for free.

Who is behind this project and how can I follow it?
I’m Zsolt Ero (blog, email).

After 9 years of running my own map tile infrastructure for MapHub, I’ve open-sourced it and launched OpenFreeMap.

X: @hyperknot (for details)
X: @OpenFreeMapOrg (for announcements)

GitHub: openfreemap and openfreemap-styles

https://openfreemap.org/
October 11, 2024 at 9:42:48 AM EDT *
webdesign maps
FILLER

An HTML element id is a global variable

QRCode

Little relatively unknown fact, if you have an id attribute on an element, you can reference it in this way:

<button id="yo">…</button>
yo.onclick = ...

Furthermore, child elements with a name attribute can be referenced in this way:

<form id="x"> 
  <input name="em"> 
</form>
x.em.onclick = ...
https://flaviocopes.com/an-html-element-id-is-a-global-variable/
October 7, 2024 at 3:36:27 PM EDT *
javascript webdesign forms css
FILLER

How I build a button component - Piccalilli

QRCode

A button is arguably the most likely component to find itself in your codebase so I’m going to show you how I approach building one.

https://piccalil.li/blog/how-i-build-a-button-component/
October 7, 2024 at 3:35:02 PM EDT *
buttons css webdesign
FILLER

Styling Tables the Modern CSS Way - Piccalilli

QRCode

Modern CSS makes styling HTML tables in a considered, responsive nature a breeze. Michelle Barker breaks it all down for you in this deep dive.

https://piccalil.li/blog/styling-tables-the-modern-css-way/
October 7, 2024 at 3:26:58 PM EDT *
tables css webdesign
FILLER

Great Animations

QRCode

What it takes to craft great animations.

  • Great animations feel natural
  • Great animations are fast
  • Great animations have a purpose
  • Great animations are interruptible
https://emilkowal.ski/ui/great-animations
August 2, 2024 at 9:30:04 AM EDT *
webdesign animation
FILLER

How not to use box shadows

QRCode

So you think you know box shadows huh? I bet you didn't know they could do this.

https://dgerrells.com/blog/how-not-to-use-box-shadows
August 2, 2024 at 9:28:21 AM EDT *
css webdesign shadow
FILLER

When life gives you lemons, write better error messages

QRCode

About a year ago at Wix, we abruptly realized that, too often, we were not giving users the answers to these questions. When we got this wake-up call, we felt compelled to act swiftly, and not just to address the one error message that woke us up.

This is an example of a bad error message. It uses an inappropriate tone, passes the blame, speaks in technical jargon and is too generic.

https://medium.com/deliveroo-design/how-to-write-any-error-message-7a3348cce594

https://wix-ux.com/when-life-gives-you-lemons-write-better-error-messages-46c5223e1a2f
August 2, 2024 at 9:22:35 AM EDT *
errors ux webdesign writing
FILLER

CSS Grid Areas

QRCode

A fresh look at the CSS grid template areas and how to take advantage of its full potential today.

https://ishadeed.com/article/css-grid-area/
July 22, 2024 at 10:11:21 AM EDT *
css grid webdesign
FILLER

The Modern Guide For Making CSS Shapes — Smashing Magazine

QRCode

I get asked this question often, and my answer is always the same: Use SVG if you can! I have nothing against SVG. It’s just another approach for creating shapes using another syntax with another set of considerations. If SVG was my expertise, then I would be writing about that instead!

https://www.smashingmagazine.com/2024/05/modern-guide-making-css-shapes/
May 28, 2024 at 2:52:03 PM EDT *
css webdesign
FILLER

Hardest Problem in Computer Science: Centering Things @ tonsky.me

QRCode

The text will be off! Even though rectangles are perfectly centered.
But even if font can have its metrics unbalanced, it doesn’t mean it does. What happens in reality?
In reality, most of the popular fonts have metrics slightly off. Many have it significantly off:

https://tonsky.me/blog/centering/
May 20, 2024 at 2:36:18 PM EDT *
fonts webdesign css flexbox
FILLER

93 Beautiful CSS box-shadow examples - CSS Scan

QRCode

🎨 Curated collection of 93 free beautiful CSS box-shadow, ready-to-use for your next projects. Click to copy.

https://getcssscan.com/css-box-shadow-examples
April 2, 2024 at 11:41:13 AM EDT *
css webdesign
FILLER

Better Sales Pages with better Typography - Pimp my Type

QRCode

Five tips to design a convincing sales page by better using typography.

https://pimpmytype.com/sales-page/
March 19, 2024 at 11:30:43 AM EDT *
webdesign typography
FILLER

CSS Button Styles You Might Not Know | David Bushell

QRCode

Visual Focus

Accessibility is for everyone. I like using keyboard navigation to tab through interactive elements. Sadly I’ve lost count of how many clients have asked me to “remove that ugly border” around focused buttons.

Button focus state can be improved with two tricks:

.button {
  &:focus-visible {
    outline: 2px solid magenta;
    outline-offset: 2px;
  }
}

First, I replace the default focus pseudo-class with focus-visible. MDN has a long section on focus vs focus-visible. Basically it’s what the original should have been in hindsight.

https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible#focus_vs_focus-visible

Second, I use outline-offset to give some breathing room between the focus ring and the button itself. If the button has a prominent border style the outline would sit flush against it looking like a double border. Adding an offset makes the focus state more visible.

One thing to note is that ::file-selector-button does not get focus, rather the parent input does, so apply styles there.

https://dbushell.com/2024/03/10/css-button-styles-you-might-not-know/
March 18, 2024 at 1:43:14 PM EDT *
buttons forms accessibility webdesign
FILLER

Bookmarklet Maker

QRCode

Bookmarklet creator tool.

https://caiorss.github.io/bookmarklet-maker/
March 18, 2024 at 1:37:41 PM EDT *
bookmarklet javascript webdesign browser
FILLER

Designing better target sizes

QRCode

An interactive guide on designing better target sizes on the web.

https://ishadeed.com/article/target-size/
March 18, 2024 at 1:34:56 PM EDT *
buttons forms accessibility webdesign
FILLER

Design-Pattern Guidelines: Study Guide

QRCode

Unsure how to design and implement user-interface patterns? Use this collection of links to our content about specific patterns.

  • A Note on Interface Guidelines
  • Input Controls
  • Forms and Wizards
  • Tooltips, Dialogs, Instructional Overlay
  • Icons and Indicators
  • Menu Design
  • Site Navigation Elements
  • In-Page Navigation
  • Search
  • Errors
  • Privacy and Ethics
https://www.nngroup.com/articles/design-pattern-guidelines/
March 11, 2024 at 3:12:28 PM EDT *
webdesign designsystem forms ux
FILLER

How SVG Fragment Identifiers Work | CSS-Tricks - CSS-Tricks

QRCode

I've talked a good bit about SVG's around here and using it to build an icon system. The beauty of is that you can reference just a part of some SVG defined

https://css-tricks.com/svg-fragment-identifiers-work/
February 13, 2024 at 9:17:59 AM EST *
svg css webdesign
FILLER

Design algorithm | Principles | UI Typography

QRCode
https://imperavi.com/books/ui-typography/principles/design-algorithm/
January 26, 2024 at 5:28:16 PM EST *
typography fonts design webdesign
FILLER

GitHub - paulirish/lite-youtube-embed: A faster youtube embed.

QRCode

A faster youtube embed. Contribute to paulirish/lite-youtube-embed development by creating an account on GitHub.

https://github.com/paulirish/lite-youtube-embed
January 13, 2024 at 12:54:13 PM EST *
youtube video webdesign
FILLER
2 / 32
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community