Re: [ANNOUNCE] Welcome new committer Douma Fang
Hey, developers in Weex community, I am Douma Fang. Thanks a lot for the trust you showed me during my work for Incubator Weex project. I think this project is very promising and is very worth invseting energy. And it was also nice of Adam to send me an invitation to become Incubator Weex committer. I come from China and focus on developing components and modules of WeexSDK, now I am working for Alibaba,Inc. Also I will continue contributing code to Incubator Weex project. I sincerely wish we can have a great cooperation relationship in Weex community. Very sincerely yours, Douma Fang. > 在 2018年12月12日,12:43,Adam Feng 写道: > > Hi, Community, > > I am pleased to announce that Douma Fang, whose Apache JIRA user name is @qz > and Github user name is @doumafang, has been voted in as a new Incubator Weex > committer. > > He has did and is doing a great job on Weex, especially in iOS part, and I > just want to say thanks and congratulations. Please join me to say > congratulations to Douma Fang! > > Douma, would you please briefly introduce yourself to the community? > > Thanks. > Adam Feng
[ANNOUNCE] Welcome new committer Douma Fang
Hi, Community, I am pleased to announce that Douma Fang, whose Apache JIRA user name is @qz and Github user name is @doumafang, has been voted in as a new Incubator Weex committer. He has did and is doing a great job on Weex, especially in iOS part, and I just want to say thanks and congratulations. Please join me to say congratulations to Douma Fang! Douma, would you please briefly introduce yourself to the community? Thanks. Adam Feng
[GitHub] YorkShen closed pull request #229: * [doc] Update doc for line-height.
YorkShen closed pull request #229: * [doc] Update doc for line-height. URL: https://github.com/apache/incubator-weex-site/pull/229 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/source/cn/wiki/text-styles.md b/source/cn/wiki/text-styles.md index 89a5d84e7..4a66ad76f 100644 --- a/source/cn/wiki/text-styles.md +++ b/source/cn/wiki/text-styles.md @@ -34,6 +34,7 @@ version: 2.1 * `text-overflow {string}`:设置内容超长时的省略样式。可选值 `clip` | `ellipsis` >> 只有 ``和``组件支持。 * `lines {number}`: 正整数,指定最大文本行数,默认值为0,表示不限制最大行数。如果文本不够长,实际展示行数会小于指定行数。 +* `line-height {length}`:正整数,每行文字高度。`line-height`是 top 至 bottom 的距离。![line-height](http://i.stack.imgur.com/LwZJF.png)`line-height`与`font-size`没有关系,因为`line-height`被 top 和 bottom 所限制,`font-size` 被 glyph 所解析。`line-height`和`font-size`相等一般会导致文字被截断。 ## 其它参考 - [颜色关键字列表](./color-names.html)。 diff --git a/source/wiki/text-styles.md b/source/wiki/text-styles.md index 1cb5c8dec..40592f1f0 100644 --- a/source/wiki/text-styles.md +++ b/source/wiki/text-styles.md @@ -39,6 +39,7 @@ Text alike components share some common style rules. The text alike components c - `text-overflow`:`clip` | `ellipsis`. This property determines how overflowed content that is not displayed is signaled to users. It can be clipped, display an ellipsis. >> Only support for `` and `` - `lines`: positive number. This is the max lines of text that would be displayed, the default value is 0 which means there is no restriction on text lines. If the text is not enough, the actual number of line may be shorter than the specified value. +- `line-height`: The line height of every line in the text. `line-height` is the space between top and bottom.![line-height](http://i.stack.imgur.com/LwZJF.png) There is no relationship between `line-height` and `font-size`, as `line-height` is restricted by top and bottom, `font-size` is interpreted by glyph. Usually but not always, `line-height` and `font-size` with the same value will cause the text clipped. ## Note * [The list of color keywords.](./color-names.html) This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] YorkShen opened a new pull request #229: * [doc] Update doc for line-height.
YorkShen opened a new pull request #229: * [doc] Update doc for line-height. URL: https://github.com/apache/incubator-weex-site/pull/229 This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] YorkShen closed pull request #228: * [Android] Update doc for text-style.
YorkShen closed pull request #228: * [Android] Update doc for text-style. URL: https://github.com/apache/incubator-weex-site/pull/228 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/source/cn/wiki/text-styles.md b/source/cn/wiki/text-styles.md index be9153068..89a5d84e7 100644 --- a/source/cn/wiki/text-styles.md +++ b/source/cn/wiki/text-styles.md @@ -10,38 +10,30 @@ version: 2.1 v0.5+ -文本类组件共享一些通用样式, 这类组件目前包括 [``](/cn/references/components/text.html) 和 [``](/cn/references/components/input.html)。 +文本类组件共享一些通用样式, 这类组件目前包括 [``](../references/components/text.html)、[``](../references/components/input.html)和[``](../references/components/richtext.html) ## 属性 -- `color {color}`:文字颜色。 - - 可选值为色值,支持 RGB( `rgb(255, 0, 0)` );RGBA( `rgba(255, 0, 0, 0.5)` );十六进制( `#ff` );精简写法的十六进制( `#f00` );色值关键字(`red`)。 - -- `lines {number}`: 指定文本行数。仅在 `` 组件中支持。默认值是 `0` 代表不限制行数。 - -- `font-size {number}`:文字大小。 - -- `font-style {string}`:字体类别。可选值 `normal` | `italic`,默认为 `normal`。 - -- `font-weight {string}`v0.9+:字体粗细程度 - +- `color {color}`:文字颜色,支持如下字段: +* RGB( `rgb(255, 0, 0)` ) +* RGBA( `rgba(255, 0, 0, 0.5)` ) +* 十六进制( `#ff` );精简写法的十六进制( `#f00` ) +* 色值关键字(`red`) +* `font-size {number}`:文字大小。 +* `font-style {string}`:字体类别。可选值 `normal` | `italic`,默认为 `normal`。 +* `font-weight {string}`v0.9+:字体粗细程度 * 可选值: `normal`, `bold`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` * normal 等同于 400, bold 等同于 700; * 默认值: `normal`; * iOS 支持 9 种 font-weight值;Android 仅支持 400 和 700, 其他值会设为 400 或 700 * 类似 `lighter`, `bolder` 这样的值暂时不支持 - -- `text-decoration {string}`:字体装饰,可选值 `none` | `underline` | `line-through`,默认值为 `none`。 - -- `text-align {string}`:对齐方式。可选值 `left` | `center` | `right`,默认值为 `left`。目前暂不支持 `justify`, `justify-all`。 - -- `font-family {string}`:设置字体。 - - 这个设置 **不保证** 在不同平台,设备间的一致性。如所选设置在平台上不可用,将会降级到平台默认字体。 - -- `text-overflow {string}`:设置内容超长时的省略样式。可选值 `clip` | `ellipsis` +* `text-decoration {string}`:字体装饰,可选值 `none` | `underline` | `line-through`,默认值为 `none`。 + >> 只有 ``和``组件支持。 +* `text-align {string}`:对齐方式。可选值 `left` | `center` | `right`,默认值为 `left`。目前暂不支持 `justify`, `justify-all`。 +* `font-family {string}`:设置字体。这个设置 **不保证** 在不同平台,设备间的一致性。如所选设置在平台上不可用,将会降级到平台默认字体。如果需要加载自定义字体,请参考相关[文档](../references/modules/custom_font.html)。 +* `text-overflow {string}`:设置内容超长时的省略样式。可选值 `clip` | `ellipsis` +>> 只有 ``和``组件支持。 +* `lines {number}`: 正整数,指定最大文本行数,默认值为0,表示不限制最大行数。如果文本不够长,实际展示行数会小于指定行数。 ## 其它参考 - - [颜色关键字列表](./color-names.html)。 diff --git a/source/wiki/text-styles.md b/source/wiki/text-styles.md index f7f0cd9be..1cb5c8dec 100644 --- a/source/wiki/text-styles.md +++ b/source/wiki/text-styles.md @@ -8,11 +8,19 @@ version: 2.1 -Text alike components share some common style rules. The text alike components currently includes [`text`](/references/components/text.html) and [`input`](/references/components/input.html). +Text alike components share some common style rules. The text alike components currently includes [`text`](../references/components/text.html)、[`input`](../references/components/input.html) and [`richtext`](../references/components/richtext.html) ## Properties - `color`:this property set the foreground color of an component's text content. +* The property `color` support multiple formats of values, contains rgb, rgba, #fff, #ff, named-color. Example: +```css +.my-class { color: red; } +.my-class { color: #f00; } +.my-class { color: #ff; } +.my-class { color: rgb(255, 0, 0); } +.my-class { color: rgba(255, 0, 0, 0.5); } +``` - `font-size`: this property specifies the size of the font. - `font-style`: `normal` | `italic`. This property lets you select italic or normal faces within a font-family. Default value is `normal`. - `font-weight`v0.9+: @@ -25,27 +33,13 @@ Text alike components share some common style rules. The text alike components c * Some standard values like `lighter`, `bolder`, number unit are not supported. * The effect not apply to all elements, just `` and ``. In another way, it's not inherited. - `text-decoration`: `none` | `underline` | `line-through`. This property is used to set the text formatting to underline or line-through. The default value is `none`. +>> Only support for `` and `` - `text-align`: `left` | `center` | `right`. This property describes how inline content like text is aligned in its parent component. The default value is `left`. -- `font-family`: this property set the font-family of the text. This property **doesn't guarantee** the given font will always be set to the text. If the specified font cannot be found at the
[GitHub] YorkShen opened a new pull request #228: * [Android] Update doc for text-style.
YorkShen opened a new pull request #228: * [Android] Update doc for text-style. URL: https://github.com/apache/incubator-weex-site/pull/228 This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services