<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomotomo1129</author_name>
  <author_url>https://blog.hatena.ne.jp/tomotomo1129/</author_url>
  <blog_title>Web開発における知見共有系ページ</blog_title>
  <blog_url>https://job-info.hateblo.jp/</blog_url>
  <categories>
    <anon>CSS</anon>
    <anon>SCSS</anon>
  </categories>
  <description>SCSSでswitch文を使用 SCSSでのswitch文の模倣 SCSSでの条件分岐を活用する例 SCSSでswitch文を使用 SCSS自体にはJavaScriptや他のプログラミング言語のようなswitch文が直接サポートされていません。 しかし、似たような機能を実現するためには、SCSSの@mixinや@function、@ifディレクティブを使うことができます。 以下に、SCSSでswitch文のような動作を模倣する方法を説明します。 SCSSでのswitch文の模倣 1. Mixinを使用した方法: @mixinを使用して、異なるスタイルを条件に応じて適用することができます。 @m…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjob-info.hateblo.jp%2Fentry%2F2024%2F08%2F21%2F091505&quot; title=&quot;SCSSでswitch文を使用 - Web開発における知見共有系ページ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-08-21 09:15:05</published>
  <title>SCSSでswitch文を使用</title>
  <type>rich</type>
  <url>https://job-info.hateblo.jp/entry/2024/08/21/091505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
