1. zamtools
  2. StackTack

Commits

zamtools  committed 50eb241

Set tag styles more explicitly, minified css.

  • Participants
  • Parent commits 726b6cf
  • Branches default

Comments (0)

Files changed (4)

File index.html

View file
  • Ignore whitespace
         
         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
-        <script type="text/javascript" src="jquery.stacktack.js"></script>
+        <script type="text/javascript" src="http://app.stacktack.com/jquery.stacktack.js"></script>
         <script type="text/javascript">
             $(document).ready(function() {
                 $(document).stacktack({width: '900px'});
     <body>
         <h1>StackTack Demo</h1>
         <p>Below is a <a href="http://www.stackoverflow.com/questions/518021" target="_blank">StackOverflow question</a> that has been dynamically loaded from the StackApps API (Application Programming Interface) via <a href="https://bitbucket.org/zamtools/stacktack/wiki/Home" target="_blank">StackTack</a>. Only two of its answers are being displayed initially because an answer filter is being used.</p>
-        
+
         <div id="stacktack-518021" class="width-600px filterAnswers-518038-518053"></div>
         
         <p>This question is using the default width and is only displaying its accepted answer using a per-question override.</p>

File jquery.stacktack.js

View file
  • Ignore whitespace
         });
     };
 
-//        stylesheet: 'http://app.stacktack.com/stacktack.min.css',
 
     $.fn.stacktack.defaults = {
         site: 'stackoverflow.com',
         apiVersion: '1.0',
-        stylesheet: 'stacktack.css',
+        stylesheet: 'http://app.stacktack.com/stacktack.min.css',
         answerLimit: 0,
         onlyShowAcceptedAnswer: false,
         filterAnswers: [],

File stacktack.css

View file
  • Ignore whitespace
     font-weight: bold;
 }
 
-.stacktack-tags
+ul.stacktack-tags
 {
     padding: 0px;
     
     text-align: right;
 }
 
