Modificadas las expresiones regulares de los ID y CLASS, ahora creo que funcionan bien.
Código PHP:
Ver original// ---->> TAGS ID
echo "<br/><br/> <strong>TAGS ID</strong> <br/><br/>";
foreach($estilo[0] as $value){
preg_match_all("/[\.#\s\w:-]*#$value\s*[#\s\w:-]*\{[^\}]*\}/is",$css,$matches); foreach ($matches[0] as $propiedad){
echo $propiedad;
}
}
// ---->> TAGS CLASS
echo "<br/><br/> <strong>TAGS CLASS</strong> <br/><br/>";
foreach($estilo[1] as $value){
preg_match_all("/[\.#\s\w:-]*\.$value\s*[#\s\w:-]*\{[^\}]*\}/is",$css,$matches); foreach ($matches[0] as $propiedad){
echo $propiedad;
}
}
Sin embargo,
la que da problemas es la de los tags HTML
Código PHP:
Ver original// ---->> TAGS HTML
echo "<br/><br/> <strong>TAGS HTML</strong> <br/><br/>";
foreach($tags_html as $value){
preg_match_all("/[.\#\s\w:-]*$value\s*[#\s\w:-]*\{[^\}]*\}/is",$css,$matches); foreach ($matches[0] as $propiedad){
echo $propiedad;
}
}
Me repite propiedades! es muy raro!
Ejemplo de la salida
Código CSS:
Ver originalbody {
border-top-color: #EAF3FA;
border-top-style: solid; /* Color barra superior */
border-top-width: 30px;
color: #333333;
font-family: "Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif;
font-size-adjust: none; /*border-top-color:#464646; */
font-size: 12px;
font-style: normal;
font-variant: normal;
font-weight: normal;
line-height: normal; }
#borde-top a {
color: #0090EF;
left: 15px;
position: absolute;
text-decoration: none;
top: 7px; }
.login #borde-top a:hover { color: #000; }
form p { margin-bottom: 24px; }
#login form input { color: #555555; }
#login form .submit input {
-khtml-border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
background-color: #CEE1EF;
border-color: #80B5D0;
border-radius: 3px;
border-style: solid;
border-width: 1px;
border: none;
color: #224466;
cursor: pointer;
float: right;
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
font-size: 13px;
margin-top: -6px;
padding: 3px 5px;
text-decoration: none; }
#login form .submit input:hover {
background-color: #9ACBEF;
border-color: #328AB2;
color: #FFF; }
#myform form .login input:hover {
background-color: #9ACBEF;
border-color: #328AB2;
color: #FFF; }
#borde-top a {
color: #0090EF;
left: 15px;
position: absolute;
text-decoration: none;
top: 7px; }
.login #borde-top a:hover { color: #000; }
#nav {
margin: 0 0 0 8px;
padding: 16px;
text-align: center; }
.login #nav a {
color: #777777;
color: #777777;
color: #777777; }
h1 {
background: url(../imagenes/header/logo-acceso-panel.png) no-repeat;
display: block;
height: 40px;
margin-left: 15px;
overflow: hidden;
padding-bottom: 15px;
text-indent: -9999px;
width: 320px; }
form {
-khtml-border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
font-weight: bold;
margin-left: 8px;
padding: 16px 16px 40px 16px; }
form p { margin-bottom: 24px; }
#login form input { color: #555555; }
.login form { background-color: #eee; }
#login form input { color: #555555; }
#login form .submit input {
-khtml-border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
background-color: #CEE1EF;
border-color: #80B5D0;
border-radius: 3px;
border-style: solid;
border-width: 1px;
border: none;
color: #224466;
cursor: pointer;
float: right;
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
font-size: 13px;
margin-top: -6px;
padding: 3px 5px;
text-decoration: none; }
#login form .submit input:hover {
background-color: #9ACBEF;
border-color: #328AB2;
color: #FFF; }
#myform form .login input:hover {
background-color: #9ACBEF;
border-color: #328AB2;
color: #FFF; }
Esta la repite 3 veces!
#login form input { color: #555555; }
Y muchas 2 veces como estas de aquí, es muy raro!!
#borde-top a {
color: #0090EF;
left: 15px;
position: absolute;
text-decoration: none;
top: 7px; }
.login #borde-top a:hover { color: #000; }