Skip to content

Commit 676f94d

Browse files
rhiroyukicezaraugusto
authored andcommitted
Translate Styling and CSS to pt-BR (#36)
1 parent 243c989 commit 676f94d

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

content/docs/faq-styling.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
id: faq-styling
3-
title: Styling and CSS
3+
title: Estilização e CSS
44
permalink: docs/faq-styling.html
55
layout: docs
66
category: FAQ
77
---
88

9-
### How do I add CSS classes to components? {#how-do-i-add-css-classes-to-components}
9+
### Como eu adiciono classes de CSS nos componentes? {#how-do-i-add-css-classes-to-components}
1010

11-
Pass a string as the `className` prop:
11+
Passe a string para a prop `className`:
1212

1313
```jsx
1414
render() {
1515
return <span className="menu navigation-menu">Menu</span>
1616
}
1717
```
1818

19-
It is common for CSS classes to depend on the component props or state:
19+
É comum para classes do CSS dependerem de props ou o state do componente.
2020

2121
```jsx
2222
render() {
@@ -28,24 +28,24 @@ render() {
2828
}
2929
```
3030

31-
>Tip
31+
>Dica
3232
>
33-
>If you often find yourself writing code like this, [classnames](https://www.npmjs.com/package/classnames#usage-with-reactjs) package can simplify it.
33+
>Se você frequentemente se vê escrevendo código assim, o pacote [classnames](https://www.npmjs.com/package/classnames#usage-with-reactjs) pode simplicar isso.
3434
35-
### Can I use inline styles? {#can-i-use-inline-styles}
35+
### Posso utilizar estilo inline? {#can-i-use-inline-styles}
3636

37-
Yes, see the docs on styling [here](/docs/dom-elements.html#style).
37+
Sim, veja os docs sobre estilização [aqui](/docs/dom-elements.html#style).
3838

39-
### Are inline styles bad? {#are-inline-styles-bad}
39+
### É ruim utilizar estilos inline? {#are-inline-styles-bad}
4040

41-
CSS classes are generally better for performance than inline styles.
41+
Classes CSS geralmente possuem melhor performance que estilos inline.
4242

43-
### What is CSS-in-JS? {#what-is-css-in-js}
43+
### O que é CSS-in-JS? {#what-is-css-in-js}
4444

45-
"CSS-in-JS" refers to a pattern where CSS is composed using JavaScript instead of defined in external files. Read a comparison of CSS-in-JS libraries [here](https://github.com/MicheleBertoli/css-in-js).
45+
"CSS-in-JS" se refere a um padrão onde o CSS é definido utilizando Javascript no lugar de arquivos externos. Leia a comparação das bibliotecas de CSS-in-JS [aqui](https://github.com/MicheleBertoli/css-in-js).
4646

47-
_Note that this functionality is not a part of React, but provided by third-party libraries._ React does not have an opinion about how styles are defined; if in doubt, a good starting point is to define your styles in a separate `*.css` file as usual and refer to them using [`className`](/docs/dom-elements.html#classname).
47+
_Note que esta funcionalidade não faz parte do React, mas é fornecida por bibliotecas de terceiros._ React não possui uma opinião sobre como os estilos são definidos; se estiver em dúvida, um bom ponto de partida é definir seus estilos em um arquivo `.css` separado e referenciá-los usando [`className`](/docs/dom-elements.html#classname).
4848

49-
### Can I do animations in React? {#can-i-do-animations-in-react}
49+
### Posso fazer animações em React? {#can-i-do-animations-in-react}
5050

51-
React can be used to power animations. See [React Transition Group](https://reactcommunity.org/react-transition-group/) and [React Motion](https://github.com/chenglou/react-motion), for example.
51+
O React pode ser usado para animações. Veja [React Transition Group](https://reactcommunity.org/react-transition-group/) e [React Motion](https://github.com/chenglou/react-motion), por exemplo.

content/docs/nav.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
- id: faq-state
145145
title: Component State
146146
- id: faq-styling
147-
title: Styling and CSS
147+
title: Estilização e CSS
148148
- id: faq-structure
149149
title: File Structure
150150
- id: faq-versioning

0 commit comments

Comments
 (0)