-.stacktack-tags li
+ul.stacktack-tags li
 {
     display: inline;
     padding: 0.2em 0.4em;

File stacktack.min.css

View file
  • Ignore whitespace
-.clearfix:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0;}.clearfix{*display:inline-block;}html[xmlns] .clearfix{display:block;}* html .clearfix{height:1%;}.stacktack-container{padding:10px;font-family:Arial,Helvetica,san-serif;font-size:13px;background:transparent url(sprites.png) 0 -108px no-repeat;}.stacktack-container h1,.stacktack-container h2,.stacktack-container h3,.stacktack-container h4{font-family:"Trebuchet MS";color:#588FC7;}.stacktack-container a,.stacktack-container a:link,.stacktack-container a:visited{color:#588FC7;text-decoration:none;}.stacktack-container a:hover{color:#8CB3D9;}.stacktack-container img{border:0;}.stacktack-container pre{display:block;padding:10px;overflow:auto;background:#EEE;}.stacktack-container code{background:#EEE;font-size:.9em;}.stacktack-container blockquote{display:block;padding:0 10px;margin:0;overflow:auto;background:#EEE;}.stacktack-content{position:relative;padding:30px 20px 10px 20px;min-height:140px;border:solid 1px #DDD;background:#FFF;}.stacktack-loading{color:#AAA;}.stacktack-question{margin-top:.8em;padding-top:.8em;border-top:solid 1px #DDD;}.stacktack-question h3{margin:0;font-size:1.5em;}.stacktack-logo{display:block;position:absolute;top:-8px;left:10px;width:145px;height:36px;text-indent:-9000px;overflow:hidden;background:transparent url(sprites.png) -10px -10px no-repeat;}.stacktack-profile{float:right;padding:.4em;width:140px;overflow:hidden;font-size:12px;background:#EEE;}.stacktack-votes{color:#AAA;}.stacktack-gravatar{float:left;margin-right:.4em;}.stacktack-answers{border-top:solid 1px #DDD;}.stacktack-answer{padding-top:.8em;}.stacktack-answer+.stacktack-answer{border-top:dotted 1px #CCC;}.stacktack-answer h4{margin:0;font-size:1.2em;}.stacktack-answer-accepted .stacktack-answer-header h4{font-size:1.5em;}.stacktack-answer-accepted .stacktack-answer-header h4 a,.stacktack-answer-accepted .stacktack-answer-header h4 a:link,.stacktack-answer-accepted .stacktack-answer-header h4 a:visited{color:#5B9058;vertical-align:top;}.stacktack-answer-accepted .stacktack-answer-header h4 a:hover{color:#94BC92;}.stacktack-answer-check{float:left;display:inline;width:20px;height:21px;margin-right:5px;background:transparent url(sprites.png) -10px -70px no-repeat;}a.stacktack-answers-more{display:block;padding-top:.4em;border-top:solid 1px #DDD;font-size:1.1em;font-weight:bold;}.stacktack-tags{padding:0;text-align:right;}.stacktack-tags li{display:inline;padding:.2em .4em;margin-left:.5em;border-right:solid 1px #CCC;border-bottom:solid 1px #CCC;background:#EEE;list-style:none inside;color:#999;}
+.clearfix:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0;}.clearfix{*display:inline-block;}html[xmlns] .clearfix{display:block;}* html .clearfix{height:1%;}.stacktack-container{padding:10px;font-family:Arial,Helvetica,san-serif;font-size:13px;line-height:16px;background:transparent url(sprites.png) 0 -108px no-repeat;}.stacktack-container h1,.stacktack-container h2,.stacktack-container h3,.stacktack-container h4{font-family:"Trebuchet MS";color:#588FC7;}.stacktack-container a,.stacktack-container a:link,.stacktack-container a:visited{color:#588FC7;text-decoration:none;}.stacktack-container a:hover{color:#8CB3D9;}.stacktack-container img{border:0;}.stacktack-container pre{display:block;padding:10px;overflow:auto;background:#EEE;}.stacktack-container code{background:#EEE;font-size:.9em;}.stacktack-container blockquote{display:block;padding:0 10px;margin:0;overflow:auto;background:#EEE;}.stacktack-content{position:relative;padding:30px 20px 10px 20px;min-height:140px;border:solid 1px #DDD;background:#FFF;}.stacktack-loading{color:#AAA;}.stacktack-question{margin-top:.8em;padding-top:.8em;border-top:solid 1px #DDD;}.stacktack-question h3{margin:0;font-size:1.5em;}.stacktack-logo{display:block;position:absolute;top:-8px;left:10px;width:145px;height:36px;text-indent:-9000px;overflow:hidden;background:transparent url(sprites.png) -10px -10px no-repeat;}.stacktack-profile{float:right;padding:.4em;width:140px;overflow:hidden;font-size:12px;background:#EEE;}.stacktack-votes{color:#AAA;}.stacktack-gravatar{float:left;margin-right:.4em;}.stacktack-answers{border-top:solid 1px #DDD;}.stacktack-answer{padding-top:.8em;}.stacktack-answer+.stacktack-answer{border-top:dotted 1px #CCC;}.stacktack-answer h4{margin:0;font-size:1.2em;}.stacktack-answer-accepted .stacktack-answer-header h4{font-size:1.5em;}.stacktack-answer-accepted .stacktack-answer-header h4 a,.stacktack-answer-accepted .stacktack-answer-header h4 a:link,.stacktack-answer-accepted .stacktack-answer-header h4 a:visited{color:#5B9058;vertical-align:top;}.stacktack-answer-accepted .stacktack-answer-header h4 a:hover{color:#94BC92;}.stacktack-answer-check{float:left;display:inline;width:20px;height:21px;margin-right:5px;background:transparent url(sprites.png) -10px -70px no-repeat;}a.stacktack-answers-more{display:block;padding-top:.4em;border-top:solid 1px #DDD;font-size:1.1em;font-weight:bold;}ul.stacktack-tags{padding:0;text-align:right;}ul.stacktack-tags li{display:inline;padding:.2em .4em;margin-left:.5em;border-right:solid 1px #CCC;border-bottom:solid 1px #CCC;background:#EEE;list-style:none inside;color:#999;}