Skip to content

Commit 2b7d67f

Browse files
committed
translate style guide to Korean
1 parent ce8a27a commit 2b7d67f

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

README.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
- [JavaScript hooks](#javascript-hooks)
1717
- [Border](#border)
1818
1. [Sass](#sass)
19-
- [Syntax](#syntax)
20-
- [Ordering](#ordering-of-property-declarations)
21-
- [Variables](#variables)
22-
- [Mixins](#mixins)
23-
- [Extend directive](#extend-directive)
24-
- [Nested selectors](#nested-selectors)
25-
1. [Translation](#translation)
19+
- [Syntax](#문법)
20+
- [Ordering](#속성-선언-순서)
21+
- [Variables](#변수)
22+
- [Mixins](#믹스인(이하-mixins))
23+
- [Extend directive](#extend-지시자)
24+
- [Nested selectors](#중첩-선택자)
25+
1. [Translation](#번역)
2626

2727
## Terminology
2828

@@ -203,16 +203,16 @@ Use `0` instead of `none` to specify that a style has no border.
203203

204204
## Sass
205205

206-
### Syntax
206+
### 문법
207207

208-
* Use the `.scss` syntax, never the original `.sass` syntax
209-
* Order your regular CSS and `@include` declarations logically (see below)
208+
* 항상 `.sass`가 아닌 `.scss` 문법을 사용해주세요.
209+
* 보통 CSS와 `@include` 선언은 논리적으로 순서를 정리해주세요. (아래 예시를 참조)
210210

211-
### Ordering of property declarations
211+
### 속성 선언 순서
212212

213-
1. Property declarations
213+
1. 속성 선언
214214

215-
List all standard property declarations, anything that isn't an `@include` or a nested selector.
215+
우선 표준 속성 선언을 먼저 작성합니다. `@include` 혹은 중첩 선택자는 아직 적지 않습니다.
216216

217217
```scss
218218
.btn-green {
@@ -222,9 +222,9 @@ Use `0` instead of `none` to specify that a style has no border.
222222
}
223223
```
224224

225-
2. `@include` declarations
225+
2. `@include` 선언
226226

227-
Grouping `@include`s at the end makes it easier to read the entire selector.
227+
`@include`를 마지막에 모아놓으면 전체 선택자를 쉽게 독해할 수 있습니다.
228228

229229
```scss
230230
.btn-green {
@@ -235,9 +235,9 @@ Use `0` instead of `none` to specify that a style has no border.
235235
}
236236
```
237237

238-
3. Nested selectors
238+
3. 중첩 선택자
239239

240-
Nested selectors, _if necessary_, go last, and nothing goes after them. Add whitespace between your rule declarations and nested selectors, as well as between adjacent nested selectors. Apply the same guidelines as above to your nested selectors.
240+
중첩 선택자는 마지막에 위치합니다. 그리고 그 다음으로는 아무것도 오지 않습니다. 규칙 선언부와 중첩 선택자 사이에는 여백을 추가하며, 중첩 선택자 사이에도 마찬가치입니다. 중첩 선택자 내부 속성들 또한 위의 규칙을 따릅니다.
241241

242242
```scss
243243
.btn {
@@ -251,21 +251,22 @@ Use `0` instead of `none` to specify that a style has no border.
251251
}
252252
```
253253

254-
### Variables
254+
### 변수
255255

256-
Prefer dash-cased variable names (e.g. `$my-variable`) over camelCased or snake_cased variable names. It is acceptable to prefix variable names that are intended to be used only within the same file with an underscore (e.g. `$_my-variable`).
256+
변수 이름을 정할 때는 `-`를 사용하는 것을 권장합니다. 같은 파일 내에서만 사용될 변수에 한해서는 접두어를 추가해도 괜찮습니다. (예- `$_my-variable`).
257257

258-
### Mixins
259258

260-
Mixins should be used to DRY up your code, add clarity, or abstract complexity--in much the same way as well-named functions. Mixins that accept no arguments can be useful for this, but note that if you are not compressing your payload (e.g. gzip), this may contribute to unnecessary code duplication in the resulting styles.
259+
### 믹스인(이하 Mixins)
261260

262-
### Extend directive
261+
Mixin은 코드를 DRY하게 하고 명료하게 하며, 복잡성을 줄이기 위해 사용해야 합니다. 인자를 받지 않는 Mixin은 이럴 때 유용합니다. 하지만 만약 당신이 페이로드(payload)를 압축하지 않는다면(예- gzip), 불필요한 코드 중복이 발생하게 됩니다.
263262

264-
`@extend` should be avoided because it has unintuitive and potentially dangerous behavior, especially when used with nested selectors. Even extending top-level placeholder selectors can cause problems if the order of selectors ends up changing later (e.g. if they are in other files and the order the files are loaded shifts). Gzipping should handle most of the savings you would have gained by using `@extend`, and you can DRY up your stylesheets nicely with mixins.
263+
### Extend 지시자
265264

266-
### Nested selectors
265+
`@extend`는 직관적이지 않고 특히 중첩 선택자와 함께 사용할 때 위험성이 있기 때문에 사용하지 않는 것을 권장합니다. 심지어 최상위 placeholder 선택자를 extend해도 선택자들의 순서가 바뀌게 되면 문제가 발생할 수 있습니다. `@extend`를 사용함으로써 얻을 수 있는 이점은 Gzip을 사용하면 해결될 뿐더러, 스타일시트를 DRY하게 만들기 위해서는 mixin을 사용하면 됩니다.
267266

268-
**Do not nest selectors more than three levels deep!**
267+
### 중첩 선택자
268+
269+
**중첩은 최대 3번까지!**
269270

270271
```scss
271272
.page-container {
@@ -277,20 +278,19 @@ Mixins should be used to DRY up your code, add clarity, or abstract complexity--
277278
}
278279
```
279280

280-
When selectors become this long, you're likely writing CSS that is:
281-
282-
* Strongly coupled to the HTML (fragile) *—OR—*
283-
* Overly specific (powerful) *—OR—*
284-
* Not reusable
281+
만약 선택자가 이렇게 길어진다면, 당신은 다음과 같은 CSS를 작성하고 있을 가능성이 높습니다:
285282

283+
* HTML과 밀접하게 엮여있다.(망가지기 쉬움)
284+
* 너무 구체적이다.
285+
* 재사용할 수 없다.
286286

287-
Again: **never nest ID selectors!**
287+
강조: **절대로 ID 선택자는 중첩하지 마세요!**
288288

289-
If you must use an ID selector in the first place (and you should really try not to), they should never be nested. If you find yourself doing this, you need to revisit your markup, or figure out why such strong specificity is needed. If you are writing well formed HTML and CSS, you should **never** need to do this.
289+
어쩔 수 없이 ID 선택자를 사용해야한다면(사용하지 않는 것이 가장 좋습니다.), 절대로 중첩되지 않도록 유의하세요. 만약 중첩시키게 된다면, 왜 그렇게 특수한 케이스가 발생하는지 먼저 고민해보는 것이 좋습니다. 만약 당신이 잘 구성된 HTML과 CSS를 사용한다면 절대로 이렇게 할 필요가 없습니다.
290290

291-
## Translation
291+
## 번역
292292

293-
This style guide is also available in other languages:
293+
이 스타일 가이드는 여러가지 언어로 번역 돼 있습니다:
294294

295295
- ![cn](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/China.png) **Chinese (Simplified)**: [Zhangjd/css-style-guide](https://github.com/Zhangjd/css-style-guide)
296296
- ![ru](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Russia.png) **Russian**: [Nekorsis/css-style-guide](https://github.com/Nekorsis/css-style-guide)

0 commit comments

Comments
 (0)