Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Chore: update new 2.9.0 index page" #15801

Merged
merged 1 commit into from
May 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed examples/assets/images/intro-theme-b.png
Binary file not shown.
Binary file removed examples/assets/images/theme-index-blue.png
Binary file not shown.
1 change: 0 additions & 1 deletion examples/assets/images/theme-index-icon.svg

This file was deleted.

Binary file removed examples/assets/images/theme-index-red.png
Binary file not shown.
Binary file removed examples/assets/images/theme-intro.png
Binary file not shown.
8 changes: 7 additions & 1 deletion examples/components/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@
</router-link>
</li>
<li
class="nav-item nav-item-theme"
class="nav-item"
v-if="$isEle"
>
<router-link
active-class="active"
Expand Down Expand Up @@ -369,6 +370,11 @@
</el-dropdown-menu>
</el-dropdown>
</li>

<!--theme picker-->
<li class="nav-item nav-theme-switch" v-show="isComponentPage">
<theme-picker v-if="!$isEle"></theme-picker>
</li>
</ul>
</div>
</header>
Expand Down
7 changes: 1 addition & 6 deletions examples/docs/en-US/custom-theme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
## Custom theme
Element uses BEM-styled CSS so that you can override styles easily. But if you need to replace styles at a large scale, e.g. change the theme color from blue to orange or green, maybe overriding them one by one is not a good idea. We provide four ways to change the style variables.

