0 Members and 1 Guest are viewing this topic.

*

moltax

  • Lurker
Nuevo estilo del error/success box
January 19, 2014, 04:10:56 AM
[TIP] ¡Nuevo estilo del error/success box!

Este tip es algo básico, ya que nunca se cambio este estilo sobre los box si posee un error o si el cambio fue exitoso, en base al themes que realice y que proximamente publicaré, dejo este tip para las personas que desean cambiar su estilo de los boxes, a elección de vosotros y el tip está basado en el themes por defecto.

Buscar en ./css/index.css por:


Code: (CSS) [Select]
.errorbox
{
padding: 1em;
border: 1px solid #cc3344;
color: #000;
background-color: #ffe4e9;
margin-bottom: 1em;
}

Remplazar por:

Code: (CSS) [Select]
.errorbox
{
padding: 1em;
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
-moz-box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
border: solid 1px #bd9191;
background-image: -webkit-linear-gradient(top, #fbe3e4, #ecc5c7);
background-image: -moz-linear-gradient(top, #fbe3e4, #ecc5c7);
background-image: -o-linear-gradient(top, #fbe3e4, #ecc5c7);
background-image: -ms-linear-gradient(top, #fbe3e4, #ecc5c7);
background-image: linear-gradient(to bottom, #fbe3e4, #ecc5c7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbe3e4', endColorstr='#ecc5c7');
border-radius: 4px;
height: auto;
padding-left: 20px;
font-family: arial;
font-weight: bold;
text-shadow: 0 1px #fefdf2;
font-size: 12px;
position: relative;
color: #855757 !important;
margin-bottom: 1em;
}

Al final del archivo, agregar:
Code: (CSS) [Select]
div#profile_error
{
padding: 1em;
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
-moz-box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
border: solid 1px #bd9191;
background-image: -webkit-linear-gradient(top, #fbe3e4, #ecc5c7);
background-image: -moz-linear-gradient(top, #fbe3e4, #ecc5c7);
background-image: -o-linear-gradient(top, #fbe3e4, #ecc5c7);
background-image: -ms-linear-gradient(top, #fbe3e4, #ecc5c7);
background-image: linear-gradient(to bottom, #fbe3e4, #ecc5c7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbe3e4', endColorstr='#ecc5c7');
border-radius: 4px;
height: auto;
padding-left: 20px;
font-family: arial;
font-weight: bold;
text-shadow: 0 1px #fefdf2;
font-size: 12px;
position: relative;
color: #855757 !important;
margin-bottom: 1em;
}

div#profile_success
{
z-index:0;
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
-moz-box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
border: solid 1px #a5b36b;
background-image: -webkit-linear-gradient(bottom, #e6efc2, #f1f7db);
background-image: -moz-linear-gradient(bottom, #e6efc2, #f1f7db);
background-image: -o-linear-gradient(bottom, #e6efc2, #f1f7db);
background-image: -ms-linear-gradient(bottom, #e6efc2, #f1f7db);
background-image: linear-gradient(to top, #e6efc2, #f1f7db);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f1f7db', endColorstr='#e6efc2');
border-radius: 4px;
height: auto;
padding: 15px;
font-family: arial;
font-weight: bold;
text-shadow: 0 1px #fefdf2;
font-size: 14px;
position: relative;
color: #6f7a42;
margin-bottom: 15px;
cursor: pointer;
}

Buscar en default/css/admin.css por:
Code: (css) [Select]
.maintenance_finished, #task_completed
{
margin: 1ex;
padding: 1ex 2ex;
border: 1px dashed green;
color: green;
background: #efe;
}

Remplazar por:
Code: (css) [Select]
.maintenance_finished, #task_completed
{
z-index: 0;
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
-moz-box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.75);
border: solid 1px #a5b36b;
background-image: -webkit-linear-gradient(bottom, #e6efc2, #f1f7db);
background-image: -moz-linear-gradient(bottom, #e6efc2, #f1f7db);
background-image: -o-linear-gradient(bottom, #e6efc2, #f1f7db);
background-image: -ms-linear-gradient(bottom, #e6efc2, #f1f7db);
background-image: linear-gradient(to top, #e6efc2, #f1f7db);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f1f7db', endColorstr='#e6efc2');
border-radius: 4px;
height: auto;
padding: 20px;
font-family: arial;
font-weight: bold;
text-shadow: 0 1px #fefdf2;
font-size: 14px;
color: #6f7a42;
margin-bottom: 15px;
cursor: pointer;
}
Resultados:
(click to show/hide)
(click to show/hide)
Last Edit: August 20, 2019, 09:22:57 PM by Diego Andrés