Advertisement
rccharles

asc header reduction -- b

Sep 13th, 2016
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 22.81 KB | None | 0 0
  1. /*  Reduce the size of a header area on a list web page and display of posts in a discussion web page.
  2.  
  3.    Copyright (c) 2016 rccharles
  4.  
  5.    All rights reserved.
  6.  
  7.    Redistribution and use in source and binary forms, with or without
  8.    modification, are permitted provided that the following conditions are met:
  9.  
  10.    1. Redistributions of source code must retain the above copyright notice, this
  11.       list of conditions and the following disclaimer.
  12.    2. Redistributions in binary form must reproduce the above copyright notice,
  13.       this list of conditions and the following disclaimer in the documentation
  14.       and/or other materials provided with the distribution.
  15.  
  16.    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  17.    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18.    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19.    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
  20.    ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21.    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22.    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23.    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24.    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25.    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26.  
  27.    The views and conclusions contained in the software and documentation are those
  28.    of the authors and should not be interpreted as representing official policies,
  29.    either expressed or implied, of the Custom Styles Project.    
  30.    
  31.    
  32.     Implement these changes by:
  33.       1) running stylish
  34.       2) add the combined user style sheet to stylish
  35.          https://discussions.apple.com/docs/DOC-7501
  36.       3) create a new style sheet in stylish.
  37.       4) copy these css rules to the new sheet.
  38.      
  39.      
  40.     example web pages:
  41.         https://discussions.apple.com/content?filterID=following~objecttype~objecttype[thread]
  42.         https://discussions.apple.com/people/<userid>?view=discussions
  43.   */
  44.  
  45. /* ==================================== */
  46. @-moz-document
  47.    url-prefix(https://discussions.apple.com/content),
  48.    url-prefix(https://discussions.apple.com/community),
  49.    url-prefix(https://discussions.apple.com/people),
  50.    url-prefix(https://discussionsjapan.apple.com/content),
  51.    url-prefix(https://discussionsjapan.apple.com/community),
  52.    url-prefix(https://discussionsjapan.apple.com/people),
  53.    url-prefix(https://discussionskorea.apple.com/content),
  54.    url-prefix(https://discussionskorea.apple.com/community),
  55.    url-prefix(https://discussionskorea.apple.com/people),
  56.    url-prefix(https://communities.apple.com/es/content),    
  57.    url-prefix(https://communities.apple.com/es/community/),
  58.    url-prefix(https://communities.apple.com/es/people),  
  59.    url-prefix(https://communities.apple.com/pt/content),
  60.    url-prefix(https://communities.apple.com/pt/community/),
  61.    url-prefix(https://communities.apple.com/pt/people)  {  
  62.      
  63.       /* debug:
  64.          background-color: yellow !important;
  65.       */          
  66.       /* top line:
  67.          Communities                Contact support
  68.        
  69.          I guess we know by now that we are in the communities. */
  70.        
  71.        /* Top portion of the header. First two "lines" on the page.  
  72.          Second lines is:
  73.            My Subscriptions Content People Search Post */
  74.       div#j-header-wrap {
  75.         margin-bottom: 2px !important;
  76.         /*background-color: antiquewhite !important; /* */ }
  77.  
  78.      
  79.       /* Ditch first line across page.  */
  80.       div#body-apple header nav#j-globalNav-bg  {border-bottom: 0px !important; }
  81.      
  82.       /* Ditch Communities */
  83.       div#body-apple header div#apple-site-title a { display: none!important; }
  84.        
  85.       /* Ditch "Content" upper left of window.  
  86.          Glad to get rid of this redundant waste of space. */
  87.       div#jive-body  header#apple-full-header { display: none!important; }
  88.        
  89.       /* Ditch "Find helpful content and discussions"
  90.          Total waste of space. */
  91.       header#apple-full-header h4#apple-full-subheader { display: none!important; }  
  92.        
  93.       /* Ditch Box and list view icons
  94.          Who ever uses the box view?  No need. */
  95.        div#jive-body ul#j-item-view-toggle { display: none!important; }
  96.        
  97.       /* Ditch the line under All User(nnn) Announcements User Tips(nnn) Discussions(nnn) */
  98.       ul.j-content-types.js-browse-filter-toggle-set { border-bottom-width: 0 !important;}
  99.        
  100.       /* [Filter by personal content] check box only appears
  101.          on your content web page. It doesn't seem to work. */
  102.      div.j-browse-filter-row.j-content-filter span.js-browse-filter-toggle{
  103.         display: none!important;
  104.       /*  margin: -20px -20px 0 0 !important;
  105.         background-color: teal !important; /* */
  106.         }
  107.        
  108.       /* User id    My subscriptions  Content ... */
  109.       header#j-header div#second-row {
  110.           /*background-color: yellow !important;*/
  111.           padding-top: 6px !important;
  112.         }
  113.      
  114.       /* User id  signout */
  115.       div#second-row ul#j-satNav-wrap {
  116.           /*background-color: aqua  !important;*/
  117.           margin-left: -40px !important;
  118.           margin-top: -10px !important;
  119.        }
  120.            
  121.       /*  Delete line under "all discussions". This is a band in back of
  122.          "All Discussions" the spans the width of the window. */
  123.      div.j-layout.j-layout-sl form#js-browse-controls div.j-browse-filter-row.j-content-filter {
  124.           border-bottom: 0px !important;
  125.           /*background-color: tan !important; /* */
  126.       }
  127.  
  128. /* ==================================== */    
  129. /* ... for small windows such as a smart phone ... */  
  130.        
  131. @media all and (max-width: 499px) {
  132.    
  133.       /* "contact support" link upper right corner
  134.          to move, you need to use the ul
  135.          actually, the ul.  link is in a li. */
  136.       #contact-support-link {
  137.           margin: -15px -60px 0;
  138.         }
  139.       /* Contact Support */
  140.       div#body-apple header ul#contact-support-link a {
  141.           background-color: antiquewhite !important;
  142.           font-size: 10px !important;
  143.         }  
  144.    
  145.       /* Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content    
  146.           For examples:
  147.                Support Communities / Content
  148.                Support Communities / iPad / iPad in Business and Education
  149.             */
  150.       section#j-main nav#jive-breadcrumb {  /* add more selectors to overwhele main css */
  151.           position: absolute !important;  /* override what in the main css */
  152.           text-align: left !important;
  153.           top: -120px !important;  
  154.           left: 5px !important;
  155.           font-weight: 500 !important;
  156.           font-size: 13px !important;
  157.           width: 225px !important;   /* override what in the main css */  
  158.           /*background-color: tan  !important;/**/
  159.        }
  160.    
  161.     /* my Subscriptions Content People Search Post */
  162.     #body-apple ul#menubar.sub-nav-wrap li {
  163.         font-size: 10px !important;
  164.       /*  background-color: blanchedalmond !important; /**/}
  165.    
  166.         /* All User(nnn) Announcements User Tips(nnn) Discussions(nnn)*/
  167.       div.j-browse-filter-row.j-type-row.apple-custom-line-height{
  168.           height:20px !important;        
  169.           width:250px !important;
  170.           background-color: pink!important;
  171.           margin:10px 0 15px !important;/**/
  172.     }
  173.    
  174.      div#jive-body div.j-layout {
  175.         margin: 5px 0 0 0 !important;
  176.         /* background-color: grey !important; /* */      
  177.     }
  178.  
  179.     /* Set common width for all words.
  180.        Will truncate span width to save space. Biased toward English */
  181.     ul.j-content-types.js-browse-filter-toggle-set li {      
  182.           width: 80px !important;
  183.           /*background-color: tomato !important; /**/    
  184.          }    
  185.        
  186.       /* for some reason when left out User Tips drifts downward. */
  187.       ul.j-content-types.js-browse-filter-toggle-set li a{          
  188.           height: 18px!important;
  189.           font-size: 13px !important;
  190.           padding:0px   !important;
  191.           vertical-align: middle !important;
  192.           display:inline-block;
  193.           overflow:hidden !important;
  194.           white-space:nowrap !important;
  195.           background-color: tan  !important;  }/**/
  196.          
  197.      ul.j-content-types.js-browse-filter-toggle-set li.filter-All.Content a {
  198.          width: 18px !important;
  199.          background-color: tomato !important; /**/
  200.    
  201.          }
  202.      ul.j-content-types.js-browse-filter-toggle-set li.filter-Announcements a {
  203.          width: 58px !important;
  204.          background-color: tomato !important; /**/  
  205.          }
  206.    
  207.       ul.j-content-types.js-browse-filter-toggle-set li.filter-User.Tips a {
  208.          width: 58px !important;
  209.          background-color: orchid !important; /**/  
  210.          }
  211.        
  212.     ul.j-content-types.js-browse-filter-toggle-set li.filter-Discussions a span.js-shrinkable{
  213.          display:inline-block;  /* No workie without */
  214.          overflow:hidden !important;
  215.          white-space:nowrap !important;
  216.          width: 70px !important;
  217.          background-color: tomato !important; /**/  
  218.          }
  219.    
  220.      /* moves list up */
  221.       div.j-browse-sorts.j-browse-filter-row.last-child {
  222.           margin:0 !important;
  223.           height: 14px !important;
  224.           /*background-color: aqua  !important;/**/
  225.        }
  226.    
  227.     /* Set common width for all words.
  228.        Will truncate span width to save space. Biased toward English */
  229.     ul.j-content-types.js-browse-filter-toggle-set li {      
  230.           width: 80px !important;
  231.           background-color: tomato !important; /**/    
  232.          }    
  233.        
  234.       /* for some reason when left out User Tips drifts downward. */
  235.       ul.j-content-types.js-browse-filter-toggle-set li a{          
  236.           height: 18px!important;
  237.           font-size: 13px !important;
  238.           padding:0px   !important;
  239.           vertical-align: middle !important;
  240.           display:inline-block;
  241.           overflow:hidden !important;
  242.           white-space:nowrap !important;
  243.           /*background-color: tan  !important;/**/  }
  244.          
  245.      ul.j-content-types.js-browse-filter-toggle-set li.filter-All.Content a {
  246.          width: 18px !important;
  247.          background-color: tomato !important; /**/
  248.    
  249.          }
  250.      ul.j-content-types.js-browse-filter-toggle-set li.filter-Announcements a {
  251.          width: 58px !important;
  252.          background-color: tomato !important; /**/  
  253.          }
  254.    
  255.       ul.j-content-types.js-browse-filter-toggle-set li.filter-User.Tips a {
  256.          width: 58px !important;
  257.          /*background-color: orchid !important; /**/  
  258.          }
  259.        
  260.     ul.j-content-types.js-browse-filter-toggle-set li.filter-Discussions a span.js-shrinkable{
  261.          display:inline-block;  /* No workie without */
  262.          overflow:hidden !important;
  263.          white-space:nowrap !important;
  264.          width: 70px !important;
  265.          background-color: tomato !important; /**/  
  266.          }
  267.    
  268.    
  269.    
  270.       /*
  271.          These are the three pulldowns.
  272.          initally:
  273.            All discussions
  274.            Type to filter by text
  275.            Sort by latest activity: newest first */  
  276.      
  277.     /* Top portion of the header. First two "lines" on the page.  
  278.          Second lines is:
  279.            My Subscriptions Content People Search Post */
  280.       div#j-header-wrap {
  281.         margin-bottom: 2px !important;
  282.         /*background-color: antiquewhite !important; /* */ }
  283.  
  284.  
  285.        /* even number strips.  Lower header. Large box. Starts with All content Annoucements User tips Discussions includes contents listing.
  286.       div.j-layout.j-layout-sl.clearfix.j-contained {
  287.          
  288.          } */    
  289.        /* The second line in the header FYI
  290.           limit selection to just user's content
  291.        div.j-layout.j-layout-sl.clearfix.j-contained.j-contained-tabs.j-browse-content.j-rc5
  292.        form#js-browse-controls div.j-browse-sorts {}  */
  293.  
  294.    
  295.      /* move up a bit the horizonal nav bar.  In the main css, the sidebar was made horizontal */
  296.      div .j-colum-wrap-s nav.j-second-nav ul {
  297.        /*  margin-top: -10px !important; /**/
  298.          background-color: orchid !important; /**/  }
  299.    
  300.  
  301.      /*  Adjust height associated with the band in back of
  302.          "All Discussions" the spans the width of the window. */
  303.      div.j-layout.j-layout-sl form#js-browse-controls div.j-browse-filter-row.j-content-filter {
  304.           height: 20px !important;
  305.          /* background-color: tan !important; /* */
  306.       }
  307.        
  308.      /* All discussions */
  309.      select.j-browse-filter.js-browse-filter,
  310.          #js-browse-controls #j-browse-filters #j-sort,
  311.          div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
  312.          padding: 0 !important;
  313.          vertical-align: middle!important;
  314.          font-size: 12px !important;
  315.          height: 20px !important;
  316.          border-color: #9b9b9b !important;
  317.          background-color: #f2f2f2 !important;      
  318.       }
  319.    
  320.    
  321.        select.j-browse-filter.js-browse-filter{
  322.            text-align: left !important;
  323.            width: 130px !important;  }
  324.      
  325.      /* "Type to filter by text" on list of discussions in a community. */
  326.      div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
  327.          width: 130px !important;  
  328.          text-align: center !important;      
  329.        }
  330.        
  331.      /* Sort by ... */
  332.      #js-browse-controls #j-browse-filters #j-sort {
  333.         margin: 0 !important;
  334.         text-align: left !important;
  335.         width: 230px !important;
  336.         margin-top: -16px !important;
  337.        }
  338.      
  339.     div.j-pagination {
  340.         margin-top: -32px !important;
  341.         height: 22px !important;
  342.         width: 140px !important;
  343.         /*background-color: yellow !important;  /**/      
  344.     }
  345.    
  346.     div.j-pagination span.j-pagination-prevnext {
  347.         padding-left: 0 !important;  
  348.         padding-right: 0 !important;}
  349.    
  350. } /* media all and (max-width: 499px)
  351.      end of smart phone adjustment */
  352.  
  353.        /* ==================================== */
  354. /* ...... For medium and large size windows ...... */
  355.        
  356. @media all and (min-width: 500px) {  
  357.    
  358.     /* Space between first and second line of the upper header space.  Second line starts
  359.        with Signin / Signout */
  360.     nav#j-globalNav-bg {
  361.         height: 26px !important;
  362.      }
  363.    
  364.    
  365.       /* All User(nnn) Announcements User Tips(nnn) Discussions(nnn)*/
  366.       div#jive-body div.j-browse-filter-row.j-type-row.apple-custom-line-height{
  367.           margin: 5px 0 0 0 !important;
  368.           margin-top: 5px !important;
  369.           height:31px !important;              
  370.           margin:10px 0 15px !important;/**/
  371.           /*background-color: teal !important; /**/
  372.        }
  373.  
  374.       div#jive-body div.j-layout {
  375.           margin: 5px 0 0 0 !important;
  376.           /* background-color: grey !important; /* */      
  377.        }
  378.    
  379.       /* for some reason when left out User Tips drifts downward. */
  380.       ul.j-content-types.js-browse-filter-toggle-set li a{          
  381.           height: 18px!important;
  382.           font-size: 16px !important;
  383.           padding:0px   !important;
  384.           vertical-align: middle !important;
  385.           display:inline-block;
  386.           overflow:hidden !important;
  387.           white-space:nowrap !important;
  388.           /* background-color: tan  !important; /**/ }
  389.          
  390.  
  391.       /* "Contact6" seen on top right */
  392.       div#body-apple header ul#contact-support-link {
  393.           margin-top: -6px !important;
  394.           margin-right: -40px !important;
  395.           /* background-color: palegoldenrod !important;  /**/                  
  396.         }
  397.    
  398.         /* Support Communities   Content
  399.          Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content */
  400.       section#j-main nav#jive-breadcrumb {  /* add more selectors to overwhele main css */
  401.           position: absolute !important;  /* override what in the main css */
  402.           text-align: left !important;
  403.           top: -73px !important;   /* === if you want to run this with out the main css,
  404.                                            change from -120 to -80px === */
  405.           left: 0px !important;
  406.           font-size: 20px !important;
  407.          
  408.           width: inherit !important;   /* override what in the main css */
  409.           /* background-color: tan  !important;/**/
  410.          
  411.        }
  412.      
  413.         /*  Adjust height associated with the band in back of
  414.          "All Discussions" the spans the width of the window. */
  415.      div.j-layout.j-layout-sl form#js-browse-controls div.j-browse-filter-row.j-content-filter {
  416.           height: 30px !important;
  417.          /* background-color: tan !important; /* */
  418.       }
  419.    
  420.  
  421.      /* Pagination info */
  422.      div span.j-pagination-prevnext.full-pagination{
  423.         margin:0 !important;
  424.           /*background-color: pink !important; /* */ }
  425.    
  426.        /* All discussions */
  427.      select.j-browse-filter.js-browse-filter {
  428.          padding: 5px 6px 5px 8px !important;
  429.          font-size: 14px !important;
  430.          width: 160px !important;      
  431.          text-align: left !important;
  432.          border-color: #9b9b9b !important;
  433.          background-color: #f2f2f2 !important;
  434.          
  435.       }
  436.      
  437.      /* "Type to filter by text" on list of discussions in a community. */
  438.      div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
  439.          padding: 5px 6px 5px 8px !important;
  440.          font-size: 14px !important;
  441.          width: 160px !important;      /* Was 220px */
  442.          text-align: center !important;
  443.          border-color: #9b9b9b !important;
  444.          background-color: #f2f2f2 !important;
  445.        }
  446.        
  447.      /* Sort by ... */
  448.      #js-browse-controls #j-browse-filters #j-sort {
  449.          border-color: #9b9b9b !important; /* grey, Apple's color */
  450.          padding: 6px 6px 8px 28px !important;
  451.          font-size: 14px !important;
  452.          background-color: #f2f2f2 !important;
  453.          text-align: left !important;
  454.          height:  30px !important;
  455.          padding: 2px !important;
  456.          width: 260px !important;
  457.        }
  458.    
  459.     /* Hover over  */
  460.         /* All discussions */
  461.     select.j-browse-filter.js-browse-filter:hover,
  462.         /* text */
  463.     div.j-browse-sorts.j-browse-filter-row span.j-browse-search input:hover,
  464.         /* sort by ... */
  465.     #js-browse-controls #j-browse-filters #j-sort:hover {  
  466.         border-color: #42aaff !important;  /* light blue */    
  467.       }  
  468.  }  /* media all and (min-width: 500px) */    
  469.      
  470. } /* end of moz-document */
  471.  
  472.  
  473. /* ==================================== */
  474. /* Disply of all posts in a discussion.
  475.    examples:
  476.        https://discussions.apple.com/message/30492563#message30492563
  477.        https://discussions.apple.com/thread/7628966
  478.    ====================================  */
  479. @-moz-document
  480.     url-prefix(https://discussions.apple.com/message/),
  481.     url-prefix(https://discussions.apple.com/thread/){
  482.        
  483.     /* incomplete title on top left of page. So use breadcrumb trail. */
  484.     nav div#apple-site-title {display: none !important;} /* */
  485.        
  486.     /* Contact support */  
  487.     nav ul#contact-support-link {margin-top: 2px !important;}
  488.  
  489.        
  490.  /* for small windows such as a smart phone.    */      
  491.  @media all and (max-width: 499px) {
  492.  
  493.    
  494.  }
  495.  /* ==================================== */
  496.  /* For medium and large size windows... */
  497.  @media all and (min-width: 500px) {  
  498.      
  499.     /* Log in          My Subscriptions Content People Search Post Lounge */
  500.     div#second-row {
  501.         padding-top: 2px !important;
  502.           /* background-color: blue !important; */ }
  503.        
  504.     /* My Subscriptions Content People Search Post Lounge */
  505.     div ul#menubar.sub-nav-wrap {margin-top: 9px !important;}
  506.        
  507.     /* Breadcrumb trail
  508.        Example:
  509.            Support Communities  /  Content
  510.        Move breadcrumb to the upper left, thus avoiding the repeating of Communities  */
  511.     section#j-main nav#jive-breadcrumb ul {  /* add more selectors to overwhele main css */
  512.             position: absolute !important;  /* override what in the main css */
  513.             text-align: left !important;
  514.             top: -25px !important;   /* === if you want to run this with out the main css,
  515.                                             change from -85 to ?? px === */
  516.             left: 0px !important;
  517.             font-size: 20px !important;          
  518.             width: inherit !important;   /* override what in the main css */
  519.             height: 30px !important;
  520.               /* background-color: yellow !important; /* */
  521.         }
  522.          
  523.     /* First two lines of the header */    
  524.     div#j-header-wrap {
  525.         margin-bottom: 10px !important;
  526.         /* background-color: tan !important; /* */ }
  527.        
  528.     /* ASC displays the message when original poster posts from a message
  529.        Sometime appearing article name from where the poster made the original post
  530.        example:          
  531.            HT203995: Mail settings you might need from your email provider
  532.            Learn about Mail settings you might need from your email provider
  533.     */
  534.     div div#jive-body-intro-content {
  535.             padding-bottom: 0px !important;
  536.            /* There is a margin tag in larger user css.  To override, you need to use the margin
  537.               tag.  The margin-bottom will not work.
  538.               To see the effect, you need to reload the page. */
  539.             margin: -20px 40px 0px 40px !important;
  540.          /*   background-color: pink !important; /* */}        
  541.      
  542.     /* Seems to be some filler area between messaage and following [pulldown].
  543.        Seem to have to use the exact name to override.
  544.        When in stylish editor, efects page after save, but to see chanage in debug window you need to reload. */
  545.     .j-thread #body-apple .thread-container-wrapper {
  546.         padding-bottom: 0px !important;
  547.         margin: 0px 40px !important;
  548.          /* background-color: grey !important; */}  
  549.        
  550.     /* following [pulldown].  This is the encompassing area.  It's the width of the window [mostly].*/
  551.     header.js-original-header.apple-overflow-hidden {
  552.             padding-top: 0px !important;
  553.             margin-top: 0px !important;
  554.        
  555.         }
  556.        
  557.     /* Follow [pulldown]
  558.        just the area of Follow [pulldown].
  559.        reduces the space between these items.Follow [pulldown], and first post. */
  560.     div ul.apple-social-actions-toolbar {
  561.         margin-top: -20px !important;
  562.       } /* */
  563.    
  564.  } /* media all and (min-width: 500px) */
  565.        
  566. } /* end of moz-document */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement