• 2
  • 3 RepliesReplies
  • 3036 ReadTimes Read
  • 13 PointsPoints

Topic: Nuevo estilo del error/success box

Usuario: JTX3
Rango: Nuevo Usuario
Mensajes: 173
Points: 18
Mi web: http://themixure.com/index.php
Perfil: View Profile
Pais:
se
Nuevo estilo del error/success box
October 18, 2013 - 07:01 19:01
[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:
Show content
Show content

Saludos, Lokitox.
Críticos hay muchos, quienes ayuden, pocos.
You do not have permission to give points
point 13 Points

Users who gave points in this topic » 4kstore (3 Pts) » EduardO (2 Pts) » Papá distante (3 Pts) » nodensdorian (3 Pts) » InetycL (2 Pts) 

Usuario: 4kstore
Rango: Moderador Global
Mensajes: 4916
Points: 8111
Mi web: http://www.smfsimple.com
Perfil: View Profile
Pais:
ar
Re:[TIP] ¡Nuevo estilo del error/success box!
Reply #1 October 18, 2013 - 08:23 20:23
Muy bueno gracias por compartir!

Usuario: EduardO
Rango: Nuevo Usuario
Mensajes: 875
Points: 15
Mi web: http://www.gamerzperu.com/
Perfil: View Profile
Pais:
pe
Re:[TIP] ¡Nuevo estilo del error/success box!
Reply #2 October 18, 2013 - 10:01 22:01
Excelente tip, gracias por compartir!

Usuario: Papá distante
Rango: Moderador Global
Mensajes: 3504
Points: 168
Perfil: View Profile
Pais:
de
Re:[TIP] ¡Nuevo estilo del error/success box!
Reply #3 October 19, 2013 - 01:01 01:01
Son estos detalles los que dan un toque especial a los foros

 

TAGS



top

Smfsimple.com es un sitio destinado a brindar un servicio de soporte y herramientas para foros realizados con el sistema de foros gratuito simplemachines.org. Contamos con un selecto equipo de desarrolladores y conocedores del sistema, sus foros estaran en buenas manos.
This site is not affiliated with or endorsed by Simple Machines