Advertisement
rccharles

ASC CSS 0.64

May 18th, 2016
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 42.94 KB | None | 0 0
  1. /*  
  2.     Custom Cascading Style Sheet for Apple Support Communities board system introduced  
  3.     in 2014-06  
  4.  
  5.         Copyright 2014, 2016 Hiroto,  et. al.  
  6.  
  7.     GNU General Public License  
  8.  
  9.     This program is free software: you can redistribute it and/or modify  
  10.     it under the terms of the GNU General Public License as published by  
  11.     the Free Software Foundation,  version 3  
  12.  
  13.     This program is distributed in the hope that it will be useful,  
  14.     but WITHOUT ANY WARRANTY; without even the implied warranty of  
  15.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
  16.     GNU General Public License for more details.  
  17.  
  18.     For a copy of the GNU General Public License  
  19.     see <http://www.gnu.org/licenses/>.    
  20.  
  21.     For more information on what the css does, see:  
  22.     https://discussions.apple.com/docs/DOC-7501    
  23.  
  24.     Change Log  
  25.     Version 0.6:  
  26.     -- Fold versions 0.43 and 0.50 into this version.  
  27.     -- Add GNU General Public License  
  28.     -- Add media tag to select on screen size.  
  29.     -- Scroll large code listings  
  30.     -- Change color highlights unread posts  
  31.     -- Fix size of thread content display.  
  32.     Version 0.61:  
  33.     -- Narrow text for printing listing of this file  
  34.     -- Delete "added in" comments about versioning.  Seems obvious to me without.  
  35.     -- More fixing of width of content display size of large window.  
  36.     -- Delete @-moz-document special case adjustment for max-width  
  37.     -- Size adjust for thread content and reply for large screens  
  38.     -- Reduce the amount of duplicate code  
  39.     Version 0.62  
  40.     -- avoid userstyles.org/ error messages  
  41.     -- pacify ASC badges for those who want to enable the code  
  42.        [ Note: Some badges are turned off in 0.63 ]  
  43.        https://discussions.apple.com/message/30002950#30002950    
  44.        ------> How to get rid of discussion list Badges Lines 115 to 146 <----  
  45.        Go down find this line of code  
  46.          .j-status-level.expertise-tile { display: none !important; }    
  47.        You need to eliminate the slash / star * before the line of code and  
  48.        the star * slash / after the line of code.  
  49.  
  50.        To get rid of all badges everywhere, uncomment the next three lines of code.  
  51.     Version 0.63  
  52.     -- Decided on a minimalist philosophy to focus on reading the posts.  
  53.     -- Don't display badges on list of discussion posts  
  54.     -- Footers should be short not take up a half a page.  
  55.          Uncomment the three lines of code to accomplish this after the  
  56.          "Rambling footer stuff will strink". Note some bombblast  
  57.          will remain, see adjustment at the end of the sheet.  
  58.            #globaldisclaimer.sosumi {display: none !important; }      
  59.            #j-footer #breadcrumbs {display: none !important; }  
  60.            p.gf-buy {display: none !important; }  
  61.     -- Show points on the profile popup!  
  62.     Version 0.64
  63.     -- Align left with right side header info
  64.     -- Delete excessive white space in header
  65.     -- Delete redundant wording in header
  66.     -- Change two vertical nav bars to horizontal
  67.     -- Purge footer bombblast
  68.     -- Support Spanish and Portuguese forums
  69.     -- Support decorator tag
  70. */  
  71.     /*  
  72.       Spanish  
  73.         https://communities.apple.com/es/docs/DOC-1004  
  74.     */    
  75. @-moz-document  
  76.     domain(discussions.apple.com),  
  77.     domain(communities.apple.com),  
  78.     domain(discussionsjapan.apple.com),  
  79.     domain(discussionskorea.apple.com)  
  80. {  
  81.     /* Common css for small and large windows */  
  82.  
  83.     /* Scroll code listings.  set max-height of syntax highlighted code in thread  
  84.        content browser   v0.6 */  
  85.     .jive-rendered-content .dp-highlighter {  
  86.        max-height: 500px !important;  
  87.        overflow: auto !important;  
  88.     }                                                                                
  89.     /* Scroll code listings. set max-heiht of pre code (visible when javascript is disabled)  
  90.     v0.6 */  
  91.     .jive-rendered-content pre {  
  92.        max-height: 500px !important;  
  93.        overflow: auto !important;  
  94.     }      
  95.                                                                            
  96.     /* highlights in dark blue unread posts when logged in.  v0.6  
  97.  
  98.     All your posts  
  99.     https://discussions.apple.com/content?filterID=participated~objecttype~objecttype[thread]    
  100.  
  101.     Discussions you authored  
  102.     https://discussions.apple.com/content?filterID=contentstatus[published]~objecttype~objecttype[thread]    
  103.  
  104.     To see the discussions you have read and not read in a community  
  105.     The suffix to use for any ASC forum, placed after the basic link to any forum, it's  
  106.     /content?filterID=contentstatus[published]~objecttype~objecttype[thread]  
  107.  
  108.     for iPhone community this would be:  
  109.     https://discussions.apple.com/community/iphone/using_iphone/content?filterID=contentstatus[published]~objecttype~objecttype[thread]    
  110.  
  111.  
  112.  
  113.     */  
  114.     .j-td-title strong {color:#191970 !important; font-weight: normal !important;}  
  115.  
  116.              
  117.         /* added or changed in 0.63 'til 0.64 insertion point */  
  118.        
  119.     /* Avoid double scrolling in posts which happened here:  
  120.        https://discussions.apple.com/docs/DOC-9254    
  121.        #globalfooter and #globaldisclaimer elements which originally define the width  
  122.        to fixed value as 980px   0.62  
  123.     */  
  124.  
  125.     #globalfooter, #globaldisclaimer { width: 80% !important; }  
  126.  
  127.     /* Get more vertical space.  This line gets rid of the global Apple navigation bar at the top.  
  128.        The black bar with Apple-Logo Mac iPad iPhone Watcsh Tv Music Support  
  129.     */  
  130.     #global-nav-wrapper {display: none !important; }  
  131.  
  132.         /* Pacify badges  
  133.            These four lines, when uncommented, eliminate the display of badges. Some or all of the  
  134.            lines are commend out.  Each comment starts all the way to the left.  
  135.     */  
  136.  
  137.     /* -------------------------------------------------------------------------------  
  138.         THREAD CONTENT BROWSER  
  139.         status level expertise badge  
  140.         To avoid formatting problems of badges overlapping next post, enable this line.  
  141.     */  
  142.          .j-status-level.expertise-tile { display: none !important; }    
  143.  
  144.     /* ---------------------------------------------------------------------------------  
  145.        THREAD LIST BROWSER    
  146.        leader board  
  147.     */  
  148.          .jive-widget-leaderboardwidget {display: none !important; }    
  149.  
  150.       /* ---------------------------------------------------------------------------------  
  151.           PROFILE    
  152.           profile status container for specialties and awards  
  153.       */  
  154. /*    .profile-status-container { display: none !important; } */  
  155.  
  156.     /* profile modal note status row for specialties and awardds */  
  157. /*    .status-row { display: none !important; } */  
  158.  
  159.         /* Rambling footer stuff will sink */        
  160.         /* no more legalistic bomblast */  
  161.         #globaldisclaimer.sosumi {display: none !important; }      
  162.         /* Not a complete path to here, so why be mislead */  
  163.         #j-footer #breadcrumbs {display: none !important; }      
  164.         /* Guess by now folks know how to buy an apple product */  
  165.         p.gf-buy {display: none !important; }    
  166.          
  167.         /* Reveal points in popup when you click on an ASC id or aviator.  
  168.            thanks to turingtest2.  
  169.              https://discussions.apple.com/message/30179703#30179703 */  
  170.         .level-points > span {display: inherit !important;}     /* Display point information */  
  171.      
  172.         /* 0.64 insertion point */  
  173.      
  174.     /* Combine duplicate code here.  v 0.61 */  
  175.  
  176.     /* ---------------------------------------------------------------------------------  
  177.         BODY  
  178.     */  
  179.     body.j-body-welome,             /* Welcome */  
  180.     body.j-body-place,              /* Community */  
  181.     body.j-body-yourwork,           /* Content */  
  182.     body.j-body-home,               /* Activity */  
  183.     body.j-body-yourconnections,    /* People */  
  184.     body.j-body-preferences,        /* Preferences */  
  185.     body.jive-body-content,         /* Thread */  
  186.     body.jive-body-search,          /* Search */  
  187.     body.jive-view-profile          /* Profile */  
  188.     {                                                                       /* v0.43 */  
  189.         background: white !important;   /* Effectively overrides most of the body color.  
  190.                                           These are more specific.  */  
  191.     }  
  192.  
  193.  
  194.     /* ---------------------------------------------------------------------------------  
  195.         TEXT  
  196.     */  
  197.     /* line spacing */  
  198.     .jive-content { line-height: 1.25 !important; }  
  199.  
  200.  
  201.     /* ---------------------------------------------------------------------------------  
  202.         ASC HEADER AREA  
  203.     */  
  204.     #j-header,  
  205.     #j-compact-header,  
  206.     #j-footer { width: 100% !important; }  
  207.  
  208.     /* navigation header (Apple Support Communities ...) */  
  209.     #j-header-wrap {  
  210.         padding: 0px 40px !important;  
  211.         margin: 0px 0px 15px !important;  
  212.     }  
  213.     #j-globalNav-bg {  
  214.         padding: 0pX !important;  
  215.         margin: 0px !important;  
  216.     }  
  217.     #j-satNav { overflow: visible !important; }  
  218.     #jive-breadcrumb { right: 40px !important; }  
  219.  
  220.  
  221.     /* ---------------------------------------------------------------------------------  
  222.         THREAD LIST BROWSER - list of discussions in a Community  
  223.     */  
  224.  
  225.     /* show author name in 'Latest activity' column in detailed list view of threads */  
  226.     td.j-td-date > span { display : inherit !important; }  
  227.  
  228.     /* main section */  
  229.     #j-main { padding: 0px !important; }  
  230.  
  231.     /* table cell title */  
  232.     .jive-table td.jive-table-cell-title { padding: 5px !important; }  
  233.        
  234.     /* thread list view column widths */                                        /* v0.43 */  
  235.     .j-browse-details .j-td-title { max-width: none !important; }  
  236.     .j-browse-details .j-td-date {  
  237.         width: auto !important;  
  238.         max-width: 20% !important;  
  239.     }  
  240.     /* threads list view table tr td  */  
  241.     .j-browse-details-tbody tr td { padding: 5px !important; }  
  242.  
  243.     /* communities list view table tr td */  
  244.     .jive-communities-listing table tr td { padding: 5px !important; }  
  245.  
  246.     /* thumbnails view width */  
  247.     .j-browse-content .j-thumb-view,  
  248.     .j-browse-places .j-browse-thumbnails,  
  249.     .j-browse-people .j-browse-thumbnails { width: 100% !important; }  
  250.  
  251.     /* thumbnail view list item margin */                                        /* v0.43 */  
  252.     .j-browse-content .j-thumb-view > li,  
  253.     .j-browse-places .j-browse-thumbnails > li { margin-right: 20px !important; }  
  254.  
  255.     /* social actions row */  
  256.     .apple-social-actions-wrapper { margin-right: 0px !important; }  
  257.     .j-thread .j-social-actions { margin-right: 40px !important; }  
  258.  
  259.     /* apple header, subheader row ("Find helpful contents..." etc )    fixed in v0.43 */  
  260.     #apple-full-subheader,  
  261.     #apple-activity-subheader {  
  262.         padding: 0px 40px 15px !important;  
  263.         margin-bottom: 15px !important;  
  264.     }  
  265.     #apple-full-header h2,  
  266.     #apple-activity-header h2 { padding: 0px 40px !important; }  
  267.  
  268.     /* page header */  
  269.     .j-body-place #jive-body > header.j-page-header {  
  270.         margin-left: 40px !important;  
  271.         margin-right: 40px !important;  
  272.         width: auto !important;  
  273.     }  
  274.  
  275.     /* browser filter row */  
  276.     #j-browse-filters { margin-bottom: 5px !important; }  
  277.  
  278.     /* browser controls row */  
  279.     .j-type-row { margin-bottom: 0px !important; }  
  280.  
  281.     /* browser controls content types (All Contents|User Tips|Discussions) width */  
  282.     #js-browse-controls .j-type-row .j-content-types { width: 90% !important; }  
  283.  
  284.     /* browser controls view toggle (Thumbnails|Details) width */  
  285.     #js-browse-controls #j-item-view-toggle {  
  286.         width: 10% !important;  
  287.         display: table !important;  
  288.     }  
  289.  
  290.     /* content filter row (All|Open|Answered|Threads) */  
  291.     .j-content-filter {  
  292.         background: white !important;  
  293.         margin-bottom: 10px !important;  
  294.     }    
  295.  
  296.     /* container canvas */  
  297.     .j-contained {  
  298.         margin-left: 40px !important;  
  299.         margin-right: 40px !important;  
  300.     }  
  301.  
  302.     /* category filter bar */  
  303.     .jive-content-filter {  
  304.         left: 0px !important;  
  305.         width: 80% !important;  
  306.     }  
  307.     .touchcarousel-wrapper { width: 100% !important; }  
  308.     .touchcarousel .tc-paging-container { width: 90% !important; }                /* v0.41 */  
  309.  
  310.     /* more search results available */  
  311.     #j-more-search-results-available { padding: 10px !important; }  
  312.  
  313.     /* misc */  
  314.     .jive-widget { margin-bottom: 10px !important; }  
  315.     .j-column { margin-bottom: 10px !important; }  
  316.  
  317.  
  318.     /* ---------------------------------------------------------------------------------  
  319.         THREAD CONTENT BROWSER - Displays the contents of the posts.  
  320.     */  
  321.     /* thread header */  
  322.     .apple-thread-header {  
  323.         width: auto !important;  /* v0.6 no more*/  
  324.         margin-bottom: 10px !important;  
  325.         margin-left: 40px !important;  
  326.     }  
  327.  
  328.     /* thread original post */  
  329.     .j-thread .jive-content { margin: 0px 40px 0px 140px !important; }  
  330.  
  331.     /* thread replies ul */  
  332.     ul.jive-discussion-replies.jive-discussion-indent-0 { margin: 0px !important; }  
  333.  
  334.     /* thread reply li */  
  335.     .jive-discussion-replies li.reply { margin-top: 15px !important; }  
  336.  
  337.     /* thread view indent */  
  338.     .jive-discussion-indent-1 li.reply { padding-left: 15px !important; }  
  339.  
  340.     /* thread info */  
  341.     .jive-thread-info {  
  342.         padding: 10px 40px !important;  
  343.         margin: 0px !important;  
  344.     }  
  345.  
  346.     /* thread answer rollup */  
  347.     .j-answer-rollup { margin: 30px 0px !important; }  
  348.  
  349.     /* thread post header (poster, date, response to) */  
  350.     .j-thread-post > header {  
  351.         padding: 10px 20px 0px 20px !important;  
  352.         margin-bottom: 12px !important;  
  353.     }  
  354.  
  355.     /* thread post section (message body) */  
  356.     .j-thread-post section {  
  357.         padding: 0px 20px !important;  
  358.         margin-bottom: 6px !important;  
  359.     }  
  360.  
  361.     /* thread post footer (Like|Reply etc) */  
  362.     .j-thread-post footer { padding: 0px 15px !important; }  
  363.     .j-thread-post footer > ul { padding: 2px !important; }  
  364.     .j-thread-post footer > .acclaim-container { margin: 5px 0px !important; }  
  365.  
  366.     /* thread rendered content. The text in the orginal post and replies.  */  
  367.     .jive-rendered-content {  
  368.         padding-bottom: 4px !important;  
  369.     }  
  370.  
  371.     /* thread rendered content quote & pre */  
  372.     .jive-rendered-content .jive-quote,  
  373.     .jive-rendered-content .jive-pre {  
  374.         margin: 5px 15px !important;  
  375.     }  
  376.  
  377.     /* thread reply footer (Return to Community|Go to original post) */  
  378.     #jive-thread-reply-footer {    margin-top: 10px !important; }  
  379.  
  380.     /* more like this links, incoming links */  
  381.     #apple-related-threads { margin: 0px 40px !important; }  
  382.     #apple-related-threads .j-box { margin-bottom: 0px !important; }  
  383.     .j-icon-list li { padding: 3px 0px 3px 22px !important; }  
  384.  
  385.  
  386.     /* ---------------------------------------------------------------------------------  
  387.         INLINE EDITOR  
  388.     */  
  389.     /* editor */  
  390.     .jive-discussion-replies li.addReply { margin: 50px 40px 0px !important; }  
  391.  
  392.  
  393.     /* ---------------------------------------------------------------------------------  
  394.         ADVANCED EDITOR  
  395.     */  
  396.     /* content area */  
  397.     .j-thread .jive-content.jive-create-thread,  
  398.     .jive-body-formpage-document .jive-content.doc-page {  
  399.         margin: 0px 40px !important;  
  400.         padding: 0px !important;  
  401.     }  
  402.  
  403.     /* header */  
  404.     .j-thread .jive-content.jive-create-thread h2,  
  405.     .jive-body-formpage-document .jive-content.doc-page h2 { padding: 0px !important; }  
  406.  
  407.     /* editor panel */  
  408.     .j-thread .jive-content.jive-create-thread #jive-compose-title,  
  409.     .j-thread .jive-content.jive-create-thread .jive-editor-panel.jive-large-editor-panel,  
  410.     .jive-body-formpage-document .jive-content.doc-page #jive-compose-title,  
  411.     .jive-body-formpage-document .jive-content.doc-page .jive-editor-panel.jive-large-editor-panel { margin: 0px !important; }  
  412.  
  413.     /* line height in editor */  
  414.     body.tiny_mce_content { line-height: inherit !important; }  
  415.  
  416.     /* replying to */  
  417.     .jive-body-formpage-comment .jive-thread-message { margin: 0px !important; }    
  418.  
  419.     /* buttons (Reply|Cancel) */  
  420.     .j-publishbar,  
  421.     .jive-body-formpage .jive-composebuttons { margin: 20px 40px 0px !important; }  
  422.  
  423.  
  424.     /* ---------------------------------------------------------------------------------  
  425.         SEARCH RESULTS  
  426.     */  
  427.     /* search result entry */  
  428.     .j-search-results-main-container .j-search-result  
  429.         { padding: 10px !important; }    /* v0.43 */  
  430.  
  431.  
  432.     /* ---------------------------------------------------------------------------------  
  433.         DOC (USER TIP)  
  434.     */                                                                            /* v0.43 */  
  435.     /* user tip canvas */  
  436.     .jive-body-content.j-doc .j-column-wrap-l { margin: 0px 40px !important; }  
  437.  
  438.  
  439.     /* ---------------------------------------------------------------------------------  
  440.         PROFILE  
  441.     */                                                                            /* v0.43 */  
  442.     /* header & navigation bar (Bio|Activity|Content|Communities) */  
  443.     .j-view-profile .j-page-header { padding: 10px 40px !important; }  
  444.     .j-bigtab-nav { margin: 10px 40px !important; }  
  445.  
  446.     /* Bio */  
  447.     .j-layout-l .j-column-wrap-l { width: 100% !important; }  
  448.  
  449.     /* Communities (places) sidebar ui blue marker adjustment  
  450.         (according to the sidebar width changed to 166px from 180px for selector:  
  451.         .j-layout-sl.j-browse-places .j-column-s in PLACES section)  */  
  452.     .j-view-profile .j-second-nav ul > li.active  { width: 156px !important; }  
  453.  
  454.  
  455.  
  456.  
  457. /* Wide screen browser  
  458.     ===================  
  459.  
  460.     This rule set will be fine for normal to wide window whose width is ca. 1265px or greater.  
  461.     However, it will not be beneficial to very narrow window of 700-900px in width.  
  462. */  
  463.  
  464. @media all and (min-width: 1265px) {                                               /* v0.6 */  
  465.     /* ---------------------------------------------------------------------------------  
  466.         BODY  
  467.     */  
  468.  
  469.     body {  
  470.         background: white;  
  471.         min-width: 0px !important;  
  472.     }  
  473.     #body-apple {  
  474.         width: 100% !important;  
  475.         min-width: 0px !important;  
  476.     }  
  477.  
  478.  
  479.     /* ---------------------------------------------------------------------------------  
  480.         ASC TOP PAGE  
  481.     */  
  482.     #jive-widgetframe-body_5780758 > .content-large,    /* discussions.apple.com */  
  483.     #jive-widgetframe-body_188974  > .content-large,    /* discussionsjapan.apple.com */    
  484.                                                         /* v0.42 */  
  485.     #jive-widgetframe-body_20835   > .content-large        /* discussionskorea.apple.com */    
  486.                                                         /* v0.42 */  
  487.     {                                                    /* added parent id in v0.41 */  
  488.         text-align: center !important;  
  489.         overflow-x: auto !important;  
  490.         overflow-y: hidden !important;  
  491.     }  
  492.     .apple-communities {  
  493.         display: inline-block !important;  
  494.         width: 1120px !important;  
  495.         text-align: left !important;  
  496.     }  
  497.  
  498.  
  499.     /* ---------------------------------------------------------------------------------  
  500.         THREAD LIST BROWSER - list of discussions in a Community  
  501.     */  
  502.  
  503.  
  504.     /* ------------------  
  505.         When uncommented, hide Like and Bookmark columns in thread list view.  
  506.     */                                                                /* v0.43 (optional) */  
  507.     /* ~~~~~~~~~~~~~~~~~~~~ (currently commented out) ~~~>  
  508.     .j-browse-details .j-td-likes,  
  509.     .j-browse-details .j-td-bookmarks { display: none !important; }  
  510.     .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th,  
  511.     .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th  
  512.         { display: none !important; }  
  513.     .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th + th  
  514.         { display: table-cell !important; }  
  515.     <~~~~~~~~~~~~~~~~~~~~  */  
  516.  
  517.  
  518.     /* ------------------  
  519.         Treatment for narrow window  
  520.         Method 1 (minimum optimization)  
  521.  
  522.         Adjust thread list table's shift and margin to maximize its width.  
  523.     */                                                                                /* v0.43 */  
  524.     .j-layout-sl.j-browse-content .j-column-wrap-l { margin-left: -166px !important; }  
  525.     .j-layout-sl.j-browse-content .j-column-l      { margin-left: 166px !important; }  
  526.     .j-layout-sl.j-browse-content .j-column-s      { width: 166px !important; }  
  527.     /* ------------------ */  
  528.  
  529.     /* ------------------  
  530.         Swap left-right positions of thread list table and sidebar ui (filters & actions)  
  531.     */                                                                                /* fixed in v0.43 */  
  532.     /* let thread list table float left */  
  533.     .j-layout-sl.j-browse-content .j-column-wrap-l,  
  534.     .j-layout-sl.j-browse-places .j-column-wrap-l { float: left !important; }  
  535.  
  536.     /* let sidebar ui float right */  
  537.     .j-layout-sl.j-browse-content .j-column-s,  
  538.     .j-layout-sl.j-browse-places .j-column-s { float: right !important; }  
  539.     /* ------------------ */  
  540.  
  541.  
  542.     /* ---------------------------------------------------------------------------------  
  543.         THREAD CONTENT BROWSER - Displays the contents of the posts.  
  544.     */  
  545.  
  546.     /*  
  547.       Put the brakes on infinite expansion of text.  Sets how wide the text display area in a  
  548.       window can get. Eventhou the window maybe large, folks find it easier to read  
  549.       the words when the text area is smaller.  
  550.     */  
  551.     /* Original post.  Includes answering post if present */  
  552.     /* posts in thread */  
  553.     /* Types of replies */  
  554.     #jive-thread-messages-container,  
  555.     /* Advanced reply */  
  556.     #jive-body {  
  557.         max-width: 1100px !important;    /* v0.61 */  
  558.      }  
  559.      
  560.  
  561.     /* ------------------  
  562.         Treatment for narrow window  
  563.         Method 1 (minimum optimization)  
  564.  
  565.         Adjust community list table's shift and margin to maximize its width.  
  566.     */                                                                            /* v0.43 */  
  567.     .j-layout-sl.j-browse-places .j-column-wrap-l { margin-left: -166px !important; }  
  568.     .j-layout-sl.j-browse-places .j-column-l      { margin-left: 166px !important; }  
  569.     .j-layout-sl.j-browse-places .j-column-l      { padding-left: 0px !important; }  
  570.     .j-layout-sl.j-browse-places .j-column-s      { width: 166px !important; }  
  571.     /* ------------------ */  
  572.  
  573.     /* ---------------------------------------------------------------------------------  
  574.         ACTIVITY STREAM  
  575.     */  
  576.     /* activity entry */  
  577.     .j-act-entry { padding: 5px 0px 10px 100px !important; }  
  578.  
  579.     /* activity title */  
  580.     .j-body-home .j-act-title { padding: 5px 0px 5px 24px !important; }  
  581.  
  582.     /* activity body & comment */                                                /* v0.43 */  
  583.     .j-body-home .j-act-init { padding: 5px 0px 10px 100px !important; }  
  584.     .apple-activity-comments-wrapper { margin-left: 0px !important; }  
  585.  
  586.     /* Like list */  
  587.     .j-act-grouped .j-act-g-item { padding: 3px !important; }  
  588.  
  589.     /* -----------------------------------------------------------------------------------  
  590.        PLACES  
  591.     */                                                                            /* v0.43 */  
  592.     /* latest activity column */  
  593.     .j-browse-details .j-td-activity { max-width: 650px !important; }  
  594.  
  595.  
  596. } /* end of media for wide screen */  
  597.  
  598.  
  599.   /* Narrow screen browser  
  600.      =====================  
  601.   */  
  602.  
  603.   @media all and (max-width: 1265px) {                                           /* v0.6 */  
  604.     /* styles for small screens ( narrow browsers window )  
  605.        ========================  
  606.      
  607.        Narrow is basically the same as the above wide screen browser except that this lets  
  608.        the sidebar column (filter column) in list view be pushed down or up in layout flow  
  609.        to make room for the main column (table column) when the window is not wide enough.  
  610.        It is done by setting margin-left and padding-left of main column to 0 and setting  
  611.        max-width of main column, which is currently 1019px.  Consequently, if window width  
  612.        is less than 1265px (= 40 (margin-left) + 1019 (main column) + 166 (sidebar colum)  
  613.        + 40 (margin-right)), sidebar column is pushed down or up according to document  
  614.        tree order. This rule set is intended to be useful for normal to narrow window  
  615.        whose width is in range ca. 700-1400px. It can be used for wider window as well but  
  616.        there's no point to set the max-width of main column in order to move sidebar  
  617.        column when the window is wide enough.  
  618.      
  619.        custom styles for Apple Support Communities board system introduced in 2014-06  
  620.        (v 0.5)  
  621.     */  
  622.          
  623.     /* -----------------------------------------------------------------------------------  
  624.         BODY  
  625.     */  
  626.  
  627.     body {  
  628.         background: white;  
  629.         min-width: 0px !important;  
  630.     }  
  631.  
  632.     #body-apple {  
  633.         width: 100% !important;  
  634.         min-width: 0px !important;  
  635.     }  
  636.  
  637.     /* Text reflow problem with New Activity Content etc.  
  638.        https://discussions.apple.com/thread/7517905    
  639.        Provide work-around.  Maybe Firefox issue.  
  640.     */  
  641.     #apple-site-title { font-size: 14px !important; }  
  642.  
  643.     /* -----------------------------------------------------------------------------------  
  644.         ASC TOP PAGE  
  645.     */  
  646.     #jive-widgetframe-body_5780758 > .content-large,    /* discussions.apple.com */  
  647.     #jive-widgetframe-body_188974  > .content-large,    /* discussionsjapan.apple.com v0.42 */  
  648.     #jive-widgetframe-body_20835   > .content-large     /* discussionskorea.apple.com v0.42 */  
  649.     {                                                   /* added parent id in v0.41 */  
  650.         text-align: center !important;  
  651.         overflow-x: auto !important;  
  652.         overflow-y: hidden !important;  
  653.     }  
  654.     .apple-communities {  
  655.         display: inline-block !important;  
  656.         width: 1120px !important;  
  657.         text-align: left !important;  
  658.     }  
  659.  
  660.  
  661.     /* -----------------------------------------------------------------------------------  
  662.         THREAD LIST BROWSER  
  663.     */  
  664.  
  665.     /* ------------------  
  666.         Hide Like and Bookmark columns in thread list view.  
  667.     */                                                                            /* v0.43 */  
  668.     /* ------------------ display in small screen        changed 0.6 */  
  669.     .j-browse-details .j-td-likes,  
  670.     .j-browse-details .j-td-bookmarks { display: none !important; }  
  671.     .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th,  
  672.     .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th  
  673.         { display: none !important; }  
  674.     .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th + th  
  675.         { display: table-cell !important; }  
  676.     /* ------------------ */  
  677.  
  678.  
  679.     /* ------------------  
  680.         Treatment for narrow window  
  681.         Method 1 (minimum optimisation)  
  682.  
  683.         Adjust thread list table's shift and margin to maximize its width.  
  684.     */                                                                            /* v0.43 */  
  685.     /* ------------------ (currently commented out)  
  686.     .j-layout-sl.j-browse-content .j-column-wrap-l { margin-left: -166px !important; }  
  687.     .j-layout-sl.j-browse-content .j-column-l      { margin-left: 166px !important; }  
  688.     .j-layout-sl.j-browse-content .j-column-s      { width: 166px !important; }  
  689.     ------------------ */  
  690.     /* ------------------  
  691.         Treatment for narrow window  
  692.         Method 2 (more beneficial to narrow window but has disadvantage for wide window)  
  693.        
  694.         Let thread list table have full width but not exceed 1019px to make room for sidebar  
  695.         ui (filters & actions).  If window is wide enough (>=1265px), sidebar ui is displayed  
  696.         next to thread list table, otherwise it is displayed below or above it (depending  
  697.         upon its document tree order).  
  698.        
  699.         * sidebar width (constant)    = 166px  
  700.         * thread table max width      = 1019px  
  701.         * canvas margin-left          = 40px  
  702.         * canvas margin-right         = 40px  
  703.         ---------------------------------------  
  704.         * total                       = 1265px  
  705.     */                                                                          /* v0.5 */  
  706.     /* ------------------ (currently active) */  
  707.     .j-layout-sl.j-browse-content .j-column-wrap-l { max-width: 1019px !important; }  
  708.     .j-layout-sl.j-browse-content .j-column-wrap-l { margin-left: 0px !important; }  
  709.     .j-layout-sl.j-browse-content .j-column-l      { margin-left: 0px !important; }  
  710.     .j-layout-sl.j-browse-content .j-column-s      { width: 166px !important; }  
  711.     /* ------------------ */  
  712.  
  713.     /* ------------------  
  714.         Swap left-right positions of thread list table and sidebar ui (filters & actions)  
  715.     */                                                                    /* fixed in v0.43 */  
  716.     /* let thread list table float left */  
  717.     .j-layout-sl.j-browse-content .j-column-wrap-l,  
  718.     .j-layout-sl.j-browse-places .j-column-wrap-l { float: left !important; }  
  719.  
  720.     /* let sidebar ui float right */  
  721.     .j-layout-sl.j-browse-content .j-column-s,  
  722.     .j-layout-sl.j-browse-places .j-column-s { float: right !important; }  
  723.     /* ------------------ */  
  724.  
  725.  
  726.     /* -----------------------------------------------------------------------------------  
  727.         THREAD CONTENT BROWSER - Displays the contents of the posts.  
  728.     */  
  729.  
  730.     /* -----------------------------------------------------------------------------------  
  731.         ACTIVITY STREAM  
  732.     */  
  733.     /* activity entry */  
  734.     .j-act-entry { padding: 5px 0px 10px 100px !important; }  
  735.  
  736.     /* activity title */  
  737.     .j-body-home .j-act-title { padding: 5px 0px 5px 24px !important; }  
  738.  
  739.     /* activity body & comment */                                                /* v0.43 */  
  740.     .j-body-home .j-act-init,  
  741.     .j-view-profile .j-act-init { padding: 5px 0px 10px 100px !important; }  
  742.     .apple-activity-comments-wrapper { margin-left: 0px !important; }  
  743.  
  744.     /* Like list */  
  745.     .j-act-grouped .j-act-g-item { padding: 3px !important; }  
  746.  
  747.  
  748.  
  749.     /* -----------------------------------------------------------------------------------  
  750.         PLACES  
  751.     */                                                                         /* v0.43 */  
  752.     /* latest activity column */  
  753.     .j-browse-details .j-td-activity { max-width: 650px !important; }  
  754.  
  755.  
  756.     /* ------------------  
  757.         Treatment for narrow window  
  758.         Method 1 (minimum optimisation)  
  759.  
  760.         Adjust community list table's shift and margin to maximize its width.  
  761.     */                                                                            /* v0.43 */  
  762.     /* ------------------ (currently commented out)  
  763.     .j-layout-sl.j-browse-places .j-column-wrap-l { margin-left: -166px !important; }  
  764.     .j-layout-sl.j-browse-places .j-column-l      { margin-left: 166px !important; }  
  765.     .j-layout-sl.j-browse-places .j-column-s      { width: 166px !important; }  
  766.     ------------------ */  
  767.     /* ------------------  
  768.         Treatment for narrow window  
  769.         Method 2 (more beneficial to narrow window but has disadvantage for wide window)  
  770.        
  771.         Let community list table have full width but not exceed 1019px to make room for  
  772.         sidebar ui (filters & actions).  If window is wide enough (>=1265px), sidebar ui  
  773.         is displayed next to community list table, otherwise it is displayed below or above  
  774.         it (depending upon its document tree order).  
  775.        
  776.         * sidebar width (constant)    = 166px  
  777.         * community table max width   = 1019px  
  778.         * canvas margin-left          = 40px  
  779.         * canvas margin-right         = 40px  
  780.         ---------------------------------------  
  781.         * total                       = 1265px  
  782.     */                                                                            /* v0.5 */  
  783.     /* ------------------ (currently active) */  
  784.     .j-layout-sl.j-browse-places .j-column-wrap-l { max-width: 1019px !important; }  
  785.     .j-layout-sl.j-browse-places .j-column-wrap-l { margin-left: 0px !important; }  
  786.     .j-layout-sl.j-browse-places .j-column-l      { margin-left: 0px !important; }  
  787.     .j-layout-sl.j-browse-places .j-column-l      { padding-left: 0px !important; }  
  788.     .j-layout-sl.j-browse-places .j-column-s      { width: 166px !important; }      
  789.     /* ------------------ */  
  790.  
  791.  
  792.   }  /* end of media for narrow browsers. */  
  793.  
  794.  
  795. } /* @-moz-document */  
  796.  
  797. /* Leave the login window footer alone. So, turn these fields back on.  
  798.     */  
  799.     @-moz-document  
  800.     url-prefix(https://discussions.apple.com/people/),  
  801.     url-prefix(https://discussions.apple.com/welcome),  
  802.     url-prefix(https://discussionsjapan.apple.com/people/),    
  803.     url-prefix(https://discussionsjapan.apple.com/welcome/),  
  804.     url-prefix(https://discussionskorea.apple.com/people/),  
  805.     url-prefix(https://discussionskorea.apple.com/welcome/)      
  806.         {  
  807.         /* legalistic bomblast on login window*/  
  808.         #globaldisclaimer.sosumi {display: inherit !important; }        
  809.         /* path to here */  
  810.         #j-footer #breadcrumbs {display: inherit !important; }  
  811.         /* apple product info */  
  812.         p.gf-buy {display: inherit !important; }  
  813.          
  814.     }
  815.    
  816.  
  817. /*
  818.    Addresses problems with decorator tag mentioned here:
  819.      https://discussions.apple.com/message/30170332#30170332
  820.  
  821.    looking for a page like:
  822.      https://discussions.apple.com/thread/7522221?decorator=print&displayFullThread=true
  823. */
  824. @-moz-document
  825.   regexp("https:\/\/discussions\.apple\.com\/thread\/.*\?decorator=print&displayFullThread=true.*")
  826.     {  
  827.       /* Debug to identify which page we found.  Place our ukiyo-e. */  
  828.       h1 {background-color: aqua !important;  
  829.         border: 2px dashed black !important;
  830.         }
  831.      
  832.      #jive-body-full { margin-left: 80px !important; }
  833.      
  834.      /* Avatar runs off the screen to the left.  Level info is to the right instead of below. */
  835.      /* better align avatar */  
  836.      div.j-post-avatar {
  837.        margin-left: 60px !important;
  838.        text-align: center !important;
  839.        margin-top: 30px !important;
  840.        }
  841.    
  842.      /* -------------------------------------------------------------------------------  
  843.         THREAD CONTENT BROWSER  
  844.         status level expertise badge  
  845.         To avoid formatting problems of badges overlapping next post, enable this line.
  846.         There is no room for badges, so get rid of them.
  847.      */  
  848.      .j-status-level.expertise-tile { display: none !important; }
  849.      
  850.      /* the text of the post needs to be moved to the right to avoid the avatar.
  851.         ".j-thread-post.j-rc4" is included in all post.
  852.         ".section.j-original-message" marks the first post. */
  853.      .j-thread-post.j-rc4 { margin-left: 100px !important; }
  854.            
  855.      /* move level icon below avator */
  856.      span.status-image {
  857.        display: block!important;
  858.        text-align: center !important;
  859.        }
  860.        
  861.      
  862.      /* move level number below avatar */
  863.      span.level-points {
  864.        display: block!important;
  865.        text-align: center !important;
  866.        }
  867.      
  868.        
  869.    
  870.      
  871.    }
  872.  
  873.  
  874. /* Turn verical nav list into a horizontal nav list */
  875. @-moz-document  
  876.   domain(discussions.apple.com),
  877.   domain(communities.apple.com),
  878.   domain(discussionsjapan.apple.com),  
  879.   domain(discussionskorea.apple.com)  
  880. {  /* ------------ to do: variable size list with screen adjustments
  881.                    list bugdom ---------- */
  882.  
  883.     /* Debug to identify which ul we found.  Place our ukiyo-e. 0.64 */  
  884.     /* h1, h2 {
  885.         background-color: aqua !important;  
  886.         border: 1px dashed black !important;
  887.     }
  888.     */
  889.    
  890.     /* Use less space on the top of the page. We see this every day.  I don't use any
  891.        of the links here anyway.  Ok, to make them smaller.
  892.        The goal is not to have to do a "manditory" page down to get to posts. 0.64 */
  893.    
  894.     /* Move up the "New  My Subscriptions ..."  nav bar.  Looks  better aligned with
  895.        "Apple Support Communities" */
  896.     #j-globalNav { margin-top: -12px !important;}
  897.     /* need less height for "Apple Support Communities   New My Subscriptions ... "
  898.        after moving up the nav bar*/
  899.         #j-globalNav-bg {height: 20px !important;
  900.         border-bottom: none !important;
  901.     }
  902.     /* Less space below avator ... */
  903.     #j-header-wrap { margin-bottom: 0px !important;}
  904.     /* move up "Apple Support Communities  /  Content"
  905.        When windows size is contracted, these words will
  906.        overlay words to the left. "... | logout"
  907.        First nav bar doesn't overlay "Apple Support Community". */
  908.     #jive-breadcrumb {margin-top: 4px !important;
  909.         margin-bottom: 0px !important;}
  910.    
  911.     /* Less space above "All Content User Tips Discussions" nav bar */
  912.     .j-layout { margin-top: 10px !important;}
  913.    
  914.     /* Purge the words "Find helpful content and discussions." Redundant.
  915.        Why are we here? Pro users will know. */
  916.     #apple-full-subheader {display: none !important;}
  917.          
  918.     /* Adjust the h2 header to take up less room on the page.  
  919.        Let's focus on the posts. */
  920.     h1, h2 {
  921.       font-size: 24px !important;;
  922.       line-height: 28px !important;;
  923.     }
  924.     .j-page-header {
  925.       margin-top: 0px !important;
  926.       margin-bottom: 0px !important;
  927.     }
  928.    
  929.   /* Narrow screen browser  
  930.        =====================  
  931.   */    
  932.   @media all and (max-width: 1265px) {  
  933.     /* Turn verical nav list into a horizontal nav list to save vertical space.
  934.         This nav bar appear above the list of dicussions in the Your Content page.  
  935.        It appears below in the list of discussions page.
  936.        A larger screen has room for vertical navigation, so let along. */
  937.  
  938.     /* We need to make room for the horizontal nav bar.  A floating right, the area to the left
  939.        is blank anyway. */
  940.     .j-layout-sl.j-browse-content .j-column-s      
  941.         { width: 95% !important; }  /* let more room for horizontal navigation 0.64 */
  942.    
  943.    
  944.     /* make nav bar horizontal amoung other things. */
  945.     div .j-column.j-column-s nav ul li {
  946.       float: left !important;    /* makes the list items horizontal */
  947.       width: 120px !important;  /* width of each link */
  948.       text-align: center !important;
  949.       margin-left: 0 !important;
  950.       padding-left: 0 !important;
  951.     }
  952.  
  953.     /* let a little space to the left of the navigation bar. */  
  954.         div .j-column.j-column-s nav  {
  955.        margin-left: 0px !important;  
  956.         margin-top: 20px !important;  /* max of margin-bottom of proceeding line and margin-top */
  957.     }
  958.    
  959.    /* after making the navigating link horizontal, the blue overlay box doesn't immediately
  960.       jump to the draft box.  After clicking on any of the other links, the blue box
  961.       parks on the draft box and will not move.  The function must be implemented in javascript which
  962.       cannot be changed from css. Purge it.
  963.       Upper nav bar on your content */
  964.       body.j-body-yourwork.other li.active:nth-child(7) {display: none !important;}
  965.      
  966.    /* Found another blue overlay box.
  967.       https://discussions.apple.com/people/<ASC_id>/content?manage=true */
  968.       body.jive-view-profile.j-view-profile.j-view-profile-self.other li.active:last-child {display: none !important;}
  969.    
  970.      /* style the link (a tag) inside the li
  971.         Put a box around the links.  Complete box makes for a dark middle Line. So, leave
  972.         off right line but for righ most link. Do the best we can
  973.         ASC box grey-line color #d7d7d7 also seems like grey #eaeaea */
  974.      div .j-column.j-column-s nav li a {
  975.         border: 1px solid #d7d7d7 !important;
  976.         border-left: none !important;  /* avoid double border lines for middle items */
  977.         padding-left: 0 !important;
  978.      }
  979.  
  980.     /* Fill in the first box with a line on the left */
  981.     /* Upper nav bar on your content
  982.        https://discussions.apple.com/content?filterID=following~objecttype~objecttype[thread] */
  983.     body.j-body-yourwork.other li.j-browse-filter-group-item:first-child > a,
  984.     /* https://discussions.apple.com/people/<apple-id>/content?manage=true */
  985.     body.jive-view-profile.j-view-profile.j-view-profile-self other li.active:first-child > a,
  986.     /* lower nav bar
  987.         https://discussions.apple.com/community/ipad/ipad_in_business_and_education
  988.             /content?filterID=contentstatus[published]~objecttype~objecttype[thread] */
  989.     body.j-body-place.other li.j-browse-filter-group-item:first-child {  
  990.        border-left: 1px solid #d7d7d7 !important;  /* avoid double border lines for middle items */
  991.     }
  992.    
  993.    /* Hover over nav bar item */
  994.    div .j-column.j-column-s nav li a:hover {
  995.      color: #42aaff !important;  /* light blue */
  996.      }
  997.       /* See if we can position "start ad discussion, Write a user tip" bottom
  998.        bar a little better */
  999.     .j-box {  
  1000.         margin-top: 40px !important;
  1001.         float: right !important;}
  1002.      
  1003.   } /* of media */
  1004.  
  1005. } /* moz-document domain */
  1006.  
  1007. /* Turn verical nav list into a horizontal nav list */
  1008. /* @-moz-document
  1009. https://discussions.apple.com/content?filterID=following~objecttype~objecttype[thread] */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement