element/examples/docs/es/color.md

131 lines
3.6 KiB
Markdown
Raw Normal View History

2017-11-06 19:22:02 +08:00
<style>
.demo-color-box {
border-radius: 4px;
padding: 20px;
margin: 5px 0;
2017-11-06 19:22:02 +08:00
height: 74px;
box-sizing: border-box;
color: #fff;
font-size: 14px;
2017-12-03 18:03:06 +08:00
2017-11-06 19:22:02 +08:00
& .value {
font-size: 12px;
opacity: 0.69;
line-height: 24px;
}
}
.demo-color-box-group {
.demo-color-box {
border-radius: 0;
margin: 0;
2017-11-06 19:22:02 +08:00
}
.demo-color-box:first-child {
border-radius: 4px 4px 0 0;
}
.demo-color-box:last-child {
border-radius: 0 0 4px 4px;
}
}
.bg-blue {
background-color: #409EFF;
}
.bg-success {
background-color: #13CE66;
}
.bg-warning {
background-color: #f7ba2a;
}
.bg-danger {
background-color: #ff4949;
}
.bg-info {
2017-12-12 12:45:09 +08:00
background-color: #909399;
2017-11-06 19:22:02 +08:00
}
.bg-text-primary {
2017-12-12 12:45:09 +08:00
background-color: #303133;
2017-11-06 19:22:02 +08:00
}
.bg-text-regular {
2017-12-15 13:50:54 +08:00
background-color: #606266;
2017-11-06 19:22:02 +08:00
}
.bg-text-secondary {
2017-12-12 12:45:09 +08:00
background-color: #909399;
2017-11-06 19:22:02 +08:00
}
.bg-text-placeholder {
2017-12-12 12:45:09 +08:00
background-color: #c0c4cc;
2017-11-06 19:22:02 +08:00
}
.bg-border-base {
2017-12-12 12:45:09 +08:00
background-color: #dcdfe6;
2017-11-06 19:22:02 +08:00
}
.bg-border-light {
2017-12-12 12:45:09 +08:00
background-color: #e4e7ed;
2017-11-06 19:22:02 +08:00
}
.bg-border-lighter {
2017-12-12 12:45:09 +08:00
background-color: #ebeef5;
2017-11-06 19:22:02 +08:00
}
.bg-border-extra-light {
2017-12-12 12:45:09 +08:00
background-color: #f2f6fc;
2017-11-06 19:22:02 +08:00
}
[class*=" bg-border-"] {
2017-12-12 12:45:09 +08:00
color: #303133;
2017-11-06 19:22:02 +08:00
}
</style>
## Color
Element utiliza un conjunto de paletas para especificar colores, y así, proporcionar una apariencia y sensación coherente para los productos que construye.
2017-11-06 19:22:02 +08:00
### Color principal
2017-11-06 19:22:02 +08:00
El color principal de Element es el azul brillante y amigable.
2017-11-06 19:22:02 +08:00
<el-row :gutter="12">
<el-col :span="6" :xs="{span: 12}">
<div class="demo-color-box bg-blue">Azul<div class="value">#409EFF</div></div>
2017-11-06 19:22:02 +08:00
</el-col>
</el-row>
### Color secundario
2017-11-06 19:22:02 +08:00
2017-12-03 18:03:06 +08:00
Además del color principal, se necesitan utilizar distintos colores para diferentes escenarios (por ejemplo, el color en tono rojo indica una operación peligrosa).
2017-11-06 19:22:02 +08:00
<el-row :gutter="12">
<el-col :span="6" :xs="{span: 12}">
<div class="demo-color-box bg-success">Éxito<div class="value">#67C23A</div></div>
2017-11-06 19:22:02 +08:00
</el-col>
<el-col :span="6" :xs="{span: 12}">
2017-12-12 12:45:09 +08:00
<div class="demo-color-box bg-warning">Precaución<div class="value">#E6A23C</div></div>
2017-11-06 19:22:02 +08:00
</el-col>
<el-col :span="6" :xs="{span: 12}">
2017-12-12 12:45:09 +08:00
<div class="demo-color-box bg-danger">Peligro<div class="value">#F56C6C</div></div>
2017-11-06 19:22:02 +08:00
</el-col>
<el-col :span="6" :xs="{span: 12}">
2017-12-12 12:45:09 +08:00
<div class="demo-color-box bg-info">Info<div class="value">#909399</div></div>
2017-11-06 19:22:02 +08:00
</el-col>
</el-row>
### Color neutro
2017-11-06 19:22:02 +08:00
2017-12-03 18:03:06 +08:00
Los colores neutrales son para texto, fondos y bordes. Puede usar diferentes colores neutrales para representar una estructura jeráquica.
2017-11-06 19:22:02 +08:00
<el-row :gutter="12">
<el-col :span="6" :xs="{span: 12}">
2017-11-06 19:22:02 +08:00
<div class="demo-color-box-group">
2017-12-12 12:45:09 +08:00
<div class="demo-color-box bg-text-primary">Texto primario<div class="value">#303133</div></div>
2017-12-15 13:50:54 +08:00
<div class="demo-color-box bg-text-regular">Texto regular<div class="value">#606266</div></div>
2017-12-12 12:45:09 +08:00
<div class="demo-color-box bg-text-secondary">Texto secundario<div class="value">#909399</div></div>
<div class="demo-color-box bg-text-placeholder">Texto de placeholder<div class="value">#C0C4CC</div></div>
2017-11-06 19:22:02 +08:00
</div>
</el-col>
<el-col :span="6" :xs="{span: 12}">
2017-11-06 19:22:02 +08:00
<div class="demo-color-box-group">
2017-12-12 12:45:09 +08:00
<div class="demo-color-box bg-border-base">Borde base<div class="value">#DCDFE6</div></div>
<div class="demo-color-box bg-border-light">Borde ligero<div class="value">#E4E7ED</div></div>
<div class="demo-color-box bg-border-lighter">Borde claro<div class="value">#EBEEF5</div></div>
<div class="demo-color-box bg-border-extra-light">Borde extra claro<div class="value">#F2F6FC</div></div>
2017-11-06 19:22:02 +08:00
</div>
</el-col>
</el-row>