Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit ef1d5c7

Browse files
author
BSKY
authored
Translate docs/sass (#42)
Translate docs/sass
2 parents 78e8ced + 63e6603 commit ef1d5c7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/docs/sass.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
---
2-
title: Using Sass in Gatsby
2+
title: Gatsby で Sass を使用する
33
---
44

5-
[Sass](https://sass-lang.com) is an extension of CSS, adding nested rules, variables, mixins, selector inheritance, and more. In Gatsby, Sass code can be translated to well-formatted, standard CSS using a plugin.
5+
[Sass](https://sass-lang.com) CSS にネストや変数、ミックスイン、セレクターの継承などを追加して拡張したものです。Gatsby では、プラグインを使用して Sass を適切な形式の CSS に変換できます。
66

7-
Sass will compile `.sass` and `.scss` files to `.css` files for you, so you can write your stylesheets with more advanced features.
7+
Sass はより高度な機能を使用したスタイルシートを `.sass` もしくは `.scss` ファイルに記述し、それらを `.css` ファイルにコンパイルします。
88

9-
> **Note**: the difference between using a `.sass` or `.scss` file is the syntax that you write your styles in. All valid CSS is valid SCSS as well so it is the easiest to use and most popular. You can read more about the differences in the [Sass documentation](https://sass-lang.com/documentation/syntax).
9+
> **ヒント**: `.sass` `.scss` ファイルはスタイルを記述する文法が異なります。全ての有効な CSS 記法は SCSS でも使用可能であるため、もっとも使いやすく人気があります。これらの違いについては、[Sass documentation](https://sass-lang.com/documentation/syntax) をご覧ください。
1010
11-
## Installing and configuring Sass
11+
## Sass のインストールと設定
1212

13-
This guide assumes that you have a Gatsby project set up. If you need to set up a project, head to the [**Quick Start guide**](/docs/quick-start/), then come back.
13+
このガイドでは、Gatsby プロジェクトが準備されている必要があります。もしプロジェクトの準備が完了していない場合は、[**クイックスタートガイド**](/docs/quick-start/)を参照しましょう。
1414

15-
1. Install the Gatsby plugin [**gatsby-plugin-sass**](/packages/gatsby-plugin-sass/) and `node-sass`, a required peer dependency as of v2.0.0.
15+
1. Gatsby プラグイン [**gatsby-plugin-sass**](/packages/gatsby-plugin-sass/) および v2.0.0 以降の `node-sass` をインストールします。
1616

1717
`npm install --save node-sass gatsby-plugin-sass`
1818

19-
2. Include the plugin in your `gatsby-config.js` file.
19+
2. プラグインを `gatsby-config.js` ファイルに追記します。
2020

2121
```javascript:title=gatsby-config.js
2222
plugins: [`gatsby-plugin-sass`],
2323
```
2424

25-
> **Note**: You can configure [additional plugin options](/packages/gatsby-plugin-sass/#other-options) like paths to include and options for `css-loader`.
25+
> **ヒント**: パスや `css-loader` のオプションなど、[追加のプラグインオプション](/packages/gatsby-plugin-sass/#other-options)を設定できます。
2626
27-
3. Write your stylesheets as `.sass` or `.scss` files and require or import them as normal.
27+
3. スタイルシートを `.sass` もしくは `.scss` ファイルに記述し、require もしくは import で取り込みます。
2828

2929
```css:title=styles.scss
3030
$font-stack: Helvetica, sans-serif;
@@ -50,7 +50,7 @@ import "./styles.scss"
5050
import "./styles.sass"
5151
```
5252

53-
## Other resources
53+
## その他の参照文献
5454

5555
- [Introduction to Sass](https://designmodo.com/introduction-sass/)
5656
- [Sass documentation](https://sass-lang.com/documentation)

0 commit comments

Comments
 (0)