Permalink
Browse files

Removing the guides

  • Loading branch information...
robtarr committed Sep 6, 2012
1 parent c0df123 commit 698fbacc5736e321e24580e7f25583b6e1958be3
Showing with 1 addition and 78 deletions.
  1. +1 −31 bookmarklet-js/mediaQueryBookmarklet.js
  2. +0 −47 stylesheets/mediaQuery.css
@@ -47,26 +47,9 @@ window.mqb = {
}, false);
mqb.mqChange();
- mqb.drawGuides();
- mqb.addCSSForGuides();
-
mqb.initEmSize();
},
- addCSSForGuides: function() {
- mqb.guideStyles = [];
-
- for ( i in mqb.mqList ) {
- mqb.guideStyles[ i ] = document.createElement( "style" );
- mqb.guideStyles[ i ].innerHTML = "@media (max-width: " + mqb.mqList[ i ].media.match( /\([\w\-\:]*\s+(\d+)([a-z]+)\)/ )[1] + mqb.mqList[ i ].media.match( /\([\w\-\:]*\s+(\d+)([a-z]+)\)/ )[2] + ") { " +
- " #mqbGuide-" + i + " {" +
- " left: -10px;" +
- " }" +
- "}";
- document.head.appendChild( mqb.guideStyles[ i ] );
- }
- },
-
appendDisplay: function() {
mqb.container = document.createElement( "div" );
mqb.container.id = "sb-mediaQueryBookmarklet";
@@ -149,20 +132,6 @@ window.mqb = {
mqb.showCurrentSize();
},
- drawGuides: function() {
- var i;
-
- mqb.guides = [];
-
- for ( i in mqb.mqList ) {
- mqb.guides[ i ] = document.createElement( "div" );
- mqb.guides[ i ].id = "mqbGuide-" + i;
- mqb.guides[ i ].className = "mqb-guide";
- mqb.guides[ i ].style.left = mqb.mqList[ i ].media.match( /\([\w\-\:]*\s+(\d+)([a-z]+)\)/ )[1] + mqb.mqList[ i ].media.match( /\([\w\-\:]*\s+(\d+)([a-z]+)\)/ )[2];
- mqb.rulers.appendChild( mqb.guides[ i ] );
- }
- },
-
findEmSize: function() {
return mqb.emTest.clientWidth;
},
@@ -212,6 +181,7 @@ window.mqb = {
mqb.css.type = "text/css";
mqb.css.rel = "stylesheet";
mqb.css.href = "http://sparkbox.github.com/mediaQueryBookmarklet/stylesheets/mediaQuery.css";
+ mqb.css.href = "http://localhost/mediaQueryBookmarklet/stylesheets/mediaQuery.css";
document.head.appendChild( mqb.css );
},
View
@@ -36,53 +36,6 @@
padding: 0 0 0 1em;
text-transform: lowercase;
}
-#mqb-queries span {
- color: #000;
-}
-
-
-#mqb-queries li:nth-child( 8n+1 ) {
- color: #bd0404;
-}
-#mqb-queries li:nth-child( 8n+2 ) {
- color: #040dbd;
-}
-#mqb-queries li:nth-child( 8n+3 ) {
- color: #106c12;
-}
-#mqb-queries li:nth-child( 8n+4 ) {
- color: #bd0404;
-}
-#mqb-queries li:nth-child( 8n+5 ) {
- color: #399f97;
-}
-
-.mqb-guide:nth-child( n+2 ) {
- background: #bd0404;
-}
-.mqb-guide:nth-child( 8n+3 ) {
- background: #040dbd;
-}
-.mqb-guide:nth-child( 8n+4 ) {
- background: #106c12;
-}
-.mqb-guide:nth-child( 8n+5 ) {
- background: #bd0404;
-}
-.mqb-guide:nth-child( 8n+6 ) {
- background: #399f97;
-}
-
-.mqb-guide {
- -webkit-box-shadow: 1px 0 0 rgba(255, 255, 255, .1);
- -moz-box-shadow: 1px 0 0 rgba(255, 255, 255, .1);
- -o-box-shadow: 1px 0 0 rgba(255, 255, 255, .1);
- box-shadow: 1px 0 0 rgba(255, 255, 255, .1);
- height: 100%;
- position: absolute;
- top: 0;
- width: 1px;
-}
#mqb-linksContainer {
font-size: 10px;

0 comments on commit 698fbac

Please sign in to comment.