From d00f6b258aef4ca1a54cc2d723454fce14ec0eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Thu, 4 Mar 2010 14:32:33 +0000 Subject: [PATCH] remove fucking useless css and javascript --- css/NiftyLayout.css | 47 -------------------------------------------- css/niftyCorners.css | 35 --------------------------------- css/niftyLayout.js | 11 ----------- css/niftycube.js | 1 - 4 files changed, 94 deletions(-) delete mode 100644 css/NiftyLayout.css delete mode 100644 css/niftyCorners.css delete mode 100644 css/niftyLayout.js delete mode 100644 css/niftycube.js diff --git a/css/NiftyLayout.css b/css/NiftyLayout.css deleted file mode 100644 index 38b8b8a..0000000 --- a/css/NiftyLayout.css +++ /dev/null @@ -1,47 +0,0 @@ -html,body{margin:0;padding:0} -body{font: 85%/1.3 Verdana,Arial,sans-serif; - text-align: center;background: #757D88;padding-bottom:20px} -p{margin-top:0} -h1,h2,h3{font: normal normal 200% "Trebuchet MS",Arial,sans-serif} -h2{font-size:160%} -h3{font-size:120%} - -div#header{width:100%;overflow:hidden;background: #595D66} -div#header h1,div#menu{width:770px;margin:0 auto;text-align:left} -div#header h1{padding: 30px 0 10px;color: #FFF} - -ul#nav,ul#nav li{list-style-type:none;margin:0;padding:0} -ul#nav{float:right;font-size: 80%} -ul#nav li{float:left;margin-left: 3px;text-align: center} -ul#nav a{float:left;width: 95px;padding: 5px 0;background: #369A3D;text-decoration:none;color: #FFC} -ul#nav a:hover{background: #CDFFA1;color: #006A35} -ul#nav li.activelink a,ul#nav li.activelink a:hover{background: #FFF;color: #003} - -div#container{width:770px;margin:0 auto 10px;padding:20px 0 10px;text-align:left;background:#FFF} -div#content{float:left;display:inline;width:560px;margin:0 0 10px 10px} - -ul#intro,ul#intro li{list-style-type:none;margin:0;padding:0} -ul#intro{width:100%;overflow:hidden;margin-bottom:20px} -ul#intro li{float:left;width:180px;margin-right:10px;padding: 10px 0} -li#mission{background: #E65714} -li#services{background: #42B4AC} -ul#intro li#more{margin-right:0;background: #7D63A9} -ul#intro p,ul#intro h3{margin:0;padding: 0 10px} -ul#intro h3{text-transform:uppercase;padding-bottom:3px;color: #FFF} - -div#content h2{margin: 10px 0;color: #007BC4} -div.date{float:left;width: 4em;padding: 5px 0;background: #F1DDC4;color:#B0001E; - text-align:center;margin: 0 4px 4px 0;font-size: 80%;line-height:0.9} -div.date span{display:block;font-size: 150%;font-weight:bold} - -div.comments div{background: #EEE;margin-bottom:10px} -div.comments p{padding: 10px;margin:0} -div.comments div.odd{background:#DAE6FE} - -div#side{float:right;display:inline;width: 180px;background:#F3CF00; margin:0 10px 10px 0} -div#side p{margin:5px 0 10px;padding: 0 10px} -div#side div{margin: 0 0 10px;padding: 10px 0} - -div#footer{clear:both;width:750px;margin:0 10px 0;padding: 10px 0; - background: #586695;color: #FFF;text-align:center} -div#footer p{margin:0} \ No newline at end of file diff --git a/css/niftyCorners.css b/css/niftyCorners.css deleted file mode 100644 index 55523a4..0000000 --- a/css/niftyCorners.css +++ /dev/null @@ -1,35 +0,0 @@ -/*Nifty Corners Cube CSS by Alessandro Fulciniti -The following classes are added dinamically by javascript, -and their use should be avoided in the markup */ - -b.niftycorners,b.niftyfill{display:block} -b.niftycorners *{display:block;height: 1px;line-height:1px;font-size: 1px; - overflow:hidden;border-style:solid;border-width: 0 1px} -/*normal*/ -b.r1{margin: 0 3px;border-width: 0 2px} -b.r2{margin: 0 2px} -b.r3{margin: 0 1px} -b.r4{height: 2px} -b.rb1{margin: 0 8px;border-width:0 2px} -b.rb2{margin: 0 6px;border-width:0 2px} -b.rb3{margin: 0 5px} -b.rb4{margin: 0 4px} -b.rb5{margin: 0 3px} -b.rb6{margin: 0 2px} -b.rb7{margin: 0 1px;height:2px} -b.rb8{margin: 0;height:2px} -b.rs1{margin: 0 1px} -/*transparent inside*/ -b.t1{border-width: 0 5px} -b.t2{border-width: 0 3px} -b.t3{border-width: 0 2px} -b.t4{height: 2px} -b.tb1{border-width: 0 10px} -b.tb2{border-width: 0 8px} -b.tb3{border-width: 0 6px} -b.tb4{border-width: 0 5px} -b.tb5{border-width: 0 4px} -b.tb6{border-width: 0 3px} -b.tb7{border-width: 0 2px;height:2px} -b.tb8{border-width: 0 1px;height:2px} -b.ts1{border-width: 0 2px} \ No newline at end of file diff --git a/css/niftyLayout.js b/css/niftyLayout.js deleted file mode 100644 index 0f9c68d..0000000 --- a/css/niftyLayout.js +++ /dev/null @@ -1,11 +0,0 @@ -/*nifty corners layout*/ - -window.onload=function(){ -Nifty("div#menu a","small transparent top"); -Nifty("ul#intro li","same-height"); -Nifty("div.date"); -Nifty("div#content,div#side","same-height"); -Nifty("div.comments div"); -Nifty("div#footer"); -Nifty("div#container","bottom"); -} \ No newline at end of file diff --git a/css/niftycube.js b/css/niftycube.js deleted file mode 100644 index 6b5fabe..0000000 --- a/css/niftycube.js +++ /dev/null @@ -1 +0,0 @@ -/* Nifty Corners Cube - rounded corners with CSS and Javascript Copyright 2006 Alessandro Fulciniti (a.fulciniti@html.it) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ var niftyOk=(document.getElementById && document.createElement && Array.prototype.push); var niftyCss=false; String.prototype.find=function(what){ return(this.indexOf(what)>=0 ? true : false); } var oldonload=window.onload; if(typeof(NiftyLoad)!='function') NiftyLoad=function(){}; if(typeof(oldonload)=='function') window.onload=function(){oldonload();AddCss();NiftyLoad()}; else window.onload=function(){AddCss();NiftyLoad()}; function AddCss(){ niftyCss=true; var l=CreateEl("link"); l.setAttribute("type","text/css"); l.setAttribute("rel","stylesheet"); l.setAttribute("href","css/niftyCorners.css"); l.setAttribute("media","screen"); document.getElementsByTagName("head")[0].appendChild(l); } function Nifty(selector,options){ if(niftyOk==false) return; if(niftyCss==false) AddCss(); var i,v=selector.split(","),h=0; if(options==null) options=""; if(options.find("fixed-height")) h=getElementsBySelector(v[0])[0].offsetHeight; for(i=0;i0;i--) d.appendChild(CreateStrip(i,side,color,border,btype)); el.style.paddingBottom=0; el.appendChild(d); } function CreateStrip(index,side,color,border,btype){ var x=CreateEl("b"); x.className=btype+index; x.style.backgroundColor=color; x.style.borderColor=border; if(side=="left"){ x.style.borderRightWidth="0"; x.style.marginRight="0"; } else if(side=="right"){ x.style.borderLeftWidth="0"; x.style.marginLeft="0"; } return(x); } function CreateEl(x){ return(document.createElement(x)); } function FixIE(el){ if(el.currentStyle!=null && el.currentStyle.hasLayout!=null && el.currentStyle.hasLayout==false) el.style.display="inline-block"; } function SameHeight(selector,maxh){ var i,v=selector.split(","),t,j,els=[],gap; for(i=0;imaxh) maxh=els[i].offsetHeight; els[i].style.height="auto"; } for(i=0;i0){ t=CreateEl("b");t.className="niftyfill";t.style.height=gap+"px"; nc=els[i].lastChild; if(nc.className=="niftycorners") els[i].insertBefore(t,nc); else els[i].appendChild(t); } } } function getElementsBySelector(selector){ var i,j,selid="",selclass="",tag=selector,tag2="",v2,k,f,a,s=[],objlist=[],c; if(selector.find("#")){ //id selector like "tag#id" if(selector.find(" ")){ //descendant selector like "tag#id tag" s=selector.split(" "); var fs=s[0].split("#"); if(fs.length==1) return(objlist); f=document.getElementById(fs[1]); if(f){ v=f.getElementsByTagName(s[1]); for(i=0;i