タグ

ブックマーク / ishadeed.com (12)

  • Designing better target sizes

    Intro As a user, you need to interact with clickable UI elements like buttons, links, cards, and more. If an action has a small target size, it will be harder for the user to click, or they might click an adjacent action element by mistake. Let’s take a look at the following example.

    Designing better target sizes
    efcl
    efcl 2024/01/19
    ユーザーがアクションをトリガーするためにクリックやタップする領域であるターゲットサイズについての記事。 タッチサイズ、Spacing、フィードバック。 実際のウェブサイトの例として、階層メニューのSafe Areaの三角形を
  • The CSS behind Figma

    While learning how to build a Figma plugin, I stumbled upon a few interesting usages of Flexbox and Grid in Figma. When I found them, I just got distracted and couldn’t resist digging more. Flexbox and Grid have been providing us web developers with lots of new capabilities to build new layouts, and what I will show you in this article is just that. To move along with this article, you don’t need

    The CSS behind Figma
    efcl
    efcl 2022/07/25
    FigmaのアプリそのものにおけるFlexboxとCSS Gridの使い方についてみていく記事。 ボタンの配置や位置合わせアイコンにおけるGridの利用法、レイヤーのツリー構造を表現するFlexboxの利用法について
  • Defensive CSS

    👋 This article has been expanded into a new project called Defensive CSS. Due to the fact that the content here will not be updated, I recommend you to read defensivecss.dev instead. Oftentimes, we wish that there was a way to avoid a certain CSS issue or behaviors from happening. You know, content is dynamic, and things can change on a web page, thus increasing the possibility of a CSS issue or

    Defensive CSS
    efcl
    efcl 2021/12/22
    防御的CSS
  • Less Absolute Positioning With Modern CSS

    Each time I work on a component that needs absolute positioning, I ask myself: is it really necessary? I started to notice a few use-cases where using position: absolute isn’t needed. I found this interesting and I thought about documenting the use-cases that I usually came through while working on front-end projects. In this article, I will explore a few use-cases that using absolute positioning

    Less Absolute Positioning With Modern CSS
    efcl
    efcl 2021/11/15
    CSSの`position: absolute`を使わなくても同等の表現ができるという紹介。 Gridを使った要素の重ね、`order`を使った表示順の変更、`aspect-ratio`を使った画像のアスペクト比の指定など。 また`position: absolute`を使った方が良いユース
  • Building A Stepper Component

    The other day, I got a question about how to build a responsive stepper component and how to take care of the separator lines. The demo I got from the developer was a bit complex and have lots of unnecessary CSS stuff. As a result, I got the idea of writing about it. In this article, I will explore different designs for a stepping component and see the best way to implement each one in HTML and CS

    Building A Stepper Component
    efcl
    efcl 2021/09/02
    疑似要素とborderでチュートリアルのStep的なUIを縦、横のデザインを作る話
  • The State Of Mobile First and Desktop First

    Have you often thought about whether to implement a mobile-first or a desktop-first approach? Recently, I shared a Twitter poll about how many uses mobile-first vs desktop-first, and the results were interesting. The total number of votes is 648, and here are the stats: Mobile-first: 33.3% Desktop first: 21.9% Mix of both: 24.7% In this article, I will explore with you what each method means, and

    The State Of Mobile First and Desktop First
    efcl
    efcl 2021/08/19
    CSSを書くときにMobileとDesktop向けのどちらを先に書くかについて。 MobileとDesktopのどちらかを先に書いて、もう一方をMedia Queryで上書きしたときのコード量や拡張性の違いについて。 また、ベースとそれぞれを書いた場合やFle
  • Let's Learn About Aspect Ratio In CSS

    Having a consistent ratio between the width and height of images and other responsive elements is important. In CSS, we used the padding hack for many years, but now we have native aspect ratio support in CSS. In this article, I will discuss what is aspect ratio, how we used to do it, what’s the new way of doing it. Of course, there will be use cases with a proper fallback for them. Let’s dive in!

    Let's Learn About Aspect Ratio In CSS
    efcl
    efcl 2021/06/26
    CSSの`aspect-ratio`プロパティの使い方やサポートしてないブラウザへの対応についてなど
  • Custom Scrollbars In CSS

    Custom scrollbars are getting more popular nowadays, and I’m very keen to dig into them. There are different reasons why to customize a scrollbar. For example, the default scrollbar can make an app UI look inconsistent across multiple operating systems, and here we can get the benefit of having a unified style. I have always been interested in learning about how to customize a scrollbar in CSS but

    Custom Scrollbars In CSS
    efcl
    efcl 2021/06/26
    CSSでスクロールバーのスタイル変更
  • Digging Into CSS Logical Properties

    The support for CSS logical properties is getting better by time. However, I still struggle to memorize them each time I want to use them in a project. What does start mean? And what does end mean? It’s a bit tricky to grasp all the details without trial and error. In this article, I aim to get you up and running to use logical properties today with a solid understanding from the perspective of a

    Digging Into CSS Logical Properties
    efcl
    efcl 2021/03/13
    RTLに対応したCSSの書き方と`margin-inline-end`について。
  • Understanding Z-Index in CSS

    @shadeed9 Understanding Z-Index in CSS A visual guide on how z-index and stacking contexts work in CSS. What is Z-Index?The z-index property defines the order of the elements on the z-axis. Basically, it works on elements with a position value other than static. The duck and the ring are within the same parent (the water). Can you guess which will come in front of the other? <div class="water"> <d

    Understanding Z-Index in CSS
    efcl
    efcl 2021/02/22
    CSSの`z-index`について図とともに視覚的に学べるチュートリアル。 スタックコンテキスト、スタックコンテキストを作るプロパティ、`z-index`との関係について
  • A Deep Dive Into CSS Grid minmax()

    There are a lot of tutorials and guides out there that teach CSS grid in general, and I wrote about it multiple times. However, I noticed that there is a misunderstanding of the minmax() function as most of the articles are generic or don’t provide enough explanation and real-world use-cases. The minmax() is very powerful and useful. For that specific reason, I thought that writing a complete guid

    A Deep Dive Into CSS Grid minmax()
    efcl
    efcl 2020/12/03
    CSS Gridの`minmax()`、`autofit`、`autofill`について。
  • CSS Writing Mode

    📖 Get Debugging CSS book for 40% off via the code "blackfriday23". Buy now Recently, while editing some CSS in Opera inspector, I noticed a CSS property called writing-mode, that was the first time I knew of it. After some research, I learned that its purpose is for vertical language scripts, like Chinese or Japanese. However, the interesting thing is that when using it with English, we can creat

    CSS Writing Mode
    efcl
    efcl 2016/08/07
    CSSの`writing-mode`について
  • 1