Advertisement
rccharles

asc header Nov 10, 2016

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