### Online Theme Roller
Use [Online Theme Roller](./#/en-US/theme) to customize all Design Tokens of global variables and components,and preview the new theme in real-time.and it can generate a complete style package based on the new theme for you to download directly (to import new style files in your project, please refer to the 'Import custom theme' or 'Import component theme on demand' part of this section).

<img src="https://shadow.elemecdn.com/app/sns-client/element-theme-editor2.e16c6a01-806d-11e9-bc23-21435c54c509.png" style="width: 70%;margin: 30px auto 0;display: block;">
Element uses BEM-styled CSS so that you can override styles easily. But if you need to replace styles at a large scale, e.g. change the theme color from blue to orange or green, maybe overriding them one by one is not a good idea. We provide three ways to change the style variables.

### Changing theme color
If you just want to change the theme color of Element, the [theme preview website](https://elementui.github.io/theme-chalk-preview/#/en-US) is recommended. The theme color of Element is bright and friendly blue. By changing it, you can make Element more visually connected to specific projects.
Expand Down
7 changes: 1 addition & 6 deletions examples/docs/es/custom-theme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
## Tema personalizado
Element utiliza la metodología BEM en CSS con la finalidad de que puedas sobrescribir los estilos fácilmente. Pero, si necesita remplazar estilos a gran escala, por ejemplo, cambiar el color del tema de azul a naranja o verde, quizás reemplazarlos uno a uno no sea lo más adecuado, para ello hay 4 maneras de modificar los estilos.

### Online Theme Roller
Use [Online Theme Roller](./#/es/theme) to customize all Design Tokens of global variables and components,and preview the new theme in real-time.and it can generate a complete style package based on the new theme for you to download directly (to import new style files in your project, please refer to the 'Import custom theme' or 'Import component theme on demand' part of this section).

<img src="https://shadow.elemecdn.com/app/sns-client/element-theme-editor2.e16c6a01-806d-11e9-bc23-21435c54c509.png" style="width: 70%;margin: 30px auto 0;display: block;">
Element utiliza la metodología BEM en CSS con la finalidad de que puedas sobrescribir los estilos fácilmente. Pero, si necesita remplazar estilos a gran escala, por ejemplo, cambiar el color del tema de azul a naranja o verde, quizás reemplazarlos uno a uno no sea lo más adecuado, para ello hay 3 maneras de modificar los estilos.

### Cambiando el color del tema
Si lo que se busca es cambiar el color del tema de Element, se recomienda utilizar el [sitio de visualización de temas](https://elementui.github.io/theme-chalk-preview/#/en-US). Element utiliza un color azul brillante y amigable como tema principal. Al cambiarlo, puede hacer que Element este más conectado visualmente a proyectos específicos.
Expand Down
7 changes: 1 addition & 6 deletions examples/docs/fr-FR/custom-theme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
## Thème
Element utilise le style BEM pour le CSS afin que vous puissiez écraser les règles prédéfinies facilement. Mais si vous avez besoin de remplacer des styles à une plus grande échelle , e.g. changer le thème de bleu à orange ou vert, les modifier une par une serait fastidieux. Nous fournissons four méthodes pour changer les variables de style.

### Online Theme Roller
Use [Online Theme Roller](./#/fr-FR/theme) to customize all Design Tokens of global variables and components,and preview the new theme in real-time.and it can generate a complete style package based on the new theme for you to download directly (to import new style files in your project, please refer to the 'Import custom theme' or 'Import component theme on demand' part of this section).

<img src="https://shadow.elemecdn.com/app/sns-client/element-theme-editor2.e16c6a01-806d-11e9-bc23-21435c54c509.png" style="width: 70%;margin: 30px auto 0;display: block;">
Element utilise le style BEM pour le CSS afin que vous puissiez écraser les règles prédéfinies facilement. Mais si vous avez besoin de remplacer des styles à une plus grande échelle , e.g. changer le thème de bleu à orange ou vert, les modifier une par une serait fastidieux. Nous fournissons trois méthodes pour changer les variables de style.

### Changer la couleur du thème
Si vous avez juste besoin de changer la couleur du thème, le [générateur de thème en ligne](https://elementui.github.io/theme-chalk-preview/#/en-US) est recommandé. La couleur du thème d'Element est un bleu clair et agréable. En le changeant, vous rendez Element visuellement plus adapté à vos projets.
Expand Down
7 changes: 1 addition & 6 deletions examples/docs/zh-CN/custom-theme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
## 自定义主题
Element 默认提供一套主题,CSS 命名采用 BEM 的风格,方便使用者覆盖样式。我们提供了四种方法,可以进行不同程度的样式自定义。

### 在线主题编辑器
使用[在线主题编辑器](./#/zh-CN/theme),可以修改定制 Element 所有全局和组件的 Design Tokens,并可以方便地实时预览样式改变后的视觉。同时它还可以基于新的定制样式生成完整的样式文件包,供直接下载使用(关于如何使用下载的主题包,请参考本节「引入自定义主题」和「搭配插件按需引入组件主题」部分)。

<img src="https://shadow.elemecdn.com/app/sns-client/element-theme-editor2.e16c6a01-806d-11e9-bc23-21435c54c509.png" style="width: 70%;margin: 30px auto 0;display: block;">
Element 默认提供一套主题,CSS 命名采用 BEM 的风格,方便使用者覆盖样式。我们提供了三种方法,可以进行不同程度的样式自定义。

### 仅替换主题色
如果仅希望更换 Element 的主题色,推荐使用[在线主题生成工具](https://elementui.github.io/theme-chalk-preview)。Element 默认的主题色是鲜艳、友好的蓝色。通过替换主题色,能够让 Element 的视觉更加符合具体项目的定位。
Expand Down
20 changes: 0 additions & 20 deletions examples/i18n/page.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
"7": "使用组件 Demo 快速体验交互细节;使用前端框架封装的代码帮助工程师快速开发。",
"8": "资源",
"9": "下载相关资源,用其快速搭建页面原型或高保真视觉稿,提升产品设计效率。",
"10": "主题",
"11": "在线主题编辑器,可视化定制和管理站点主题、组件样式",
"12": "主题定制功能上线",
"13": "点击开始编辑",
"14": "尝试您的新主题",
"lang": "zh-CN",
"titleSize": "34",
"paraSize": "18"
Expand Down Expand Up @@ -118,11 +113,6 @@
"7": "Experience interaction details by strolling through component demos. Use encapsulated code to improve developing efficiency.",
"8": "Resource",
"9": "Download relevant design resources for shaping page prototype or visual draft, increasing design efficiency.",
"10": "Theme",
"11": "Online theme roller, visualize custom and manage site themes and component styles",
"12": "Theme customization is available!",
"13": "Click here",
"14": "Make your own theme",
"lang": "en-US",
"titleSize": "34",
"paraSize": "18"
Expand Down Expand Up @@ -224,11 +214,6 @@
"7": "Experimenta la interacción al pasear con los ejemplos de los componentes. Utiliza el código encapsulado para mejorar la eficiencia en el desarrollo.",
"8": "Recursos",
"9": "Descarga los recursos de diseño relevantes para dar forma a un prototipo o borrador, aumentando la eficiencia del diseño.",
"10": "Theme",
"11": "Online theme roller, visualize custom and manage site themes and component styles",
"12": "Theme customization is available!",
"13": "Click here",
"14": "Make your own theme",
"lang": "es",
"titleSize": "34",
"paraSize": "18"
Expand Down Expand Up @@ -330,11 +315,6 @@
"7": "Découvrez les détails de chaque composant and parcourant les différentes démos. Utilisez l'encapsulation du code pour développer plus efficacement.",
"8": "Ressources",
"9": "Téléchargez différents outils de prototypage ou de visualisation pour un design plus efficace.",
"10": "Theme",
"11": "Online theme roller, visualize custom and manage site themes and component styles",
"12": "Theme customization is available!",
"13": "Click here",
"14": "Make your own theme",
"lang": "fr-FR",
"titleSize": "34",
"paraSize": "18"
Expand Down
Loading