Advertisement
rccharles

asc header Sept 28, 2016

Sep 28th, 2016
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 36.21 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.     What is my user agent and screen size?
  45.     http://whatsmyuseragent.com/
  46.  
  47.     iPhone
  48.                   320px x 480px with window size 320px x 372px
  49.         landscape 320px x 480px with window size 480px x 320px
  50.    
  51.     HTC Desire 520
  52.                   320px x 522px with window size 320px x 448px
  53.         landscape 527px x 320px with window size 527px x 247px
  54.  
  55.     Apple sprites
  56.         https://discussions.apple.com/6.0.3.0453576a/themes/apple_0.7.0/img/apple-sprite.png
  57.        
  58.   */
  59.  
  60. /* ==============================================###=========================================== */
  61. @-moz-document
  62.    url-prefix(https://discussions.apple.com/content),
  63.    url-prefix(https://discussions.apple.com/community),
  64.    url-prefix(https://discussions.apple.com/people),
  65.    url-prefix(https://discussionsjapan.apple.com/content),
  66.    url-prefix(https://discussionsjapan.apple.com/community),
  67.    url-prefix(https://discussionsjapan.apple.com/people),
  68.    url-prefix(https://discussionskorea.apple.com/content),
  69.    url-prefix(https://discussionskorea.apple.com/community),
  70.    url-prefix(https://discussionskorea.apple.com/people),
  71.    url-prefix(https://communities.apple.com/es/content),    
  72.    url-prefix(https://communities.apple.com/es/community/),
  73.    url-prefix(https://communities.apple.com/es/people),  
  74.    url-prefix(https://communities.apple.com/pt/content),
  75.    url-prefix(https://communities.apple.com/pt/community/),
  76.    url-prefix(https://communities.apple.com/pt/people)  {  
  77.      
  78.       /* debug:
  79.          background-color: yellow !important;
  80.       */          
  81.       /* top line:
  82.          Communities                Contact support
  83.        
  84.          I guess we know by now that we are in the communities. */
  85.        
  86.        /* Top portion of the header. First two "lines" on the page.  
  87.          Second lines is:
  88.            My Subscriptions Content People Search Post */
  89.       div#j-header-wrap {
  90.         margin-bottom: 2px !important;
  91.         /*background-color: antiquewhite !important; /* */ }
  92.  
  93.      
  94.       /* Ditch first line across page.  */
  95.       div#body-apple header nav#j-globalNav-bg  {border-bottom: 0px !important; }
  96.      
  97.       /* Ditch Communities */
  98.       div#body-apple header div#apple-site-title a { display: none!important; }
  99.        
  100.       /* Ditch "Content" upper left of window.  
  101.          Glad to get rid of this redundant waste of space. */
  102.       div#jive-body  header#apple-full-header { display: none!important; }
  103.        
  104.       /* Ditch "Find helpful content and discussions"
  105.          Total waste of space. */
  106.       header#apple-full-header h4#apple-full-subheader { display: none!important; }  
  107.        
  108.       /* Ditch Box and list view icons
  109.          Who ever uses the box view?  No need. */
  110.        div#jive-body ul#j-item-view-toggle { display: none!important; }
  111.        
  112.       /* Ditch the line under
  113.                [All User(nnn)] [Announcements] [User Tips(nnn)] [Discussions(nnn)] */
  114.       ul.j-content-types.js-browse-filter-toggle-set { border-bottom-width: 0 !important;}
  115.        
  116.       /* [Filter by personal content] check box only appears
  117.          on your content web page. It doesn't seem to work. */
  118.      div.j-browse-filter-row.j-content-filter span.js-browse-filter-toggle{
  119.         display: none!important;
  120.       /*  margin: -20px -20px 0 0 !important;
  121.         background-color: teal !important; /* */
  122.         }
  123.        
  124.       /* User id    My subscriptions  Content ... */
  125.       header#j-header div#second-row {
  126.           /*background-color: yellow !important;*/
  127.           padding-top: 6px !important;
  128.         }
  129.      
  130.       /* User id  signout */
  131.       div#second-row ul#j-satNav-wrap {
  132.           /*background-color: aqua  !important;*/
  133.           margin-left: -40px !important;
  134.           margin-top: -10px !important;
  135.        }
  136.            
  137.       /*  Delete line under [all discussions]. This is a band in back of
  138.          [All Discussions] the spans the width of the window. */
  139.      div.j-layout.j-layout-sl form#js-browse-controls div.j-browse-filter-row.j-content-filter {
  140.           border-bottom: 0px !important;
  141.           /*background-color: azure !important; /* */
  142.       }
  143.        
  144.        /* Alert.
  145.           Could get rid of all the wasted white space to avoid this */
  146.        div#jive-alert {
  147.            margin-top: 0px !important;
  148.          }
  149. /* ==================================== */    
  150. /* ... for small windows such as a smart phone ... */  
  151.        
  152. @media all and (max-width: 499px) {
  153.    
  154.  
  155.       /* [Contact Support]  */
  156.       div#body-apple header ul#contact-support-link a {
  157.           font-size: 10px !important;
  158.           background-color: antiquewhite !important; /**/
  159.         }  
  160.    
  161.  
  162.     /* [my Subscriptions] [Content] [People [Search] [Post] */
  163.     #body-apple ul#menubar.sub-nav-wrap li {
  164.         font-size: 10px !important;
  165.       /*  background-color: blanchedalmond !important; /**/}
  166.    
  167.       /* [All User(nnn)] [Announcements] [User Tips(nnn)] [Discussions(nnn)]*/
  168.       div.j-browse-filter-row.j-type-row.apple-custom-line-height{
  169.           height:20px !important;                
  170.           margin:10px 0 15px !important;/**/
  171.           /*background-color: pink!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.       /* for some reason when left out User Tips drifts downward. */
  180.       ul.j-content-types.js-browse-filter-toggle-set li a{          
  181.           height: 18px!important;
  182.           font-size: 13px !important;
  183.           padding:0px   !important;
  184.           vertical-align: middle !important;
  185.           display:inline-block;
  186.           overflow:hidden !important;
  187.           white-space:nowrap !important;
  188.           /*background-color: tan  !important; /**/ }
  189.          
  190.      ul.j-content-types.js-browse-filter-toggle-set li.filter-All.Content a {
  191.          width: 18px !important;
  192.          /*background-color: tomato !important; /**/
  193.    
  194.          }
  195.      ul.j-content-types.js-browse-filter-toggle-set li.filter-Announcements a {
  196.          width: 58px !important;
  197.          /*background-color: tomato !important; /**/  
  198.          }
  199.    
  200.       ul.j-content-types.js-browse-filter-toggle-set li.filter-User.Tips a {
  201.          width: 58px !important;
  202.          /*background-color: orchid !important; /**/  
  203.          }
  204.        
  205.     ul.j-content-types.js-browse-filter-toggle-set li.filter-Discussions a span.js-shrinkable{
  206.          display:inline-block;  /* No workie without */
  207.          overflow:hidden !important;
  208.          white-space:nowrap !important;
  209.          width: 70px !important;
  210.          /*background-color: tomato !important; /**/  
  211.          }
  212.    
  213.      /* moves list up */
  214.       div.j-browse-sorts.j-browse-filter-row.last-child {
  215.           margin:0 !important;
  216.           height: 14px !important;
  217.           /*background-color: aqua  !important;/**/
  218.        }
  219.    
  220.     /* Set common width for all words.
  221.        Will truncate span width to save space. Biased toward English */
  222.     ul.j-content-types.js-browse-filter-toggle-set li {      
  223.           width: 80px !important;
  224.           /*background-color: tomato !important; /**/    
  225.          }    
  226.        
  227.       /* for some reason when left out User Tips drifts downward. */
  228.       ul.j-content-types.js-browse-filter-toggle-set li a{          
  229.           height: 18px!important;
  230.           font-size: 13px !important;
  231.           padding:0px   !important;
  232.           vertical-align: middle !important;
  233.           display:inline-block;
  234.           overflow:hidden !important;
  235.           white-space:nowrap !important;
  236.           /*background-color: tan  !important;/**/  }
  237.          
  238.      ul.j-content-types.js-browse-filter-toggle-set li.filter-All.Content a {
  239.          width: 18px !important;
  240.          /*background-color: tomato !important; /**/
  241.    
  242.          }
  243.      ul.j-content-types.js-browse-filter-toggle-set li.filter-Announcements a {
  244.          width: 58px !important;
  245.          /*background-color: tomato !important; /**/  
  246.          }
  247.    
  248.       ul.j-content-types.js-browse-filter-toggle-set li.filter-User.Tips a {
  249.          width: 58px !important;
  250.          /*background-color: orchid !important; /**/  
  251.          }
  252.        
  253.     ul.j-content-types.js-browse-filter-toggle-set li.filter-Discussions a span.js-shrinkable{
  254.          display:inline-block;  /* No workie without */
  255.          overflow:hidden !important;
  256.          white-space:nowrap !important;
  257.          width: 70px !important;
  258.          /*background-color: tomato !important; /**/  
  259.          }
  260.    
  261.    
  262.    
  263.       /*
  264.          These are the three pulldowns.
  265.          initally:
  266.            [All discussions]
  267.            [Type to filter by text]
  268.            [Sort by latest activity: newest first] */  
  269.      
  270.     /* Top portion of the header. First two "lines" on the page.  
  271.          Second lines is:
  272.            [My Subscriptions] [Content] [People] [Search] [Post] */
  273.       div#j-header-wrap {
  274.         margin-bottom: 2px !important;
  275.         /*background-color: antiquewhite !important; /* */ }
  276.  
  277.  
  278.        /* even number strips.  Lower header. Large box. Starts with
  279.           [All content] [Annoucements] [User tips] [Discussions] includes contents listing.
  280.       div.j-layout.j-layout-sl.clearfix.j-contained {
  281.          
  282.          } */    
  283.        /* The second line in the header FYI
  284.           limit selection to just user's content
  285.        div.j-layout.j-layout-sl.clearfix.j-contained.j-contained-tabs.j-browse-content.j-rc5
  286.        form#js-browse-controls div.j-browse-sorts {}  */
  287.  
  288.    
  289.      /* move up a bit the horizonal nav bar.  In the main css, the sidebar was made horizontal */
  290.      div .j-colum-wrap-s nav.j-second-nav ul {
  291.        /*  margin-top: -10px !important; /**/
  292.          /*background-color: orchid !important; /**/  }
  293.    
  294.  
  295.      /*  Adjust height associated with the band in back of
  296.          "[ll Discussions] the spans the width of the window. */
  297.      div.j-layout.j-layout-sl form#js-browse-controls div.j-browse-filter-row.j-content-filter {
  298.           height: 20px !important;
  299.          /* background-color: tan !important; /* */
  300.       }
  301.        
  302.      /* [All discussions] */
  303.      select.j-browse-filter.js-browse-filter,
  304.          #js-browse-controls #j-browse-filters #j-sort,
  305.          div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
  306.          padding: 0 !important;
  307.          vertical-align: middle!important;
  308.          font-size: 12px !important;
  309.          height: 20px !important;
  310.          border-color: #9b9b9b !important;
  311.          background-color: #f2f2f2 !important;      
  312.       }
  313.    
  314.    
  315.        select.j-browse-filter.js-browse-filter{
  316.            text-align: left !important;
  317.            width: 130px !important;  }
  318.      
  319.      /* [Type to filter by text] on list of discussions in a community. */
  320.      div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
  321.          width: 130px !important;  
  322.          text-align: center !important;    
  323.        }
  324.        
  325.      /* [Sort by ...] */
  326.      #js-browse-controls #j-browse-filters #j-sort {
  327.         margin: 0 !important;
  328.         text-align: left !important;
  329.         width: 230px !important;
  330.         margin-top: -16px !important;
  331.        }
  332.      
  333.     div.j-pagination {
  334.         margin-top: -32px !important;
  335.         height: 22px !important;
  336.         width: 140px !important;
  337.         /*background-color: yellow !important;  /**/      
  338.     }
  339.        
  340. } /* media all and (max-width: 499px)
  341.      end of smart phone adjustment */
  342.        
  343.        
  344. /* ================================================= */
  345. @media all and ( min-width: 400px ) and ( max-width: 499px ) {
  346.            
  347.       /* [contact support] link upper right corner
  348.          to move, you need to use the ul
  349.          actually, the ul.  link is in a li. */
  350.       div#body-apple header ul#contact-support-link {
  351.           margin: -15px -46px 0;
  352.         }
  353.                
  354.        /* Alert.
  355.           Could get rid of all the wasted white space to avoid this */
  356.        div#body-apple div#jive-alert {
  357.           width: 91% !important;
  358.           margin-top: 5px !important;
  359.           margin-right: 10px !important;
  360.           margin-bottom: 10px !important;
  361.           margin-left: 10px !important;            
  362.          }    
  363.      
  364.       /* Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content    
  365.           For examples:
  366.                Support Communities / Content
  367.                Support Communities / iPad / iPad in Business and Education
  368.             */
  369.       section#j-main nav#jive-breadcrumb {  /* add more selectors to overwhele main css */
  370.           position: absolute !important;  /* override what in the main css */
  371.           text-align: left !important;
  372.           top: -120px !important;  
  373.           left: 5px !important;
  374.           font-weight: 500 !important;
  375.           font-size: 13px !important;
  376.           width: 225px !important;   /* override what in the main css */  
  377.           /*background-color: tan  !important;/**/
  378.        }
  379.            
  380.     /* Set common width for all words.
  381.        Will truncate span width to save space. Biased toward English */
  382.     ul.j-content-types.js-browse-filter-toggle-set li {      
  383.           width: 80px !important;
  384.           /*background-color: tomato !important; /**/    
  385.          }  
  386.    
  387.      /* actual button [Type to filter by text] on list of discussions in a community. */
  388.      div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
  389.          /*background-color: yellowgreen  !important;/**/}
  390.    
  391.      /* enclosing tag [Type to filter by text] on list of discussions in a community. */
  392.      div.j-browse-sorts.j-browse-filter-row span.j-browse-search  {
  393.         padding-right: 70px !important; /**/
  394.         /*background-color: aquamarine  !important;/**/}
  395.    
  396.          
  397.      /* was sidebar now moved to horizontal */
  398.      div.j-column.j-column-s nav.j-second-nav {    
  399.         margin-top: 40px !important;/**/
  400.         margin-bottom: 10px !important;
  401.         /*background-color: red !important;/**/}
  402.    
  403.     form#js-browse-controls {
  404.         height: 120px!important;
  405.       }
  406.    
  407.     /* < 1 2 > */
  408.     div.j-pagination {
  409.         margin-top: 1px !important;
  410.         height: 20px !important;
  411.         width: 250px !important;/**/    
  412.         font-size: 11px !important;
  413.         margin-left: -25px !important;
  414.         top: 0px !important;
  415.         left: 180px !important;
  416.         /*background-color: lightgrey !important;  /**/      
  417.       }
  418.    
  419.     /* spacing around the whole page */
  420.     div#body-apple {
  421.         padding-right: 10px !important;
  422.         padding-left: 10px !important;
  423.         /*background-color: green !important;  /**/
  424.       }
  425.   } /* end of media */
  426.        
  427. /* ================================================= */
  428. /* Just a marker so we know when we have a 320px screen plus a little more stuff.  */
  429. @media all and ( max-width: 320px ) {
  430.    
  431.       /* spacing around the while page */
  432.       div.j-pagination span.j-pagination-prevnext {
  433.         padding-left: 0 !important;  
  434.         padding-right: 0 !important;}
  435.      
  436.       /* [contact support] link upper right corner
  437.          to move, you need to use the ul
  438.          actually, the ul.  link is in a li. */
  439.       div#body-apple header ul#contact-support-link {
  440.           margin: -15px -60px 0;
  441.         }
  442.      
  443.       /* [Contact Support]
  444.          How we tell we have the iPhone 4's size with a desktop window. */
  445.       div#body-apple header ul#contact-support-link a {
  446.           background-color: lightgrey !important; /**/
  447.         }
  448.    
  449.       /* Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content    
  450.           For examples:
  451.                Support Communities / Content
  452.                Support Communities / iPad / iPad in Business and Education
  453.       */
  454.       section#j-main nav#jive-breadcrumb {  /* add more selectors to overwhele main css */
  455.           top: -140px !important;
  456.           /*background-color: tan  !important;/**/
  457.         }
  458.    
  459.      
  460.     /* < 1 2 > */
  461.     div.j-pagination {
  462.         margin-top: 1px !important;
  463.         height: 20px !important;
  464.         /*width: 120px !important;/**/
  465.        
  466.         font-size: 13px !important;
  467.         margin-left: -35px !important;
  468.         top: 0px !important;
  469.         left: 180px !important;
  470.         /*background-color: lightgrey !important;  /**/      
  471.       }
  472.    
  473.     /* Little less space around <  > */
  474.     div.j-pagination span.j-pagination-prevnext {
  475.             margin-left: 0 !important;
  476.             margin-right: 0 !important;
  477.             /*background-color: tan  !important;/**/
  478.       }
  479.     /* Let enough room so someone can click on the sidebar moved horizontal. */
  480.     form#js-browse-controls {
  481.         height: 120px !important;
  482.       }  
  483. } /* end of media */
  484.    
  485.              
  486. /* ================================================= */
  487. /* list of discussions adjustment for small windows found on potraited smart phones */
  488. @media all and (min-width: 321px ) and ( max-width: 399px ) {
  489.    
  490.            
  491.        /* Alert.
  492.           Could get rid of all the wasted white space to avoid this */
  493.        div#body-apple div#jive-alert {
  494.           width: 89% !important;
  495.           margin-top: -30px !important;
  496.           margin-right: 10px !important;
  497.           margin-bottom: 10px !important;
  498.           margin-left: 10px !important;            
  499.          }
  500.    
  501.       /* Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content    
  502.           For examples:
  503.                Support Communities / Content
  504.                Support Communities / iPad / iPad in Business and Education
  505.             */
  506.       section#j-main nav#jive-breadcrumb {  /* add more selectors to overwhelm main css */
  507.           top: -140px !important;  
  508.         }
  509.    
  510.       /* spacing around the while page */
  511.       div#body-apple {
  512.         padding-right: 10px !important;
  513.         padding-left: 10px !important;
  514.         /*background-color: yellowgreen  !important;/**/
  515.       }
  516.    
  517.       /* [Contact Support]
  518.          How we tell we have the iPhone 4's size with a desktop window. */
  519.       div#body-apple header ul#contact-support-link a {
  520.           margin: -15px -46px 0;
  521.           background-color: peachpuff !important; /**/
  522.         }
  523.  
  524.    
  525.    
  526. } /* end of media */
  527.        
  528.        
  529. /* ================================================= */
  530. /* list of discussions adjustment for small windows found on potraited smart phones */
  531. @media all and ( max-width: 399px ) {
  532.    
  533.       /* [contact support] link upper right corner
  534.          to move, you need to use the ul
  535.          actually, the ul.  link is in a li. */
  536.       #contact-support-link {
  537.           margin-right: -40px !important;}
  538.    
  539.      /* Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content    
  540.           For examples:
  541.                Support Communities / Content
  542.                Support Communities / iPad / iPad in Business and Education
  543.             */
  544.       section#j-main nav#jive-breadcrumb {  /* add more selectors to overwhele main css */
  545.           position: absolute !important;  /* override what in the main css */
  546.           text-align: left !important;  
  547.           left: 5px !important;
  548.           font-weight: 500 !important;
  549.           font-size: 13px !important;
  550.           width: 225px !important;   /* override what in the main css */  
  551.           /*background-color: tan  !important;/**/
  552.        }
  553.      /* Set common width for all words.
  554.        Will truncate span width to save space. Biased toward English */
  555.      ul.j-content-types.js-browse-filter-toggle-set li {      
  556.           width: 70px !important;
  557.           /*background-color: tomato !important; /**/    
  558.          }
  559.    
  560.      /* for some reason when left out [User Tips] drifts downward. */
  561.      ul.j-content-types.js-browse-filter-toggle-set li a{
  562.           border-radius: 5px !important;
  563.           background-color:  #ffe6b3 !important; /* light tan */
  564.        }
  565.    
  566.      /* area for [All] [Announce] [User Tips] [Discussions]
  567.          and for expanded content [All discussions]
  568.          [Type to filter by text]
  569.          [Sort by latest activity newest first]
  570.      */
  571.      div#j-browse-filters.j-browse-filters {
  572.         height: 100px !important;
  573.         margin-bottom: 0px !important;
  574.         /*background-color: azure !important; /* doesn't appear anyway */ }
  575.    
  576.      /* [Sort by ...] <-------*/
  577.      #js-browse-controls #j-browse-filters #j-sort {
  578.         /* background-color: tan  !important;/**/
  579.        }
  580.        
  581.   } /* end of media */
  582.  
  583. /* ==================================== */
  584. /* ...... For medium and large size windows ...... */
  585.        
  586. @media all and (min-width: 500px) {  
  587.    
  588.       /* Space between first and second line of the upper header space.  Second line starts
  589.           with Signin / Signout */
  590.       nav#j-globalNav-bg {
  591.           height: 26px !important;
  592.         }
  593.    
  594.    
  595.       /* [All User(nnn)] [Announcements] [User [Tips(nnn)] [Discussions(nnn)] */
  596.       div#jive-body div.j-browse-filter-row.j-type-row.apple-custom-line-height{
  597.           margin: 5px 0 0 0 !important;
  598.           margin-top: 5px !important;
  599.           height:31px !important;              
  600.           margin:10px 0 15px !important;/**/
  601.           /*background-color: teal !important; /**/
  602.        }
  603.  
  604.       /* Effects margin same as div#jive-body */
  605.       div#jive-body div.j-layout {
  606.           margin-top: 5px !important;
  607.           /* background-color: grey !important; /* */      
  608.        }
  609.    
  610.       /* for some reason when left out User [Tips drifts] downward. */
  611.       ul.j-content-types.js-browse-filter-toggle-set li a{          
  612.           height: 18px!important;
  613.           font-size: 16px !important;
  614.           padding:0px   !important;
  615.           vertical-align: middle !important;
  616.           display:inline-block;
  617.           overflow:hidden !important;
  618.           white-space:nowrap !important;
  619.           /* background-color: tan  !important; /**/ }
  620.          
  621.  
  622.       /* [Contact Support] seen on top right */
  623.       div#body-apple header ul#contact-support-link {
  624.           margin-top: -6px !important;
  625.           margin-right: -40px !important;
  626.           /* background-color: palegoldenrod !important;  /**/                  
  627.         }
  628.    
  629.         /* Support Communities   Content
  630.          Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content */
  631.       section#j-main nav#jive-breadcrumb {  /* add more selectors to overwhele main css */
  632.           position: absolute !important;  /* override what in the main css */
  633.           text-align: left !important;
  634.           top: -73px !important;   /* === if you want to run this with out the main css,
  635.                                            change from -120 to -80px === */
  636.           left: 0px !important;
  637.           font-size: 20px !important;        
  638.           width: inherit !important;   /* override what in the main css */
  639.           /* background-color: tan  !important;/**/        
  640.        }
  641.      
  642.         /*  Adjust height associated with the band in back of
  643.          "All Discussions" the spans the width of the window. */
  644.      div.j-layout.j-layout-sl form#js-browse-controls div.j-browse-filter-row.j-content-filter {
  645.           height: 30px !important;
  646.          /* background-color: tan !important; /* */
  647.       }
  648.    
  649.  
  650.      /* Pagination info */
  651.      div span.j-pagination-prevnext.full-pagination{
  652.         margin:0 !important;
  653.           /*background-color: pink !important; /* */ }
  654.    
  655.      /* [All discussions] */
  656.      select.j-browse-filter.js-browse-filter {
  657.          padding: 5px 6px 5px 8px !important;
  658.          font-size: 14px !important;
  659.          width: 160px !important;      
  660.          text-align: left !important;
  661.          border-color: #9b9b9b !important;
  662.          background-color: #f2f2f2 !important;        
  663.       }
  664.      
  665.      /* [Type to filter by text] on list of discussions in a community. */
  666.      div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
  667.          padding: 5px 6px 5px 8px !important;
  668.          font-size: 14px !important;
  669.          width: 160px !important;      /* Was 220px */
  670.          text-align: center !important;
  671.          border-color: #9b9b9b !important;
  672.          background-color: #f2f2f2 !important;
  673.        }
  674.        
  675.      /* [Sort by ...] */
  676.      #js-browse-controls #j-browse-filters #j-sort {
  677.          border-color: #9b9b9b !important; /* grey, Apple's color */
  678.          padding: 6px 6px 8px 28px !important;
  679.          font-size: 14px !important;
  680.          background-color: #f2f2f2 !important;
  681.          text-align: left !important;
  682.          height:  30px !important;
  683.          padding: 2px !important;
  684.          width: 260px !important;
  685.        }
  686.    
  687.     /* Hover over  */
  688.         /* [All discussions] */
  689.     select.j-browse-filter.js-browse-filter:hover,
  690.         /* text */
  691.     div.j-browse-sorts.j-browse-filter-row span.j-browse-search input:hover,
  692.         /* [sort by ...] */
  693.     #js-browse-controls #j-browse-filters #j-sort:hover {  
  694.         border-color: #42aaff !important;  /* light blue */    
  695.       }  
  696.  }  /* media all and (min-width: 500px) */    
  697.      
  698. } /* end of moz-document */
  699.  
  700.  
  701. /* ==============================================###=========================================== */
  702. /* Disply of all posts in a discussion.
  703.    examples:
  704.        https://discussions.apple.com/message/30492563#message30492563
  705.        https://discussions.apple.com/thread/7628966  
  706. */
  707. @-moz-document
  708.     url-prefix(https://discussions.apple.com/message/),
  709.     url-prefix(https://discussions.apple.com/thread/){
  710.        
  711.     /* incomplete title on top left of page. So use breadcrumb trail. */
  712.     nav div#apple-site-title {display: none !important;} /* */
  713.        
  714.     /* [Contact support] */  
  715.     nav ul#contact-support-link {margin-top: 2px !important;}
  716.      
  717.        
  718.  /* ==================================== */
  719.  /* For medium and large size windows... */
  720.  @media all and (min-width: 500px) {  
  721.      
  722.     /* Log in          My Subscriptions Content People Search Post Lounge */
  723.     div#second-row {
  724.         padding-top: 2px !important;
  725.           /* background-color: blue !important; */ }
  726.        
  727.     /* [My Subscriptions] [Content] [People] [Search] [Post [Lounge] */
  728.     div ul#menubar.sub-nav-wrap {margin-top: 9px !important;}
  729.        
  730.     /* Breadcrumb trail
  731.        Example:
  732.            Support Communities  /  Content
  733.        Move breadcrumb to the upper left, thus avoiding the repeating of Communities  */
  734.     section#j-main nav#jive-breadcrumb ul {  /* add more selectors to overwhele main css */
  735.             position: absolute !important;  /* override what in the main css */
  736.             text-align: left !important;
  737.             top: -25px !important;   /* === if you want to run this with out the main css,
  738.                                             change from -85 to ?? px === */
  739.             left: 0px !important;
  740.             font-size: 20px !important;          
  741.             width: inherit !important;   /* override what in the main css */
  742.             height: 30px !important;
  743.               /* background-color: yellow !important; /* */
  744.         }
  745.          
  746.     /* First two lines of the header */    
  747.     div#j-header-wrap {
  748.         margin-bottom: 10px !important;
  749.         /* background-color: tan !important; /* */ }
  750.        
  751.     /* ASC displays the message when original poster posts from a message
  752.        Sometime appearing article name from where the poster made the original post
  753.        example:          
  754.            HT203995: Mail settings you might need from your email provider
  755.            Learn about Mail settings you might need from your email provider
  756.     */
  757.     div div#jive-body-intro-content {
  758.             padding-bottom: 0px !important;
  759.             /* There is a margin tag in larger user css.  To override, you need to use the margin
  760.               tag.  The margin-bottom will not work.
  761.               To see the effect, you need to reload the page. */
  762.             margin: -20px 40px 0px 40px !important;
  763.             /*   background-color: pink !important; /* */}        
  764.      
  765.     /* Seems to be some filler area between messaage and [following].
  766.        Seem to have to use the exact name to override.
  767.        When in stylish editor, effects page after save, but to see chanage in debug window you need to reload. */
  768.     .j-thread #body-apple .thread-container-wrapper {
  769.         padding-bottom: 0px !important;
  770.         margin: 0px 40px !important;
  771.          /* background-color: grey !important; */}  
  772.        
  773.     /*  [following].  This is the encompassing area.  It's the width of the window [mostly].*/
  774.     header.js-original-header.apple-overflow-hidden {
  775.             padding-top: 0px !important;
  776.             margin-top: 0px !important;      
  777.         }
  778.        
  779.     /*  [Follow]
  780.        just the area of Follow [pulldown].
  781.        reduces the space between these items.Follow [pulldown], and first post. */
  782.     div ul.apple-social-actions-toolbar {
  783.         margin-top: -20px !important;
  784.       } /* */
  785.    
  786.  } /* media all and (min-width: 500px) */
  787.          
  788.        
  789.  /* ================================================= */
  790.  /* list of discussions adjustment for small windows found on potraited smart phones */
  791.  @media all and ( max-width: 499px ) {
  792.    
  793.      /* spacing around the whole page */
  794.     div#body-apple {
  795.         padding-right: 0px !important;
  796.         padding-left: 0px !important;
  797.         /*background-color: green !important;  /**/
  798.       }
  799.       /* spacing around the while page */
  800.       div.j-pagination span.j-pagination-prevnext {
  801.         padding-left: 0 !important;  
  802.         padding-right: 0 !important;}
  803.      
  804.       /* [contact support] link upper right corner
  805.          to move up, you need to use the ul.
  806.          Link is in a li. */
  807.       div#body-apple header ul#contact-support-link {
  808.           margin-top: -13px !important;
  809.           margin-right:  0px !important;
  810.         }
  811.      
  812.       /* [Contact Support] */
  813.       div#body-apple header ul#contact-support-link a {
  814.           font-size: 10px !important;
  815.         }
  816.    
  817.      div#body-apple div#j-header-wrap {
  818.          padding-right: 0 !important;
  819.          padding-left: 0 !important;
  820.          margin-bottom:  10px !important;
  821.      }
  822.      
  823.      div#body-apple div#second-row {
  824.          padding-top: 0 !important;        
  825.      }
  826.          
  827.      /* just the area of [Following].
  828.          reduces the space between these items.Follow [pulldown], and first post. */
  829.      div#body-apple div ul.apple-social-actions-toolbar {
  830.           margin-top: -45px !important;
  831.         } /* */
  832.    
  833.      
  834.      
  835.  } /* end of media */
  836.    
  837.        
  838.  /* ==================================== */
  839.  /* for small windows such as a smart phone.    */      
  840.  @media all and (min-width: 321px) and (max-width: 499px) {
  841.        
  842.              /* [Contact Support]  */
  843.       div#body-apple header ul#contact-support-link a {
  844.           background-color: lavender!important; /**/
  845.         }
  846.      
  847.        /* Alert.
  848.           Could get rid of all the wasted white space to avoid this */
  849.        div#body-apple div#jive-alert {
  850.           width: 89% !important;
  851.           margin-top: -30px !important;
  852.           margin-right: 10px !important;
  853.           margin-bottom: 10px !important;
  854.           margin-left: 10px !important;            
  855.          }
  856.      
  857.       /* Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content    
  858.           For examples:
  859.                Support Communities / Content
  860.                Support Communities / iPad / iPad in Business and Education
  861.       */
  862.       section#j-main nav#jive-breadcrumb ul {  /* add more selectors to overwhele main css */
  863.             position: absolute !important;  /* override what in the main css */
  864.             text-align: left !important;
  865.             top: -75px !important;   /* === if you want to run this with out the main css,
  866.                                             change from -75 to ?? px === */
  867.             left: -48px !important;
  868.             font-size: 13px !important;          
  869.             width: inherit !important;   /* override what in the main css */
  870.             height: 30px !important;
  871.             /*background-color: yellow !important; /* */
  872.         }
  873.  
  874.    
  875.  }
  876.        
  877.        
  878.     /* ==================================== */
  879.  /* for small windows such as a smart phone -- iphone 4 width in portrait */      
  880.  @media all and (max-width: 320px) {
  881.      
  882.      /* [Contact Support]
  883.          How we tell we have the iPhone 4's size with a desktop window. */
  884.       div#body-apple header ul#contact-support-link a {
  885.           background-color: lightsteelblue !important; /**/
  886.         }
  887.      
  888.      /* Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content    
  889.           For examples:
  890.                Support Communities / Content
  891.                Support Communities / iPad / iPad in Business and Education
  892.       */
  893.       section#j-main nav#jive-breadcrumb ul {  /* add more selectors to overwhele main css */
  894.             position: absolute !important;  /* override what in the main css */
  895.             text-align: left !important;
  896.             top: -76px !important;   /* === if you want to run this with out the main css,
  897.                                             change from -85 to ?? px === */
  898.             left: -30px !important;
  899.             font-size: 13px !important;          
  900.             width: inherit !important;   /* override what in the main css */
  901.             height: 30px !important;
  902.             /* background-color: yellow !important; /* */
  903.         }
  904.      
  905.        /* Alert.
  906.           Could get rid of all the wasted white space to avoid this */
  907.        div#body-apple div#jive-alert {
  908.           /* margin-top: 0px !important; */
  909.           width: 87% !important;
  910.           margin-top: -20px !important;
  911.           margin-right: 5px !important;  
  912.           margin-bottom: 10px !important;
  913.           margin-left: 5px !important;    
  914.          }
  915.  
  916.    
  917.  
  918.      
  919.  } /* end of media */
  920.        
  921. } /* end of moz-document */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement